| YEs; I must have mistyped. there is a similar case in musmon.c that needs
tesame adjustment.
Will check it comiles OK on the other operating dsystem and commit if OK
On Sat, 3 Aug 2019, john wrote:
> I tried changig file-iotread to returm a uintptr_t but it dd not hange
> aything. Maybe I typed it wrong. Wil try again
>
>
> On Sat, 3 Aug 2019, Victor Lazzarini wrote:
>
>> It looks like the compiler doesn't like the cast. Can you change the
>> function signature to avoid it?
>>
>> Victor Lazzarini
>> Dean of Arts, Celtic Studies, and Philosophy
>> Maynooth University
>> Ireland
>>
>>> On 3 Aug 2019, at 21:29, John wrote:
>>>
>>> I have just upgraded one of my computers from Debian 9 (stretch) to
>>> Debian 10 (buster). But now csound will not compile....
>>>
>>> First error is below.
>>>
>>> I might be change in optimisations or a cast problem. Anyone have a
>>> suggestion?
>>>
>>> ==John ff
>>>
>>> [ 0%] Building C object CMakeFiles/csound64-static.dir/Engine/envvar.c.o
>>> /usr/bin/gcc
>>> -DCS_DEFAULT_PLUGINDIR=\"/usr/local/lib/csound/plugins64-6.0\"
>>> -DHAVE_EXECINFO -DHAVE_SOCKETS -DHAVE_STRTOD_L -DHAVE_STRTOK_R -DLINUX
>>> -DNO_FLTK_THREADS -DPIPES -DUSE_LRINT -D_CSOUND_RELEASE_ -D_GNU_SOURCE
>>> -I/usr/local/include -I/home/jpff/csound6/./H
>>> -I/home/jpff/csound6/./include -I/home/jpff/csound6/./Engine
>>> -I/home/jpff/csound6/./util -I/home/jpff/csound6/. -I/home/jpff/csound6
>>> -I/home/jpff/csound6/include -ftree-vectorize -ffast-math -mfpmath=sse
>>> -msse2 -fomit-frame-pointer -Wall -W -Wno-missing-field-initializers
>>> -Wno-unused-parameter -Wno-strict-aliasing-O3 -mtune=core2
>>> -ftree-vectorize -ffast-math -DBETA -Wall -Werror
>>> -Wno-missing-field-initializers -fvisibility=hidden -std=gnu99
>>> -DHAVE_ATOMIC_BUILTIN -DHAVE_CURL -DHAVE_PTHREAD -g
>>> -D__BUILDING_LIBCSOUND -DHAVE_PTHREAD_SPIN_LOCK
>>> -DHAVE_PTHREAD_BARRIER_INIT -DPARCS -DGNU_GETTEXT -DHAVE_DIRENT_H
>>> -DHAVE_FCNTL_H -DHAVE_UNISTD_H -DHAVE_STDINT_H -DHAVE_SYS_TIME_H
>>> -DHAVE_SYS_TYPES_H -DHAVE_TERMIOS_H -DHAVE_VALUES_H -o
>>> CMakeFiles/csound64-static.dir/Engine/envvar.c.o -c
>>> /home/jpff/csound6/Engine/envvar.c
>>> /home/jpff/csound6/Engine/envvar.c: In function
>>> ‘csoundFileOpenWithType_Async’:
>>> /home/jpff/csound6/Engine/envvar.c:1413:30: error: cast between
>>> incompatible function types from ‘void * (*)(void *)’ to ‘uintptr_t
>>> (*)(void *)’ {aka ‘long unsigned int (*)(void *)’}
>>> [-Werror=cast-function-type]
>>> csound->CreateThread((uintptr_t (*)(void *))file_iothread, (void
>>> *) csound);
>>> ^
>>> /home/jpff/csound6/Engine/envvar.c: At top level:
>>> cc1: error: unrecognized command line option ‘-Wno-strict-aliasing-O3’
>>> [-Werror]
>>> cc1: all warnings being treated as errors
>>> make[2]: *** [CMakeFiles/csound64-static.dir/build.make:151:
>>> CMakeFiles/csound64-static.dir/Engine/envvar.c.o] Error 1
>>> make[2]: Leaving directory '/home/jpff/csound6'
>>>
>>> ==John ffitch
> |