Csound Csound-dev Csound-tekno Search About

[Csnd-dev] compilation failure

Date2021-08-19 19:58
FromJohn
Subject[Csnd-dev] compilation failure
==John ffitch
.....
.....
[ 77%] Building C object InOut/CMakeFiles/rtjack.dir/rtjack.c.o
cd /home/jpff/csound6/InOut && /usr/bin/cc -DCS_DEFAULT_PLUGINDIR=\"/usr/local/lib64/csound/plugins64-6.0\" -DCS_DEFAULT_USER_PLUGINDIR=\".local/lib/csound/6.0/plugins64\" -DHAVE_EXECINFO -DHAVE_SOCKETS -DHAVE_STRTOD_L -DHAVE_STRTOK_R -DLIB64 -DLINUX -DNO_FLTK_THREADS -DPIPES -DUSE_LRINT -D_CSOUND_RELEASE_ -D_GNU_SOURCE -Drtjack_EXPORTS -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 -DLIB64 -DLIBLO29 -DSCORE_PARSER -Wall -W -Wno-missing-field-initializers -Wno-unused-parameter -O3 -mtune=corei7 -DJPFF -ftree-vectorize -ffast-math -DBETA -Wall -Werror -Wno-missing-field-initializers -fvisibility=hidden -std=gnu99 -DHAVE_ATOMIC_BUILTIN -DHAVE_CURL -DHAVE_PTHREAD -g -fPIC   -o CMakeFiles/rtjack.dir/rtjack.c.o   -c /home/jpff/csound6/InOut/rtjack.c
/home/jpff/csound6/InOut/rtjack.c: In function ‘openJackStreams’:
/home/jpff/csound6/InOut/rtjack.c:507:23: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
           if (num+i+1 >= numPorts){
                       ^~
/home/jpff/csound6/InOut/rtjack.c:590:23: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
           if (num+i+1 >= numPorts){
                       ^~
cc1: all warnings being treated as errors
make[2]: *** [InOut/CMakeFiles/rtjack.dir/build.make:83: InOut/CMakeFiles/rtjack.dir/rtjack.c.o] Error 1
make[2]: Leaving directory '/home/jpff/csound6'
make[1]: *** [CMakeFiles/Makefile2:2185: InOut/CMakeFiles/rtjack.dir/all] Error 2
make[1]: Leaving directory '/home/jpff/csound6'
make: *** [Makefile:183: all] Error 2

Date2021-08-19 20:35
FromVictor Lazzarini
SubjectRe: [Csnd-dev] [EXTERNAL] [Csnd-dev] compilation failure
Looks like a cast is required there.

Prof. Victor Lazzarini
Maynooth University
Ireland

> On Aug 19, 2021, at 7:59 PM, John  wrote:
> 
> *Warning*
> 
> This email originated from outside of Maynooth University's Mail System. Do not reply, click links or open attachments unless you recognise the sender and know the content is safe.
> 
> ==John ffitch
> .....
> .....
> [ 77%] Building C object InOut/CMakeFiles/rtjack.dir/rtjack.c.o
> cd /home/jpff/csound6/InOut && /usr/bin/cc -DCS_DEFAULT_PLUGINDIR=\"/usr/local/lib64/csound/plugins64-6.0\" -DCS_DEFAULT_USER_PLUGINDIR=\".local/lib/csound/6.0/plugins64\" -DHAVE_EXECINFO -DHAVE_SOCKETS -DHAVE_STRTOD_L -DHAVE_STRTOK_R -DLIB64 -DLINUX -DNO_FLTK_THREADS -DPIPES -DUSE_LRINT -D_CSOUND_RELEASE_ -D_GNU_SOURCE -Drtjack_EXPORTS -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 -DLIB64 -DLIBLO29 -DSCORE_PARSER -Wall -W -Wno-missing-field-initializers -Wno-unused-parameter -O3 -mtune=corei7 -DJPFF -ftree-vectorize -ffast-math -DBETA -Wall -Werror -Wno-missing-field-initializers -fvisibility=hidden -std=gnu99 -DHAVE_ATOMIC_BUILTIN -DHAVE_CURL -DHAVE_PTHREAD -g -fPIC   -o CMakeFiles/rtjack.dir/rtjack.c.o   -c /home/jpff/csound6/InOut/rtjack.c
> /home/jpff/csound6/InOut/rtjack.c: In function ‘openJackStreams’:
> /home/jpff/csound6/InOut/rtjack.c:507:23: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
>           if (num+i+1 >= numPorts){
>                       ^~
> /home/jpff/csound6/InOut/rtjack.c:590:23: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
>           if (num+i+1 >= numPorts){
>                       ^~
> cc1: all warnings being treated as errors
> make[2]: *** [InOut/CMakeFiles/rtjack.dir/build.make:83: InOut/CMakeFiles/rtjack.dir/rtjack.c.o] Error 1
> make[2]: Leaving directory '/home/jpff/csound6'
> make[1]: *** [CMakeFiles/Makefile2:2185: InOut/CMakeFiles/rtjack.dir/all] Error 2
> make[1]: Leaving directory '/home/jpff/csound6'
> make: *** [Makefile:183: all] Error 2