Bug#1074856: btyacc: ftbfs with GCC-14
Package: src:btyacc
Version: 3.0+dfsg-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/btyacc_3.0+dfsg-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
[...]
SCHROOT_COMMAND=env
SCHROOT_GID=1001
SCHROOT_GROUP=user42
SCHROOT_SESSION_ID=sid-amd64-sbuild-b86a19ba-f03b-4c8c-873b-18080265bd6f
SCHROOT_UID=1001
SCHROOT_USER=user42
SHELL=/bin/sh
USER=user42
dpkg-buildpackage
-----------------
Command: dpkg-buildpackage --sanitize-env -us -uc -b -rfakeroot
dpkg-buildpackage: info: source package btyacc
dpkg-buildpackage: info: source version 3.0+dfsg-1
dpkg-buildpackage: info: source distribution unstable
dpkg-buildpackage: info: source changed by Joao Eriberto Mota Filho <eriberto@debian.org>
dpkg-source --before-build .
dpkg-buildpackage: info: host architecture amd64
debian/rules clean
dh clean
dh_auto_clean
make -j8 distclean
make[1]: Entering directory '/<<PKGBUILDDIR>>'
rm -f closure.o error.o lalr.o lr0.o main.o mkpar.o output.o mstring.o reader.o readskel.o skeleton.o symtab.o verbose.o warshall.o btyacc skeleton.c *.zip *.gz
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_clean
debian/rules binary
dh binary
dh_update_autotools_config
dh_autoreconf
dh_auto_configure
debian/rules override_dh_auto_build
make[1]: Entering directory '/<<PKGBUILDDIR>>'
dh_auto_build -- 'LINKER=$(CC)'
make -j8 "INSTALL=install --strip-program=true" LINKER=\$\(CC\)
make[2]: Entering directory '/<<PKGBUILDDIR>>'
gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -g -Wall -O2 -Wstrict-prototypes -Wmissing-prototypes -Wdate-time -D_FORTIFY_SOURCE=2 -c -o closure.o closure.c
gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -g -Wall -O2 -Wstrict-prototypes -Wmissing-prototypes -Wdate-time -D_FORTIFY_SOURCE=2 -c -o error.o error.c
gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -g -Wall -O2 -Wstrict-prototypes -Wmissing-prototypes -Wdate-time -D_FORTIFY_SOURCE=2 -c -o lalr.o lalr.c
gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -g -Wall -O2 -Wstrict-prototypes -Wmissing-prototypes -Wdate-time -D_FORTIFY_SOURCE=2 -c -o lr0.o lr0.c
gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -g -Wall -O2 -Wstrict-prototypes -Wmissing-prototypes -Wdate-time -D_FORTIFY_SOURCE=2 -c -o main.o main.c
gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -g -Wall -O2 -Wstrict-prototypes -Wmissing-prototypes -Wdate-time -D_FORTIFY_SOURCE=2 -c -o mkpar.o mkpar.c
gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -g -Wall -O2 -Wstrict-prototypes -Wmissing-prototypes -Wdate-time -D_FORTIFY_SOURCE=2 -c -o output.o output.c
gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -g -Wall -O2 -Wstrict-prototypes -Wmissing-prototypes -Wdate-time -D_FORTIFY_SOURCE=2 -c -o mstring.o mstring.c
gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -g -Wall -O2 -Wstrict-prototypes -Wmissing-prototypes -Wdate-time -D_FORTIFY_SOURCE=2 -c -o reader.o reader.c
gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -g -Wall -O2 -Wstrict-prototypes -Wmissing-prototypes -Wdate-time -D_FORTIFY_SOURCE=2 -c -o readskel.o readskel.c
reader.c: In function ‘keyword’:
reader.c:294:38: error: passing argument 5 of ‘bsearch’ from incompatible pointer type [-Wincompatible-pointer-types]
294 | sizeof(*key), strcmp)))
| ^~~~~~
| |
| int (*)(const char *, const char *)
In file included from /usr/include/stdlib.h:965,
from defs.h:1,
from reader.c:1:
/usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h:21:24: note: expected ‘int (*)(const void *, const void *)’ but argument is of type ‘int (*)(const char *, const char *)’
21 | __compar_fn_t __compar)
| ~~~~~~~~~~~~~~^~~~~~~~
awk -f skel2c btyaccpa.ske > skeleton.c
gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -g -Wall -O2 -Wstrict-prototypes -Wmissing-prototypes -Wdate-time -D_FORTIFY_SOURCE=2 -c -o symtab.o symtab.c
gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -g -Wall -O2 -Wstrict-prototypes -Wmissing-prototypes -Wdate-time -D_FORTIFY_SOURCE=2 -c -o verbose.o verbose.c
make[2]: *** [<builtin>: reader.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j8 "INSTALL=install --strip-program=true" LINKER=\$\(CC\) returned exit code 2
make[1]: *** [debian/rules:10: override_dh_auto_build] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:7: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
Reply to: