Package: libosl
Version: 0.6.0-3.3
Severity: important
User: [email protected]
Usertags: ftbfs-gcc-6 gcc-6-enumerator-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.

> sbuild (Debian sbuild) 0.67.0 (26 Dec 2015) on dl580gen9-02.hlinux
...
> g++ -g -O2 -fstack-protector-strong -Wformat -Werror=format-security 
> -DOSL_HOME=\"/usr/share/gpsshogi-data\" -O3 -funroll-loops  -funswitch-loops 
> -fpeel-loops --param large-function-growth=48000 --param 
> inline-unit-growth=8000 --param max-inline-insns-single=8000 -DNDEBUG 
> -fomit-frame-pointer -pipe -march=k8 -DOSL_SMP -fPIC -Wall -Wwrite-strings 
> -Wextra -Wstrict-aliasing=2 -Woverloaded-virtual -Wcast-align -Wwrite-strings 
> -Wpointer-arith -Wno-unused-parameter -Wno-missing-field-initializers -Werror 
>  -g  -I../include -D_REENTRANT -Wdate-time -D_FORTIFY_SOURCE=2  -c -o 
> move_generator/open.o ../lib/move_generator/open.cc
> In file included from ../include/osl/move_action/concept.h:8:0,
>                  from ../include/osl/move_generator/pieceOnBoard.h:3,
>                  from ../include/osl/move_generator/open.h:3,
>                  from ../lib/move_generator/open.cc:1:
> ../include/osl/move.h:66:42: error: left shift of negative value 
> [-Werror=shift-negative-value]
>        BLACK_PASS = 0, WHITE_PASS = (-1)<<28,
>                                           ^~
> 
> ../include/osl/move.h:66:40: error: left operand of shift expression '(-1 << 
> 28)' is negative [-fpermissive]
>        BLACK_PASS = 0, WHITE_PASS = (-1)<<28,
>                                     ~~~~^~~~
> 
> ../include/osl/move.h:66:42: error: enumerator value for 'WHITE_PASS' is not 
> an integer constant
>        BLACK_PASS = 0, WHITE_PASS = (-1)<<28,
>                                           ^~
> 
> In file included from ../include/osl/effect/numBitmapEffect.h:5:0,
>                  from ../include/osl/effect/numSimpleEffect.h:4,
>                  from ../include/osl/state/numEffectState.h:6,
>                  from ../include/osl/move_generator/pieceOnBoard.h:5,
>                  from ../include/osl/move_generator/open.h:3,
>                  from ../lib/move_generator/open.cc:1:
> ../include/osl/ptypeTraits.h: In instantiation of 'const mask_int_t 
> osl::PtypeFunsSub<(osl::Ptype)11u, true>::indexMask':
> ../include/osl/ptypeTraits.h:325:29:   required from 'const mask_int_t 
> osl::PtypeFuns<(osl::Ptype)11u>::indexMask'
> ../include/osl/state/numEffectState.h:359:45:   required from here
> ../include/osl/ptypeTraits.h:299:68: error: left shift of negative value 
> [-Werror=shift-negative-value]
>      static const mask_int_t 
> indexMask=static_cast<mask_int_t>((-1LL<<(PtypeTraits<T>::indexMin))^(-1LL<<(PtypeTraits<T>::indexLimit)));
>                                                                
> ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 
> ../include/osl/ptypeTraits.h:299:103: error: left shift of negative value 
> [-Werror=shift-negative-value]
>      static const mask_int_t 
> indexMask=static_cast<mask_int_t>((-1LL<<(PtypeTraits<T>::indexMin))^(-1LL<<(PtypeTraits<T>::indexLimit)));
>                                                                               
>                     ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 
> ../include/osl/ptypeTraits.h:299:68: error: left operand of shift expression 
> '(-1ll << 32)' is negative [-fpermissive]
>      static const mask_int_t 
> indexMask=static_cast<mask_int_t>((-1LL<<(PtypeTraits<T>::indexMin))^(-1LL<<(PtypeTraits<T>::indexLimit)));
>                                                                
> ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 
> ../include/osl/ptypeTraits.h: In instantiation of 'const mask_int_t 
> osl::PtypeFunsSub<(osl::Ptype)14u, true>::indexMask':
> ../include/osl/ptypeTraits.h:325:29:   required from 'const mask_int_t 
> osl::PtypeFuns<(osl::Ptype)14u>::indexMask'
> ../include/osl/state/numEffectState.h:362:49:   required from here
> ../include/osl/ptypeTraits.h:299:68: error: left shift of negative value 
> [-Werror=shift-negative-value]
> ../include/osl/ptypeTraits.h:299:103: error: left shift of negative value 
> [-Werror=shift-negative-value]
>      static const mask_int_t 
> indexMask=static_cast<mask_int_t>((-1LL<<(PtypeTraits<T>::indexMin))^(-1LL<<(PtypeTraits<T>::indexLimit)));
>                                                                               
>                     ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 
> ../include/osl/ptypeTraits.h:299:68: error: left operand of shift expression 
> '(-1ll << 36)' is negative [-fpermissive]
>      static const mask_int_t 
> indexMask=static_cast<mask_int_t>((-1LL<<(PtypeTraits<T>::indexMin))^(-1LL<<(PtypeTraits<T>::indexLimit)));
>                                                                
> ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 
> ../include/osl/ptypeTraits.h: In instantiation of 'const mask_int_t 
> osl::PtypeFunsSub<(osl::Ptype)15u, true>::indexMask':
> ../include/osl/ptypeTraits.h:325:29:   required from 'const mask_int_t 
> osl::PtypeFuns<(osl::Ptype)15u>::indexMask'
> ../include/osl/state/numEffectState.h:365:46:   required from here
> ../include/osl/ptypeTraits.h:299:68: error: left shift of negative value 
> [-Werror=shift-negative-value]
> ../include/osl/ptypeTraits.h:299:103: error: left shift of negative value 
> [-Werror=shift-negative-value]
>      static const mask_int_t 
> indexMask=static_cast<mask_int_t>((-1LL<<(PtypeTraits<T>::indexMin))^(-1LL<<(PtypeTraits<T>::indexLimit)));
>                                                                               
>                     ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 
> ../include/osl/ptypeTraits.h:299:68: error: left operand of shift expression 
> '(-1ll << 38)' is negative [-fpermissive]
>      static const mask_int_t 
> indexMask=static_cast<mask_int_t>((-1LL<<(PtypeTraits<T>::indexMin))^(-1LL<<(PtypeTraits<T>::indexLimit)));
>                                                                
> ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 
> ../include/osl/ptypeTraits.h: In instantiation of 'const mask_int_t 
> osl::PtypeFunsSub<(osl::Ptype)8u, true>::indexMask':
> ../include/osl/ptypeTraits.h:325:29:   required from 'const mask_int_t 
> osl::PtypeFuns<(osl::Ptype)8u>::indexMask'
> ../include/osl/container/pieceMask.h:88:34:   required from 'void 
> osl::container::PieceMask::clearBit() [with osl::Ptype PTYPE = 
> (osl::Ptype)8u]'
> ../include/osl/state/numEffectState.h:399:19:   required from here
> ../include/osl/ptypeTraits.h:299:68: error: left shift of negative value 
> [-Werror=shift-negative-value]
> ../include/osl/ptypeTraits.h:299:103: error: left shift of negative value 
> [-Werror=shift-negative-value]
>      static const mask_int_t 
> indexMask=static_cast<mask_int_t>((-1LL<<(PtypeTraits<T>::indexMin))^(-1LL<<(PtypeTraits<T>::indexLimit)));
>                                                                               
>                     ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 
> ../include/osl/ptypeTraits.h:299:68: error: left operand of shift expression 
> '(-1ll << 30)' is negative [-fpermissive]
>      static const mask_int_t 
> indexMask=static_cast<mask_int_t>((-1LL<<(PtypeTraits<T>::indexMin))^(-1LL<<(PtypeTraits<T>::indexLimit)));
>                                                                
> ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 
> cc1plus: all warnings being treated as errors
> <builtin>: recipe for target 'move_generator/open.o' failed
> make[1]: *** [move_generator/open.o] Error 1

-- 
Martin Michlmayr
Linux for HPE Helion, Hewlett Packard Enterprise

Reply via email to