--- Begin Message ---
Package: gpsshogi
Version: 0.6.0-3+nmu2
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
...
> grep gpsshogi.cc .deps/gpsshogi.cc.d > /dev/null 2>&1 || (rm -f
> .deps/gpsshogi.cc.d; false)
> g++ -g -O2 -fstack-protector-strong -Wformat -Werror=format-security
> -Wdate-time -D_FORTIFY_SOURCE=2 -pipe -march=k8 -DOSL_SMP -DNDEBUG -O3
> -funroll-loops -funswitch-loops -fpeel-loops --param
> large-function-growth=48000 --param inline-unit-growth=8000 --param
> max-inline-insns-single=8000 -fomit-frame-pointer -Wall -Wwrite-strings
> -Wextra -Wstrict-aliasing=2 -Woverloaded-virtual -Wcast-align -Wwrite-strings
> -Wpointer-arith -Wno-unused-parameter -Wno-missing-field-initializers
> -I/usr/share/libosl-dev/include -D_REENTRANT -I../include -Wdate-time
> -D_FORTIFY_SOURCE=2 -c -o gpsshogi.o gpsshogi.cc
> In file included from /usr/include/osl/search/moveWithComment.h:6:0,
> from /usr/include/osl/game_playing/computerPlayer.h:6,
> from /usr/include/osl/game_playing/searchPlayer.h:4,
> from options.h:6,
> from gpsshogi.cc:1:
> /usr/include/osl/move.h:66:40: error: left operand of shift expression '(-1
> << 28)' is negative [-fpermissive]
> BLACK_PASS = 0, WHITE_PASS = (-1)<<28,
> ~~~~^~~~
>
> /usr/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 /usr/include/osl/state/simpleState.h:10:0,
> from /usr/include/osl/hash/hashKey.h:15,
> from /usr/include/osl/search/moveWithComment.h:8,
> from /usr/include/osl/game_playing/computerPlayer.h:6,
> from /usr/include/osl/game_playing/searchPlayer.h:4,
> from options.h:6,
> from gpsshogi.cc:1:
> /usr/include/osl/ptypeTraits.h: In instantiation of 'const mask_int_t
> osl::PtypeFunsSub<(osl::Ptype)11u, true>::indexMask':
> /usr/include/osl/ptypeTraits.h:325:29: required from 'const mask_int_t
> osl::PtypeFuns<(osl::Ptype)11u>::indexMask'
> /usr/include/osl/state/numEffectState.h:359:45: required from here
> /usr/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)));
>
> ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> /usr/include/osl/ptypeTraits.h: In instantiation of 'const mask_int_t
> osl::PtypeFunsSub<(osl::Ptype)14u, true>::indexMask':
> /usr/include/osl/ptypeTraits.h:325:29: required from 'const mask_int_t
> osl::PtypeFuns<(osl::Ptype)14u>::indexMask'
> /usr/include/osl/state/numEffectState.h:362:49: required from here
> /usr/include/osl/ptypeTraits.h:299:68: error: left operand of shift
> expression '(-1ll << 36)' is negative [-fpermissive]
> /usr/include/osl/ptypeTraits.h: In instantiation of 'const mask_int_t
> osl::PtypeFunsSub<(osl::Ptype)15u, true>::indexMask':
> /usr/include/osl/ptypeTraits.h:325:29: required from 'const mask_int_t
> osl::PtypeFuns<(osl::Ptype)15u>::indexMask'
> /usr/include/osl/state/numEffectState.h:365:46: required from here
> /usr/include/osl/ptypeTraits.h:299:68: error: left operand of shift
> expression '(-1ll << 38)' is negative [-fpermissive]
> In file included from /usr/include/osl/search/simpleHashRecord.h:6:0,
> from /usr/include/osl/search/searchBase.h:9,
> from /usr/include/osl/search/alphaBeta2.h:7,
> from benchmark.h:9,
> from gpsshogi.cc:2:
> /usr/include/osl/search/quiescenceRecord.h: In copy constructor
> 'osl::search::QuiescenceRecord::QuiescenceRecord(const
> osl::search::QuiescenceRecord&)':
> /usr/include/osl/search/quiescenceRecord.h:154:28: error: use of deleted
> function 'osl::search::QuiescenceRecordBase::QuiescenceRecordBase(const
> osl::search::QuiescenceRecordBase&)'
> : QuiescenceRecordBase(src)
> ^
>
> /usr/include/osl/search/quiescenceRecord.h:105:12: note:
> 'osl::search::QuiescenceRecordBase::QuiescenceRecordBase(const
> osl::search::QuiescenceRecordBase&)' is implicitly deleted because the
> default definition would be ill-formed:
> struct QuiescenceRecordBase
> ^~~~~~~~~~~~~~~~~~~~
>
> /usr/include/osl/search/quiescenceRecord.h:105:12: error: use of deleted
> function 'osl::search::DualThreatmateState::DualThreatmateState(const
> osl::search::DualThreatmateState&)'
> In file included from /usr/include/osl/search/quiescenceRecord.h:6:0,
> from /usr/include/osl/search/simpleHashRecord.h:6,
> from /usr/include/osl/search/searchBase.h:9,
> from /usr/include/osl/search/alphaBeta2.h:7,
> from benchmark.h:9,
> from gpsshogi.cc:2:
> /usr/include/osl/search/dualThreatmateState.h:14:11: note:
> 'osl::search::DualThreatmateState::DualThreatmateState(const
> osl::search::DualThreatmateState&)' is implicitly deleted because the default
> definition would be ill-formed:
> class DualThreatmateState
> ^~~~~~~~~~~~~~~~~~~
>
> /usr/include/osl/search/dualThreatmateState.h:14:11: error: no matching
> function for call to 'Flags(const volatile
> osl::search::DualThreatmateState::Flags&)'
> /usr/include/osl/search/dualThreatmateState.h:28:14: note: candidate:
> constexpr osl::search::DualThreatmateState::Flags::Flags(const
> osl::search::DualThreatmateState::Flags&) <near match>
> struct Flags {
> ^~~~~
>
> /usr/include/osl/search/dualThreatmateState.h:28:14: note: conversion of
> argument 1 would be ill-formed:
> /usr/include/osl/search/dualThreatmateState.h:14:11: error: binding 'const
> volatile osl::search::DualThreatmateState::Flags' to reference of type 'const
> osl::search::DualThreatmateState::Flags&' discards qualifiers
> class DualThreatmateState
> ^~~~~~~~~~~~~~~~~~~
>
> /usr/include/osl/search/dualThreatmateState.h:28:14: note: candidate:
> constexpr
> osl::search::DualThreatmateState::Flags::Flags(osl::search::DualThreatmateState::Flags&&)
> <near match>
> struct Flags {
> ^~~~~
>
> /usr/include/osl/search/dualThreatmateState.h:28:14: note: conversion of
> argument 1 would be ill-formed:
> /usr/include/osl/search/dualThreatmateState.h:14:11: error: cannot bind
> 'const volatile osl::search::DualThreatmateState::Flags' lvalue to
> 'osl::search::DualThreatmateState::Flags&&'
> class DualThreatmateState
> ^~~~~~~~~~~~~~~~~~~
>
> In file included from /usr/include/osl/search/simpleHashRecord.h:6:0,
> from /usr/include/osl/search/searchBase.h:9,
> from /usr/include/osl/search/alphaBeta2.h:7,
> from benchmark.h:9,
> from gpsshogi.cc:2:
> /usr/include/osl/search/quiescenceRecord.h: In member function
> 'osl::search::QuiescenceRecord&
> osl::search::QuiescenceRecord::operator=(const
> osl::search::QuiescenceRecord&)':
> /usr/include/osl/search/quiescenceRecord.h:162:32: error: use of deleted
> function 'osl::search::QuiescenceRecordBase&
> osl::search::QuiescenceRecordBase::operator=(const
> osl::search::QuiescenceRecordBase&)'
> QuiescenceRecordBase::operator=(src);
> ^
>
> /usr/include/osl/search/quiescenceRecord.h:105:12: note:
> 'osl::search::QuiescenceRecordBase&
> osl::search::QuiescenceRecordBase::operator=(const
> osl::search::QuiescenceRecordBase&)' is implicitly deleted because the
> default definition would be ill-formed:
> struct QuiescenceRecordBase
> ^~~~~~~~~~~~~~~~~~~~
>
> /usr/include/osl/search/quiescenceRecord.h:105:12: error: use of deleted
> function 'osl::search::DualThreatmateState&
> osl::search::DualThreatmateState::operator=(const
> osl::search::DualThreatmateState&)'
> In file included from /usr/include/osl/search/quiescenceRecord.h:6:0,
> from /usr/include/osl/search/simpleHashRecord.h:6,
> from /usr/include/osl/search/searchBase.h:9,
> from /usr/include/osl/search/alphaBeta2.h:7,
> from benchmark.h:9,
> from gpsshogi.cc:2:
> /usr/include/osl/search/dualThreatmateState.h:14:11: note:
> 'osl::search::DualThreatmateState&
> osl::search::DualThreatmateState::operator=(const
> osl::search::DualThreatmateState&)' is implicitly deleted because the default
> definition would be ill-formed:
> class DualThreatmateState
> ^~~~~~~~~~~~~~~~~~~
>
> /usr/include/osl/search/dualThreatmateState.h:14:11: error: no matching
> function for call to 'operator=(const volatile
> osl::search::DualThreatmateState::Flags&)'
> /usr/include/osl/search/dualThreatmateState.h:28:14: note: candidate:
> osl::search::DualThreatmateState::Flags&
> osl::search::DualThreatmateState::Flags::operator=(const
> osl::search::DualThreatmateState::Flags&) <near match>
> struct Flags {
> ^~~~~
>
> /usr/include/osl/search/dualThreatmateState.h:28:14: note: conversion of
> argument 1 would be ill-formed:
> /usr/include/osl/search/dualThreatmateState.h:14:11: error: binding 'const
> volatile osl::search::DualThreatmateState::Flags' to reference of type 'const
> osl::search::DualThreatmateState::Flags&' discards qualifiers
> class DualThreatmateState
> ^~~~~~~~~~~~~~~~~~~
>
> /usr/include/osl/search/dualThreatmateState.h:28:14: note: candidate:
> osl::search::DualThreatmateState::Flags&
> osl::search::DualThreatmateState::Flags::operator=(osl::search::DualThreatmateState::Flags&&)
> <near match>
> struct Flags {
> ^~~~~
>
> /usr/include/osl/search/dualThreatmateState.h:28:14: note: conversion of
> argument 1 would be ill-formed:
> /usr/include/osl/search/dualThreatmateState.h:14:11: error: cannot bind
> 'const volatile osl::search::DualThreatmateState::Flags' lvalue to
> 'osl::search::DualThreatmateState::Flags&&'
> class DualThreatmateState
> ^~~~~~~~~~~~~~~~~~~
>
> gpsshogi.cc: In function 'void play(int, char**)':
> gpsshogi.cc:233:10: warning: 'template<class> class std::auto_ptr' is
> deprecated [-Wdeprecated-declarations]
> std::auto_ptr<SearchPlayer> player
> ^~~~~~~~
>
> In file included from /usr/include/c++/6/memory:81:0,
> from /usr/include/osl/stl/pool_allocator.h:14,
> from /usr/include/osl/stl/vector.h:6,
> from /usr/include/osl/search/moveWithComment.h:7,
> from /usr/include/osl/game_playing/computerPlayer.h:6,
> from /usr/include/osl/game_playing/searchPlayer.h:4,
> from options.h:6,
> from gpsshogi.cc:1:
> /usr/include/c++/6/bits/unique_ptr.h:49:28: note: declared here
> template<typename> class auto_ptr;
> ^~~~~~~~
>
> gpsshogi.cc:241:10: warning: 'template<class> class std::auto_ptr' is
> deprecated [-Wdeprecated-declarations]
> std::auto_ptr<SearchPlayer> player
> ^~~~~~~~
>
> In file included from /usr/include/c++/6/memory:81:0,
> from /usr/include/osl/stl/pool_allocator.h:14,
> from /usr/include/osl/stl/vector.h:6,
> from /usr/include/osl/search/moveWithComment.h:7,
> from /usr/include/osl/game_playing/computerPlayer.h:6,
> from /usr/include/osl/game_playing/searchPlayer.h:4,
> from options.h:6,
> from gpsshogi.cc:1:
> /usr/include/c++/6/bits/unique_ptr.h:49:28: note: declared here
> template<typename> class auto_ptr;
> ^~~~~~~~
>
> gpsshogi.cc:248:8: warning: 'template<class> class std::auto_ptr' is
> deprecated [-Wdeprecated-declarations]
> std::auto_ptr<OpeningBookTracer> black_book, white_book;
> ^~~~~~~~
>
> In file included from /usr/include/c++/6/memory:81:0,
> from /usr/include/osl/stl/pool_allocator.h:14,
> from /usr/include/osl/stl/vector.h:6,
> from /usr/include/osl/search/moveWithComment.h:7,
> from /usr/include/osl/game_playing/computerPlayer.h:6,
> from /usr/include/osl/game_playing/searchPlayer.h:4,
> from options.h:6,
> from gpsshogi.cc:1:
> /usr/include/c++/6/bits/unique_ptr.h:49:28: note: declared here
> template<typename> class auto_ptr;
> ^~~~~~~~
>
> gpsshogi.cc:307:10: warning: 'template<class> class std::auto_ptr' is
> deprecated [-Wdeprecated-declarations]
> std::auto_ptr<SearchPlayer> black_search
> ^~~~~~~~
>
> In file included from /usr/include/c++/6/memory:81:0,
> from /usr/include/osl/stl/pool_allocator.h:14,
> from /usr/include/osl/stl/vector.h:6,
> from /usr/include/osl/search/moveWithComment.h:7,
> from /usr/include/osl/game_playing/computerPlayer.h:6,
> from /usr/include/osl/game_playing/searchPlayer.h:4,
> from options.h:6,
> from gpsshogi.cc:1:
> /usr/include/c++/6/bits/unique_ptr.h:49:28: note: declared here
> template<typename> class auto_ptr;
> ^~~~~~~~
>
> gpsshogi.cc:309:10: warning: 'template<class> class std::auto_ptr' is
> deprecated [-Wdeprecated-declarations]
> std::auto_ptr<SearchPlayer> white_search
> ^~~~~~~~
>
> In file included from /usr/include/c++/6/memory:81:0,
> from /usr/include/osl/stl/pool_allocator.h:14,
> from /usr/include/osl/stl/vector.h:6,
> from /usr/include/osl/search/moveWithComment.h:7,
> from /usr/include/osl/game_playing/computerPlayer.h:6,
> from /usr/include/osl/game_playing/searchPlayer.h:4,
> from options.h:6,
> from gpsshogi.cc:1:
> /usr/include/c++/6/bits/unique_ptr.h:49:28: note: declared here
> template<typename> class auto_ptr;
> ^~~~~~~~
>
> gpsshogi.cc:343:8: warning: 'template<class> class std::auto_ptr' is
> deprecated [-Wdeprecated-declarations]
> std::auto_ptr<CsaLogger> logger(new CsaLogger(*output));
> ^~~~~~~~
>
> In file included from /usr/include/c++/6/memory:81:0,
> from /usr/include/osl/stl/pool_allocator.h:14,
> from /usr/include/osl/stl/vector.h:6,
> from /usr/include/osl/search/moveWithComment.h:7,
> from /usr/include/osl/game_playing/computerPlayer.h:6,
> from /usr/include/osl/game_playing/searchPlayer.h:4,
> from options.h:6,
> from gpsshogi.cc:1:
> /usr/include/c++/6/bits/unique_ptr.h:49:28: note: declared here
> template<typename> class auto_ptr;
> ^~~~~~~~
>
> In file included from /usr/include/osl/state/simpleState.h:10:0,
> from /usr/include/osl/hash/hashKey.h:15,
> from /usr/include/osl/search/moveWithComment.h:8,
> from /usr/include/osl/game_playing/computerPlayer.h:6,
> from /usr/include/osl/game_playing/searchPlayer.h:4,
> from options.h:6,
> from gpsshogi.cc:1:
> /usr/include/osl/ptypeTraits.h: In instantiation of 'const mask_int_t
> osl::PtypeFunsSub<(osl::Ptype)8u, true>::indexMask':
> /usr/include/osl/ptypeTraits.h:325:29: required from 'const mask_int_t
> osl::PtypeFuns<(osl::Ptype)8u>::indexMask'
> /usr/include/osl/container/pieceMask.h:88:34: required from 'void
> osl::container::PieceMask::clearBit() [with osl::Ptype PTYPE =
> (osl::Ptype)8u]'
> /usr/include/osl/state/numEffectState.h:399:19: required from here
> /usr/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)));
>
> ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> <builtin>: recipe for target 'gpsshogi.o' failed
--
Martin Michlmayr
Linux for HPE Helion, Hewlett Packard Enterprise
--- End Message ---