Bug#1096504: datamash: ftbfs with GCC-15
Matthias Klose
doko at debian.org
Mon Feb 17 17:09:19 GMT 2025
Package: src:datamash
Version: 1.8-1
Severity: important
Tags: sid forky
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-15
[This bug is NOT 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-15/g++-15, but succeeds to build with gcc-14/g++-14. The
severity of this report will be raised before the forky release.
The full build log can be found at:
http://qa-logs.debian.net/2025/02/16/amd64exp/datamash_1.8-1_unstable_gccexp.log.gz
The last lines of the build log are at the end of this report.
To build with GCC 15, either set CC=gcc-15 CXX=g++-15 explicitly,
or install the gcc, g++, gfortran, ... packages from experimental.
apt-get -t=experimental install g++
GCC 15 now defaults to the C23/C++23 standards, exposing many FTBFS.
Other 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-15/porting_to.html
[...]
gcc -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wextra -Wformat-security -Wswitch-enum -Wswitch-default -Wunused-parameter -Wfloat-equal -fdiagnostics-show-option -funit-at-a-time -Wmissing-format-attribute -Wstrict-overflow -Wsuggest-attribute=const -Wsuggest-attribute=pure -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/datamash-1.8=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o src/datamash-text-lines.o `test -f 'src/text-lines.c' || echo './'`src/text-lines.c
gcc -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wextra -Wformat-security -Wswitch-enum -Wswitch-default -Wunused-parameter -Wfloat-equal -fdiagnostics-show-option -funit-at-a-time -Wmissing-format-attribute -Wstrict-overflow -Wsuggest-attribute=const -Wsuggest-attribute=pure -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/datamash-1.8=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o src/datamash-column-headers.o `test -f 'src/column-headers.c' || echo './'`src/column-headers.c
gcc -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wextra -Wformat-security -Wswitch-enum -Wswitch-default -Wunused-parameter -Wfloat-equal -fdiagnostics-show-option -funit-at-a-time -Wmissing-format-attribute -Wstrict-overflow -Wsuggest-attribute=const -Wsuggest-attribute=pure -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/datamash-1.8=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o src/datamash-op-defs.o `test -f 'src/op-defs.c' || echo './'`src/op-defs.c
gcc -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wextra -Wformat-security -Wswitch-enum -Wswitch-default -Wunused-parameter -Wfloat-equal -fdiagnostics-show-option -funit-at-a-time -Wmissing-format-attribute -Wstrict-overflow -Wsuggest-attribute=const -Wsuggest-attribute=pure -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/datamash-1.8=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o src/datamash-op-scanner.o `test -f 'src/op-scanner.c' || echo './'`src/op-scanner.c
gcc -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wextra -Wformat-security -Wswitch-enum -Wswitch-default -Wunused-parameter -Wfloat-equal -fdiagnostics-show-option -funit-at-a-time -Wmissing-format-attribute -Wstrict-overflow -Wsuggest-attribute=const -Wsuggest-attribute=pure -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/datamash-1.8=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o src/datamash-op-parser.o `test -f 'src/op-parser.c' || echo './'`src/op-parser.c
make[4]: Leaving directory '/build/reproducible-path/datamash-1.8'
gcc -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wextra -Wformat-security -Wswitch-enum -Wswitch-default -Wunused-parameter -Wfloat-equal -fdiagnostics-show-option -funit-at-a-time -Wmissing-format-attribute -Wstrict-overflow -Wsuggest-attribute=const -Wsuggest-attribute=pure -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/datamash-1.8=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o src/datamash-field-ops.o `test -f 'src/field-ops.c' || echo './'`src/field-ops.c
gcc -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wextra -Wformat-security -Wswitch-enum -Wswitch-default -Wunused-parameter -Wfloat-equal -fdiagnostics-show-option -funit-at-a-time -Wmissing-format-attribute -Wstrict-overflow -Wsuggest-attribute=const -Wsuggest-attribute=pure -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/datamash-1.8=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o src/datamash-crosstab.o `test -f 'src/crosstab.c' || echo './'`src/crosstab.c
gcc -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wextra -Wformat-security -Wswitch-enum -Wswitch-default -Wunused-parameter -Wfloat-equal -fdiagnostics-show-option -funit-at-a-time -Wmissing-format-attribute -Wstrict-overflow -Wsuggest-attribute=const -Wsuggest-attribute=pure -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/datamash-1.8=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o src/datamash-double-format.o `test -f 'src/double-format.c' || echo './'`src/double-format.c
In file included from src/crosstab.c:29:
lib/hash.h:180:8: warning: 'nodiscard' attribute ignored [-Wattributes]
180 | _GL_ATTRIBUTE_NODISCARD;
| ^~~~~~~~~~~~~~~~~~~~~~~
lib/hash.h:189:8: warning: 'nodiscard' attribute ignored [-Wattributes]
189 | _GL_ATTRIBUTE_NODISCARD;
| ^~~~~~~~~~~~~~~~~~~~~~~
lib/hash.h:214:8: warning: 'nodiscard' attribute ignored [-Wattributes]
214 | _GL_ATTRIBUTE_NODISCARD;
| ^~~~~~~~~~~~~~~~~~~~~~~
lib/hash.h:222:8: warning: 'nodiscard' attribute ignored [-Wattributes]
222 | _GL_ATTRIBUTE_NODISCARD;
| ^~~~~~~~~~~~~~~~~~~~~~~
lib/hash.h:255:8: warning: 'deprecated' attribute ignored [-Wattributes]
255 | _GL_ATTRIBUTE_DEPRECATED;
| ^~~~~~~~~~~~~~~~~~~~~~~~
gcc -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wextra -Wformat-security -Wswitch-enum -Wswitch-default -Wunused-parameter -Wfloat-equal -fdiagnostics-show-option -funit-at-a-time -Wmissing-format-attribute -Wstrict-overflow -Wsuggest-attribute=const -Wsuggest-attribute=pure -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/datamash-1.8=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o src/datamash-datamash.o `test -f 'src/datamash.c' || echo './'`src/datamash.c
gcc -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/datamash-1.8=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o lib/base64.o lib/base64.c
src/crosstab.c:152:1: error: conflicting types for 'crosstab_print'; have 'void(const struct crosstab *)'
152 | crosstab_print (const struct crosstab* ct)
| ^~~~~~~~~~~~~~
In file included from src/crosstab.c:34:
src/crosstab.h:50:1: note: previous declaration of 'crosstab_print' with type 'void(void)'
50 | crosstab_print ();
| ^~~~~~~~~~~~~~
gcc -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -Ilib -I./lib -Isrc -I./src -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/datamash-1.8=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o lib/basename-lgpl.o lib/basename-lgpl.c
make[3]: *** [Makefile:3579: src/datamash-crosstab.o] Error 1
make[3]: *** Waiting for unfinished jobs....
In file included from src/datamash.c:40:
lib/hash.h:180:8: warning: 'nodiscard' attribute ignored [-Wattributes]
180 | _GL_ATTRIBUTE_NODISCARD;
| ^~~~~~~~~~~~~~~~~~~~~~~
lib/hash.h:189:8: warning: 'nodiscard' attribute ignored [-Wattributes]
189 | _GL_ATTRIBUTE_NODISCARD;
| ^~~~~~~~~~~~~~~~~~~~~~~
lib/hash.h:214:8: warning: 'nodiscard' attribute ignored [-Wattributes]
214 | _GL_ATTRIBUTE_NODISCARD;
| ^~~~~~~~~~~~~~~~~~~~~~~
lib/hash.h:222:8: warning: 'nodiscard' attribute ignored [-Wattributes]
222 | _GL_ATTRIBUTE_NODISCARD;
| ^~~~~~~~~~~~~~~~~~~~~~~
lib/hash.h:255:8: warning: 'deprecated' attribute ignored [-Wattributes]
255 | _GL_ATTRIBUTE_DEPRECATED;
| ^~~~~~~~~~~~~~~~~~~~~~~~
src/datamash.c: In function 'main':
src/datamash.c:1406:7: error: too many arguments to function 'crosstab_print'; expected 0, have 1
1406 | crosstab_print (crosstab);
| ^~~~~~~~~~~~~~ ~~~~~~~~
In file included from src/datamash.c:60:
src/crosstab.h:50:1: note: declared here
50 | crosstab_print ();
| ^~~~~~~~~~~~~~
make[3]: *** [Makefile:3607: src/datamash-datamash.o] Error 1
make[3]: Leaving directory '/build/reproducible-path/datamash-1.8'
make[2]: *** [Makefile:3910: check-recursive] Error 1
make[2]: Leaving directory '/build/reproducible-path/datamash-1.8'
make[1]: *** [Makefile:4406: check] Error 2
make[1]: Leaving directory '/build/reproducible-path/datamash-1.8'
dh_auto_test: error: make -j8 check "TESTSUITEFLAGS=-j8 --verbose" VERBOSE=1 returned exit code 2
make: *** [debian/rules:10: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
More information about the debian-science-maintainers
mailing list