Hi,
bpfcc fails to build in a test rebuild on at least amd64 and arm64 with
gcc-16/g++-16, but builds properly with gcc-15/g++-15. The severity of this
report will be raised before the forky release.
The full build log can be found at:
https://people.debian.org/~ema/gcc-16-rebuilds/output-1/bpfcc_arm64.build.xz
The last lines of the build log are at the end of this report.
To build with GCC 16, either set CC=gcc-16 CXX=g++-16 explicitly,
or install the gcc, g++, gfortran, ... packages from experimental.
apt-get -t=experimental install g++
Common build failures include unused (but set) variables, array subscripts
partly outside array bounds, and new/dropped symbols in Debian symbols files.
For other C/C++ related build failures see the porting guide at
http://gcc.gnu.org/gcc-16/porting_to.html
Please only close this issue after double-checking that the package can be
built correctly with GCC 16.
Please do not reassign this bug to another package. If a fix in another package
is required, then file a bug for the other package (or clone), and mark this
bug as blocked by the bug in the other package.
[...]
llvm-strip -g /build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output/tcprtt.bpf.o
/usr/sbin/bpftool gen skeleton /build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output/tcprtt.bpf.o > /build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output/tcprtt.skel.h
cc -g -O2 -Wall -Wmissing-field-initializers -Werror -Werror=undef -I/build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output -I/usr/include -I/usr/include/aarch64-linux-gnu -c tcprtt.c \
-o /build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output/tcprtt.o
cc -g -O2 -Wall -Wmissing-field-initializers -Werror -Werror=undef /build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output/tcprtt.o /build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output/trace_helpers.o /build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output/syscall_helpers.o /build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output/errno_helpers.o /build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output/map_helpers.o /build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output/uprobe_helpers.o /build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output/btf_helpers.o /build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output/compat.o /usr/lib/aarch64-linux-gnu/libbpf.a -Wl,-z,relro -lelf -lz -o tcprtt
clang -g -O2 -Wall -Werror=undef -target bpf -D__TARGET_ARCH_arm64 \
-Iarm64/ -I/build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output -I/usr/include -I/usr/include/aarch64-linux-gnu -c tcpstates.bpf.c -o /build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output/tcpstates.bpf.o && \
llvm-strip -g /build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output/tcpstates.bpf.o
/usr/sbin/bpftool gen skeleton /build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output/tcpstates.bpf.o > /build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output/tcpstates.skel.h
cc -g -O2 -Wall -Wmissing-field-initializers -Werror -Werror=undef -I/build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output -I/usr/include -I/usr/include/aarch64-linux-gnu -c tcpstates.c \
-o /build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output/tcpstates.o
cc -g -O2 -Wall -Wmissing-field-initializers -Werror -Werror=undef /build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output/tcpstates.o /build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output/trace_helpers.o /build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output/syscall_helpers.o /build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output/errno_helpers.o /build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output/map_helpers.o /build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output/uprobe_helpers.o /build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output/btf_helpers.o /build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output/compat.o /usr/lib/aarch64-linux-gnu/libbpf.a -Wl,-z,relro -lelf -lz -o tcpstates
clang -g -O2 -Wall -Werror=undef -target bpf -D__TARGET_ARCH_arm64 \
-Iarm64/ -I/build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output -I/usr/include -I/usr/include/aarch64-linux-gnu -c tcpsynbl.bpf.c -o /build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output/tcpsynbl.bpf.o && \
llvm-strip -g /build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output/tcpsynbl.bpf.o
/usr/sbin/bpftool gen skeleton /build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output/tcpsynbl.bpf.o > /build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output/tcpsynbl.skel.h
cc -g -O2 -Wall -Wmissing-field-initializers -Werror -Werror=undef -I/build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output -I/usr/include -I/usr/include/aarch64-linux-gnu -c tcpsynbl.c \
-o /build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output/tcpsynbl.o
cc -g -O2 -Wall -Wmissing-field-initializers -Werror -Werror=undef /build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output/tcpsynbl.o /build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output/trace_helpers.o /build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output/syscall_helpers.o /build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output/errno_helpers.o /build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output/map_helpers.o /build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output/uprobe_helpers.o /build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output/btf_helpers.o /build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output/compat.o /usr/lib/aarch64-linux-gnu/libbpf.a -Wl,-z,relro -lelf -lz -o tcpsynbl
clang -g -O2 -Wall -Werror=undef -target bpf -D__TARGET_ARCH_arm64 \
-Iarm64/ -I/build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output -I/usr/include -I/usr/include/aarch64-linux-gnu -c tcptop.bpf.c -o /build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output/tcptop.bpf.o && \
llvm-strip -g /build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output/tcptop.bpf.o
/usr/sbin/bpftool gen skeleton /build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output/tcptop.bpf.o > /build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output/tcptop.skel.h
cc -g -O2 -Wall -Wmissing-field-initializers -Werror -Werror=undef -I/build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output -I/usr/include -I/usr/include/aarch64-linux-gnu -c tcptop.c \
-o /build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output/tcptop.o
cc -g -O2 -Wall -Wmissing-field-initializers -Werror -Werror=undef /build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output/tcptop.o /build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output/trace_helpers.o /build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output/syscall_helpers.o /build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output/errno_helpers.o /build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output/map_helpers.o /build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output/uprobe_helpers.o /build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output/btf_helpers.o /build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output/compat.o /usr/lib/aarch64-linux-gnu/libbpf.a -Wl,-z,relro -lelf -lz -o tcptop
clang -g -O2 -Wall -Werror=undef -target bpf -D__TARGET_ARCH_arm64 \
-Iarm64/ -I/build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output -I/usr/include -I/usr/include/aarch64-linux-gnu -c vfsstat.bpf.c -o /build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output/vfsstat.bpf.o && \
llvm-strip -g /build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output/vfsstat.bpf.o
/usr/sbin/bpftool gen skeleton /build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output/vfsstat.bpf.o > /build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output/vfsstat.skel.h
cc -g -O2 -Wall -Wmissing-field-initializers -Werror -Werror=undef -I/build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output -I/usr/include -I/usr/include/aarch64-linux-gnu -c vfsstat.c \
-o /build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output/vfsstat.o
cc -g -O2 -Wall -Wmissing-field-initializers -Werror -Werror=undef /build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output/vfsstat.o /build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output/trace_helpers.o /build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output/syscall_helpers.o /build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output/errno_helpers.o /build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output/map_helpers.o /build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output/uprobe_helpers.o /build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output/btf_helpers.o /build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output/compat.o /usr/lib/aarch64-linux-gnu/libbpf.a -Wl,-z,relro -lelf -lz -o vfsstat
clang -g -O2 -Wall -Werror=undef -target bpf -D__TARGET_ARCH_arm64 \
-Iarm64/ -I/build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output -I/usr/include -I/usr/include/aarch64-linux-gnu -c wakeuptime.bpf.c -o /build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output/wakeuptime.bpf.o && \
llvm-strip -g /build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output/wakeuptime.bpf.o
/usr/sbin/bpftool gen skeleton /build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output/wakeuptime.bpf.o > /build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output/wakeuptime.skel.h
cc -g -O2 -Wall -Wmissing-field-initializers -Werror -Werror=undef -I/build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output -I/usr/include -I/usr/include/aarch64-linux-gnu -c wakeuptime.c \
-o /build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output/wakeuptime.o
cc -g -O2 -Wall -Wmissing-field-initializers -Werror -Werror=undef /build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output/wakeuptime.o /build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output/trace_helpers.o /build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output/syscall_helpers.o /build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output/errno_helpers.o /build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output/map_helpers.o /build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output/uprobe_helpers.o /build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output/btf_helpers.o /build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output/compat.o /usr/lib/aarch64-linux-gnu/libbpf.a -Wl,-z,relro -lelf -lz -o wakeuptime
clang -g -O2 -Wall -Werror=undef -target bpf -D__TARGET_ARCH_arm64 \
-Iarm64/ -I/build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output -I/usr/include -I/usr/include/aarch64-linux-gnu -c futexctn.bpf.c -o /build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output/futexctn.bpf.o && \
llvm-strip -g /build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output/futexctn.bpf.o
/usr/sbin/bpftool gen skeleton /build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output/futexctn.bpf.o > /build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output/futexctn.skel.h
cc -g -O2 -Wall -Wmissing-field-initializers -Werror -Werror=undef -I/build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output -I/usr/include -I/usr/include/aarch64-linux-gnu -c futexctn.c \
-o /build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output/futexctn.o
cc -g -O2 -Wall -Wmissing-field-initializers -Werror -Werror=undef /build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output/futexctn.o /build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output/trace_helpers.o /build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output/syscall_helpers.o /build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output/errno_helpers.o /build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output/map_helpers.o /build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output/uprobe_helpers.o /build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output/btf_helpers.o /build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output/compat.o /usr/lib/aarch64-linux-gnu/libbpf.a -Wl,-z,relro -lelf -lz -o futexctn
clang -g -O2 -Wall -Werror=undef -target bpf -D__TARGET_ARCH_arm64 \
-Iarm64/ -I/build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output -I/usr/include -I/usr/include/aarch64-linux-gnu -c memleak.bpf.c -o /build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output/memleak.bpf.o && \
llvm-strip -g /build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output/memleak.bpf.o
/usr/sbin/bpftool gen skeleton /build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output/memleak.bpf.o > /build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output/memleak.skel.h
cc -g -O2 -Wall -Wmissing-field-initializers -Werror -Werror=undef -I/build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output -I/usr/include -I/usr/include/aarch64-linux-gnu -c memleak.c \
-o /build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output/memleak.o
cc -g -O2 -Wall -Wmissing-field-initializers -Werror -Werror=undef /build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output/memleak.o /build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output/trace_helpers.o /build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output/syscall_helpers.o /build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output/errno_helpers.o /build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output/map_helpers.o /build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output/uprobe_helpers.o /build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output/btf_helpers.o /build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output/compat.o /usr/lib/aarch64-linux-gnu/libbpf.a -Wl,-z,relro -lelf -lz -o memleak
clang -g -O2 -Wall -Werror=undef -target bpf -D__TARGET_ARCH_arm64 \
-Iarm64/ -I/build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output -I/usr/include -I/usr/include/aarch64-linux-gnu -c opensnoop.bpf.c -o /build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output/opensnoop.bpf.o && \
llvm-strip -g /build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output/opensnoop.bpf.o
/usr/sbin/bpftool gen skeleton /build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output/opensnoop.bpf.o > /build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output/opensnoop.skel.h
cc -g -O2 -Wall -Wmissing-field-initializers -Werror -Werror=undef -I/build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output -I/usr/include -I/usr/include/aarch64-linux-gnu -c opensnoop.c \
-o /build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output/opensnoop.o
opensnoop.c: In function ‘handle_event’:
opensnoop.c:215:13: error: variable ‘sps_cnt’ set but not used [-Werror=unused-but-set-variable=]
215 | int sps_cnt;
| ^~~~~~~
cc1: all warnings being treated as errors
make[2]: *** [Makefile:191: /build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools/.output/opensnoop.o] Error 1
make[2]: Leaving directory '/build/reproducible-path/bpfcc-0.35.0+ds/libbpf-tools'
make[1]: *** [debian/rules:44: override_dh_auto_install] Error 2
make[1]: Leaving directory '/build/reproducible-path/bpfcc-0.35.0+ds'
make: *** [debian/rules:24: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2