Bug#811955: bs1770gain: FTBFS with GCC 6: left shift of negative value

Martin Michlmayr tbm at hpe.com
Wed Jan 20 04:01:03 UTC 2016


Package: bs1770gain
Version: 0.4.8-2
Severity: important
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-6 gcc-6-shift-negative-value

This package fails to build with GCC 6.  GCC 6 has not been released
yet, but it's expected that GCC 6 will become the default compiler for
stretch.

Note that only the first error is reported; there might be more.  You
can find a snapshot of GCC 6 in experimental.  To build with GCC 6,
you can set CC=gcc-6 CXX=g++-6 explicitly.

You may be able to find out more about this issue at
https://gcc.gnu.org/gcc-6/changes.html

> sbuild (Debian sbuild) 0.67.0 (26 Dec 2015) on dl580gen9-02.hlinux
...
> gcc -DHAVE_CONFIG_H -I. -I..   -Wdate-time -D_FORTIFY_SOURCE=2 -I../libpbutil -I../lib1770-2  -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Werror -Wall -Wformat -Wpointer-arith -Wcast-align -Wcast-qual -Wreturn-type -Wextra -Wstrict-prototypes -c ffsox_frame_convert.c
> ffsox_frame_convert.c: In function 'convert_flti_s8i':
> ffsox_frame_convert.c:103:18: error: left shift of negative value [-Werror=shift-negative-value]
>    q=1.0==q?~(~0ll<<bits):q*~(~0ll<<bits); \
>                   ^
> 
> ffsox_frame_convert.c:150:3: note: in expansion of macro 'CONVERT_FLOAT_INT_II'
>    convert(); \
>    ^~~~~~~
> 
> ffsox_frame_convert.c:159:1: note: in expansion of macro 'CONVERT_II'
>  CONVERT_II(flt,s8,float,int8_t,CONVERT_FLOAT_INT_II)
>  ^~~~~~~~~~
> 
> ffsox_frame_convert.c:103:34: error: left shift of negative value [-Werror=shift-negative-value]
>    q=1.0==q?~(~0ll<<bits):q*~(~0ll<<bits); \
>                                   ^
> 
> ffsox_frame_convert.c:150:3: note: in expansion of macro 'CONVERT_FLOAT_INT_II'
>    convert(); \
>    ^~~~~~~
> 
> ffsox_frame_convert.c:159:1: note: in expansion of macro 'CONVERT_II'
>  CONVERT_II(flt,s8,float,int8_t,CONVERT_FLOAT_INT_II)
>  ^~~~~~~~~~
> 
> ffsox_frame_convert.c: In function 'convert_dbli_s8i':
> ffsox_frame_convert.c:103:18: error: left shift of negative value [-Werror=shift-negative-value]
>    q=1.0==q?~(~0ll<<bits):q*~(~0ll<<bits); \
>                   ^
> 
> ffsox_frame_convert.c:150:3: note: in expansion of macro 'CONVERT_FLOAT_INT_II'
>    convert(); \
>    ^~~~~~~
> 
> ffsox_frame_convert.c:160:1: note: in expansion of macro 'CONVERT_II'
>  CONVERT_II(dbl,s8,double,int8_t,CONVERT_FLOAT_INT_II)
>  ^~~~~~~~~~
> 
> ffsox_frame_convert.c:103:34: error: left shift of negative value [-Werror=shift-negative-value]
>    q=1.0==q?~(~0ll<<bits):q*~(~0ll<<bits); \
>                                   ^
> 
> ffsox_frame_convert.c:150:3: note: in expansion of macro 'CONVERT_FLOAT_INT_II'
>    convert(); \
>    ^~~~~~~
> 
> ffsox_frame_convert.c:160:1: note: in expansion of macro 'CONVERT_II'
>  CONVERT_II(dbl,s8,double,int8_t,CONVERT_FLOAT_INT_II)
>  ^~~~~~~~~~
> 
> ffsox_frame_convert.c: In function 'convert_flti_s16i':
> ffsox_frame_convert.c:103:18: error: left shift of negative value [-Werror=shift-negative-value]
>    q=1.0==q?~(~0ll<<bits):q*~(~0ll<<bits); \
>                   ^
> 
> ffsox_frame_convert.c:150:3: note: in expansion of macro 'CONVERT_FLOAT_INT_II'
>    convert(); \
>    ^~~~~~~
> 
> ffsox_frame_convert.c:165:1: note: in expansion of macro 'CONVERT_II'
>  CONVERT_II(flt,s16,float,int16_t,CONVERT_FLOAT_INT_II)
>  ^~~~~~~~~~
> 
> ffsox_frame_convert.c:103:34: error: left shift of negative value [-Werror=shift-negative-value]
>    q=1.0==q?~(~0ll<<bits):q*~(~0ll<<bits); \
>                                   ^
> 
> ffsox_frame_convert.c:150:3: note: in expansion of macro 'CONVERT_FLOAT_INT_II'
>    convert(); \
>    ^~~~~~~
> 
> ffsox_frame_convert.c:165:1: note: in expansion of macro 'CONVERT_II'
>  CONVERT_II(flt,s16,float,int16_t,CONVERT_FLOAT_INT_II)
>  ^~~~~~~~~~
> 
> ffsox_frame_convert.c: In function 'convert_dbli_s16i':
> ffsox_frame_convert.c:103:18: error: left shift of negative value [-Werror=shift-negative-value]
>    q=1.0==q?~(~0ll<<bits):q*~(~0ll<<bits); \
>                   ^
> 
> ffsox_frame_convert.c:150:3: note: in expansion of macro 'CONVERT_FLOAT_INT_II'
>    convert(); \
>    ^~~~~~~
> 
> ffsox_frame_convert.c:166:1: note: in expansion of macro 'CONVERT_II'
>  CONVERT_II(dbl,s16,double,int16_t,CONVERT_FLOAT_INT_II)
>  ^~~~~~~~~~
> 
> ffsox_frame_convert.c:103:34: error: left shift of negative value [-Werror=shift-negative-value]
>    q=1.0==q?~(~0ll<<bits):q*~(~0ll<<bits); \
>                                   ^
> 
> ffsox_frame_convert.c:150:3: note: in expansion of macro 'CONVERT_FLOAT_INT_II'
>    convert(); \
>    ^~~~~~~
> 
> ffsox_frame_convert.c:166:1: note: in expansion of macro 'CONVERT_II'
>  CONVERT_II(dbl,s16,double,int16_t,CONVERT_FLOAT_INT_II)
>  ^~~~~~~~~~
> 
> ffsox_frame_convert.c: In function 'convert_flti_s32i':
> ffsox_frame_convert.c:103:18: error: left shift of negative value [-Werror=shift-negative-value]
>    q=1.0==q?~(~0ll<<bits):q*~(~0ll<<bits); \



More information about the pkg-multimedia-maintainers mailing list