Bug#1096264: 3dchess: ftbfs with GCC-15
Matthias Klose
doko at debian.org
Mon Feb 17 17:01:47 GMT 2025
Package: src:3dchess
Version: 0.8.1-22
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/3dchess_0.8.1-22_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
[...]
dh_autoreconf -O--sourcedirectory=src
dh_auto_configure -O--sourcedirectory=src
dh_auto_build -O--sourcedirectory=src
cd src && make -j8 "INSTALL=install --strip-program=true"
make[1]: Entering directory '/build/reproducible-path/3dchess-0.8.1/src'
gcc `dpkg-buildflags --get CFLAGS` -O2 -fstrength-reduce -fpcc-struct-return -DVERSION=\"0.8.1\" -DHAVE_UNISTD_H -DHAVE_ULIMIT_H -DUNDO_ANY_MOVE -I../include -Wdate-time -D_FORTIFY_SOURCE=2 -c -o init.o init.c
gcc `dpkg-buildflags --get CFLAGS` -O2 -fstrength-reduce -fpcc-struct-return -DVERSION=\"0.8.1\" -DHAVE_UNISTD_H -DHAVE_ULIMIT_H -DUNDO_ANY_MOVE -I../include -Wdate-time -D_FORTIFY_SOURCE=2 -c -o main.o main.c
gcc `dpkg-buildflags --get CFLAGS` -O2 -fstrength-reduce -fpcc-struct-return -DVERSION=\"0.8.1\" -DHAVE_UNISTD_H -DHAVE_ULIMIT_H -DUNDO_ANY_MOVE -I../include -Wdate-time -D_FORTIFY_SOURCE=2 -c -o engine.o engine.c
gcc `dpkg-buildflags --get CFLAGS` -O2 -fstrength-reduce -fpcc-struct-return -DVERSION=\"0.8.1\" -DHAVE_UNISTD_H -DHAVE_ULIMIT_H -DUNDO_ANY_MOVE -I../include -Wdate-time -D_FORTIFY_SOURCE=2 -c -o piece.o piece.c
gcc `dpkg-buildflags --get CFLAGS` -O2 -fstrength-reduce -fpcc-struct-return -DVERSION=\"0.8.1\" -DHAVE_UNISTD_H -DHAVE_ULIMIT_H -DUNDO_ANY_MOVE -I../include -Wdate-time -D_FORTIFY_SOURCE=2 -c -o stack.o stack.c
gcc `dpkg-buildflags --get CFLAGS` -O2 -fstrength-reduce -fpcc-struct-return -DVERSION=\"0.8.1\" -DHAVE_UNISTD_H -DHAVE_ULIMIT_H -DUNDO_ANY_MOVE -I../include -Wdate-time -D_FORTIFY_SOURCE=2 -c -o ai.o ai.c
gcc `dpkg-buildflags --get CFLAGS` -O2 -fstrength-reduce -fpcc-struct-return -DVERSION=\"0.8.1\" -DHAVE_UNISTD_H -DHAVE_ULIMIT_H -DUNDO_ANY_MOVE -I../include -Wdate-time -D_FORTIFY_SOURCE=2 -c -o xif.o xif.c
gcc `dpkg-buildflags --get CFLAGS` -O2 -fstrength-reduce -fpcc-struct-return -DVERSION=\"0.8.1\" -DHAVE_UNISTD_H -DHAVE_ULIMIT_H -DUNDO_ANY_MOVE -I../include -Wdate-time -D_FORTIFY_SOURCE=2 -c -o xnet.o xnet.c
engine.c: In function ‘TraverseDir’:
engine.c:82:43: warning: conversion from ‘unsigned int’ to ‘unsigned char:2’ changes value from ‘4294967295’ to ‘3’ [-Woverflow]
82 | SQUARE_INVALID->xyzPos.zLevel = UINT_MAX;
| ^~~~~~~~
gcc `dpkg-buildflags --get CFLAGS` -O2 -fstrength-reduce -fpcc-struct-return -DVERSION=\"0.8.1\" -DHAVE_UNISTD_H -DHAVE_ULIMIT_H -DUNDO_ANY_MOVE -I../include -Wdate-time -D_FORTIFY_SOURCE=2 -c -o callbaks.o callbaks.c
gcc `dpkg-buildflags --get CFLAGS` -O2 -fstrength-reduce -fpcc-struct-return -DVERSION=\"0.8.1\" -DHAVE_UNISTD_H -DHAVE_ULIMIT_H -DUNDO_ANY_MOVE -I../include -Wdate-time -D_FORTIFY_SOURCE=2 -c -o DrawingA.o DrawingA.c
DrawingA.c:57:5: error: initialization of ‘void (*)(struct _WidgetRec *, struct _WidgetRec *, struct <anonymous> *, Cardinal *)’ {aka ‘void (*)(struct _WidgetRec *, struct _WidgetRec *, struct <anonymous> *, unsigned int *)’} from incompatible pointer type ‘void (*)(void)’ [-Wincompatible-pointer-types]
57 | Initialize, /* initialize */
| ^~~~~~~~~~
DrawingA.c:57:5: note: (near initialization for ‘drawingAreaClassRec.core_class.initialize’)
DrawingA.c:17:17: note: ‘Initialize’ declared here
17 | static void Initialize();
| ^~~~~~~~~~
DrawingA.c:69:5: error: initialization of ‘void (*)(struct _WidgetRec *)’ from incompatible pointer type ‘void (*)(void)’ [-Wincompatible-pointer-types]
69 | Destroy, /* destroy */
| ^~~~~~~
DrawingA.c:69:5: note: (near initialization for ‘drawingAreaClassRec.core_class.destroy’)
DrawingA.c:18:17: note: ‘Destroy’ declared here
18 | static void Destroy();
| ^~~~~~~
DrawingA.c:71:5: error: initialization of ‘void (*)(struct _WidgetRec *, XEvent *, struct _XRegion *)’ from incompatible pointer type ‘void (*)(void)’ [-Wincompatible-pointer-types]
71 | Redisplay, /* expose */
| ^~~~~~~~~
DrawingA.c:71:5: note: (near initialization for ‘drawingAreaClassRec.core_class.expose’)
DrawingA.c:19:17: note: ‘Redisplay’ declared here
19 | static void Redisplay();
| ^~~~~~~~~
DrawingA.c: In function ‘Initialize’:
DrawingA.c:96:13: warning: old-style function definition [-Wold-style-definition]
96 | static void Initialize( request, new)
| ^~~~~~~~~~
DrawingA.c: In function ‘Destroy’:
DrawingA.c:108:13: warning: old-style function definition [-Wold-style-definition]
108 | static void Destroy( w)
| ^~~~~~~
DrawingA.c: In function ‘Redisplay’:
DrawingA.c:119:13: warning: old-style function definition [-Wold-style-definition]
119 | static void Redisplay(w, event, region)
| ^~~~~~~~~
DrawingA.c: In function ‘resize_draw’:
DrawingA.c:133:13: warning: old-style function definition [-Wold-style-definition]
133 | static void resize_draw(w, event, args, n_args)
| ^~~~~~~~~~~
DrawingA.c: In function ‘input_draw’:
DrawingA.c:148:13: warning: old-style function definition [-Wold-style-definition]
148 | static void input_draw(w, event, args, n_args)
| ^~~~~~~~~~
DrawingA.c: In function ‘motion_draw’:
DrawingA.c:163:13: warning: old-style function definition [-Wold-style-definition]
163 | static void motion_draw(w, event, args, n_args)
| ^~~~~~~~~~~
make[1]: *** [<builtin>: DrawingA.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/build/reproducible-path/3dchess-0.8.1/src'
dh_auto_build: error: cd src && make -j8 "INSTALL=install --strip-program=true" 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