Bug#1096500: darkplaces: ftbfs with GCC-15
Matthias Klose
doko at debian.org
Mon Feb 17 17:09:14 GMT 2025
Package: src:darkplaces
Version: 0~20180908~beta1-6
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/darkplaces_0~20180908~beta1-6_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
[...]
473 | SWAP_LISTENERS(listeners[6], listeners[7], swaplistener);
| ^~~~~~~~~~~~~~
../../../snd_main.c:475:25: note: here
475 | case 4:
| ^~~~
../../../snd_main.c:445:71: warning: this statement may fall through [-Wimplicit-fallthrough=]
445 | #define SWAP_LISTENERS(l1, l2, tmpl) { tmpl = (l1); (l1) = (l2); (l2) = tmpl; }
| ^
../../../snd_main.c:477:33: note: in expansion of macro ‘SWAP_LISTENERS’
477 | SWAP_LISTENERS(listeners[2], listeners[3], swaplistener);
| ^~~~~~~~~~~~~~
../../../snd_main.c:479:25: note: here
479 | case 2:
| ^~~~
make[4]: *** [makefile.inc:450: snd_mem.o] Error 1
make[4]: *** [makefile.inc:450: snd_main.o] Error 1
In file included from ../../../quakedef.h:49,
from ../../../thread_sdl.c:3:
../../../qtypes.h:9:26: error: cannot use keyword ‘false’ as enumeration constant
9 | typedef enum qboolean_e {false, true} qboolean;
| ^~~~~
../../../qtypes.h:9:26: note: ‘false’ is a keyword with ‘-std=c23’ onwards
In file included from ../../../quakedef.h:49,
from ../../../sys_sdl.c:30:
../../../qtypes.h:9:26: error: cannot use keyword ‘false’ as enumeration constant
9 | typedef enum qboolean_e {false, true} qboolean;
| ^~~~~
../../../qtypes.h:9:26: note: ‘false’ is a keyword with ‘-std=c23’ onwards
make[4]: *** [makefile.inc:450: sys_sdl.o] Error 1
make[4]: *** [makefile.inc:450: thread_sdl.o] Error 1
In file included from ../../../quakedef.h:49,
from ../../../vid_sdl.c:23:
../../../qtypes.h:9:26: error: cannot use keyword ‘false’ as enumeration constant
9 | typedef enum qboolean_e {false, true} qboolean;
| ^~~~~
../../../qtypes.h:9:26: note: ‘false’ is a keyword with ‘-std=c23’ onwards
../../../vid_sdl.c: In function ‘GL_ExtensionSupported’:
../../../vid_sdl.c:1297:16: warning: implicit conversion from ‘SDL_bool’ to ‘qboolean’ {aka ‘enum qboolean_e’} [-Wenum-conversion]
1297 | return SDL_GL_ExtensionSupported(name);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../../vid_sdl.c: In function ‘VID_InitModeGL’:
../../../vid_sdl.c:1546:23: warning: nested extern declaration of ‘gl_info_vendor’ [-Wnested-externs]
1546 | extern cvar_t gl_info_vendor;
| ^~~~~~~~~~~~~~
../../../vid_sdl.c:1546:9: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
1546 | extern cvar_t gl_info_vendor;
| ^~~~~~
../../../vid_sdl.c:1547:23: warning: nested extern declaration of ‘gl_info_renderer’ [-Wnested-externs]
1547 | extern cvar_t gl_info_renderer;
| ^~~~~~~~~~~~~~~~
../../../vid_sdl.c:1548:23: warning: nested extern declaration of ‘gl_info_version’ [-Wnested-externs]
1548 | extern cvar_t gl_info_version;
| ^~~~~~~~~~~~~~~
../../../vid_sdl.c:1549:23: warning: nested extern declaration of ‘gl_info_platform’ [-Wnested-externs]
1549 | extern cvar_t gl_info_platform;
| ^~~~~~~~~~~~~~~~
../../../vid_sdl.c:1550:23: warning: nested extern declaration of ‘gl_info_driver’ [-Wnested-externs]
1550 | extern cvar_t gl_info_driver;
| ^~~~~~~~~~~~~~
make[4]: *** [makefile.inc:450: vid_sdl.o] Error 1
make[4]: Leaving directory '/build/reproducible-path/darkplaces-0~20180908~beta1/build-obj/release/darkplaces-sdl'
make[3]: *** [makefile.inc:393: bin-release] Error 2
make[3]: Leaving directory '/build/reproducible-path/darkplaces-0~20180908~beta1'
make[2]: *** [makefile.inc:354: sdl-release] Error 2
make[2]: Leaving directory '/build/reproducible-path/darkplaces-0~20180908~beta1'
dh_auto_build: error: make -j8 "INSTALL=install --strip-program=true" "CFLAGS_RELEASE=-Wdate-time -D_FORTIFY_SOURCE=2 -DSVNREVISION=0~20180908~beta1-6 -DBUILDTYPE=Debian -DNO_BUILD_TIMESTAMPS -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/darkplaces-0~20180908~beta1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -Wextra -Wstrict-prototypes -Wsign-compare -Wnested-externs -Wpointer-arith -Wformat-security -Winit-self -Wno-missing-field-initializers -Wno-unused-parameter -fno-strict-aliasing " "CFLAGS_DEBUG=-Wdate-time -D_FORTIFY_SOURCE=2 -DSVNREVISION=0~20180908~beta1-6 -DBUILDTYPE=Debian -DNO_BUILD_TIMESTAMPS -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/darkplaces-0~20180908~beta1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -Wextra -Wstrict-prototypes -Wsign-compare -Wnested-externs -Wpointer-arith -Wformat-security -Winit-self -Wno-missing-field-initializers -Wno-unused-parameter -fno-strict-aliasing " "LDFLAGS_RELEASE=-Wdate-time -D_FORTIFY_SOURCE=2 -DSVNREVISION=0~20180908~beta1-6 -DBUILDTYPE=Debian -DNO_BUILD_TIMESTAMPS -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/darkplaces-0~20180908~beta1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -Wextra -Wstrict-prototypes -Wsign-compare -Wnested-externs -Wpointer-arith -Wformat-security -Winit-self -Wno-missing-field-initializers -Wno-unused-parameter -fno-strict-aliasing -Wl,-z,relro -Wl,-z,now" "LDFLAGS_DEBUG=-Wdate-time -D_FORTIFY_SOURCE=2 -DSVNREVISION=0~20180908~beta1-6 -DBUILDTYPE=Debian -DNO_BUILD_TIMESTAMPS -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/darkplaces-0~20180908~beta1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -Wextra -Wstrict-prototypes -Wsign-compare -Wnested-externs -Wpointer-arith -Wformat-security -Winit-self -Wno-missing-field-initializers -Wno-unused-parameter -fno-strict-aliasing -Wl,-z,relro -Wl,-z,now" DP_MAKE_TARGET=linux DP_MACHINE=x86_64 DP_LINK_CURL=shared DP_LINK_FREETYPE2=shared DP_LINK_JPEG=shared DP_LINK_VORBIS=shared DP_LINK_ODE=shared DP_LINK_PNG=shared DP_LINK_THEORA=shared DP_LINK_ZLIB=shared DISABLE_OFFSCREEN_GECKO=1 DP_LINK_CRYPTO=never DP_LINK_CRYPTO_RIJNDAEL=never DP_LINK_AVW=never "STRIP=: do not strip" sdl-release sv-release returned exit code 2
make[1]: *** [debian/rules:41: override_dh_auto_build] Error 25
make[1]: Leaving directory '/build/reproducible-path/darkplaces-0~20180908~beta1'
make: *** [debian/rules:36: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
More information about the Pkg-games-devel
mailing list