Package: src:omega-rpg Version: 1:0.90-pa9-18 Severity: important Tags: sid trixie User: [email protected] 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/omega-rpg_0.90-pa9-18_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 [...] 1105 | fread((char *)&j,sizeof(int),1,fd); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ save.c:1108:5: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 1108 | fread((char *)&i,sizeof(int),1,fd); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ save.c:1109:5: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 1109 | fread((char *)&j,sizeof(int),1,fd); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ save.c: In function ‘restore_monsters’: save.c:1208:3: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 1208 | fread((char *)&nummonsters,sizeof(int),1,fd); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ save.c:1214:5: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 1214 | fread((char *)ml->m,sizeof(montype),1,fd); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ save.c:1226:7: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 1226 | fread((char *)&type,sizeof(unsigned char),1,fd); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ save.c: In function ‘restore_country’: save.c:1274:3: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 1274 | fread((char *)&i,sizeof(int),1,fd); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ save.c:1275:3: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 1275 | fread((char *)&j,sizeof(int),1,fd); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ save.c:1277:5: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 1277 | fread((char *)&Country[i][j],sizeof(struct terrain),1,fd); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ save.c:1278:5: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 1278 | fread((char *)&i,sizeof(int),1,fd); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ save.c:1279:5: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 1279 | fread((char *)&j,sizeof(int),1,fd); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ save.c:1286:9: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 1286 | fread((char *)&mask,sizeof(long int),1,fd); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -DBSD scr.c -c -o scr.o gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -DBSD site1.c -c -o site1.o gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -DBSD site2.c -c -o site2.o gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -DBSD spell.c -c -o spell.o gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -DBSD stats.c -c -o stats.o gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -DBSD time.c -c -o time.o gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -DBSD trap.c -c -o trap.o gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -DBSD util.c -c -o util.o util.c: In function ‘change_to_user_perms’: util.c:1140:5: warning: ignoring return value of ‘setreuid’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 1140 | setreuid(game_uid, user_uid); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ util.c: In function ‘change_to_game_perms’: util.c:1151:5: warning: ignoring return value of ‘setreuid’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 1151 | setreuid(user_uid, game_uid); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -DBSD village.c -c -o village.o gcc -Wl,-z,relro -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 clrgen.o omega.o abyss.o aux1.o aux2.o aux3.o bank.o char.o city.o command1.o command2.o command3.o country.o effect1.o effect2.o effect3.o etc.o env.o file.o gen1.o gen2.o guild1.o guild2.o house.o init.o inv.o item.o itemf1.o itemf2.o itemf3.o lev.o map.o mmelee.o mmove.o mon.o move.o movef.o mspec.o mstrike.o mtalk.o newrand.o priest.o pdump.o save.o scr.o site1.o site2.o spell.o stats.o time.o trap.o util.o village.o -lncurses -o omega #rm date.c date.o make[2]: Leaving directory '/<<PKGBUILDDIR>>' make[1]: Leaving directory '/<<PKGBUILDDIR>>' dh_auto_test make -j8 test make[1]: Entering directory '/<<PKGBUILDDIR>>' gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro test.c -o test test.c:29:1: error: return type defaults to ‘int’ [-Wimplicit-int] 29 | main() | ^~~~ make[1]: *** [<builtin>: test] Error 1 make[1]: Leaving directory '/<<PKGBUILDDIR>>' dh_auto_test: error: make -j8 test returned exit code 2 make: *** [debian/rules:6: build] Error 25 dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2

