Bug#1074850: bmf: ftbfs with GCC-14
Package: src:bmf
Version: 0.9.4-13
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/bmf_0.9.4-13_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
[...]
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 -Wall -pedantic -DNDEBUG -D_UNIX -D_LINUX -Wall -DHAVE_LIBDB -Wdate-time -D_FORTIFY_SOURCE=2 -DPACKAGE=\"bmf\" -DVERSION=\"0.9.4\" -c bmf.c
gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -pedantic -DNDEBUG -D_UNIX -D_LINUX -Wall -DHAVE_LIBDB -Wdate-time -D_FORTIFY_SOURCE=2 -Wdate-time -D_FORTIFY_SOURCE=2 -c -o filt.o filt.c
filt.c: In function ‘statdump’:
filt.c:42:17: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
42 | write( fd, iobuf, p-iobuf );
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
filt.c:49:9: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
49 | write( fd, iobuf, p-iobuf );
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -pedantic -DNDEBUG -D_UNIX -D_LINUX -Wall -DHAVE_LIBDB -Wdate-time -D_FORTIFY_SOURCE=2 -Wdate-time -D_FORTIFY_SOURCE=2 -c -o dbmysql.o dbmysql.c
gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -pedantic -DNDEBUG -D_UNIX -D_LINUX -Wall -DHAVE_LIBDB -Wdate-time -D_FORTIFY_SOURCE=2 -Wdate-time -D_FORTIFY_SOURCE=2 -c -o dbdb.o dbdb.c
dbdb.c: In function ‘dbdb_table_export’:
dbdb.c:588:17: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
588 | write( fd, iobuf, p-iobuf );
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
dbdb.c:597:9: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
597 | write( fd, iobuf, p-iobuf );
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -pedantic -DNDEBUG -D_UNIX -D_LINUX -Wall -DHAVE_LIBDB -Wdate-time -D_FORTIFY_SOURCE=2 -Wdate-time -D_FORTIFY_SOURCE=2 -c -o dbtext.o dbtext.c
dbtext.c: In function ‘dbtext_table_mergeclose’:
dbtext.c:329:5: warning: ignoring return value of ‘ftruncate’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
329 | ftruncate( pthis->fd, 0 );
| ^~~~~~~~~~~~~~~~~~~~~~~~~
dbtext.c:399:13: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
399 | write( pthis->fd, iobuf, p-iobuf );
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dbtext.c:405:9: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
405 | write( pthis->fd, iobuf, p-iobuf );
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dbtext.c: In function ‘dbtext_table_unmergeclose’:
dbtext.c:428:5: warning: ignoring return value of ‘ftruncate’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
428 | ftruncate( pthis->fd, 0 );
| ^~~~~~~~~~~~~~~~~~~~~~~~~
dbtext.c:499:13: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
499 | write( pthis->fd, iobuf, p-iobuf );
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dbtext.c:505:9: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
505 | write( pthis->fd, iobuf, p-iobuf );
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -pedantic -DNDEBUG -D_UNIX -D_LINUX -Wall -DHAVE_LIBDB -Wdate-time -D_FORTIFY_SOURCE=2 -Wdate-time -D_FORTIFY_SOURCE=2 -c -o dbh.o dbh.c
gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -pedantic -DNDEBUG -D_UNIX -D_LINUX -Wall -DHAVE_LIBDB -Wdate-time -D_FORTIFY_SOURCE=2 -Wdate-time -D_FORTIFY_SOURCE=2 -c -o lex.o lex.c
lex.c: In function ‘is_base64char’:
lex.c:189:22: error: type of ‘c’ defaults to ‘int’ [-Wimplicit-int]
189 | static inline bool_t is_base64char(c)
| ^~~~~~~~~~~~~
lex.c: In function ‘is_wordmidchar’:
lex.c:194:22: error: type of ‘c’ defaults to ‘int’ [-Wimplicit-int]
194 | static inline bool_t is_wordmidchar(c)
| ^~~~~~~~~~~~~~
lex.c: In function ‘is_wordendchar’:
lex.c:199:22: error: type of ‘c’ defaults to ‘int’ [-Wimplicit-int]
199 | static inline bool_t is_wordendchar(c)
| ^~~~~~~~~~~~~~
lex.c: In function ‘lex_passthru’:
lex.c:731:13: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
731 | write( STDOUT_FILENO, pbuf, len );
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lex.c:739:5: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
739 | write( STDOUT_FILENO, szbuf, strlen(szbuf) );
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lex.c:744:9: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
744 | write( STDOUT_FILENO, pthis->pbuf+pthis->pos, pthis->eom-pthis->pos );
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[2]: *** [<builtin>: lex.o] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
make[1]: *** [debian/rules:22: override_dh_auto_build] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:16: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
Reply to: