Bug#811748: xye: FTBFS with GCC 6: narrowing conversion
Martin Michlmayr
tbm at hpe.com
Wed Jan 20 01:49:46 UTC 2016
Package: xye
Version: 0.12.2+dfsg-4
Severity: important
User: debian-gcc at 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++ -DDATA_PATH=\"/usr/share/xye/\" -I. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o xsb_level.o `test -f 'src/xsb_level.cpp' || echo './'`src/xsb_level.cpp
> src/xsb_level.cpp: In function 'bool FromXyeDFS(int*, unsigned char, unsigned char)':
> src/xsb_level.cpp:787:49: error: narrowing conversion of '-1' from 'int' to 'unsigned char' inside { } [-Wnarrowing]
> static const unsigned char dx[4] = {0,0,-1,1}, dy[4] = {-1,1,0,0};
> ^
>
> src/xsb_level.cpp:787:69: error: narrowing conversion of '-1' from 'int' to 'unsigned char' inside { } [-Wnarrowing]
> static const unsigned char dx[4] = {0,0,-1,1}, dy[4] = {-1,1,0,0};
> ^
>
> Makefile:636: recipe for target 'xsb_level.o' failed
> make[1]: *** [xsb_level.o] Error 1
--
Martin Michlmayr
Linux for HPE Helion, Hewlett Packard Enterprise
More information about the Pkg-games-devel
mailing list