#1098057 varnish-modules: ftbfs with GCC-15

#1098057#5
Date:
2025-02-17 17:59:06 UTC
From:
To:
[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/varnish-modules_0.25.0-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

[...]
**** v1    CLI TX|%XJEIFLH|)Xspa8P
**** dT    0.173
***  v1    CLI RX  106
**** v1    CLI RX|Message from VCC-compiler:
**** v1    CLI RX|NWRAP_ERROR[<unknown> (5308)] - nwrap_files_cache_reload: Unable to open '../debian/varnishtest_nss_wrapper_hosts' readonly -1:No such file or directory
**** v1    CLI RX|NWRAP_ERROR[<unknown> (5308)] - nwrap_files_getaddrinfo: error loading hosts file
**** v1    CLI RX|Message from C-compiler:
**** v1    CLI RX|vgc.c:2206:33: error: two or more data types in declaration specifiers
**** v1    CLI RX| 2206 |         VCL_BOOL                bool;
**** v1    CLI RX|      |                                 ^~~~
**** v1    CLI RX|vgc.c:2206:37: error: declaration does not declare anything [-Werror]
**** v1    CLI RX| 2206 |         VCL_BOOL                bool;
**** v1    CLI RX|      |                                     ^
**** v1    CLI RX|vgc.c:2236:33: error: two or more data types in declaration specifiers
**** v1    CLI RX| 2236 |         VCL_BOOL                bool;
**** v1    CLI RX|      |                                 ^~~~
**** v1    CLI RX|vgc.c:2236:37: error: declaration does not declare anything [-Werror]
**** v1    CLI RX|[3 lines truncated]
**** v1    CLI RX|Running C-compiler failed, exited with 1
**** v1    CLI RX|VCL compilation failed
**** dT    0.183
---- v1    FAIL VCL does not compile
*    top   RESETTING after ./tests/str/test08.vtc
**   s1    Waiting for server (3/-1)
**   v1    Wait
**** v1    CLI TX|panic.show
**** dT    0.214
***  v1    vsl|No VSL chunk found (child not started ?)
**** dT    0.228
***  v1    CLI RX  300
**** v1    CLI RX|Child has not panicked or panic has been cleared
***  v1    debug|Info: manager stopping child
***  v1    debug|Info: manager dies
**** dT    0.233
**** v1    STDOUT EOF
**   v1    WAIT4 pid=5266 status=0x0000 (user 0.055183 sys 0.016372)
*    top   TEST ./tests/str/test08.vtc FAILED
*    diag  0.0 NWRAP_ERROR[<unknown> (5261)] - nwrap_files_cache_reload: Unable to open '../debian/varnishtest_nss_wrapper_hosts' readonly -1:No such file or directory
*    diag  0.0 NWRAP_ERROR[<unknown> (5261)] - nwrap_files_getaddrinfo: error loading hosts file
*    diag  0.0 NWRAP_ERROR[<unknown> (5261)] - nwrap_files_cache_reload: Unable to open '../debian/varnishtest_nss_wrapper_hosts' readonly -1:No such file or directory
*    diag  0.0 NWRAP_ERROR[<unknown> (5261)] - nwrap_files_getaddrinfo: error loading hosts file
#    top  TEST ./tests/str/test08.vtc FAILED (0.234) exit=2
FAIL tests/str/test08.vtc (exit status: 2)

============================================================================
Testsuite summary for varnish-modules 0.25.0
============================================================================
# TOTAL: 59
# PASS:  47
# SKIP:  0
# XFAIL: 0
# FAIL:  12
# XPASS: 0
# ERROR: 0
============================================================================
See src/test-suite.log for debugging.
============================================================================
make[5]: *** [Makefile:1076: test-suite.log] Error 1
make[5]: Leaving directory '/build/reproducible-path/varnish-modules-0.25.0/src'
make[4]: *** [Makefile:1211: check-TESTS] Error 2
make[4]: Leaving directory '/build/reproducible-path/varnish-modules-0.25.0/src'
make[3]: *** [Makefile:1275: check-am] Error 2
make[3]: Leaving directory '/build/reproducible-path/varnish-modules-0.25.0/src'
make[2]: *** [Makefile:551: check-recursive] Error 1
make[2]: Leaving directory '/build/reproducible-path/varnish-modules-0.25.0'
dh_auto_test: error: make -j8 check "TESTSUITEFLAGS=-j8 --verbose" VERBOSE=1 returned exit code 2
make[1]: *** [debian/rules:30: override_dh_auto_test] Error 25
make[1]: Leaving directory '/build/reproducible-path/varnish-modules-0.25.0'
make: *** [debian/rules:22: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2