Bug#1097809: rrootage: ftbfs with GCC-15

Matthias Klose doko at debian.org
Mon Feb 17 17:51:02 GMT 2025


Package: src:rrootage
Version: 0.23a-14
Severity: important
Tags: sid forky
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-15

[This bug is NOT targeted to the upcoming trixie release]

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-15/g++-15, but succeeds to build with gcc-14/g++-14. The
severity of this report will be raised before the forky release.

The full build log can be found at:
http://qa-logs.debian.net/2025/02/16/amd64exp/rrootage_0.23a-14_unstable_gccexp.log.gz
The last lines of the build log are at the end of this report.

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

  apt-get -t=experimental install g++ 

GCC 15 now defaults to the C23/C++23 standards, exposing many FTBFS.
Other Common build failures are 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-15/porting_to.html

[...]
dpkg-buildpackage: info: host architecture amd64
 debian/rules clean
dh clean --sourcedirectory=src --buildsystem=makefile
   debian/rules override_dh_auto_clean
make[1]: Entering directory '/build/reproducible-path/rrootage-0.23a'
dh_auto_clean -- -f makefile.lin
	cd src && make -j8 clean -f makefile.lin
make[2]: Entering directory '/build/reproducible-path/rrootage-0.23a/src'
rm -f rrootage *.o
make[2]: Leaving directory '/build/reproducible-path/rrootage-0.23a/src'
make[1]: Leaving directory '/build/reproducible-path/rrootage-0.23a'
   dh_autoreconf_clean -O--sourcedirectory=src -O--buildsystem=makefile
   dh_clean -O--sourcedirectory=src -O--buildsystem=makefile
 debian/rules binary
dh binary --sourcedirectory=src --buildsystem=makefile
   dh_update_autotools_config -O--sourcedirectory=src -O--buildsystem=makefile
   dh_autoreconf -O--sourcedirectory=src -O--buildsystem=makefile
   dh_auto_configure -O--sourcedirectory=src -O--buildsystem=makefile
   debian/rules override_dh_auto_build
make[1]: Entering directory '/build/reproducible-path/rrootage-0.23a'
dh_auto_build -- -f makefile.lin MORE_CFLAGS="-DLINUX -Wall -g -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/rrootage-0.23a=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro"
	cd src && make -j8 "INSTALL=install --strip-program=true" -f makefile.lin "MORE_CFLAGS=-DLINUX -Wall -g -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/rrootage-0.23a=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro"
make[2]: Entering directory '/build/reproducible-path/rrootage-0.23a/src'
gcc `sdl-config --cflags` -DLINUX -Wall -g -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/rrootage-0.23a=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -DLINUX `sdl-config --cflags` -DLINUX -Wall -g -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/rrootage-0.23a=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -DLINUX  -c -o rr.o rr.c
g++ -g -O2 -ffile-prefix-map=/build/reproducible-path/rrootage-0.23a=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection `sdl-config --cflags` -DLINUX -Wall -g -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/rrootage-0.23a=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -DLINUX  -c -o foe.o foe.cc
g++ -g -O2 -ffile-prefix-map=/build/reproducible-path/rrootage-0.23a=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection `sdl-config --cflags` -DLINUX -Wall -g -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/rrootage-0.23a=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -DLINUX  -c -o foecommand.o foecommand.cc
g++ -g -O2 -ffile-prefix-map=/build/reproducible-path/rrootage-0.23a=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection `sdl-config --cflags` -DLINUX -Wall -g -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/rrootage-0.23a=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -DLINUX  -c -o barragemanager.o barragemanager.cc
g++ -g -O2 -ffile-prefix-map=/build/reproducible-path/rrootage-0.23a=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection `sdl-config --cflags` -DLINUX -Wall -g -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/rrootage-0.23a=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -DLINUX  -c -o boss.o boss.cc
gcc `sdl-config --cflags` -DLINUX -Wall -g -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/rrootage-0.23a=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -DLINUX `sdl-config --cflags` -DLINUX -Wall -g -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/rrootage-0.23a=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -DLINUX  -c -o ship.o ship.c
gcc `sdl-config --cflags` -DLINUX -Wall -g -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/rrootage-0.23a=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -DLINUX `sdl-config --cflags` -DLINUX -Wall -g -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/rrootage-0.23a=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -DLINUX  -c -o laser.o laser.c
gcc `sdl-config --cflags` -DLINUX -Wall -g -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/rrootage-0.23a=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -DLINUX `sdl-config --cflags` -DLINUX -Wall -g -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/rrootage-0.23a=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -DLINUX  -c -o frag.o frag.c
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-function-declaration’ is not valid for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-function-declaration’ is not valid for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-function-declaration’ is not valid for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-function-declaration’ is not valid for C++
rr.c: In function ‘initTitle’:
rr.c:76:3: error: too many arguments to function ‘initBackground’; expected 0, have 1
   76 |   initBackground(0);
      |   ^~~~~~~~~~~~~~ ~
In file included from rr.c:29:
background.h:22:6: note: declared here
   22 | void initBackground();
      |      ^~~~~~~~~~~~~~
rr.c: At top level:
rr.c:81:6: error: conflicting types for ‘initGame’; have ‘void(int)’
   81 | void initGame(int stg) {
      |      ^~~~~~~~
In file included from rr.c:18:
rr.h:30:6: note: previous declaration of ‘initGame’ with type ‘void(void)’
   30 | void initGame();
      |      ^~~~~~~~
rr.c: In function ‘initGame’:
rr.c:94:3: error: too many arguments to function ‘initBackground’; expected 0, have 1
   94 |   initBackground(sn);
      |   ^~~~~~~~~~~~~~ ~~
background.h:22:6: note: declared here
   22 | void initBackground();
      |      ^~~~~~~~~~~~~~
make[2]: *** [<builtin>: rr.o] Error 1
make[2]: *** Waiting for unfinished jobs....
barragemanager.cc: In function ‘int readBulletMLFiles(const char*, Barrage*)’:
barragemanager.cc:51:12: warning: ‘char* __builtin___strncat_chk(char*, const char*, long unsigned int, long unsigned int)’ output may be truncated copying between 0 and 255 bytes from a string of length 255 [-Wstringop-truncation]
   51 |     strncat(fileName, dir->d_name, sizeof(fileName)-strlen(fileName)-1);
      |            ^
make[2]: Leaving directory '/build/reproducible-path/rrootage-0.23a/src'
dh_auto_build: error: cd src && make -j8 "INSTALL=install --strip-program=true" -f makefile.lin "MORE_CFLAGS=-DLINUX -Wall -g -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/rrootage-0.23a=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro" returned exit code 2
make[1]: *** [debian/rules:12: override_dh_auto_build] Error 25
make[1]: Leaving directory '/build/reproducible-path/rrootage-0.23a'
make: *** [debian/rules:9: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2



More information about the Pkg-games-devel mailing list