Source: snappy
Version: 1.2.2-1
Severity: serious
User: [email protected]
Usertags: cmake-4
Tags: ftbfs, forky, sid

Dear maintainer,

During a test rebuild for CMake 4, snappy failed to rebuild.

Log Summary:
-------------------------------------------------------------------------------
[...]
[ 68%] Linking CXX shared library libsnappy_test_support.so
/usr/bin/cmake -E cmake_link_script CMakeFiles/snappy_test_support.dir/link.txt 
--verbose=1
/usr/bin/c++ -fPIC -g -O2 
-ffile-prefix-map=/build/reproducible-path/snappy-1.2.2=. 
-fstack-protector-strong -fstack-clash-protection -Wformat 
-Werror=format-security -mbranch-protection=standard -Wdate-time 
-D_FORTIFY_SOURCE=2 -Wall -Wextra -Wno-sign-compare -fno-exceptions -O2 -g 
-DNDEBUG -Wl,--dependency-file=CMakeFiles/snappy_test_support.dir/link.d 
-shared -Wl,-z,relro -Wl,-soname,libsnappy_test_support.so -o 
libsnappy_test_support.so "CMakeFiles/snappy_test_support.dir/snappy-test.cc.o" 
CMakeFiles/snappy_test_support.dir/snappy_test_data.cc.o  
-Wl,-rpath,/build/reproducible-path/snappy-1.2.2/build libsnappy.so.1.2.2
make[3]: Leaving directory '/build/reproducible-path/snappy-1.2.2/build'
[ 68%] Built target snappy_test_support
make  -f CMakeFiles/snappy_unittest.dir/build.make 
CMakeFiles/snappy_unittest.dir/depend
make  -f CMakeFiles/snappy_test_tool.dir/build.make 
CMakeFiles/snappy_test_tool.dir/depend
make  -f CMakeFiles/snappy_benchmark.dir/build.make 
CMakeFiles/snappy_benchmark.dir/depend
make[3]: Entering directory '/build/reproducible-path/snappy-1.2.2/build'
cd /build/reproducible-path/snappy-1.2.2/build && /usr/bin/cmake -E 
cmake_depends "Unix Makefiles" /build/reproducible-path/snappy-1.2.2 
/build/reproducible-path/snappy-1.2.2 
/build/reproducible-path/snappy-1.2.2/build 
/build/reproducible-path/snappy-1.2.2/build 
/build/reproducible-path/snappy-1.2.2/build/CMakeFiles/snappy_unittest.dir/DependInfo.cmake
 "--color="
make[3]: Entering directory '/build/reproducible-path/snappy-1.2.2/build'
cd /build/reproducible-path/snappy-1.2.2/build && /usr/bin/cmake -E 
cmake_depends "Unix Makefiles" /build/reproducible-path/snappy-1.2.2 
/build/reproducible-path/snappy-1.2.2 
/build/reproducible-path/snappy-1.2.2/build 
/build/reproducible-path/snappy-1.2.2/build 
/build/reproducible-path/snappy-1.2.2/build/CMakeFiles/snappy_test_tool.dir/DependInfo.cmake
 "--color="
make[3]: Entering directory '/build/reproducible-path/snappy-1.2.2/build'
cd /build/reproducible-path/snappy-1.2.2/build && /usr/bin/cmake -E 
cmake_depends "Unix Makefiles" /build/reproducible-path/snappy-1.2.2 
/build/reproducible-path/snappy-1.2.2 
/build/reproducible-path/snappy-1.2.2/build 
/build/reproducible-path/snappy-1.2.2/build 
/build/reproducible-path/snappy-1.2.2/build/CMakeFiles/snappy_benchmark.dir/DependInfo.cmake
 "--color="
