Source: prometheus-cpp
Version: 1.0.2-2
Severity: serious
User: [email protected]
Usertags: cmake-4
Tags: ftbfs, forky, sid
Dear maintainer,
During a test rebuild for CMake 4, prometheus-cpp failed to rebuild.
Log Summary:
-------------------------------------------------------------------------------
[...]
/usr/src/googletest/googletest/include/gtest/internal/gtest-port.h:273:2:
error: #error C++ versions less than C++17 are not supported.
273 | #error C++ versions less than C++17 are not supported.
| ^~~~~
In file included from /usr/src/googletest/googletest/include/gtest/gtest.h:67,
from
/usr/src/googletest/googlemock/include/gmock/internal/gmock-internal-utils.h:51:
/usr/src/googletest/googletest/include/gtest/gtest-param-test.h:483:56: error:
missing template arguments before ‘(’ token
483 | typename StdFunction =
decltype(std::function(std::declval<Func>()))>
| ^
/usr/src/googletest/googletest/include/gtest/gtest-param-test.h:493:56: error:
missing template arguments before ‘(’ token
493 | typename StdFunction =
decltype(std::function(std::declval<Func>()))>
| ^
[22/56] /usr/bin/c++ -isystem /usr/src/googletest/googletest/include -isystem
/usr/src/googletest/googlemock/include -isystem /usr/src/googletest/googletest
-isystem /usr/src/googletest/googlemock -g -O2
-ffile-prefix-map=/build/reproducible-path/prometheus-cpp-1.0.2=.
-fstack-protector-strong -fstack-clash-protection -Wformat
-Werror=format-security -mbranch-protection=standard -Wdate-time
-D_FORTIFY_SOURCE=2 -DNDEBUG -std=c++14 -fvisibility=hidden
-fvisibility-inlines-hidden -MD -MT
CMakeFiles/gmock_main.dir/usr/src/googletest/googletest/src/gtest-all.cc.o -MF
CMakeFiles/gmock_main.dir/usr/src/googletest/googletest/src/gtest-all.cc.o.d -o
CMakeFiles/gmock_main.dir/usr/src/googletest/googletest/src/gtest-all.cc.o -c
/usr/src/googletest/googletest/src/gtest-all.cc
FAILED:
CMakeFiles/gmock_main.dir/usr/src/googletest/googletest/src/gtest-all.cc.o
/usr/bin/c++ -isystem /usr/src/googletest/googletest/include -isystem
/usr/src/googletest/googlemock/include -isystem /usr/src/googletest/googletest
-isystem /usr/src/googletest/googlemock -g -O2
-ffile-prefix-map=/build/reproducible-path/prometheus-cpp-1.0.2=.
-fstack-protector-strong -fstack-clash-protection -Wformat
-Werror=format-security -mbranch-protection=standard -Wdate-time
-D_FORTIFY_SOURCE=2 -DNDEBUG -std=c++14 -fvisibility=hidden
-fvisibility-inlines-hidden -MD -MT
CMakeFiles/gmock_main.dir/usr/src/googletest/googletest/src/gtest-all.cc.o -MF
CMakeFiles/gmock_main.dir/usr/src/googletest/googletest/src/gtest-all.cc.o.d -o
CMakeFiles/gmock_main.dir/usr/src/googletest/googletest/src/gtest-all.cc.o -c
/usr/src/googletest/googletest/src/gtest-all.cc
In file included from
/usr/src/googletest/googletest/include/gtest/gtest-message.h:57,
from
/usr/src/googletest/googletest/include/gtest/gtest-assertion-result.h:46,
from /usr/src/googletest/googletest/include/gtest/gtest.h:63,
from /usr/src/googletest/googletest/src/gtest-all.cc:38:
/usr/src/googletest/googletest/include/gtest/internal/gtest-port.h:273:2:
error: #error C++ versions less than C++17 are not supported.
273 | #error C++ versions less than C++17 are not supported.
| ^~~~~
In file included from /usr/src/googletest/googletest/include/gtest/gtest.h:67:
/usr/src/googletest/googletest/include/gtest/gtest-param-test.h:483:56: error:
missing template arguments before ‘(’ token
483 | typename StdFunction =
decltype(std::function(std::declval<Func>()))>
| ^
/usr/src/googletest/googletest/include/gtest/gtest-param-test.h:493:56: error:
missing template arguments before ‘(’ token
493 | typename StdFunction =
decltype(std::function(std::declval<Func>()))>
| ^
[23/56] /usr/bin/c++
-I/build/reproducible-path/prometheus-cpp-1.0.2/core/include
-I/build/reproducible-path/prometheus-cpp-1.0.2/obj-aarch64-linux-gnu/core/include
-isystem /usr/src/googletest/googletest/include -isystem
/usr/src/googletest/googlemock/include -g -O2
-ffile-prefix-map=/build/reproducible-path/prometheus-cpp-1.0.2=.
-fstack-protector-strong -fstack-clash-protection -Wformat
-Werror=format-security -mbranch-protection=standard -Wdate-time
-D_FORTIFY_SOURCE=2 -DNDEBUG -std=c++14 -fvisibility=hidden
-fvisibility-inlines-hidden -MD -MT
core/tests/CMakeFiles/prometheus_core_test.dir/check_names_test.cc.o -MF
core/tests/CMakeFiles/prometheus_core_test.dir/check_names_test.cc.o.d -o
core/tests/CMakeFiles/prometheus_core_test.dir/check_names_test.cc.o -c
/build/reproducible-path/prometheus-cpp-1.0.2/core/tests/check_names_test.cc
FAILED: core/tests/CMakeFiles/prometheus_core_test.dir/check_names_test.cc.o
/usr/bin/c++ -I/build/reproducible-path/prometheus-cpp-1.0.2/core/include
-I/build/reproducible-path/prometheus-cpp-1.0.2/obj-aarch64-linux-gnu/core/include
-isystem /usr/src/googletest/googletest/include -isystem
/usr/src/googletest/googlemock/include -g -O2
-ffile-prefix-map=/build/reproducible-path/prometheus-cpp-1.0.2=.
-fstack-protector-strong -fstack-clash-protection -Wformat
-Werror=format-security -mbranch-protection=standard -Wdate-time
-D_FORTIFY_SOURCE=2 -DNDEBUG -std=c++14 -fvisibility=hidden
-fvisibility-inlines-hidden -MD -MT
core/tests/CMakeFiles/prometheus_core_test.dir/check_names_test.cc.o -MF
core/tests/CMakeFiles/prometheus_core_test.dir/check_names_test.cc.o.d -o
core/tests/CMakeFiles/prometheus_core_test.dir/check_names_test.cc.o -c
/build/reproducible-path/prometheus-cpp-1.0.2/core/tests/check_names_test.cc
In file included from
/usr/src/googletest/googletest/include/gtest/gtest-message.h:57,
from
/usr/src/googletest/googletest/include/gtest/gtest-assertion-result.h:46,
from /usr/src/googletest/googletest/include/gtest/gtest.h:63,
from
/build/reproducible-path/prometheus-cpp-1.0.2/core/tests/check_names_test.cc:3:
/usr/src/googletest/googletest/include/gtest/internal/gtest-port.h:273:2:
error: #error C++ versions less than C++17 are not supported.
273 | #error C++ versions less than C++17 are not supported.
| ^~~~~
In file included from /usr/src/googletest/googletest/include/gtest/gtest.h:67:
/usr/src/googletest/googletest/include/gtest/gtest-param-test.h:483:56: error:
missing template arguments before ‘(’ token
483 | typename StdFunction =
decltype(std::function(std::declval<Func>()))>
| ^
/usr/src/googletest/googletest/include/gtest/gtest-param-test.h:493:56: error:
missing template arguments before ‘(’ token
493 | typename StdFunction =
decltype(std::function(std::declval<Func>()))>
| ^
[24/56] /usr/bin/c++ -DPROMETHEUS_CPP_CORE_EXPORTS
-I/build/reproducible-path/prometheus-cpp-1.0.2/core/include
-I/build/reproducible-path/prometheus-cpp-1.0.2/obj-aarch64-linux-gnu/core/include
-g -O2 -ffile-prefix-map=/build/reproducible-path/prometheus-cpp-1.0.2=.
-fstack-protector-strong -fstack-clash-protection -Wformat
-Werror=format-security -mbranch-protection=standard -Wdate-time
-D_FORTIFY_SOURCE=2 -DNDEBUG -std=c++11 -fPIC -fvisibility=hidden
-fvisibility-inlines-hidden -MD -MT core/CMakeFiles/core.dir/src/family.cc.o
-MF core/CMakeFiles/core.dir/src/family.cc.o.d -o
core/CMakeFiles/core.dir/src/family.cc.o -c
/build/reproducible-path/prometheus-cpp-1.0.2/core/src/family.cc
[25/56] /usr/bin/c++ -DPROMETHEUS_CPP_PUSH_EXPORTS
-I/build/reproducible-path/prometheus-cpp-1.0.2/push/include
-I/build/reproducible-path/prometheus-cpp-1.0.2/obj-aarch64-linux-gnu/push/include
-I/build/reproducible-path/prometheus-cpp-1.0.2/core/include
-I/build/reproducible-path/prometheus-cpp-1.0.2/obj-aarch64-linux-gnu/core/include
-g -O2 -ffile-prefix-map=/build/reproducible-path/prometheus-cpp-1.0.2=.
-fstack-protector-strong -fstack-clash-protection -Wformat
-Werror=format-security -mbranch-protection=standard -Wdate-time
-D_FORTIFY_SOURCE=2 -DNDEBUG -std=c++11 -fPIC -fvisibility=hidden
-fvisibility-inlines-hidden -MD -MT push/CMakeFiles/push.dir/src/gateway.cc.o
-MF push/CMakeFiles/push.dir/src/gateway.cc.o.d -o
push/CMakeFiles/push.dir/src/gateway.cc.o -c
/build/reproducible-path/prometheus-cpp-1.0.2/push/src/gateway.cc
ninja: build stopped: subcommand failed.
dh_auto_build: error: cd obj-aarch64-linux-gnu && LC_ALL=C.UTF-8 ninja -j8 -v
returned exit code 1
make[1]: *** [debian/rules:17: override_dh_auto_build] Error 25
make[1]: Leaving directory '/build/reproducible-path/prometheus-cpp-1.0.2'
make: *** [debian/rules:9: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------
Build finished at 2025-08-30T14:52:15Z
-------------------------------------------------------------------------------
The above is just how the build ends and not necessarily the most relevant part.
If required, the full build log is available here (for the next 30 days):
https://debusine.debian.net/artifact/2407980/
The most likely cause of build failures is the removed backwards compatibility
for
CMake versions earlier than 3.5. You can find additional information in my
debian-devel announcement:
https://lists.debian.org/debian-devel/2025/04/msg00310.html
About the archive rebuild: The build was made on debusine.debian.net,
using sbuild.
You can find the build task here:
https://debusine.debian.net/work-request/154553/
If this is really a bug in one of the build-depends, please use
reassign and affects, so that this is still visible in the BTS web
page for this package.
Thanks,
Timo