Bug#1074970: frotz: ftbfs with GCC-14
Matthias Klose
doko at debian.org
Wed Jul 3 13:26:56 BST 2024
Package: src:frotz
Version: 2.54+dfsg-3
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/frotz_2.54+dfsg-3_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
[...]
sf_osfdlg.c: In function ‘myosdialog’:
sf_osfdlg.c:444:15: error: assignment to ‘ulong *’ {aka ‘long unsigned int *’} from incompatible pointer type ‘uint32_t *’ {aka ‘unsigned int *’} [-Wincompatible-pointer-types]
444 | saved = sf_savearea(X, Y, W, H);
| ^
sf_osfdlg.c:523:31: error: passing argument 1 of ‘sf_restoreareaandfree’ from incompatible pointer type [-Wincompatible-pointer-types]
523 | sf_restoreareaandfree(saved);
| ^~~~~
| |
| ulong * {aka long unsigned int *}
In file included from sf_osfdlg.c:22:
sf_frotz.h:238:39: note: expected ‘uint32_t *’ {aka ‘unsigned int *’} but argument is of type ‘ulong *’ {aka ‘long unsigned int *’}
238 | void sf_restoreareaandfree(uint32_t * s);
| ~~~~~~~~~~~^
sf_osfdlg.c: In function ‘sf_setdialog’:
sf_osfdlg.c:541:21: error: assignment to ‘int (*)(bool, const char *, const char *, const char *, char **, uint32_t *, int, int, int, int)’ {aka ‘int (*)(int, const char *, const char *, const char *, char **, unsigned int *, int, int, int, int)’} from incompatible pointer type ‘int (*)(bool, const char *, const char *, const char *, char **, ulong *, int, int, int, int)’ {aka ‘int (*)(int, const char *, const char *, const char *, char **, long unsigned int *, int, int, int, int)’} [-Wincompatible-pointer-types]
541 | sf_osdialog = myosdialog;
| ^
sf_osfdlg.c: In function ‘sf_yesnooverlay’:
sf_osfdlg.c:1019:23: error: assignment to ‘ulong *’ {aka ‘long unsigned int *’} from incompatible pointer type ‘uint32_t *’ {aka ‘unsigned int *’} [-Wincompatible-pointer-types]
1019 | saved =
| ^
sf_osfdlg.c:1054:39: error: passing argument 1 of ‘sf_restoreareaandfree’ from incompatible pointer type [-Wincompatible-pointer-types]
1054 | sf_restoreareaandfree(saved);
| ^~~~~
| |
| ulong * {aka long unsigned int *}
sf_frotz.h:238:39: note: expected ‘uint32_t *’ {aka ‘unsigned int *’} but argument is of type ‘ulong *’ {aka ‘long unsigned int *’}
238 | void sf_restoreareaandfree(uint32_t * s);
| ~~~~~~~~~~~^
sf_osfdlg.c: In function ‘resolvedir’:
sf_osfdlg.c:651:9: warning: ignoring return value of ‘chdir’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
651 | chdir(cwd);
| ^~~~~~~~~~
make[3]: *** [Makefile:40: sf_osfdlg.o] Error 1
make[3]: *** Waiting for unfinished jobs....
gcc -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 -I/usr/include/libpng16 -I/usr/include/SDL2 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -I/usr/include/opus -I/usr/include/x86_64-linux-gnu -I/usr/include/pipewire-0.3 -I/usr/include/spa-0.2 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/libinstpatch-2 -pthread -D_REENTRANT -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600 -I/usr/include/freetype2 -fPIC -fpic -o sf_ftype.o -c sf_ftype.c
gcc -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 -I/usr/include/libpng16 -I/usr/include/SDL2 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -I/usr/include/opus -I/usr/include/x86_64-linux-gnu -I/usr/include/pipewire-0.3 -I/usr/include/spa-0.2 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/libinstpatch-2 -pthread -D_REENTRANT -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600 -I/usr/include/freetype2 -fPIC -fpic -o sf_resource.o -c sf_resource.c
sf_resource.c: In function ‘load_local_resources’:
sf_resource.c:1064:17: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
1064 | fgets(s, 254, f);
| ^~~~~~~~~~~~~~~~
sf_resource.c: In function ‘loadlocal’:
sf_resource.c:909:9: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
909 | fread(hd, 1, 4, f);
| ^~~~~~~~~~~~~~~~~~
sf_resource.c:940:25: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
940 | fread(ptr, 1, size, f);
| ^~~~~~~~~~~~~~~~~~~~~~
gcc -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 -I/usr/include/libpng16 -I/usr/include/SDL2 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -I/usr/include/opus -I/usr/include/x86_64-linux-gnu -I/usr/include/pipewire-0.3 -I/usr/include/spa-0.2 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/libinstpatch-2 -pthread -D_REENTRANT -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600 -I/usr/include/freetype2 -fPIC -fpic -o sf_util.o -c sf_util.c
sf_util.c: In function ‘sf_InitProfile’:
sf_util.c:878:9: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
878 | fread(rc, 1, size, f);
| ^~~~~~~~~~~~~~~~~~~~~
sf_util.c: In function ‘sf_pkread’:
sf_util.c:1084:9: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
1084 | fread(hd, 1, 30, f);
| ^~~~~~~~~~~~~~~~~~~
sf_util.c:1104:9: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
1104 | fread(cdata, 1, csize, f);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
gcc -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 -I/usr/include/libpng16 -I/usr/include/SDL2 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -I/usr/include/opus -I/usr/include/x86_64-linux-gnu -I/usr/include/pipewire-0.3 -I/usr/include/spa-0.2 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/libinstpatch-2 -pthread -D_REENTRANT -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600 -I/usr/include/freetype2 -fPIC -fpic -o sf_sig.o -c sf_sig.c
gcc -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 -I/usr/include/libpng16 -I/usr/include/SDL2 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -I/usr/include/opus -I/usr/include/x86_64-linux-gnu -I/usr/include/pipewire-0.3 -I/usr/include/spa-0.2 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/libinstpatch-2 -pthread -D_REENTRANT -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600 -I/usr/include/freetype2 -fPIC -fpic -o sf_video.o -c sf_video.c
make[3]: Leaving directory '/<<PKGBUILDDIR>>/src/sdl'
make[2]: *** [Makefile:459: src/sdl/frotz_sdl.a] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j8 "INSTALL=install --strip-program=true" BINDIR=/usr/games "CFLAGS=-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" curses dumb sdl returned exit code 2
make[1]: *** [debian/rules:14: override_dh_auto_build] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:11: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
More information about the Pkg-games-devel
mailing list