Review report

core: 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] · The NetBSD build guide selects a GCC version below the new minimum

Following the documented NetBSD 11.0 build instructions now stops during configuration.

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

Details and suggested fix

NetBSD 11.0, the latest release, ships GCC 12.5 in the base system, below the new GCC 13.1 minimum; its libstdc++ also lacks <format>. The unchanged doc/build-netbsd.md guide installs only git cmake boost and configures with plain cmake -B build, which uses the base compiler. Configuration therefore stops at the new text-formatting check. The NetBSD cross-CI setup also had to replace the SDK's base libstdc++ with headers and libraries from pkgsrc GCC 14 to pass the check. Update the guide to install pkgsrc GCC, for example with pkgin install gcc14, and select it using -DCMAKE_C_COMPILER=/usr/pkg/gcc14/bin/gcc -DCMAKE_CXX_COMPILER=/usr/pkg/gcc14/bin/g++; mention NetBSD in the release note as well. Whether the resulting binaries need a runtime library path to load pkgsrc's libstdc++ has not been checked.


Optional improvements

Link

[suggestion] · The format check misidentifies a missing standard-library feature as an old compiler

Clang can meet the documented minimum yet fail configuration when its standard library lacks <format>, and the error directs users to upgrade the wrong component.

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

Details and suggested fix

The probe includes <format> and calls std::format, so it checks the selected C++ standard library as well as the compiler. On Linux, Clang uses the installed GCC's libstdc++ by default, and libstdc++ added <format> in GCC 13. As a result, Clang 17 or newer with the default libstdc++ 12 on Debian bookworm or Ubuntu 22.04 fails this check despite meeting the documented Clang minimum. The error says the compiler is probably too old, while CMAKE_REQUIRED_QUIET hides the missing-header error, so upgrading Clang alone will not help. Update doc/dependencies.md to specify that the standard library must provide std::format, such as libstdc++ from GCC 13 or later or libc++ selected with -stdlib=libc++, and change the error to name the standard library. No in-tree CI job pairs Clang with an older libstdc++; the impact is on these documented user paths, not CI.


Link

[suggestion] · Moving the Ubuntu 22.04 job removes CI coverage of the documented CMake and Python minimums

CMake 3.22 and Python 3.10 remain documented minimums, but no CI job would exercise them after this change.

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

Details and suggested fix

Before this change, this job ran on Ubuntu 22.04 with CMake 3.22.1 and Python 3.10, making it the only CI job on the declared CMake minimum. The removed comment also noted that this CMake version lacks CMAKE_COMPILE_WARNING_AS_ERROR, added in CMake 3.24. After the move to Ubuntu 24.04, all ci/test images use Ubuntu 24.04 or newer, Debian trixie, Alpine 3.24, or Chimera. Yet CMakeLists.txt still requires CMake 3.22 and doc/dependencies.md still lists CMake 3.22 and Python 3.10. Lint still uses Python 3.10 through .python-version, but functional tests no longer run under 3.10. Changes that require newer CMake or Python features could therefore pass CI while breaking the documented minimums. Resolve the mismatch by either raising the minimums and updating CMakeLists.txt, doc/dependencies.md, and the release note, or keeping a job on CMake 3.22 and Python 3.10, for example by installing those versions on Ubuntu 24.04. This is a loss of coverage; no current failure on either minimum has been established.


Coverage details

Earlier concerns

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