[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/criterion_2.4.1-2_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
[...]
../include/criterion/alloc.h:39:1: note: ‘SIZE_MAX’ is defined in header ‘<cstdint>’; this is probably fixable by adding ‘#include <cstdint>’
38 | #include "internal/common.h"
+++ |+#include <cstdint>
39 |
../include/criterion/alloc.h: In function ‘T* criterion::new_arr(std::size_t)’:
../include/criterion/alloc.h:175:16: error: ‘SIZE_MAX’ was not declared in this scope [-Wtemplate-body]
175 | if (len > (SIZE_MAX - sizeof (size_t)) / sizeof (T)) {
| ^~~~~~~~
../include/criterion/alloc.h:175:16: note: ‘SIZE_MAX’ is defined in header ‘<cstdint>’; this is probably fixable by adding ‘#include <cstdint>’
[72/138] c++ -Isamples/report.cc.bin.p -Isamples -I../samples -Iinclude -I../include -fdiagnostics-color=always -D_GLIBCXX_ASSERTIONS=1 -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=c++11 -Wno-unused-parameter -Wno-unused-value -fvisibility=hidden -fexceptions -DCRITERION_BUILDING_DLL=1 -DPB_ENABLE_MALLOC=1 -DPB_NO_PACKED_STRUCTS=1 -D_GNU_SOURCE -g -O2 -ffile-prefix-map=/build/reproducible-path/criterion-2.4.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -MD -MQ samples/report.cc.bin.p/report.cc.o -MF samples/report.cc.bin.p/report.cc.o.d -o samples/report.cc.bin.p/report.cc.o -c ../samples/report.cc
FAILED: samples/report.cc.bin.p/report.cc.o
c++ -Isamples/report.cc.bin.p -Isamples -I../samples -Iinclude -I../include -fdiagnostics-color=always -D_GLIBCXX_ASSERTIONS=1 -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=c++11 -Wno-unused-parameter -Wno-unused-value -fvisibility=hidden -fexceptions -DCRITERION_BUILDING_DLL=1 -DPB_ENABLE_MALLOC=1 -DPB_NO_PACKED_STRUCTS=1 -D_GNU_SOURCE -g -O2 -ffile-prefix-map=/build/reproducible-path/criterion-2.4.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -MD -MQ samples/report.cc.bin.p/report.cc.o -MF samples/report.cc.bin.p/report.cc.o.d -o samples/report.cc.bin.p/report.cc.o -c ../samples/report.cc
In file included from ../include/criterion/types.h:31,
from ../include/criterion/criterion.h:31,
from ../samples/report.cc:2:
../include/criterion/alloc.h: In function ‘typename std::enable_if<std::is_fundamental<_Tp>::value>::type* criterion::new_arr(std::size_t)’:
../include/criterion/alloc.h:146:16: error: ‘SIZE_MAX’ was not declared in this scope [-Wtemplate-body]
146 | if (len > (SIZE_MAX - sizeof (size_t)) / sizeof (T)) {
| ^~~~~~~~
../include/criterion/alloc.h:39:1: note: ‘SIZE_MAX’ is defined in header ‘<cstdint>’; this is probably fixable by adding ‘#include <cstdint>’
38 | #include "internal/common.h"
+++ |+#include <cstdint>
39 |
../include/criterion/alloc.h: In function ‘T* criterion::new_arr(std::size_t)’:
../include/criterion/alloc.h:175:16: error: ‘SIZE_MAX’ was not declared in this scope [-Wtemplate-body]
175 | if (len > (SIZE_MAX - sizeof (size_t)) / sizeof (T)) {
| ^~~~~~~~
../include/criterion/alloc.h:175:16: note: ‘SIZE_MAX’ is defined in header ‘<cstdint>’; this is probably fixable by adding ‘#include <cstdint>’
[73/138] c++ -Isamples/redirect.cc.bin.p -Isamples -I../samples -Iinclude -I../include -fdiagnostics-color=always -D_GLIBCXX_ASSERTIONS=1 -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=c++11 -Wno-unused-parameter -Wno-unused-value -fvisibility=hidden -fexceptions -DCRITERION_BUILDING_DLL=1 -DPB_ENABLE_MALLOC=1 -DPB_NO_PACKED_STRUCTS=1 -D_GNU_SOURCE -g -O2 -ffile-prefix-map=/build/reproducible-path/criterion-2.4.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -MD -MQ samples/redirect.cc.bin.p/redirect.cc.o -MF samples/redirect.cc.bin.p/redirect.cc.o.d -o samples/redirect.cc.bin.p/redirect.cc.o -c ../samples/redirect.cc
FAILED: samples/redirect.cc.bin.p/redirect.cc.o
c++ -Isamples/redirect.cc.bin.p -Isamples -I../samples -Iinclude -I../include -fdiagnostics-color=always -D_GLIBCXX_ASSERTIONS=1 -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=c++11 -Wno-unused-parameter -Wno-unused-value -fvisibility=hidden -fexceptions -DCRITERION_BUILDING_DLL=1 -DPB_ENABLE_MALLOC=1 -DPB_NO_PACKED_STRUCTS=1 -D_GNU_SOURCE -g -O2 -ffile-prefix-map=/build/reproducible-path/criterion-2.4.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -MD -MQ samples/redirect.cc.bin.p/redirect.cc.o -MF samples/redirect.cc.bin.p/redirect.cc.o.d -o samples/redirect.cc.bin.p/redirect.cc.o -c ../samples/redirect.cc
In file included from ../include/criterion/types.h:31,
from ../include/criterion/criterion.h:31,
from ../samples/redirect.cc:1:
../include/criterion/alloc.h: In function ‘typename std::enable_if<std::is_fundamental<_Tp>::value>::type* criterion::new_arr(std::size_t)’:
../include/criterion/alloc.h:146:16: error: ‘SIZE_MAX’ was not declared in this scope [-Wtemplate-body]
146 | if (len > (SIZE_MAX - sizeof (size_t)) / sizeof (T)) {
| ^~~~~~~~
../include/criterion/alloc.h:39:1: note: ‘SIZE_MAX’ is defined in header ‘<cstdint>’; this is probably fixable by adding ‘#include <cstdint>’
38 | #include "internal/common.h"
+++ |+#include <cstdint>
39 |
../include/criterion/alloc.h: In function ‘T* criterion::new_arr(std::size_t)’:
../include/criterion/alloc.h:175:16: error: ‘SIZE_MAX’ was not declared in this scope [-Wtemplate-body]
175 | if (len > (SIZE_MAX - sizeof (size_t)) / sizeof (T)) {
| ^~~~~~~~
../include/criterion/alloc.h:175:16: note: ‘SIZE_MAX’ is defined in header ‘<cstdint>’; this is probably fixable by adding ‘#include <cstdint>’
[74/138] c++ -Isamples/asserts.cc.bin.p -Isamples -I../samples -Iinclude -I../include -fdiagnostics-color=always -D_GLIBCXX_ASSERTIONS=1 -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=c++11 -Wno-unused-parameter -Wno-unused-value -fvisibility=hidden -fexceptions -DCRITERION_BUILDING_DLL=1 -DPB_ENABLE_MALLOC=1 -DPB_NO_PACKED_STRUCTS=1 -D_GNU_SOURCE -g -O2 -ffile-prefix-map=/build/reproducible-path/criterion-2.4.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -MD -MQ samples/asserts.cc.bin.p/asserts.cc.o -MF samples/asserts.cc.bin.p/asserts.cc.o.d -o samples/asserts.cc.bin.p/asserts.cc.o -c ../samples/asserts.cc
FAILED: samples/asserts.cc.bin.p/asserts.cc.o
c++ -Isamples/asserts.cc.bin.p -Isamples -I../samples -Iinclude -I../include -fdiagnostics-color=always -D_GLIBCXX_ASSERTIONS=1 -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=c++11 -Wno-unused-parameter -Wno-unused-value -fvisibility=hidden -fexceptions -DCRITERION_BUILDING_DLL=1 -DPB_ENABLE_MALLOC=1 -DPB_NO_PACKED_STRUCTS=1 -D_GNU_SOURCE -g -O2 -ffile-prefix-map=/build/reproducible-path/criterion-2.4.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -MD -MQ samples/asserts.cc.bin.p/asserts.cc.o -MF samples/asserts.cc.bin.p/asserts.cc.o.d -o samples/asserts.cc.bin.p/asserts.cc.o -c ../samples/asserts.cc
In file included from ../include/criterion/types.h:31,
from ../include/criterion/criterion.h:31,
from ../samples/asserts.cc:1:
../include/criterion/alloc.h: In function ‘typename std::enable_if<std::is_fundamental<_Tp>::value>::type* criterion::new_arr(std::size_t)’:
../include/criterion/alloc.h:146:16: error: ‘SIZE_MAX’ was not declared in this scope [-Wtemplate-body]
146 | if (len > (SIZE_MAX - sizeof (size_t)) / sizeof (T)) {
| ^~~~~~~~
../include/criterion/alloc.h:39:1: note: ‘SIZE_MAX’ is defined in header ‘<cstdint>’; this is probably fixable by adding ‘#include <cstdint>’
38 | #include "internal/common.h"
+++ |+#include <cstdint>
39 |
../include/criterion/alloc.h: In function ‘T* criterion::new_arr(std::size_t)’:
../include/criterion/alloc.h:175:16: error: ‘SIZE_MAX’ was not declared in this scope [-Wtemplate-body]
175 | if (len > (SIZE_MAX - sizeof (size_t)) / sizeof (T)) {
| ^~~~~~~~
../include/criterion/alloc.h:175:16: note: ‘SIZE_MAX’ is defined in header ‘<cstdint>’; this is probably fixable by adding ‘#include <cstdint>’
ninja: build stopped: subcommand failed.
dh_auto_build: error: cd obj-x86_64-linux-gnu && LC_ALL=C.UTF-8 ninja -j8 -v returned exit code 1
make: *** [debian/rules:3: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2