Backport verdict: Needs clarification
Fidelity could not be established from the available evidence.
Evidence:
- Commit coverage: the packet lists two source commits for #36927 (47be6cda3bdf917b2c0fff3e1c932a7fab9b9781 and 3d92fe8bbdf8c0b5e14ad824c792c53a697137a7), mapped to 7ec0b1563b7a68b5de8032eb7dad2f82cce6bbee and daacf03e0ac8983a50f8c6692dfbf3f86fd89ce4. Its missing and already_in_base lists are both empty, and each backport has a matching Rebased-From trailer.
- CMakePresets.json at head (lines 62-87) matches CMakePresets.json at upstream 47be6cda (lines 62-87): the dev-mode preset has only displayName, binaryDir and cacheVariables, with no errors block. Searching the target for
{"dev": true}finds nothing, so no other preset still turns dev warnings into errors. - .github/ci-windows.py: at base, lines 69-76 include
"-Werror=dev"before"--preset", "vs2026". At head, lines 69-75 drop only that flag. The range-diff shows upstream used"--preset=vs2026", so the backport correctly adapts to 31.x's split-argument form and keepsGENERATE_OPTIONS[ci_type]. - .github/ci-test-each-commit-exec.py at head (lines 27-44):
-Werror=devis gone. The script still passes--preset=dev-modeand-DCMAKE_COMPILE_WARNING_AS_ERROR=ON, so compiler warnings remain fatal and only CMake developer warnings are relaxed, as upstream intended. - ci/test/03_test_script.sh head line 94:
BITCOIN_CONFIG_ALL="$BITCOIN_CONFIG_ALL -DCMAKE_INSTALL_PREFIX=$BASE_OUTDIR". Only-Werror=devis removed; the unquoted install-prefix form already used on 31.x is kept, which the range-diff shows is intentional. - Leftover search: in the target head,
Werror=devappears only at contrib/guix/libexec/build.sh:250. At upstream 3d92fe8bbd it remains in contrib/guix/libexec/build_{linux,macos,win}_gui.sh. Upstream left Guix (which uses a pinned CMake) unchanged, so keeping it in 31.x matches the original scope rather than being an omission. - Release preparation db4ff336e9: doc/release-notes.md line 53 adds
- #36927 build: remove *dev* errors from dev-modeunder Misc, and line 60 credits fanquake, the author of both source commits. Earlier 31.x entries such as #36889 (the related CMake fix) are already listed under Build. - Background: issue #36913 and fanquake's comment 7007283917 explain why the fix is needed. CMake 4.5.0's non-target-directive diagnostic in the secp256k1 subtree breaks dev-mode configures and CI on release branches. Removing the flag only from CI would not fix local dev-mode builds, which is why the preset change is also needed.
Limitations:
- I only read the source. No build, CMake configure or CI run results were provided, so I can't confirm that 31.x configures cleanly with CMake >= 4.5.0 after this change.
- The original commits come from the 32.x backport PR #36927, not from master. I checked fidelity against those 32.x commits as listed in the packet.
- Placing the release-notes entry under Misc instead of Build is an editorial choice and doesn't affect correctness.
Background
Ralph's summary of historical context for the behaviour affected by this change. The historical record reviewed here is incomplete.
Documented decisions
Fatal developer-warning handling was introduced deliberately in CI, Guix, and the dev-mode preset. The introduction proposal described it as making diagnostics intended for CMakeLists.txt authors fatal, including deprecation warnings by default.
The supplied backport removes this explicit configuration-time diagnostic policy from dev-mode and three CI invocation sites. This is distinct from changing C++ compiler warning policy or Bitcoin runtime behavior.
The compatibility incident involved CMake diagnosing non-target directives in the bundled secp256k1 build code. The historical issue reports configuration failure at add_compile_options, and the discussion connects the incident to CMake 4.5.0 and a corresponding fix in Bitcoin Core's own build code.
This supplies the concrete compatibility pressure behind relaxing fatal diagnostics: an updated build tool could reject configuration because of build-script practices newly diagnosed by that tool.
The historical discussion explicitly explains why a CI-only adjustment would be incomplete: developers had already reported local builds failing after updating CMake, and retaining the existing behavior would require backported fixes absent another policy change.
This directly explains the scope spanning both dev-mode and release-branch CI. Removing only the CI command-line flag would not address developers using the fatal-warning preset locally.
Ralph's inferences
The original policy functions as a maintenance gate: author-facing diagnostics become failures rather than being easy to overlook. On a maintained release branch, that benefit competes with keeping existing developer workflows and CI usable as externally supplied CMake versions change.
The backport changes the consequence of developer warnings, trading an automatic maintenance signal for reduced sensitivity to toolchain updates. The retrieved evidence supports this tradeoff, but does not establish a formal project-wide compatibility guarantee or prove present correctness.
Source 1 · Source 2 · Source 3
Unresolved disagreements
The discussion contrasts excluding fatal warnings on mutable CI tasks and tracking them in dedicated nightly CI with preserving failures that signal needed backports. The response also emphasizes that local developer failures must be addressed. The inspected record does not resolve this into a general long-term policy.
This limits how broadly the release-branch relaxation should be interpreted: the evidence establishes a concrete compatibility problem, not abandonment of strict CMake diagnostics everywhere. One proposed adjustment used CMAKE_COMPILE_WARNING_AS_ERROR; a subsequent comment distinguishes that compiler-warning setting from CMake's own warning-error controls.