WIP: build: Bump g++ minimum supported version to 13

bitcoin/bitcoin: PR #36042

1 minor finding · 2 suggestions

Earlier concerns neither republished nor resolved: 3 major findings · 1 minor finding. See the Run archive for their assessments.

Findings

Link

[minor] · NetBSD's native build instructions still select unsupported GCC 12.5

On NetBSD 11.0, the documented native build paths still select base GCC 12.5, which would fail the new <format> configure check; no native build was run.

Location: doc/dependencies.md:14 (head).

Details and suggested fix

The NetBSD package lists in doc/build-unix.md and depends/README.md install no replacement compiler, and the x86_64 depends configuration defaults to gcc/g++. NetBSD 11.0's base GCC 12.5 met the previous minimum, but its libstdc++ lacks <format>. The unconditional check_cxx_features() call now rejects that toolchain. Update the NetBSD instructions to install and explicitly select a supported pkgsrc GCC, for example gcc14, using its compiler paths for CMake and matching CC/CXX settings for depends. The cross-build configuration already selects pkgsrc gcc14's headers and libraries. Any additional runtime-library setup needed by native binaries using pkgsrc's libstdc++ remains unchecked.


Optional improvements

Link

[suggestion] · The format diagnostic omits the standard-library requirement

Source inspection shows that Clang 19+ with libstdc++ 12 or earlier cannot pass the new configure check, although the diagnostic and linked requirements mention only compiler versions.

Location: cmake/module/CheckCXXFeatures.cmake:45 (head).

Details and suggested fix

On Linux, Clang normally uses GCC's libstdc++ unless configured otherwise. Upgrading Clang alone therefore does not provide <format> when the selected library predates GCC 13, as with the default library on Debian bookworm. The probe correctly rejects that combination, but CMAKE_REQUIRED_QUIET suppresses the underlying missing-header diagnostic and the fatal message directs users toward an old compiler version. Keep the check, but name the standard library in the message and document the requirement alongside the Clang minimum: use libstdc++ from GCC 13 or later, or a suitable libc++ selected with -stdlib=libc++. The Clang 19 CI job already explicitly selects libc++.


Link

[suggestion] · The image upgrade drops coverage of the CMake and Python minimums

Moving the last Ubuntu 22.04 container removes configured coverage of the CMake 3.22 and functional-test Python 3.10 minimums; no compatibility failure has been observed.

Location: ci/test/00_setup_env_native_previous_releases.sh:9 (head).

Details and suggested fix

This job previously obtained CMake 3.22.1 and Python 3.10 from Ubuntu 22.04. The common installer still uses distribution packages, so switching to Ubuntu 24.04 exercises newer versions without a replacement job pinned to either documented minimum. The functional runner uses the environment's python3 and launches child tests with sys.executable; the lint-only Python 3.10 environment does not restore that runtime coverage. Keep minimum-version coverage by explicitly provisioning CMake 3.22 and Python 3.10 in a job on a newer image, including the test dependencies and interpreter selection needed to run the functional suite with Python 3.10.


Coverage details

Earlier concerns

Earlier reports raised these, with the titles and severities shown there. This review neither republished nor resolved them.