Bug#1096273: abe: ftbfs with GCC-15

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


Package: src:abe
Version: 1.1+dfsg-5
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/abe_1.1+dfsg-5_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

[...]
make[1]: Leaving directory '/build/reproducible-path/abe-1.1+dfsg'
   dh_auto_build -Nabe-data
	make -j8
make[1]: Entering directory '/build/reproducible-path/abe-1.1+dfsg'
make  all-recursive
make[2]: Entering directory '/build/reproducible-path/abe-1.1+dfsg'
Making all in src
make[3]: Entering directory '/build/reproducible-path/abe-1.1+dfsg/src'
gcc -DHAVE_CONFIG_H -I. -I..   -Wdate-time -D_FORTIFY_SOURCE=2  -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DBASE_DIR="/usr/share/games/abe"  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/abe-1.1+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -O2 -Wall -fomit-frame-pointer -ffast-math -fexpensive-optimizations -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o Directories.o Directories.c
gcc -DHAVE_CONFIG_H -I. -I..   -Wdate-time -D_FORTIFY_SOURCE=2  -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DBASE_DIR="/usr/share/games/abe"  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/abe-1.1+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -O2 -Wall -fomit-frame-pointer -ffast-math -fexpensive-optimizations -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o Editor.o Editor.c
gcc -DHAVE_CONFIG_H -I. -I..   -Wdate-time -D_FORTIFY_SOURCE=2  -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DBASE_DIR="/usr/share/games/abe"  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/abe-1.1+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -O2 -Wall -fomit-frame-pointer -ffast-math -fexpensive-optimizations -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o Font.o Font.c
gcc -DHAVE_CONFIG_H -I. -I..   -Wdate-time -D_FORTIFY_SOURCE=2  -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DBASE_DIR="/usr/share/games/abe"  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/abe-1.1+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -O2 -Wall -fomit-frame-pointer -ffast-math -fexpensive-optimizations -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o Game.o Game.c
gcc -DHAVE_CONFIG_H -I. -I..   -Wdate-time -D_FORTIFY_SOURCE=2  -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DBASE_DIR="/usr/share/games/abe"  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/abe-1.1+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -O2 -Wall -fomit-frame-pointer -ffast-math -fexpensive-optimizations -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o Icons.o Icons.c
gcc -DHAVE_CONFIG_H -I. -I..   -Wdate-time -D_FORTIFY_SOURCE=2  -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DBASE_DIR="/usr/share/games/abe"  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/abe-1.1+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -O2 -Wall -fomit-frame-pointer -ffast-math -fexpensive-optimizations -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o Image.o Image.c
gcc -DHAVE_CONFIG_H -I. -I..   -Wdate-time -D_FORTIFY_SOURCE=2  -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DBASE_DIR="/usr/share/games/abe"  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/abe-1.1+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -O2 -Wall -fomit-frame-pointer -ffast-math -fexpensive-optimizations -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o Main.o Main.c
gcc -DHAVE_CONFIG_H -I. -I..   -Wdate-time -D_FORTIFY_SOURCE=2  -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DBASE_DIR="/usr/share/games/abe"  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/abe-1.1+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -O2 -Wall -fomit-frame-pointer -ffast-math -fexpensive-optimizations -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o Map.o Map.c
Main.c: In function ‘main’:
Main.c:121:37: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
  121 |     if( vid_info->current_w == 1440 && vid_info->current_h ==900
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
Game.c: In function ‘path_sprintf’:
Game.c:24:25: warning: too many arguments for format [-Wformat-extra-args]
   24 |     sprintf(path + len, "%s", formatted_name, version);
      |                         ^~~~
Main.c:94:17: warning: variable ‘mapheight’ set but not used [-Wunused-but-set-variable]
   94 |   int mapwidth, mapheight;
      |                 ^~~~~~~~~
Main.c:94:7: warning: variable ‘mapwidth’ set but not used [-Wunused-but-set-variable]
   94 |   int mapwidth, mapheight;
      |       ^~~~~~~~
Main.c:93:9: warning: variable ‘mapname’ set but not used [-Wunused-but-set-variable]
   93 |   char *mapname;
      |         ^~~~~~~
Editor.c: In function ‘drawSlide’:
Editor.c:100:12: warning: variable ‘pos’ set but not used [-Wunused-but-set-variable]
  100 |   Position pos;
      |            ^~~
gcc -DHAVE_CONFIG_H -I. -I..   -Wdate-time -D_FORTIFY_SOURCE=2  -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DBASE_DIR="/usr/share/games/abe"  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/abe-1.1+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -O2 -Wall -fomit-frame-pointer -ffast-math -fexpensive-optimizations -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o MapIO.o MapIO.c
Map.c: In function ‘moveMap’:
Map.c:948:9: error: too many arguments to function ‘finishDrawMap’; expected 0, have 1
  948 |         finishDrawMap(!map.redraw);
      |         ^~~~~~~~~~~~~ ~~~~~~~~~~~
Map.c:15:6: note: declared here
   15 | void finishDrawMap();
      |      ^~~~~~~~~~~~~
make[3]: *** [Makefile:439: Map.o] Error 1
make[3]: *** Waiting for unfinished jobs....
MapIO.c: In function ‘loadMapPath’:
MapIO.c:96:17: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 2 has type ‘size_t’ {aka ‘long unsigned int’} [-Wformat=]
   96 |   printf("size %u\n", size);
      |                ~^     ~~~~
      |                 |     |
      |                 |     size_t {aka long unsigned int}
      |                 unsigned int
      |                %lu
MapIO.c: In function ‘convertMap’:
MapIO.c:157:3: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  157 |   fread(&(w), sizeof(w), 1, fp);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
MapIO.c:158:3: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  158 |   fread(&(h), sizeof(h), 1, fp);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[3]: Leaving directory '/build/reproducible-path/abe-1.1+dfsg/src'
make[2]: *** [Makefile:388: all-recursive] Error 1
make[2]: Leaving directory '/build/reproducible-path/abe-1.1+dfsg'
make[1]: *** [Makefile:329: all] Error 2
make[1]: Leaving directory '/build/reproducible-path/abe-1.1+dfsg'
dh_auto_build: error: make -j8 returned exit code 2
make: *** [debian/rules:4: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2



More information about the Pkg-games-devel mailing list