build: Bump g++ minimum supported version to 13 #36042

pull maflcko wants to merge 2 commits into bitcoin:master from maflcko:2608-gcc-13 changing 5 files +30 −8
  1. maflcko commented at 3:45 PM on August 20, 2026: member

    At some point, it may be fine to drop support for older vanilla systems not shipping with at least GCC 13.

    (For this bump, only C++20 std::format will become available, but this bump should also pave the way for C++23.)

    This patch will only be released in version 33.x, or later, next year (2027).

    For reference:

    On operating systems where the minimum GCC version is not shipped by default, the user would have to use Clang, or install GCC in a different way. For example:

    Obviously, downloading pre-compiled releases or compiling previous release branches is unaffected by this change.

  2. DrahtBot renamed this:
    build: Bump g++ minimum supported version to 13
    build: Bump g++ minimum supported version to 13
    on Aug 20, 2026
  3. DrahtBot added the label Build system on Aug 20, 2026
  4. maflcko marked this as a draft on Aug 20, 2026
  5. DrahtBot commented at 3:46 PM on August 20, 2026: contributor

    <!--e57a25ab6845829454e8d69fc972939a-->

    The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

    <!--006a51241073e994b41acfe9ec718e94-->

    Code Coverage & Benchmarks

    For details see: https://corecheck.dev/bitcoin/bitcoin/pulls/36042.

    <!--021abf342d371248e50ceaed478a90ca-->

    Reviews

    See the guideline and AI policy for information on the review process. A summary of reviews will appear here.

    <!--5faf32d7da4f0f540f40219e4f7537a3-->

  6. maflcko added this to the milestone Future on Aug 20, 2026
  7. build: Bump g++ minimum supported version to 13 d0f2b83787
  8. bench: refactor: tfm->std::format
    Make an example replacement to use std::format. New code can use this
    now, but old code can probably stay as-is for now.
    97e41cf5de
  9. maflcko force-pushed on Aug 20, 2026
  10. DrahtBot added the label CI failed on Aug 20, 2026
  11. DrahtBot commented at 3:48 PM on August 20, 2026: contributor

    <!--85328a0da195eb286784d51f73fa0af9-->

    🚧 At least one of the CI tasks failed. <sub>Task NetBSD Cross: https://github.com/bitcoin/bitcoin/actions/runs/32388090156/job/96487376676</sub> <sub>LLM reason (✨ experimental): CI failed because CMake’s try-compile for text formatting errored with fatal error: 'format' file not found (missing C++ <format> header).</sub>

    <details><summary>Hints</summary>

    Try to run the tests locally, according to the documentation. However, a CI failure may still happen due to a number of reasons, for example:

    • Possibly due to a silent merge conflict (the changes in this pull request being incompatible with the current code in the target branch). If so, make sure to rebase on the latest commit of the target branch.

    • A sanitizer issue, which can only be found by compiling with the sanitizer and running the affected test.

    • An intermittent issue.

    Leave a comment here, if you need help tracking down a confusing failure.

    </details>

  12. maflcko commented at 4:33 PM on August 20, 2026: member

    Hmm, looks like netbsd-cross is a CI blocker for this? Not sure how to proceed here, because netbsd ci coverage may be useful, but no real user is doing netbsd-cross (I expect all users are running on native netbsd). But native netbsd isn't an option for CI ... :man_shrugging:

  13. maflcko removed this from the milestone Future on Aug 20, 2026

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-08-21 04:51 UTC

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