Package: chessx
Version: 1.3.2-2
Severity: important
User: debian-...@lists.debian.org
Usertags: ftbfs-gcc-6 gcc-6-narrowing
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
...
> g++ -c -m64 -pipe -g -O2 -fstack-protector-strong -Wformat
> -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -W -D_REENTRANT
> -fPIC -DUSE_SOUND -DQUAZIP_STATIC -DQT_NO_CAST_TO_ASCII
> -DQT_USE_QSTRINGBUILDER -DQT_NO_DEBUG_OUTPUT -DNDEBUG -DQT_NO_DEBUG
> -DQT_SVG_LIB -DQT_PRINTSUPPORT_LIB -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB
> -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -Isrc/database -Isrc/guess
> -Isrc/gui -Isrc/dialogs -Isrc/quazip -I/usr/src/3rdparty/zlib -Isrc/generated
> -isystem /usr/include/x86_64-linux-gnu/qt5 -isystem
> /usr/include/x86_64-linux-gnu/qt5/QtSvg -isystem
> /usr/include/x86_64-linux-gnu/qt5/QtPrintSupport -isystem
> /usr/include/x86_64-linux-gnu/qt5/QtWidgets -isystem
> /usr/include/x86_64-linux-gnu/qt5/QtMultimedia -isystem
> /usr/include/x86_64-linux-gnu/qt5/QtGui -isystem
> /usr/include/x86_64-linux-gnu/qt5/QtNetwork -isystem
> /usr/include/x86_64-linux-gnu/qt5/QtCore -Isrc/generated
> -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++-64 -o obj_rel/enginelist.o
> src/database/enginelist.cpp
> src/database/bitboard.cpp:112:1: error: narrowing conversion of '-5' from
> 'int' to 'unsigned char' inside { } [-Wnarrowing]
> };
> ^
>
> src/database/bitboard.cpp:112:1: error: narrowing conversion of '-6' from
> 'int' to 'unsigned char' inside { } [-Wnarrowing]
> src/database/bitboard.cpp:112:1: error: narrowing conversion of '-2' from
> 'int' to 'unsigned char' inside { } [-Wnarrowing]
> src/database/bitboard.cpp:112:1: error: narrowing conversion of '-9' from
> 'int' to 'unsigned char' inside { } [-Wnarrowing]
> src/database/bitboard.cpp:112:1: error: narrowing conversion of '-11' from
> 'int' to 'unsigned char' inside { } [-Wnarrowing]
> src/database/bitboard.cpp:112:1: error: narrowing conversion of '-3' from
> 'int' to 'unsigned char' inside { } [-Wnarrowing]
--
Martin Michlmayr
Linux for HPE Helion, Hewlett Packard Enterprise