make[3]: Leaving directory '/build/reproducible-path/snappy-1.2.2/build'
make[3]: Leaving directory '/build/reproducible-path/snappy-1.2.2/build'
make[3]: Leaving directory '/build/reproducible-path/snappy-1.2.2/build'
make  -f CMakeFiles/snappy_unittest.dir/build.make 
CMakeFiles/snappy_unittest.dir/build
make  -f CMakeFiles/snappy_test_tool.dir/build.make 
CMakeFiles/snappy_test_tool.dir/build
make  -f CMakeFiles/snappy_benchmark.dir/build.make 
CMakeFiles/snappy_benchmark.dir/build
make[3]: Entering directory '/build/reproducible-path/snappy-1.2.2/build'
make[3]: Entering directory '/build/reproducible-path/snappy-1.2.2/build'
make[3]: Entering directory '/build/reproducible-path/snappy-1.2.2/build'
[ 78%] Building CXX object CMakeFiles/snappy_test_tool.dir/snappy_test_tool.cc.o
[ 84%] Building CXX object CMakeFiles/snappy_benchmark.dir/snappy_benchmark.cc.o
[ 84%] Building CXX object CMakeFiles/snappy_unittest.dir/snappy_unittest.cc.o
/usr/bin/c++ -DHAVE_CONFIG_H -I/build/reproducible-path/snappy-1.2.2 
-I/build/reproducible-path/snappy-1.2.2/build -g -O2 
-ffile-prefix-map=/build/reproducible-path/snappy-1.2.2=. 
-fstack-protector-strong -fstack-clash-protection -Wformat 
-Werror=format-security -mbranch-protection=standard -Wdate-time 
-D_FORTIFY_SOURCE=2 -Wall -Wextra -Wno-sign-compare -fno-exceptions -O2 -g 
-DNDEBUG -std=gnu++14 -MD -MT 
CMakeFiles/snappy_test_tool.dir/snappy_test_tool.cc.o -MF 
CMakeFiles/snappy_test_tool.dir/snappy_test_tool.cc.o.d -o 
CMakeFiles/snappy_test_tool.dir/snappy_test_tool.cc.o -c 
/build/reproducible-path/snappy-1.2.2/snappy_test_tool.cc
/usr/bin/c++ -DHAVE_CONFIG_H -I/build/reproducible-path/snappy-1.2.2 
-I/build/reproducible-path/snappy-1.2.2/build -g -O2 
-ffile-prefix-map=/build/reproducible-path/snappy-1.2.2=. 
-fstack-protector-strong -fstack-clash-protection -Wformat 
-Werror=format-security -mbranch-protection=standard -Wdate-time 
-D_FORTIFY_SOURCE=2 -Wall -Wextra -Wno-sign-compare -fno-exceptions -O2 -g 
-DNDEBUG -std=gnu++14 -MD -MT 
CMakeFiles/snappy_benchmark.dir/snappy_benchmark.cc.o -MF 
CMakeFiles/snappy_benchmark.dir/snappy_benchmark.cc.o.d -o 
CMakeFiles/snappy_benchmark.dir/snappy_benchmark.cc.o -c 
/build/reproducible-path/snappy-1.2.2/snappy_benchmark.cc
/usr/bin/c++ -DHAVE_CONFIG_H -I/build/reproducible-path/snappy-1.2.2 
-I/build/reproducible-path/snappy-1.2.2/build -g -O2 
-ffile-prefix-map=/build/reproducible-path/snappy-1.2.2=. 
-fstack-protector-strong -fstack-clash-protection -Wformat 
-Werror=format-security -mbranch-protection=standard -Wdate-time 
-D_FORTIFY_SOURCE=2 -Wall -Wextra -Wno-sign-compare -fno-exceptions -O2 -g 
-DNDEBUG -std=gnu++14 -MD -MT 
CMakeFiles/snappy_unittest.dir/snappy_unittest.cc.o -MF 
CMakeFiles/snappy_unittest.dir/snappy_unittest.cc.o.d -o 
CMakeFiles/snappy_unittest.dir/snappy_unittest.cc.o -c 
/build/reproducible-path/snappy-1.2.2/snappy_unittest.cc
In file included from /usr/include/gtest/gtest-message.h:57,
                 from /usr/include/gtest/gtest-assertion-result.h:46,
                 from /usr/include/gtest/gtest.h:63,
                 from 
