#1114388 snappy: FTBFS: /usr/include/gtest/internal/gtest-port.h:273:2: error: #error C++ versions less than C++17 are not supported.

Package:
src:snappy
Source:
src:snappy
Submitter:
Santiago Vila
Date:
2025-09-06 06:23:02 UTC
Severity:
normal
Tags:
#1114388#5
Date:
2025-09-05 18:26:43 UTC
From:
To:
Dear maintainer:

During a rebuild of all packages in unstable, your package failed to build.

Below you will find how the build ends (probably the most relevant part,
but not necessarily). If required, the full build log is available here:

https://people.debian.org/~sanvila/build-logs/202509/

About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.

If you could not reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:snappy, so that this is still
visible in the BTS web page for this package.

Thanks.
--------------------------------------------------------------------------------
[...]
 debian/rules clean
dh clean --buildsystem=cmake --builddir=build/
   dh_auto_clean -O--buildsystem=cmake -O--builddir=build/
   dh_autoreconf_clean -O--buildsystem=cmake -O--builddir=build/
   dh_clean -O--buildsystem=cmake -O--builddir=build/
 debian/rules binary
dh binary --buildsystem=cmake --builddir=build/
   dh_update_autotools_config -O--buildsystem=cmake -O--builddir=build/
   dh_autoreconf -O--buildsystem=cmake -O--builddir=build/
   debian/rules override_dh_auto_configure
make[1]: Entering directory '/<<PKGBUILDDIR>>'
dh_auto_configure -- \
	-DCMAKE_CXX_STANDARD=14 \
	-DCMAKE_BUILD_TYPE=RelWithDebInfo \
	-DCMAKE_INSTALL_LIBDIR=/usr/lib/x86_64-linux-gnu -DBUILD_SHARED_LIBS=ON \
	-DSNAPPY_ENABLE_RTTI=ON \
	-DSNAPPY_USE_BUNDLED_GTEST=OFF \
	-DSNAPPY_USE_BUNDLED_BENCHMARK_LIB=OFF
	cd build && DEB_PYTHON_INSTALL_LAYOUT=deb PKG_CONFIG=/usr/bin/pkg-config cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=None -DCMAKE_INSTALL_SYSCONFDIR=/etc -DCMAKE_INSTALL_LOCALSTATEDIR=/var -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON -DCMAKE_FIND_USE_PACKAGE_REGISTRY=OFF -DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON -DFETCHCONTENT_FULLY_DISCONNECTED=ON -DCMAKE_INSTALL_RUNSTATEDIR=/run -DCMAKE_SKIP_INSTALL_ALL_DEPENDENCY=ON "-GUnix Makefiles" -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_INSTALL_LIBDIR=lib/x86_64-linux-gnu -DCMAKE_CXX_STANDARD=14 -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_LIBDIR=/usr/lib/x86_64-linux-gnu -DBUILD_SHARED_LIBS=ON -DSNAPPY_ENABLE_RTTI=ON -DSNAPPY_USE_BUNDLED_GTEST=OFF -DSNAPPY_USE_BUNDLED_BENCHMARK_LIB=OFF ..
-- The C compiler identification is GNU 15.2.0
-- The CXX compiler identification is GNU 15.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Warning (dev) in CMakeLists.txt:
  A logical block opening on the line

    /<<PKGBUILDDIR>>/CMakeLists.txt:88 (if)

  closes on the line

    /<<PKGBUILDDIR>>/CMakeLists.txt:91 (endif)

  with mis-matching arguments.
This warning is for project developers.  Use -Wno-dev to suppress it.

#1114388#10
Date:
2025-09-06 06:20:57 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
snappy, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1114388@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Laszlo Boszormenyi (GCS) <gcs@debian.org> (supplier of updated snappy package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Sat, 06 Sep 2025 07:43:57 +0200
Source: snappy
Architecture: source
Version: 1.2.2-2
Distribution: unstable
Urgency: medium
Maintainer: Laszlo Boszormenyi (GCS) <gcs@debian.org>
Changed-By: Laszlo Boszormenyi (GCS) <gcs@debian.org>
Closes: 1113514 1114388
Changes:
 snappy (1.2.2-2) unstable; urgency=medium
 .
   * Configure with C++17 standard (closes: #1113514, #1114388).
   * Update Standards-Version to 4.7.2 .
Checksums-Sha1:
 cb6cfe59853db2e9b36b62d2f4c9c77fd6380147 1842 snappy_1.2.2-2.dsc
 19755cc53c4f1ad0e050a98f8933760f34b02bc5 16204 snappy_1.2.2-2.debian.tar.xz
Checksums-Sha256:
 90a8cc4b919bb0825504b539e59ce45aa5027996bb6aa405a205ba3e7aa582a2 1842 snappy_1.2.2-2.dsc
 cd9ae1374a661a68e3af7d916eaaaf9b969fe2dcd327032fc84d36028a791925 16204 snappy_1.2.2-2.debian.tar.xz
Files:
 f5885d6b39bae8e3451fdea246c54ad6 1842 libs optional snappy_1.2.2-2.dsc
 000c5f8312ce2712d01a18e6b1e5191d 16204 libs optional snappy_1.2.2-2.debian.tar.xz
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEfYh9yLp7u6e4NeO63OMQ54ZMyL8FAmi7zkwACgkQ3OMQ54ZM
yL+/uA/+MO6c0ZRhWMgmegigNrJ6sN2CKMsXgX+Ih0XEDQPM5DjOZEKe4NsVXWOr
+nZH179X+u7vND0HOQkhXCNNJuiaZys7S3OrGBeF9mHq/kW0lqXZilkFIEVYxV5w
Xsqc6C4HkEaP3tTnf7EgGGOF/leK4jQADDROgb2V9yeOxDHsdedGeOX37YxABP85
yKFujf8zkKqGtICPMrwdr/UeDGC7IEM5nj+xbELsPtFkDJ7XAb7pt9EYsqV59c9s
VLt0TXgXNgg8mQv6YAyPtOu80aRWd+G5UYAshiR6MrWczS3AbudumhtjlvWjkVwg
+ut9++Ao3CUCg/LPOnni7y4VgJm6MYIxEDNvhQgRzN8EmKIYgNPMNijxX+l00fW8
EqJth+zcihWvxYjFr3x+M3w8VJLfGvGpnrVxGPw7Hl16nqyx20sF/oX2kVtltJlx
dI+qPb+mvTrvVqZwVDgHnj2s+vehxsL/V7PZ0MdXmXTJBFIOSDxgh+CC4dwE+1VZ
VzdRcbsOut3SkRhhOVX4D4tijj2XaU0dpQ9EH5RlGCF20DBDzjytR/OPq9oeViOU
OG4L+7tBemR18MVwbD/GS/Ee3LMhYOZDohGTcS/zJ1mcOL/L26Y9DOyhjiuUq5TQ
ZJpTdrDNw1RYbp5a9QgCtPkOuswxYMWUfR4rtiVCh+7ziLLv7kc=
=aKD9
-----END PGP SIGNATURE-----