Bug#778143: teeworlds: ftbfs with GCC-5

Matthias Klose doko at debian.org
Thu Feb 12 10:37:23 UTC 2015


Package: src:teeworlds
Version: 0.6.2+dfsg-2
Severity: normal
Tags: sid stretch
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-5

Please keep this issue open in the bug tracker for the package it
was filed for.  If a fix in another package is required, please
file a bug for the other package (or clone), and add a block in this
package. Please keep the issue open until the package can be built in
a follow-up test rebuild.

The package fails to build in a test rebuild on at least amd64 with
gcc-5/g++-5, but succeeds to build with gcc-4.9/g++-4.9. The
severity of this report may be raised before the stretch release.

The full build log can be found at:
http://people.debian.org/~doko/logs/gcc5-20150205/teeworlds_0.6.2+dfsg-2_unstable_gcc5.log
The last lines of the build log are at the end of this report.

To build with GCC 5, either set CC=gcc-5 CXX=g++-5 explicitly,
or install the gcc, g++, gfortran, ... packages from experimental.

  apt-get -t experimental install g++ 

Common build failures are C11 as the default C mode, new warnings
resulting in build failures with -Werror turned on, or new/dropped
symbols in Debian symbols files.  For other C/C++ related build failures
see the porting guide at http://gcc.gnu.org/gcc-5/porting_to.html

