Bug#1074935: elk: ftbfs with GCC-14
Package: src:elk
Version: 3.99.8-7
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/elk_3.99.8-7_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
[...]
| ^~~~~~~~~~~~~~~~~~~
io.c:180:5: note: in expansion of macro ‘Alloca_Begin’
180 | Alloca_Begin;
| ^~~~~~~~~~~~
io.c: At top level:
io.c:220:6: warning: no previous prototype for ‘Close_All_Files’ [-Wmissing-prototypes]
220 | void Close_All_Files () {
| ^~~~~~~~~~~~~~~
io.c:230:8: warning: no previous prototype for ‘Open_File’ [-Wmissing-prototypes]
230 | Object Open_File (char *name, int flags, int err) {
| ^~~~~~~~~
io.c: In function ‘Open_File’:
../include/stkmem.h:57:26: warning: variable ‘_Check_Alloca_Begin’ set but not used [-Wunused-but-set-variable]
57 | #define Alloca_Begin int _Check_Alloca_Begin
| ^~~~~~~~~~~~~~~~~~~
io.c:235:5: note: in expansion of macro ‘Alloca_Begin’
235 | Alloca_Begin;
| ^~~~~~~~~~~~
io.c: In function ‘General_Open_File’:
../include/stkmem.h:57:26: warning: variable ‘_Check_Alloca_Begin’ set but not used [-Wunused-but-set-variable]
57 | #define Alloca_Begin int _Check_Alloca_Begin
| ^~~~~~~~~~~~~~~~~~~
io.c:270:5: note: in expansion of macro ‘Alloca_Begin’
270 | Alloca_Begin;
| ^~~~~~~~~~~~
io.c: At top level:
io.c:331:8: warning: no previous prototype for ‘General_Close_Port’ [-Wmissing-prototypes]
331 | Object General_Close_Port (Object port) {
| ^~~~~~~~~~~~~~~~~~
io.c:379:8: warning: no previous prototype for ‘General_Call_With’ [-Wmissing-prototypes]
379 | Object General_Call_With (Object name, int flags, Object proc) {
| ^~~~~~~~~~~~~~~~~
make[4]: *** [Makefile:752: libelk_la-heap.lo] Error 1
make[4]: *** Waiting for unfinished jobs....
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I../include -Wdate-time -D_FORTIFY_SOURCE=2 -DSCM_DIR=\"/usr/share/elk\" -DLIB_DIR=\"/usr/lib/x86_64-linux-gnu/elk\" -I/usr/include/libelf -Wpointer-arith -Wcast-align -Wcast-qual -Wshadow -Wmissing-prototypes -Wnested-externs -Wsign-compare -Wall -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c libelk.c -fPIC -DPIC -o .libs/libelk_la-libelk.o
libelk.c:155:6: warning: no previous prototype for ‘Check_If_Dump_Works’ [-Wmissing-prototypes]
155 | void Check_If_Dump_Works () {
| ^~~~~~~~~~~~~~~~~~~
libelk.c:362:6: warning: no previous prototype for ‘Usage’ [-Wmissing-prototypes]
362 | void Usage () {
| ^~~~~
libelk.c:371:6: warning: no previous prototype for ‘Init_Everything’ [-Wmissing-prototypes]
371 | void Init_Everything () {
| ^~~~~~~~~~~~~~~
libelk.c:396:6: warning: no previous prototype for ‘Get_Stack_Limit’ [-Wmissing-prototypes]
396 | void Get_Stack_Limit () {
| ^~~~~~~~~~~~~~~
libelk.c:412:5: warning: no previous prototype for ‘Executable’ [-Wmissing-prototypes]
412 | int Executable (char *fn) {
| ^~~~~~~~~~
libelk.c:419:7: warning: no previous prototype for ‘Find_Executable’ [-Wmissing-prototypes]
419 | char *Find_Executable (char *fn) {
| ^~~~~~~~~~~~~~~
libelk.c: In function ‘Find_Executable’:
libelk.c:420:24: warning: nested extern declaration of ‘getenv’ [-Wnested-externs]
420 | char *path, *dir, *getenv();
| ^~~~~~
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I../include -Wdate-time -D_FORTIFY_SOURCE=2 -DSCM_DIR=\"/usr/share/elk\" -DLIB_DIR=\"/usr/lib/x86_64-linux-gnu/elk\" -I/usr/include/libelf -Wpointer-arith -Wcast-align -Wcast-qual -Wshadow -Wmissing-prototypes -Wnested-externs -Wsign-compare -Wall -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c bignum.c -o libelk_la-bignum.o >/dev/null 2>&1
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I../include -Wdate-time -D_FORTIFY_SOURCE=2 -DSCM_DIR=\"/usr/share/elk\" -DLIB_DIR=\"/usr/lib/x86_64-linux-gnu/elk\" -I/usr/include/libelf -Wpointer-arith -Wcast-align -Wcast-qual -Wshadow -Wmissing-prototypes -Wnested-externs -Wsign-compare -Wall -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c libelk.c -o libelk_la-libelk.o >/dev/null 2>&1
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I../include -Wdate-time -D_FORTIFY_SOURCE=2 -DSCM_DIR=\"/usr/share/elk\" -DLIB_DIR=\"/usr/lib/x86_64-linux-gnu/elk\" -I/usr/include/libelf -Wpointer-arith -Wcast-align -Wcast-qual -Wshadow -Wmissing-prototypes -Wnested-externs -Wsign-compare -Wall -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c io.c -o libelk_la-io.o >/dev/null 2>&1
make[4]: Leaving directory '/<<PKGBUILDDIR>>/src'
make[3]: *** [Makefile:435: all-recursive] Error 1
make[3]: Leaving directory '/<<PKGBUILDDIR>>'
make[2]: *** [Makefile:367: all] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j8 returned exit code 2
make[1]: *** [debian/rules:12: override_dh_auto_build] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:9: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
Reply to: