WIP: [31.x] Backports

bitcoin/bitcoin: PR #36928

Backport verdict: Needs clarification

Fidelity could not be established from the available evidence.

Evidence:

Limitations:

Coverage details

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.

Source 1

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.

Source 1 · Source 2

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.

Source 1

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.

Source 1 · Source 2 · Source 3 · Source 4