Package: src:xgammon Version: 0.99.1128-9 Severity: important Tags: sid forky User: debian-...@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/xgammon_0.99.1128-9_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 [...] 170 | InputPos = TextGetLastPos (ctx); | ^~~~~~~~~~~~~~ ~~~ diawin.c:53:25: note: declared here 53 | static XawTextPosition TextGetLastPos (); | ^~~~~~~~~~~~~~ diawin.c:194:19: error: too many arguments to function ‘TextGetLastPos’; expected 0, have 1 194 | lastPos = TextGetLastPos (ctx); | ^~~~~~~~~~~~~~ ~~~ diawin.c:53:25: note: declared here 53 | static XawTextPosition TextGetLastPos (); | ^~~~~~~~~~~~~~ diawin.c:210:27: error: too many arguments to function ‘TextGetLastPos’; expected 0, have 1 210 | lastPos = TextGetLastPos (ctx); | ^~~~~~~~~~~~~~ ~~~ diawin.c:53:25: note: declared here 53 | static XawTextPosition TextGetLastPos (); | ^~~~~~~~~~~~~~ diawin.c:213:20: error: too many arguments to function ‘TextGetLastPos’; expected 0, have 1 213 | InputPos = TextGetLastPos (ctx); | ^~~~~~~~~~~~~~ ~~~ diawin.c:53:25: note: declared here 53 | static XawTextPosition TextGetLastPos (); | ^~~~~~~~~~~~~~ diawin.c: At top level: diawin.c:220:17: error: conflicting types for ‘TextGetLastPos’; have ‘XawTextPosition(struct _WidgetRec *)’ {aka ‘long int(struct _WidgetRec *)’} 220 | XawTextPosition TextGetLastPos (Widget w) | ^~~~~~~~~~~~~~ diawin.c:53:25: note: previous declaration of ‘TextGetLastPos’ with type ‘XawTextPosition(void)’ {aka ‘long int(void)’} 53 | static XawTextPosition TextGetLastPos (); | ^~~~~~~~~~~~~~ diawin.c:226:6: error: conflicting types for ‘Dispatch’; have ‘void(struct _WidgetRec *, XEvent *, char **, Cardinal *)’ {aka ‘void(struct _WidgetRec *, XEvent *, char **, unsigned int *)’} 226 | void Dispatch (Widget w, XEvent *event, String *params, Cardinal *num_params) | ^~~~~~~~ diawin.c:52:7: note: previous declaration of ‘Dispatch’ with type ‘void(void)’ 52 | void Dispatch (); | ^~~~~~~~ diawin.c:235:6: error: conflicting types for ‘print_dialog_text’; have ‘void(FILE *)’ 235 | void print_dialog_text (FILE *f) | ^~~~~~~~~~~~~~~~~ diawin.c:56:7: note: previous declaration of ‘print_dialog_text’ with type ‘void(void)’ 56 | void print_dialog_text (); | ^~~~~~~~~~~~~~~~~ diawin.c:53:25: warning: ‘TextGetLastPos’ used but never defined 53 | static XawTextPosition TextGetLastPos (); | ^~~~~~~~~~~~~~ make[2]: *** [<builtin>: diawin.o] Error 1 decision.c:149:7: error: conflicting types for ‘evaluate’; have ‘float(int)’ 149 | float evaluate(int turn) | ^~~~~~~~ decision.c:29:7: note: previous declaration of ‘evaluate’ with type ‘float(void)’ 29 | float evaluate (); | ^~~~~~~~ decision.c: In function ‘calculate_expected_time’: decision.c:551:9: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 551 | fread( readarray, 2, 30, endgame_database); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ decision.c: In function ‘calculate_winning_percentage’: decision.c:581:9: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 581 | fread (readarray, 2, 18, endgame_database); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ decision.c:594:9: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 594 | fread (readarray, 2, 18, endgame_database); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: *** [<builtin>: decision.o] Error 1 make[2]: Leaving directory '/build/reproducible-path/xgammon-0.99.1128/src' dh_auto_build: error: cd src && make -j8 "INSTALL=install --strip-program=true" "CCOPTIONS=-g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/xgammon-0.99.1128=. -fstack-protector-strong -fstack-clash-protection -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now" returned exit code 2 make[1]: *** [debian/rules:13: override_dh_auto_build] Error 25 make[1]: Leaving directory '/build/reproducible-path/xgammon-0.99.1128' make: *** [debian/rules:9: binary] Error 2 dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2