Bug#1096741: gnunet: ftbfs with GCC-15
Package: src:gnunet
Version: 0.20.0-7
Severity: important
Tags: sid forky
User: debian-gcc@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/gnunet_0.20.0-7_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
[...]
518 | op (async_context, struct GNUNET_TESTING_AsyncContext) \
| ^~
../../src/include/gnunet_testing_netjail_lib.h:523:1: note: in expansion of macro 'GNUNET_TESTING_SIMPLE_NETJAIL_TRAITS'
523 | GNUNET_TESTING_SIMPLE_NETJAIL_TRAITS (GNUNET_TESTING_MAKE_DECL_SIMPLE_TRAIT)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/bin/bash ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src/include -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/gnunet-0.20.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -fno-strict-aliasing -Wno-address-of-packed-member -c -o testing_api_cmd_netjail_start_cmds_helper.lo testing_api_cmd_netjail_start_cmds_helper.c
/bin/bash ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src/include -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/gnunet-0.20.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -fno-strict-aliasing -Wno-address-of-packed-member -c -o testing_api_cmd_netjail_stop_cmds_helper.lo testing_api_cmd_netjail_stop_cmds_helper.c
/bin/bash ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src/include -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/gnunet-0.20.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -fno-strict-aliasing -Wno-address-of-packed-member -c -o testing_api_cmd_netjail_stop.lo testing_api_cmd_netjail_stop.c
/bin/bash ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src/include -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/gnunet-0.20.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -fno-strict-aliasing -Wno-address-of-packed-member -c -o testing.lo testing.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src/include -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/gnunet-0.20.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -fno-strict-aliasing -Wno-address-of-packed-member -c testing_api_cmd_netjail_start_cmds_helper.c -fPIC -DPIC -o .libs/testing_api_cmd_netjail_start_cmds_helper.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src/include -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/gnunet-0.20.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -fno-strict-aliasing -Wno-address-of-packed-member -c testing_api_cmd_netjail_stop_cmds_helper.c -fPIC -DPIC -o .libs/testing_api_cmd_netjail_stop_cmds_helper.o
/bin/bash ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src/include -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/gnunet-0.20.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -fno-strict-aliasing -Wno-address-of-packed-member -c -o testing_api_cmd_system_create.lo testing_api_cmd_system_create.c
/bin/bash ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src/include -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/gnunet-0.20.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -fno-strict-aliasing -Wno-address-of-packed-member -c -o testing_api_cmd_system_destroy.lo testing_api_cmd_system_destroy.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src/include -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/gnunet-0.20.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -fno-strict-aliasing -Wno-address-of-packed-member -c testing_api_cmd_netjail_stop.c -fPIC -DPIC -o .libs/testing_api_cmd_netjail_stop.o
/bin/bash ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src/include -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/gnunet-0.20.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -fno-strict-aliasing -Wno-address-of-packed-member -c -o testing_api_cmd_batch.lo testing_api_cmd_batch.c
/bin/bash ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src/include -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/gnunet-0.20.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -fno-strict-aliasing -Wno-address-of-packed-member -c -o testing_api_loop.lo testing_api_loop.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src/include -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/gnunet-0.20.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -fno-strict-aliasing -Wno-address-of-packed-member -c testing.c -fPIC -DPIC -o .libs/testing.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src/include -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/gnunet-0.20.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -fno-strict-aliasing -Wno-address-of-packed-member -c testing_api_cmd_system_create.c -fPIC -DPIC -o .libs/testing_api_cmd_system_create.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src/include -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/gnunet-0.20.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -fno-strict-aliasing -Wno-address-of-packed-member -c testing_api_cmd_system_destroy.c -fPIC -DPIC -o .libs/testing_api_cmd_system_destroy.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src/include -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/gnunet-0.20.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -fno-strict-aliasing -Wno-address-of-packed-member -c testing_api_cmd_batch.c -fPIC -DPIC -o .libs/testing_api_cmd_batch.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src/include -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/gnunet-0.20.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -fno-strict-aliasing -Wno-address-of-packed-member -c testing_api_loop.c -fPIC -DPIC -o .libs/testing_api_loop.o
/bin/bash ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src/include -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/gnunet-0.20.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -fno-strict-aliasing -Wno-address-of-packed-member -c -o testing_api_traits.lo testing_api_traits.c
gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src/include -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/gnunet-0.20.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -fno-strict-aliasing -Wno-address-of-packed-member -c -o gnunet-cmds-helper.o gnunet-cmds-helper.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src/include -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/gnunet-0.20.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -fno-strict-aliasing -Wno-address-of-packed-member -c testing_api_traits.c -fPIC -DPIC -o .libs/testing_api_traits.o
gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src/include -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/gnunet-0.20.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -fno-strict-aliasing -Wno-address-of-packed-member -c -o list-keys.o list-keys.c
gnunet-cmds-helper.c: In function ‘finished_cb’:
gnunet-cmds-helper.c:342:33: error: passing argument 2 of ‘GNUNET_SCHEDULER_add_delayed’ from incompatible pointer type [-Wincompatible-pointer-types]
342 | &delay_shutdown_cb,
| ^~~~~~~~~~~~~~~~~~
| |
| void (*)(void)
In file included from ../../src/include/gnunet_mq_lib.h:48,
from ../../src/include/gnunet_client_lib.h:58,
from ../../src/include/gnunet_util_lib.h:74,
from gnunet-cmds-helper.c:40:
../../src/include/gnunet_scheduler_lib.h:595:61: note: expected ‘GNUNET_SCHEDULER_TaskCallback’ {aka ‘void (*)(void *)’} but argument is of type ‘void (*)(void)’
595 | GNUNET_SCHEDULER_TaskCallback task,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
gnunet-cmds-helper.c:298:1: note: ‘delay_shutdown_cb’ declared here
298 | delay_shutdown_cb ()
| ^~~~~~~~~~~~~~~~~
../../src/include/gnunet_scheduler_lib.h:324:3: note: ‘GNUNET_SCHEDULER_TaskCallback’ declared here
324 | (*GNUNET_SCHEDULER_TaskCallback) (void *cls);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gnunet-cmds-helper.c: In function ‘tokenizer_cb’:
gnunet-cmds-helper.c:458:41: error: passing argument 9 of ‘plugin->api->start_testcase’ from incompatible pointer type [-Wincompatible-pointer-types]
458 | &finished_cb);
| ^~~~~~~~~~~~
| |
| void (*)(enum GNUNET_GenericReturnValue)
gnunet-cmds-helper.c:458:41: note: expected ‘GNUNET_TESTING_cmd_helper_finish_cb’ {aka ‘void (*)(void)’} but argument is of type ‘void (*)(enum GNUNET_GenericReturnValue)’
gnunet-cmds-helper.c:322:1: note: ‘finished_cb’ declared here
322 | finished_cb (enum GNUNET_GenericReturnValue rv)
| ^~~~~~~~~~~
In file included from gnunet-cmds-helper.c:43:
../../src/include/gnunet_testing_plugin.h:57:3: note: ‘GNUNET_TESTING_cmd_helper_finish_cb’ declared here
57 | (*GNUNET_TESTING_cmd_helper_finish_cb) ();
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[4]: *** [Makefile:1081: gnunet-cmds-helper.o] Error 1
make[4]: *** Waiting for unfinished jobs....
make[4]: Leaving directory '/build/reproducible-path/gnunet-0.20.0/src/testing'
make[3]: *** [Makefile:549: all-recursive] Error 1
make[3]: Leaving directory '/build/reproducible-path/gnunet-0.20.0/src'
make[2]: *** [Makefile:601: all-recursive] Error 1
make[2]: Leaving directory '/build/reproducible-path/gnunet-0.20.0'
make[1]: *** [Makefile:512: all] Error 2
make[1]: Leaving directory '/build/reproducible-path/gnunet-0.20.0'
dh_auto_build: error: make -j8 returned exit code 2
make: *** [debian/rules:8: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
Reply to: