Bug#1075677: xpaint: ftbfs with GCC-14
Package: src:xpaint
Version: 2.9.1.4-4.1
Severity: important
Tags: sid trixie
User: debian-gcc@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/xpaint_2.9.1.4-4.1_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
[...]
from Viewport.c:51:
/usr/include/features.h:196:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
196 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
| ^~~~~~~
Viewport.c: In function ‘ScrollUpDownProc’:
Viewport.c:881:15: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
881 | int pix = (int)call_data;
| ^
rm -f Xaw3dP.o unshared/Xaw3dP.o
gcc -c -I. -I/usr/include/X11/Xft -I/usr/include/freetype2 -Dlinux -D__amd64__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFUNCPROTO=15 -DNARROWPROTO -g -O2 -fno-strict-aliasing -g Xaw3dP.c -o unshared/Xaw3dP.o
In file included from /usr/include/x86_64-linux-gnu/sys/types.h:25,
from /usr/include/X11/Xlib.h:38,
from /usr/include/X11/Intrinsic.h:53,
from /usr/include/X11/IntrinsicP.h:51,
from Xaw3dP.h:33,
from Xaw3dP.c:30:
/usr/include/features.h:196:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
196 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
| ^~~~~~~
rm -f Xaw3dP.o
gcc -c -g -O2 -fno-strict-aliasing -g -I. -I/usr/include/X11/Xft -I/usr/include/freetype2 -Dlinux -D__amd64__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFUNCPROTO=15 -DNARROWPROTO -fPIC Xaw3dP.c
In file included from /usr/include/x86_64-linux-gnu/sys/types.h:25,
from /usr/include/X11/Xlib.h:38,
from /usr/include/X11/Intrinsic.h:53,
from /usr/include/X11/IntrinsicP.h:51,
from Xaw3dP.h:33,
from Xaw3dP.c:30:
/usr/include/features.h:196:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
196 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
| ^~~~~~~
rm -f XawInit.o unshared/XawInit.o
gcc -c -I. -I/usr/include/X11/Xft -I/usr/include/freetype2 -Dlinux -D__amd64__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFUNCPROTO=15 -DNARROWPROTO -g -O2 -fno-strict-aliasing -g XawInit.c -o unshared/XawInit.o
In file included from /usr/include/x86_64-linux-gnu/sys/types.h:25,
from /usr/include/X11/Xlib.h:38,
from /usr/include/X11/Intrinsic.h:53,
from XawInit.c:37:
/usr/include/features.h:196:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
196 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
| ^~~~~~~
rm -f XawInit.o
gcc -c -g -O2 -fno-strict-aliasing -g -I. -I/usr/include/X11/Xft -I/usr/include/freetype2 -Dlinux -D__amd64__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFUNCPROTO=15 -DNARROWPROTO -fPIC XawInit.c
In file included from /usr/include/x86_64-linux-gnu/sys/types.h:25,
from /usr/include/X11/Xlib.h:38,
from /usr/include/X11/Intrinsic.h:53,
from XawInit.c:37:
/usr/include/features.h:196:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
196 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
| ^~~~~~~
bison -y -d laygram.y
sed -e 's/yy/LayYY/g' y.tab.c > laygram.c
sed -e 's/yy/LayYY/g' y.tab.h > laygram.h
rm -f y.tab.c y.tab.h
rm -f laygram.o unshared/laygram.o
gcc -c -I. -I/usr/include/X11/Xft -I/usr/include/freetype2 -Dlinux -D__amd64__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFUNCPROTO=15 -DNARROWPROTO -g -O2 -fno-strict-aliasing -g laygram.c -o unshared/laygram.o
In file included from /usr/include/x86_64-linux-gnu/sys/types.h:25,
from /usr/include/X11/Xlib.h:38,
from laygram.y:2:
/usr/include/features.h:196:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
196 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
| ^~~~~~~
y.tab.c: In function ‘LayYYparse’:
y.tab.c:1166:19: error: implicit declaration of function ‘LayYYlex’ [-Wimplicit-function-declaration]
y.tab.c:1633:7: error: implicit declaration of function ‘LayYYerror’; did you mean ‘LayYYerrok’? [-Wimplicit-function-declaration]
make[2]: *** [Makefile:1101: laygram.o] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>/xaw3dxft'
make[1]: *** [Makefile:1391: start] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j1 returned exit code 2
make: *** [debian/rules:11: binary] Error 255
dpkg-buildpackage: error: fakeroot debian/rules binary subprocess returned exit status 2
Reply to: