Bug#1075166: libexplain: ftbfs with GCC-14
Package: src:libexplain
Version: 1.4.D001-14
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/libexplain_1.4.D001-14_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
[...]
libexplain/buffer/v4l2_audio_mode.c -o \
libexplain/buffer/v4l2_audio_mode.lo
libtool: compile: gcc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -Wextra -Wl,--as-needed -I. -c libexplain/buffer/utimensat_flags.c -fPIC -DPIC -o libexplain/buffer/.libs/utimensat_flags.o
libtool: compile: gcc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -Wextra -Wl,--as-needed -I. -c libexplain/buffer/v4l2_audio_capability.c -fPIC -DPIC -o libexplain/buffer/.libs/v4l2_audio_capability.o
libtool --mode=compile --tag=CC gcc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -Wextra -Wl,--as-needed -I. -c \
libexplain/buffer/v4l2_audioout.c -o \
libexplain/buffer/v4l2_audioout.lo
libtool: compile: gcc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -Wextra -Wl,--as-needed -I. -c libexplain/buffer/utimensat_fildes.c -o libexplain/buffer/utimensat_fildes.o >/dev/null 2>&1
libtool: compile: gcc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -Wextra -Wl,--as-needed -I. -c libexplain/buffer/utsname.c -o libexplain/buffer/utsname.o >/dev/null 2>&1
libtool: compile: gcc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -Wextra -Wl,--as-needed -I. -c libexplain/buffer/utimensat_flags.c -o libexplain/buffer/utimensat_flags.o >/dev/null 2>&1
libtool: compile: gcc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -Wextra -Wl,--as-needed -I. -c libexplain/buffer/v4l2_audio_capability.c -o libexplain/buffer/v4l2_audio_capability.o >/dev/null 2>&1
libtool: compile: gcc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -Wextra -Wl,--as-needed -I. -c libexplain/buffer/v4l2_audio_mode.c -fPIC -DPIC -o libexplain/buffer/.libs/v4l2_audio_mode.o
libtool: compile: gcc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -Wextra -Wl,--as-needed -I. -c libexplain/buffer/v4l2_audio.c -o libexplain/buffer/v4l2_audio.o >/dev/null 2>&1
libtool --mode=compile --tag=CC gcc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -Wextra -Wl,--as-needed -I. -c \
libexplain/buffer/v4l2_bt_timings.c -o \
libexplain/buffer/v4l2_bt_timings.lo
libtool --mode=compile --tag=CC gcc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -Wextra -Wl,--as-needed -I. -c \
libexplain/buffer/v4l2_bt_timings_interlaced.c -o \
libexplain/buffer/v4l2_bt_timings_interlaced.lo
libtool --mode=compile --tag=CC gcc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -Wextra -Wl,--as-needed -I. -c \
libexplain/buffer/v4l2_bt_timings_polarities.c -o \
libexplain/buffer/v4l2_bt_timings_polarities.lo
libtool: compile: gcc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -Wextra -Wl,--as-needed -I. -c libexplain/buffer/v4l2_audioout.c -fPIC -DPIC -o libexplain/buffer/.libs/v4l2_audioout.o
libtool --mode=compile --tag=CC gcc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -Wextra -Wl,--as-needed -I. -c \
libexplain/buffer/v4l2_buf_flags.c -o \
libexplain/buffer/v4l2_buf_flags.lo
libtool: compile: gcc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -Wextra -Wl,--as-needed -I. -c libexplain/buffer/v4l2_audio_mode.c -o libexplain/buffer/v4l2_audio_mode.o >/dev/null 2>&1
libtool: compile: gcc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -Wextra -Wl,--as-needed -I. -c libexplain/buffer/v4l2_bt_timings_interlaced.c -fPIC -DPIC -o libexplain/buffer/.libs/v4l2_bt_timings_interlaced.o
libtool: compile: gcc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -Wextra -Wl,--as-needed -I. -c libexplain/buffer/v4l2_bt_timings.c -fPIC -DPIC -o libexplain/buffer/.libs/v4l2_bt_timings.o
libtool: compile: gcc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -Wextra -Wl,--as-needed -I. -c libexplain/buffer/v4l2_bt_timings_polarities.c -fPIC -DPIC -o libexplain/buffer/.libs/v4l2_bt_timings_polarities.o
libexplain/buffer/v4l2_bt_timings.c: In function ‘explain_buffer_v4l2_bt_timings’:
libexplain/buffer/v4l2_bt_timings.c:102:44: error: passing argument 1 of ‘explain_uint32_array_all_zero’ from incompatible pointer type [-Wincompatible-pointer-types]
102 | if (!explain_uint32_array_all_zero(data->reserved, SIZEOF(data->reserved)))
| ~~~~^~~~~~~~~~
| |
| const __u8 * {aka const unsigned char *}
In file included from libexplain/buffer/v4l2_bt_timings.c:21:
./libexplain/buffer/int32_t.h:96:51: note: expected ‘const uint32_t *’ {aka ‘const unsigned int *’} but argument is of type ‘const __u8 *’ {aka ‘const unsigned char *’}
96 | int explain_uint32_array_all_zero(const uint32_t *data, size_t data_size);
| ~~~~~~~~~~~~~~~~^~~~
libexplain/buffer/v4l2_bt_timings.c:105:45: error: passing argument 2 of ‘explain_buffer_uint32_array’ from incompatible pointer type [-Wincompatible-pointer-types]
105 | explain_buffer_uint32_array(sb, data->reserved, SIZEOF(data->reserved));
| ~~~~^~~~~~~~~~
| |
| const __u8 * {aka const unsigned char *}
./libexplain/buffer/int32_t.h:85:21: note: expected ‘const uint32_t *’ {aka ‘const unsigned int *’} but argument is of type ‘const __u8 *’ {aka ‘const unsigned char *’}
85 | const uint32_t *data, size_t data_size);
| ~~~~~~~~~~~~~~~~^~~~
libtool --mode=compile --tag=CC gcc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -Wextra -Wl,--as-needed -I. -c \
libexplain/buffer/v4l2_buf_type.c -o \
libexplain/buffer/v4l2_buf_type.lo
libtool --mode=compile --tag=CC gcc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -Wextra -Wl,--as-needed -I. -c \
libexplain/buffer/v4l2_buffer.c -o \
libexplain/buffer/v4l2_buffer.lo
libtool: compile: gcc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -Wextra -Wl,--as-needed -I. -c libexplain/buffer/v4l2_audioout.c -o libexplain/buffer/v4l2_audioout.o >/dev/null 2>&1
make[1]: *** [Makefile:13212: libexplain/buffer/v4l2_bt_timings.lo] Error 1
make[1]: *** Waiting for unfinished jobs....
libtool: compile: gcc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -Wextra -Wl,--as-needed -I. -c libexplain/buffer/v4l2_buf_flags.c -fPIC -DPIC -o libexplain/buffer/.libs/v4l2_buf_flags.o
libtool: compile: gcc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -Wextra -Wl,--as-needed -I. -c libexplain/buffer/v4l2_bt_timings_interlaced.c -o libexplain/buffer/v4l2_bt_timings_interlaced.o >/dev/null 2>&1
libtool: compile: gcc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -Wextra -Wl,--as-needed -I. -c libexplain/buffer/v4l2_bt_timings_polarities.c -o libexplain/buffer/v4l2_bt_timings_polarities.o >/dev/null 2>&1
libtool: compile: gcc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -Wextra -Wl,--as-needed -I. -c libexplain/buffer/time_t/parse.c -o libexplain/buffer/time_t/parse.o >/dev/null 2>&1
libtool: compile: gcc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -Wextra -Wl,--as-needed -I. -c libexplain/buffer/v4l2_buf_flags.c -o libexplain/buffer/v4l2_buf_flags.o >/dev/null 2>&1
libtool: compile: gcc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -Wextra -Wl,--as-needed -I. -c libexplain/buffer/v4l2_buffer.c -fPIC -DPIC -o libexplain/buffer/.libs/v4l2_buffer.o
libtool: compile: gcc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -Wextra -Wl,--as-needed -I. -c libexplain/buffer/v4l2_buf_type.c -fPIC -DPIC -o libexplain/buffer/.libs/v4l2_buf_type.o
libtool: compile: gcc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -Wextra -Wl,--as-needed -I. -c libexplain/buffer/v4l2_buf_type.c -o libexplain/buffer/v4l2_buf_type.o >/dev/null 2>&1
libtool: compile: gcc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -Wextra -Wl,--as-needed -I. -c libexplain/buffer/v4l2_buffer.c -o libexplain/buffer/v4l2_buffer.o >/dev/null 2>&1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j8 returned exit code 2
make: *** [debian/rules:9: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
Reply to: