Bug#811757: teeworlds: FTBFS with GCC 6: narrowing conversion
Martin Michlmayr
tbm at hpe.com
Wed Jan 20 01:53:03 UTC 2016
Package: teeworlds
Version: 0.6.2+dfsg-2
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
...
> [ 49/139] #1 c++ src/mastersrv/mastersrv.cpp
> g++ -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -fno-exceptions -c -DCONF_RELEASE -I "src" -o objs/mastersrv/mastersrv.o src/mastersrv/mastersrv.cpp
> src/mastersrv/mastersrv.cpp: In function 'void BuildPackets()':
> src/mastersrv/mastersrv.cpp:120:106: error: narrowing conversion of '255' from 'int' to 'char' inside { } [-Wnarrowing]
> static char IPV4Mapping[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF };
> ^
>
> src/mastersrv/mastersrv.cpp:120:106: error: narrowing conversion of '255' from 'int' to 'char' inside { } [-Wnarrowing]
> bam: ret=256 g++ -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -fno-exceptions -c -DCONF_RELEASE -I "src" -o objs/mastersrv/mastersrv.o src/mastersrv/mastersrv.cpp
> bam: 'objs/mastersrv/mastersrv.o' error 256
> bam: error: a build step failed
> debian/rules:14: recipe for target 'override_dh_auto_build' failed
--
Martin Michlmayr
Linux for HPE Helion, Hewlett Packard Enterprise
More information about the Pkg-games-devel
mailing list