/build/reproducible-path/snappy-1.2.2/snappy_unittest.cc:40:
/usr/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/include/gtest/gtest.h:67:
/usr/include/gtest/gtest-param-test.h:483:56: error: missing template arguments 
before ‘(’ token
  483 |           typename StdFunction = 
decltype(std::function(std::declval<Func>()))>
      |                                                        ^
/usr/include/gtest/gtest-param-test.h:493:56: error: missing template arguments 
before ‘(’ token
  493 |           typename StdFunction = 
decltype(std::function(std::declval<Func>()))>
      |                                                        ^
[ 89%] Linking CXX executable snappy_test_tool
/usr/bin/cmake -E cmake_link_script CMakeFiles/snappy_test_tool.dir/link.txt 
--verbose=1
make[3]: *** [CMakeFiles/snappy_unittest.dir/build.make:82: 
CMakeFiles/snappy_unittest.dir/snappy_unittest.cc.o] Error 1
make[3]: Leaving directory '/build/reproducible-path/snappy-1.2.2/build'
make[2]: *** [CMakeFiles/Makefile2:202: CMakeFiles/snappy_unittest.dir/all] 
Error 2
make[2]: *** Waiting for unfinished jobs....
/usr/bin/c++ -g -O2 -ffile-prefix-map=/build/reproducible-path/snappy-1.2.2=. 
-fstack-protector-strong -fstack-clash-protection -Wformat 
-Werror=format-security -mbranch-protection=standard -Wdate-time 
-D_FORTIFY_SOURCE=2 -Wall -Wextra -Wno-sign-compare -fno-exceptions -O2 -g 
-DNDEBUG -Wl,-z,relro 
-Wl,--dependency-file=CMakeFiles/snappy_test_tool.dir/link.d 
CMakeFiles/snappy_test_tool.dir/snappy_test_tool.cc.o -o snappy_test_tool  
-Wl,-rpath,/build/reproducible-path/snappy-1.2.2/build 
libsnappy_test_support.so libsnappy.so.1.2.2
make[3]: Leaving directory '/build/reproducible-path/snappy-1.2.2/build'
[ 89%] Built target snappy_test_tool
[ 94%] Linking CXX executable snappy_benchmark
/usr/bin/cmake -E cmake_link_script CMakeFiles/snappy_benchmark.dir/link.txt 
--verbose=1
/usr/bin/c++ -g -O2 -ffile-prefix-map=/build/reproducible-path/snappy-1.2.2=. 
-fstack-protector-strong -fstack-clash-protection -Wformat 
-Werror=format-security -mbranch-protection=standard -Wdate-time 
-D_FORTIFY_SOURCE=2 -Wall -Wextra -Wno-sign-compare -fno-exceptions -O2 -g 
-DNDEBUG -Wl,-z,relro 
-Wl,--dependency-file=CMakeFiles/snappy_benchmark.dir/link.d 
CMakeFiles/snappy_benchmark.dir/snappy_benchmark.cc.o -o snappy_benchmark  
-Wl,-rpath,/build/reproducible-path/snappy-1.2.2/build 
libsnappy_test_support.so -lbenchmark_main -lbenchmark -lpthread 
libsnappy.so.1.2.2
make[3]: Leaving directory '/build/reproducible-path/snappy-1.2.2/build'
[ 94%] Built target snappy_benchmark
make[2]: Leaving directory '/build/reproducible-path/snappy-1.2.2/build'
make[1]: *** [Makefile:149: all] Error 2
make[1]: Leaving directory '/build/reproducible-path/snappy-1.2.2/build'
dh_auto_build: error: cd build && make -j8 "INSTALL=install 
--strip-program=true" VERBOSE=1 returned exit code 2
make: *** [debian/rules:24: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------
Build finished at 2025-08-30T20:37:04Z

-------------------------------------------------------------------------------

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/2411298/

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/154886/

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

Reply via email to