build: CMake `-Werror=dev` option is deprecated #36780

issue fanquake opened this issue on November 5, 2026
  1. fanquake commented at 2:54 PM on November 5, 2026: member

    According to CI output, -Werror=dev is now deprecated. https://github.com/bitcoin/bitcoin/actions/runs/42034315042/job/127268360482#step:9:519:

    cmake -S /Users/runner/work/bitcoin/bitcoin/repo_archive -B '/Users/runner/work/bitcoin/bitcoin/repo_archive/ci/scratch_ ₿🧪/build-aarch64-apple-darwin24.6.0' -DCMAKE_COMPILE_WARNING_AS_ERROR=ON '-DCMAKE_INSTALL_PREFIX=/Users/runner/work/bitcoin/bitcoin/repo_archive/ci/scratch ₿🧪_/out' -Werror=dev -DBUILD_FOR_FUZZING=ON '-DCMAKE_EXE_LINKER_FLAGS=-Wl,-stack_size -Wl,0x80000' -DAPPEND_CPPFLAGS=-D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_DEBUG

    The error=dev option is deprecated. Use -Werror=author instead.

  2. fanquake added the label Build system on Nov 5, 2026
  3. maflcko commented at 3:38 PM on November 5, 2026: member

    This was only added in cmake 4.4 (https://cmake.org/cmake/help/latest/diagnostic/CMD_AUTHOR.html)? So it seems fine and harmless to ignore for a few years until cmake 5?

  4. psychemist commented at 5:33 PM on November 5, 2026: none

    it's a straightforward fix to the CI scripts and tests. no harm in updating now considering possible confusion to new Bitcoin Core users who may be unfamiliar with the CMake tool

  5. AgrimTawani commented at 12:43 PM on November 11, 2026: none

    Hi @fanquake! I'd like to pick this up — could I be assigned? I have understood the issue, and here is my approach:

    • -Werror=dev is used in ci/test/03_test_script.sh, .github/ci-windows.py, .github/ci-test-each-commit-exec.py and the guix build scripts
    • A plain swap isn't safe: on CMake 3.28, -Werror=author is accepted but silently ignored (an AUTHOR_WARNING doesn't fail), so the check would be lost below CMake 4.4
    • Fix: choose the flag by CMake version in the CI scripts (-Werror=author on ≥ 4.4, -Werror=dev otherwise)
    • Leave the guix scripts unless their pinned CMake is ≥ 4.4

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-11-15 02:51 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me