[...]
bam: ret=0 g++ -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -Wall -fno-exceptions  -c -DCONF_RELEASE -I "src"  -o objs/game/server/gamemodes/ctf.o src/game/server/gamemodes/ctf.cpp
[ 71/139] #1 c++ src/game/server/gamecontroller.cpp
g++ -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -Wall -fno-exceptions  -c -DCONF_RELEASE -I "src"  -o objs/game/server/gamecontroller.o src/game/server/gamecontroller.cpp
bam: ret=0 g++ -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -Wall -fno-exceptions  -c -DCONF_RELEASE -I "src"  -o objs/game/server/gamecontroller.o src/game/server/gamecontroller.cpp
[ 72/139] #1 c++ src/game/server/gamecontext.cpp
g++ -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -Wall -fno-exceptions  -c -DCONF_RELEASE -I "src"  -o objs/game/server/gamecontext.o src/game/server/gamecontext.cpp
bam: ret=0 g++ -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -Wall -fno-exceptions  -c -DCONF_RELEASE -I "src"  -o objs/game/server/gamecontext.o src/game/server/gamecontext.cpp
[ 73/139] #1 c++ src/game/server/eventhandler.cpp
g++ -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -Wall -fno-exceptions  -c -DCONF_RELEASE -I "src"  -o objs/game/server/eventhandler.o src/game/server/eventhandler.cpp
bam: ret=0 g++ -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -Wall -fno-exceptions  -c -DCONF_RELEASE -I "src"  -o objs/game/server/eventhandler.o src/game/server/eventhandler.cpp
[ 74/139] #1 c++ src/game/server/entity.cpp
g++ -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -Wall -fno-exceptions  -c -DCONF_RELEASE -I "src"  -o objs/game/server/entity.o src/game/server/entity.cpp
bam: ret=0 g++ -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -Wall -fno-exceptions  -c -DCONF_RELEASE -I "src"  -o objs/game/server/entity.o src/game/server/entity.cpp
[ 75/139] #1 c++ src/game/server/entities/projectile.cpp
g++ -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -Wall -fno-exceptions  -c -DCONF_RELEASE -I "src"  -o objs/game/server/entities/projectile.o src/game/server/entities/projectile.cpp
bam: ret=0 g++ -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -Wall -fno-exceptions  -c -DCONF_RELEASE -I "src"  -o objs/game/server/entities/projectile.o src/game/server/entities/projectile.cpp
[ 76/139] #1 c++ src/game/server/entities/pickup.cpp
g++ -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -Wall -fno-exceptions  -c -DCONF_RELEASE -I "src"  -o objs/game/server/entities/pickup.o src/game/server/entities/pickup.cpp
bam: ret=0 g++ -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -Wall -fno-exceptions  -c -DCONF_RELEASE -I "src"  -o objs/game/server/entities/pickup.o src/game/server/entities/pickup.cpp
[ 77/139] #1 c++ src/game/server/entities/laser.cpp
g++ -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -Wall -fno-exceptions  -c -DCONF_RELEASE -I "src"  -o objs/game/server/entities/laser.o src/game/server/entities/laser.cpp
bam: ret=0 g++ -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -Wall -fno-exceptions  -c -DCONF_RELEASE -I "src"  -o objs/game/server/entities/laser.o src/game/server/entities/laser.cpp
[ 78/139] #1 c++ src/game/server/entities/flag.cpp
g++ -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -Wall -fno-exceptions  -c -DCONF_RELEASE -I "src"  -o objs/game/server/entities/flag.o src/game/server/entities/flag.cpp
bam: ret=0 g++ -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -Wall -fno-exceptions  -c -DCONF_RELEASE -I "src"  -o objs/game/server/entities/flag.o src/game/server/entities/flag.cpp
[ 79/139] #1 c++ src/game/server/entities/character.cpp
g++ -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -Wall -fno-exceptions  -c -DCONF_RELEASE -I "src"  -o objs/game/server/entities/character.o src/game/server/entities/character.cpp
bam: ret=0 g++ -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -Wall -fno-exceptions  -c -DCONF_RELEASE -I "src"  -o objs/game/server/entities/character.o src/game/server/entities/character.cpp
[ 80/139] #1 server_content_source > src/game/generated/server_data.cpp
python datasrc/compile.py server_content_source > src/game/generated/server_data.cpp
bam: ret=0 python datasrc/compile.py server_content_source > src/game/generated/server_data.cpp
[ 81/139] #1 c++ src/game/generated/server_data.cpp
g++ -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -Wall -fno-exceptions  -c -DCONF_RELEASE -I "src"  -o objs/game/generated/server_data.o src/game/generated/server_data.cpp
bam: ret=0 g++ -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -Wall -fno-exceptions  -c -DCONF_RELEASE -I "src"  -o objs/game/generated/server_data.o src/game/generated/server_data.cpp
[ 82/139] #1 link teeworlds_srv
g++ -o teeworlds_srv  -Wl,-z,relro -Wl,--as-needed objs/engine/shared/storage.o objs/engine/shared/snapshot.o objs/engine/shared/ringbuffer.o objs/engine/shared/packer.o objs/engine/shared/network_server.o objs/engine/shared/network_console_conn.o objs/engine/shared/network_console.o objs/engine/shared/network_conn.o objs/engine/shared/network_client.o objs/engine/shared/network.o objs/engine/shared/netban.o objs/engine/shared/memheap.o objs/engine/shared/masterserver.o objs/engine/shared/mapchecker.o objs/engine/shared/map.o objs/engine/shared/linereader.o objs/engine/shared/kernel.o objs/engine/shared/jobs.o objs/engine/shared/huffman.o objs/engine/shared/filecollection.o objs/engine/shared/engine.o objs/engine/shared/econ.o objs/engine/shared/demo.o objs/engine/shared/datafile.o objs/engine/shared/console.o objs/engine/shared/config.o objs/engine/shared/compression.o objs/base/system.o objs/engine/server/server.o objs/engine/server/register.o objs/game/localization.o objs/game/layers.o objs/game/gamecore.o objs/game/collision.o objs/game/generated/nethash.o objs/game/generated/protocol.o objs/game/server/player.o objs/game/server/gameworld.o objs/game/server/gamemodes/tdm.o objs/game/server/gamemodes/mod.o objs/game/server/gamemodes/dm.o objs/game/server/gamemodes/ctf.o objs/game/server/gamecontroller.o objs/game/server/gamecontext.o objs/game/server/eventhandler.o objs/game/server/entity.o objs/game/server/entities/projectile.o objs/game/server/entities/pickup.o objs/game/server/entities/laser.o objs/game/server/entities/flag.o objs/game/server/entities/character.o objs/game/generated/server_data.o -lpthread -lz -lwavpack -lpnglite 
objs/engine/server/server.o: In function `int CServerBan::BanExt<CNetBan::CBanPool<NETADDR, 1> >(CNetBan::CBanPool<NETADDR, 1>*, CNetBan::CBanPool<NETADDR, 1>::CDataType const*, int, char const*)':
/«BUILDDIR»/teeworlds-0.6.2+dfsg/src/engine/server/server.cpp:213: undefined reference to `void CNetBan::MakeBanInfo<NETADDR>(CNetBan::CBan<NETADDR> const*, char*, unsigned int, int) const'
objs/engine/server/server.o: In function `int CServerBan::BanExt<CNetBan::CBanPool<CNetRange, 16> >(CNetBan::CBanPool<CNetRange, 16>*, CNetBan::CBanPool<CNetRange, 16>::CDataType const*, int, char const*)':
/«BUILDDIR»/teeworlds-0.6.2+dfsg/src/engine/server/server.cpp:213: undefined reference to `void CNetBan::MakeBanInfo<CNetRange>(CNetBan::CBan<CNetRange> const*, char*, unsigned int, int) const'
collect2: error: ld returned 1 exit status
bam: ret=256 g++ -o teeworlds_srv  -Wl,-z,relro -Wl,--as-needed objs/engine/shared/storage.o objs/engine/shared/snapshot.o objs/engine/shared/ringbuffer.o objs/engine/shared/packer.o objs/engine/shared/network_server.o objs/engine/shared/network_console_conn.o objs/engine/shared/network_console.o objs/engine/shared/network_conn.o objs/engine/shared/network_client.o objs/engine/shared/network.o objs/engine/shared/netban.o objs/engine/shared/memheap.o objs/engine/shared/masterserver.o objs/engine/shared/mapchecker.o objs/engine/shared/map.o objs/engine/shared/linereader.o objs/engine/shared/kernel.o objs/engine/shared/jobs.o objs/engine/shared/huffman.o objs/engine/shared/filecollection.o objs/engine/shared/engine.o objs/engine/shared/econ.o objs/engine/shared/demo.o objs/engine/shared/datafile.o objs/engine/shared/console.o objs/engine/shared/config.o objs/engine/shared/compression.o objs/base/system.o objs/engine/server/server.o objs/engine/server/register.o objs/game/localization.o objs/game/layers.o objs/game/gamecore.o objs/game/collision.o objs/game/generated/nethash.o objs/game/generated/protocol.o objs/game/server/player.o objs/game/server/gameworld.o objs/game/server/gamemodes/tdm.o objs/game/server/gamemodes/mod.o objs/game/server/gamemodes/dm.o objs/game/server/gamemodes/ctf.o objs/game/server/gamecontroller.o objs/game/server/gamecontext.o objs/game/server/eventhandler.o objs/game/server/entity.o objs/game/server/entities/projectile.o objs/game/server/entities/pickup.o objs/game/server/entities/laser.o objs/game/server/entities/flag.o objs/game/server/entities/character.o objs/game/generated/server_data.o -lpthread -lz -lwavpack -lpnglite 
bam: 'teeworlds_srv' error 256
bam: error: a build step failed
make[1]: *** [override_dh_auto_build] Error 1
debian/rules:14: recipe for target 'override_dh_auto_build' failed
make[1]: Leaving directory '/«BUILDDIR»/teeworlds-0.6.2+dfsg'
make: *** [build-arch] Error 2
debian/rules:11: recipe for target 'build-arch' failed
dpkg-buildpackage: error: debian/rules build-arch gave error exit status 2



More information about the Pkg-games-devel mailing list