Bug#1096653: freegish: ftbfs with GCC-15

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


Package: src:freegish
Version: 1.53+git20170110+dfsg-2
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/freegish_1.53+git20170110+dfsg-2_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

[...]
[ 13%] Building C object src/CMakeFiles/freegish.dir/game/custom.c.o
cd /build/reproducible-path/freegish-1.53+git20170110+dfsg/obj-x86_64-linux-gnu/src && /usr/bin/cc -DDATAPATH=\"/usr/share/games/freegish\" -I/usr/include/SDL -I/usr/include/AL -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/freegish-1.53+git20170110+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -MD -MT src/CMakeFiles/freegish.dir/game/custom.c.o -MF CMakeFiles/freegish.dir/game/custom.c.o.d -o CMakeFiles/freegish.dir/game/custom.c.o -c /build/reproducible-path/freegish-1.53+git20170110+dfsg/src/game/custom.c
In file included from /build/reproducible-path/freegish-1.53+git20170110+dfsg/src/game/boss.c:22:
/build/reproducible-path/freegish-1.53+git20170110+dfsg/src/game/../config.h:38:36: error: expected ‘;’, identifier or ‘(’ before ‘bool’
   38 | typedef enum {FALSE = 0, TRUE = 1} bool;
      |                                    ^~~~
/build/reproducible-path/freegish-1.53+git20170110+dfsg/src/game/../config.h:38:36: warning: useless type name in empty declaration
In file included from /build/reproducible-path/freegish-1.53+git20170110+dfsg/src/game/animation.c:22:
/build/reproducible-path/freegish-1.53+git20170110+dfsg/src/game/../config.h:38:36: error: expected ‘;’, identifier or ‘(’ before ‘bool’
   38 | typedef enum {FALSE = 0, TRUE = 1} bool;
      |                                    ^~~~
/build/reproducible-path/freegish-1.53+git20170110+dfsg/src/game/../config.h:38:36: warning: useless type name in empty declaration
In file included from /build/reproducible-path/freegish-1.53+git20170110+dfsg/src/game/config.c:22:
/build/reproducible-path/freegish-1.53+git20170110+dfsg/src/game/../config.h:38:36: error: expected ‘;’, identifier or ‘(’ before ‘bool’
   38 | typedef enum {FALSE = 0, TRUE = 1} bool;
      |                                    ^~~~
/build/reproducible-path/freegish-1.53+git20170110+dfsg/src/game/../config.h:38:36: warning: useless type name in empty declaration
In file included from /build/reproducible-path/freegish-1.53+git20170110+dfsg/src/game/ai.c:22:
/build/reproducible-path/freegish-1.53+git20170110+dfsg/src/game/../config.h:38:36: error: expected ‘;’, identifier or ‘(’ before ‘bool’
   38 | typedef enum {FALSE = 0, TRUE = 1} bool;
      |                                    ^~~~
/build/reproducible-path/freegish-1.53+git20170110+dfsg/src/game/../config.h:38:36: warning: useless type name in empty declaration
In file included from /build/reproducible-path/freegish-1.53+git20170110+dfsg/src/audio/audio.c:22:
/build/reproducible-path/freegish-1.53+git20170110+dfsg/src/audio/../config.h:38:36: error: expected ‘;’, identifier or ‘(’ before ‘bool’
   38 | typedef enum {FALSE = 0, TRUE = 1} bool;
      |                                    ^~~~
In file included from /build/reproducible-path/freegish-1.53+git20170110+dfsg/src/game/block.c:22:
/build/reproducible-path/freegish-1.53+git20170110+dfsg/src/game/../config.h:38:36: error: expected ‘;’, identifier or ‘(’ before ‘bool’
   38 | typedef enum {FALSE = 0, TRUE = 1} bool;
      |                                    ^~~~
/build/reproducible-path/freegish-1.53+git20170110+dfsg/src/game/../config.h:38:36: warning: useless type name in empty declaration
/build/reproducible-path/freegish-1.53+git20170110+dfsg/src/audio/../config.h:38:36: warning: useless type name in empty declaration
In file included from /build/reproducible-path/freegish-1.53+git20170110+dfsg/src/game/credits.c:22:
/build/reproducible-path/freegish-1.53+git20170110+dfsg/src/game/../config.h:38:36: error: expected ‘;’, identifier or ‘(’ before ‘bool’
   38 | typedef enum {FALSE = 0, TRUE = 1} bool;
      |                                    ^~~~
/build/reproducible-path/freegish-1.53+git20170110+dfsg/src/game/../config.h:38:36: warning: useless type name in empty declaration
In file included from /build/reproducible-path/freegish-1.53+git20170110+dfsg/src/game/custom.c:22:
/build/reproducible-path/freegish-1.53+git20170110+dfsg/src/game/../config.h:38:36: error: expected ‘;’, identifier or ‘(’ before ‘bool’
   38 | typedef enum {FALSE = 0, TRUE = 1} bool;
      |                                    ^~~~
/build/reproducible-path/freegish-1.53+git20170110+dfsg/src/game/../config.h:38:36: warning: useless type name in empty declaration
make[3]: *** [src/CMakeFiles/freegish.dir/build.make:138: src/CMakeFiles/freegish.dir/game/boss.c.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: *** [src/CMakeFiles/freegish.dir/build.make:96: src/CMakeFiles/freegish.dir/game/ai.c.o] Error 1
/build/reproducible-path/freegish-1.53+git20170110+dfsg/src/audio/audio.c: In function ‘setupaudio’:
/build/reproducible-path/freegish-1.53+git20170110+dfsg/src/audio/audio.c:107:5: warning: ignoring return value of ‘chdir’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  107 |     chdir("..");
      |     ^~~~~~~~~~~
/build/reproducible-path/freegish-1.53+git20170110+dfsg/src/audio/audio.c:117:5: warning: ignoring return value of ‘chdir’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  117 |     chdir("..");
      |     ^~~~~~~~~~~
make[3]: *** [src/CMakeFiles/freegish.dir/build.make:82: src/CMakeFiles/freegish.dir/audio/audio.c.o] Error 1
make[3]: *** [src/CMakeFiles/freegish.dir/build.make:166: src/CMakeFiles/freegish.dir/game/credits.c.o] Error 1
make[3]: *** [src/CMakeFiles/freegish.dir/build.make:124: src/CMakeFiles/freegish.dir/game/block.c.o] Error 1
make[3]: *** [src/CMakeFiles/freegish.dir/build.make:180: src/CMakeFiles/freegish.dir/game/custom.c.o] Error 1
/build/reproducible-path/freegish-1.53+git20170110+dfsg/src/game/animation.c: In function ‘loadanimations’:
/build/reproducible-path/freegish-1.53+git20170110+dfsg/src/game/animation.c:1381:5: warning: ignoring return value of ‘chdir’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 1381 |     chdir("..");
      |     ^~~~~~~~~~~
make[3]: *** [src/CMakeFiles/freegish.dir/build.make:152: src/CMakeFiles/freegish.dir/game/config.c.o] Error 1
make[3]: *** [src/CMakeFiles/freegish.dir/build.make:110: src/CMakeFiles/freegish.dir/game/animation.c.o] Error 1
make[3]: Leaving directory '/build/reproducible-path/freegish-1.53+git20170110+dfsg/obj-x86_64-linux-gnu'
make[2]: *** [CMakeFiles/Makefile2:109: src/CMakeFiles/freegish.dir/all] Error 2
make[2]: Leaving directory '/build/reproducible-path/freegish-1.53+git20170110+dfsg/obj-x86_64-linux-gnu'
make[1]: *** [Makefile:139: all] Error 2
make[1]: Leaving directory '/build/reproducible-path/freegish-1.53+git20170110+dfsg/obj-x86_64-linux-gnu'
dh_auto_build: error: cd obj-x86_64-linux-gnu && make -j8 "INSTALL=install --strip-program=true" VERBOSE=1 returned exit code 2
make: *** [debian/rules:6: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2



More information about the Pkg-games-devel mailing list