Bug#1074984: geki2: ftbfs with GCC-14

Matthias Klose doko at debian.org
Wed Jul 3 13:27:20 BST 2024


Package: src:geki2
Version: 2.0.8-1
Severity: important
Tags: sid trixie
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-14

[This bug is 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-14/g++-14, but succeeds to build with gcc-13/g++-13. The
severity of this report will be raised before the trixie release.

The full build log can be found at:
http://qa-logs.debian.net/2024/07/01/geki2_2.0.8-1_unstable_gccexp.log
The last lines of the build log are at the end of this report.

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

  apt-get -t=experimental install g++ 

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-14/porting_to.html

[...]
config.status: creating Makefile
config.status: creating geki2.spec
config.status: executing depfiles commands
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
   dh_auto_build
	make -j8
make[1]: Entering directory '/<<PKGBUILDDIR>>'
Making all in data
make[2]: Entering directory '/<<PKGBUILDDIR>>/data'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/<<PKGBUILDDIR>>/data'
Making all in src
make[2]: Entering directory '/<<PKGBUILDDIR>>/src'
gcc -DPACKAGE_NAME=\"geki2-KXL\" -DPACKAGE_TARNAME=\"geki2-kxl\" -DPACKAGE_VERSION=\"2.0.8\" -DPACKAGE_STRING=\"geki2-KXL\ 2.0.8\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"geki2-kxl\" -DVERSION=\"2.0.8\" -DHAVE_LIBKXL=1 -DHAVE_LIBKXL=1 -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_UNISTD_H=1 -DDATA_PATH=\"/usr/share/games/geki2/data\" -DBMP_PATH=\"/usr/share/games/geki2/bmp\" -DWAV_PATH=\"/usr/share/games/geki2/wav\" -DTITLE=\"geki2-kxl\ 2.0.8\" -I.   -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o boss.o boss.c
gcc -DPACKAGE_NAME=\"geki2-KXL\" -DPACKAGE_TARNAME=\"geki2-kxl\" -DPACKAGE_VERSION=\"2.0.8\" -DPACKAGE_STRING=\"geki2-KXL\ 2.0.8\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"geki2-kxl\" -DVERSION=\"2.0.8\" -DHAVE_LIBKXL=1 -DHAVE_LIBKXL=1 -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_UNISTD_H=1 -DDATA_PATH=\"/usr/share/games/geki2/data\" -DBMP_PATH=\"/usr/share/games/geki2/bmp\" -DWAV_PATH=\"/usr/share/games/geki2/wav\" -DTITLE=\"geki2-kxl\ 2.0.8\" -I.   -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o misc.o misc.c
gcc -DPACKAGE_NAME=\"geki2-KXL\" -DPACKAGE_TARNAME=\"geki2-kxl\" -DPACKAGE_VERSION=\"2.0.8\" -DPACKAGE_STRING=\"geki2-KXL\ 2.0.8\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"geki2-kxl\" -DVERSION=\"2.0.8\" -DHAVE_LIBKXL=1 -DHAVE_LIBKXL=1 -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_UNISTD_H=1 -DDATA_PATH=\"/usr/share/games/geki2/data\" -DBMP_PATH=\"/usr/share/games/geki2/bmp\" -DWAV_PATH=\"/usr/share/games/geki2/wav\" -DTITLE=\"geki2-kxl\ 2.0.8\" -I.   -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o game.o game.c
gcc -DPACKAGE_NAME=\"geki2-KXL\" -DPACKAGE_TARNAME=\"geki2-kxl\" -DPACKAGE_VERSION=\"2.0.8\" -DPACKAGE_STRING=\"geki2-KXL\ 2.0.8\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"geki2-kxl\" -DVERSION=\"2.0.8\" -DHAVE_LIBKXL=1 -DHAVE_LIBKXL=1 -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_UNISTD_H=1 -DDATA_PATH=\"/usr/share/games/geki2/data\" -DBMP_PATH=\"/usr/share/games/geki2/bmp\" -DWAV_PATH=\"/usr/share/games/geki2/wav\" -DTITLE=\"geki2-kxl\ 2.0.8\" -I.   -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o main.o main.c
gcc -DPACKAGE_NAME=\"geki2-KXL\" -DPACKAGE_TARNAME=\"geki2-kxl\" -DPACKAGE_VERSION=\"2.0.8\" -DPACKAGE_STRING=\"geki2-KXL\ 2.0.8\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"geki2-kxl\" -DVERSION=\"2.0.8\" -DHAVE_LIBKXL=1 -DHAVE_LIBKXL=1 -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_UNISTD_H=1 -DDATA_PATH=\"/usr/share/games/geki2/data\" -DBMP_PATH=\"/usr/share/games/geki2/bmp\" -DWAV_PATH=\"/usr/share/games/geki2/wav\" -DTITLE=\"geki2-kxl\ 2.0.8\" -I.   -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o opening.o opening.c
gcc -DPACKAGE_NAME=\"geki2-KXL\" -DPACKAGE_TARNAME=\"geki2-kxl\" -DPACKAGE_VERSION=\"2.0.8\" -DPACKAGE_STRING=\"geki2-KXL\ 2.0.8\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"geki2-kxl\" -DVERSION=\"2.0.8\" -DHAVE_LIBKXL=1 -DHAVE_LIBKXL=1 -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_UNISTD_H=1 -DDATA_PATH=\"/usr/share/games/geki2/data\" -DBMP_PATH=\"/usr/share/games/geki2/bmp\" -DWAV_PATH=\"/usr/share/games/geki2/wav\" -DTITLE=\"geki2-kxl\ 2.0.8\" -I.   -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o load.o load.c
gcc -DPACKAGE_NAME=\"geki2-KXL\" -DPACKAGE_TARNAME=\"geki2-kxl\" -DPACKAGE_VERSION=\"2.0.8\" -DPACKAGE_STRING=\"geki2-KXL\ 2.0.8\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"geki2-kxl\" -DVERSION=\"2.0.8\" -DHAVE_LIBKXL=1 -DHAVE_LIBKXL=1 -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_UNISTD_H=1 -DDATA_PATH=\"/usr/share/games/geki2/data\" -DBMP_PATH=\"/usr/share/games/geki2/bmp\" -DWAV_PATH=\"/usr/share/games/geki2/wav\" -DTITLE=\"geki2-kxl\ 2.0.8\" -I.   -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o my.o my.c
gcc -DPACKAGE_NAME=\"geki2-KXL\" -DPACKAGE_TARNAME=\"geki2-kxl\" -DPACKAGE_VERSION=\"2.0.8\" -DPACKAGE_STRING=\"geki2-KXL\ 2.0.8\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"geki2-kxl\" -DVERSION=\"2.0.8\" -DHAVE_LIBKXL=1 -DHAVE_LIBKXL=1 -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_UNISTD_H=1 -DDATA_PATH=\"/usr/share/games/geki2/data\" -DBMP_PATH=\"/usr/share/games/geki2/bmp\" -DWAV_PATH=\"/usr/share/games/geki2/wav\" -DTITLE=\"geki2-kxl\ 2.0.8\" -I.   -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o ranking.o ranking.c
ranking.c: In function ‘ScoreRanking’:
ranking.c:18:5: error: ‘return’ with no value, in function returning non-void [-Wreturn-mismatch]
   18 |     return;
      |     ^~~~~~
ranking.c:9:5: note: declared here
    9 | int ScoreRanking(void)
      |     ^~~~~~~~~~~~
ranking.c: In function ‘ReadScore’:
ranking.c:42:5: warning: ignoring return value of ‘fscanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   42 |     fscanf(fp, "%lu", &(Root->HiScore));
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ranking.c:44:7: warning: ignoring return value of ‘fscanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   44 |       fscanf(fp, "%lu %hhu %hhu %15s",
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   45 |              &(Ranking[i]->Score),
      |              ~~~~~~~~~~~~~~~~~~~~~
   46 |              &(Ranking[i]->Stage),
      |              ~~~~~~~~~~~~~~~~~~~~~
   47 |              &(Ranking[i]->Loop),
      |              ~~~~~~~~~~~~~~~~~~~~
   48 |              Ranking[i]->Name);
      |              ~~~~~~~~~~~~~~~~~
make[2]: *** [Makefile:378: ranking.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In function ‘LoadPixmap’,
    inlined from ‘LoadPixmaps’ at load.c:73:14:
<command-line>: warning: ‘%s’ directive writing up to 63 bytes into a region of size 37 [-Wformat-overflow=]
load.c:54:21: note: in expansion of macro ‘BMP_PATH’
   54 |   sprintf(filename, BMP_PATH "/%s.bmp", fname);
      |                     ^~~~~~~~
In file included from /usr/include/stdio.h:964,
                 from geki2.h:10,
                 from load.c:1:
In function ‘sprintf’,
    inlined from ‘LoadPixmap’ at load.c:54:3,
    inlined from ‘LoadPixmaps’ at load.c:73:14:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:30:10: note: ‘__builtin___sprintf_chk’ output between 32 and 95 bytes into a destination of size 64
   30 |   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   31 |                                   __glibc_objsize (__s), __fmt,
      |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   32 |                                   __va_arg_pack ());
      |                                   ~~~~~~~~~~~~~~~~~
make[2]: Leaving directory '/<<PKGBUILDDIR>>/src'
make[1]: *** [Makefile:348: all-recursive] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j8 returned exit code 2
make: *** [debian/rules:5: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2



More information about the Pkg-games-devel mailing list