guix: split builds into Linux, Linux GUI and macOS/Windows #35537

pull fanquake wants to merge 3 commits into bitcoin:master from fanquake:split_gui_build_split changing 16 files +660 −279
  1. fanquake commented at 5:40 PM on June 15, 2026: member

    The next change split out of #25573, which splits the Guix build into separate Linux, Linux GUI, macOS, macOS GUI and Windows and Windows GUI builds.

    Closes #29914.

  2. DrahtBot added the label Build system on Jun 15, 2026
  3. DrahtBot commented at 5:40 PM on June 15, 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/35537.

    <!--021abf342d371248e50ceaed478a90ca-->

    Reviews

    See the guideline for information on the review process.

    Type Reviewers
    Approach ACK hebasto

    If your review is incorrectly listed, please copy-paste <code>&lt;!--meta-tag:bot-skip--&gt;</code> into the comment that the bot should ignore.

    <!--174a7506f384e20aa4161008e828411d-->

    Conflicts

    Reviewers, this pull request conflicts with the following ones:

    • #32764 (guix: Build for macOS using Clang only by hebasto)
    • #32162 (depends: Switch from multilib to platform-specific toolchains by hebasto)
    • #25573 (guix: produce a -static-pie bitcoind by fanquake)

    If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.

    <!--5faf32d7da4f0f540f40219e4f7537a3-->

  4. fanquake added the label DrahtBot Guix build requested on Jun 15, 2026
  5. hebasto commented at 7:52 PM on June 15, 2026: member

    Concept ACK.

    ... splits the Guix build into Linux, Linux GUI and macOS/Windows builds.

    Closes #29914.

    As this PR only only addresses #29914 for Linux targets, should the issue remain open for macOS and Windows?

  6. fanquake commented at 8:47 PM on June 15, 2026: member

    should the issue remain open for macOS and Windows?

    There is no difference in build environment for either of those builds, so I'm not sure there is anything to do there?

  7. in contrib/guix/libexec/build_linux.sh:6 in 9146c89c05
       0 | @@ -0,0 +1,118 @@
       1 | +#!/usr/bin/env bash
       2 | +# Copyright (c) The Bitcoin Core developers
       3 | +# Distributed under the MIT software license, see the accompanying
       4 | +# file COPYING or https://opensource.org/license/mit.
       5 | +export LC_ALL=C
       6 | +set -e -o pipefail
    


    maflcko commented at 6:41 AM on June 16, 2026:

    nit: I still wonder quite often what the short names mean, (especially when exit plausibly could mean -e or -x) and it could make sense to use the longer self-descriptive names? set -o errexit -o pipefail


    fanquake commented at 11:01 AM on June 16, 2026:

    Sure, switched these over.

  8. maflcko commented at 6:46 AM on June 16, 2026: member

    #29914 doesn't only include the guix env deps, but also the depends deps, so as @hebasto says, it could make sense to also do this for Windows/macOS? Just wondering, maybe the resulting code will even be clearer, smaller, or more consistent?

  9. fanquake force-pushed on Jun 16, 2026
  10. fanquake commented at 2:58 PM on June 16, 2026: member

    Just wondering, maybe the resulting code will even be clearer, smaller, or more consistent?

    I've pushed up another commit, to show what this might look like.

    We should also be able to move Python out of the non-GUI build env, but we need to workaround us currently having a hard (CMake) error for missing Python.

  11. fanquake force-pushed on Jun 16, 2026
  12. DrahtBot added the label CI failed on Jun 16, 2026
  13. DrahtBot commented at 3:22 PM on June 16, 2026: contributor

    <!--85328a0da195eb286784d51f73fa0af9-->

    🚧 At least one of the CI tasks failed. <sub>Task lint: https://github.com/bitcoin/bitcoin/actions/runs/27626623050/job/81689876955</sub> <sub>LLM reason (✨ experimental): CI failed due to lint check errors in contrib/guix/libexec/* (tabs-whitespace and shell/file permission issues flagged by lint-files.py / lint-shell.py).</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>

  14. fanquake force-pushed on Jun 16, 2026
  15. DrahtBot removed the label CI failed on Jun 16, 2026
  16. fanquake force-pushed on Jun 16, 2026
  17. fanquake force-pushed on Jun 17, 2026
  18. fanquake force-pushed on Jun 17, 2026
  19. fanquake force-pushed on Jun 17, 2026
  20. fanquake force-pushed on Jun 17, 2026
  21. DrahtBot added the label CI failed on Jun 17, 2026
  22. fanquake force-pushed on Jun 17, 2026
  23. fanquake force-pushed on Jun 17, 2026
  24. fanquake force-pushed on Jun 17, 2026
  25. fanquake force-pushed on Jun 17, 2026
  26. fanquake force-pushed on Jun 17, 2026
  27. DrahtBot removed the label CI failed on Jun 17, 2026
  28. DrahtBot commented at 5:08 AM on June 18, 2026: contributor

    <!--9cd9c72976c961c55c7acef8f6ba82cd-->

    Guix builds (on x86_64) [untrusted test-only build, possibly unsafe, not for production use]

    File commit 6e93ef4623ac6709723b5c7b720d38ac4ca032b7<br>(master) commit a5c1f9ea28b2beea49e313d587856fe7dedca7aa<br>(pull/35537/merge)
    *-aarch64-linux-gnu-debug.tar.gz 3ef45137e60e3c97... 24db785520be183e...
    *-aarch64-linux-gnu.tar.gz 7066a3a6f54986f7... 30d45bd7eee5c826...
    *-arm-linux-gnueabihf-debug.tar.gz b537c4f96fd7b962... f08b0300d8a4af2b...
    *-arm-linux-gnueabihf.tar.gz 0893463f3ae87bf4... 6e6623e25fe46c5a...
    *-arm64-apple-darwin-codesigning.tar.gz fac65da5a5a79f8b... e25d032e0e8cf10d...
    *-arm64-apple-darwin-unsigned.tar.gz 0dc9064a57c77386... f0fbf958a7271623...
    *-arm64-apple-darwin-unsigned.zip 16b2d6ae65117a2c... 9634c88f26e49671...
    *-powerpc64-linux-gnu-debug.tar.gz 62677fbad281cdab... 6c4cb65b87c9085e...
    *-powerpc64-linux-gnu.tar.gz a5d2f8c696a93962... c57073a018901af7...
    *-riscv64-linux-gnu-debug.tar.gz a5b8f93e163b4627... e54b56bdd2a0852e...
    *-riscv64-linux-gnu.tar.gz a6bc2eb0174cdc1b... 84ff2015092d0d26...
    *-win64-codesigning.tar.gz fc19c55fcef9ec97... 961b88ff0b8bf96b...
    *-win64-debug.zip 98f278e2eab9b562... e805a67e15342e01...
    *-win64-setup-unsigned.exe 912abeddd5fc3926... bcd194ae9caf6f77...
    *-win64-unsigned.zip d5683c56897418d5... b8b62247ff56471e...
    *-x86_64-apple-darwin-codesigning.tar.gz c4e5ea96c8acca2f... 12729682bd9017eb...
    *-x86_64-apple-darwin-unsigned.tar.gz ddd1094a0b5ee3c6... 414edf2fe2ab36ca...
    *-x86_64-apple-darwin-unsigned.zip bff3babc63ee2ed1... 1ca072c4f9b94ff8...
    *-x86_64-linux-gnu-debug.tar.gz 167c8da9847ff157... 38283fa42bb2f24b...
    *-x86_64-linux-gnu.tar.gz ac4c31540d20e8f3... eb4f3e70ebbc1132...
    *.tar.gz 430e62c40061a2cd... 9ce0d1e676d14fe9...
    SHA256SUMS.part 8f83c04fdea78a16... 2c318241f2e64f19...
    guix_build.log 8a7de1a20ad9a2e6... d3e449e46e14f790...
    guix_build.log.diff 01e7599cf9e85952...
  29. DrahtBot removed the label DrahtBot Guix build requested on Jun 18, 2026
  30. fanquake force-pushed on Jun 19, 2026
  31. fanquake commented at 12:31 PM on June 19, 2026: member

    @maflcko @hebasto can either of you give feedback on the additional splitting?

  32. hebasto commented at 2:37 PM on June 19, 2026: member

    Just wondering, maybe the resulting code will even be clearer, smaller, or more consistent?

    I've pushed up another commit, to show what this might look like.

    Approach ACK b407558f5d1ee7a187fe67f2a68ed0fd63a44880.

  33. Sjors commented at 2:38 PM on June 19, 2026: member
    x86_64
    ca0bd516652d5d5b8cb23a7d67eb4d74a86919859531b2ac7e19ea7239e04d73  guix-build-b407558f5d1e/output/aarch64-linux-gnu/SHA256SUMS.part
    1f97d0ebcd9e55f9c4ae8c31affb596d9df34822f5b10c8648cb2638fd52bf61  guix-build-b407558f5d1e/output/aarch64-linux-gnu/bitcoin-b407558f5d1e-aarch64-linux-gnu-debug.tar.gz
    62229036ea8ce038ffb67d5a78572027707ff8fd7a611c2ae9031e1c2822b592  guix-build-b407558f5d1e/output/aarch64-linux-gnu/bitcoin-b407558f5d1e-aarch64-linux-gnu.tar.gz
    1143aa521a35e19ea1e8cc5fbf88227061b9abd65107df9a6ed1cfb7d642a540  guix-build-b407558f5d1e/output/arm-linux-gnueabihf/SHA256SUMS.part
    fca825e0287dce71c256fa7a56c64fd5a3f75cae44a5a80b005b00ed3f4bc4b0  guix-build-b407558f5d1e/output/arm-linux-gnueabihf/bitcoin-b407558f5d1e-arm-linux-gnueabihf-debug.tar.gz
    cad19ef73839289b705c9b1d14617abbf6047cfcb68b649894cfa96b94e95aad  guix-build-b407558f5d1e/output/arm-linux-gnueabihf/bitcoin-b407558f5d1e-arm-linux-gnueabihf.tar.gz
    03122dd973d216c1bfcc0fd4f5308968434f45d76e73d817ebded01350aec391  guix-build-b407558f5d1e/output/arm64-apple-darwin/SHA256SUMS.part
    a32b1d0da73fc7a8fd312fd86a08fdb07e31ccbb4e1a4e94cec2e9bc9c9122b7  guix-build-b407558f5d1e/output/arm64-apple-darwin/bitcoin-b407558f5d1e-arm64-apple-darwin-codesigning.tar.gz
    89b1960ab0bde1397b80f468f867d6313e3e43d129fa782e08941c4b27809971  guix-build-b407558f5d1e/output/arm64-apple-darwin/bitcoin-b407558f5d1e-arm64-apple-darwin-unsigned.tar.gz
    caf90674f6f98ed75e9d48c3afda7f21488372cdca93f7f5294f73806628503f  guix-build-b407558f5d1e/output/arm64-apple-darwin/bitcoin-b407558f5d1e-arm64-apple-darwin-unsigned.zip
    3c365fc39cff78db4eb3cae3b230a3e6db23ac624d4f2dec632c665b734c782d  guix-build-b407558f5d1e/output/dist-archive/bitcoin-b407558f5d1e.tar.gz
    6e07c886f17afd080f77fddfb7e8df426e249890263e1d212acebd0a05f82a09  guix-build-b407558f5d1e/output/powerpc64-linux-gnu/SHA256SUMS.part
    cd60efb529aa45254aa0695f4a3bacc259a80ee016843298faeaccc916f1b371  guix-build-b407558f5d1e/output/powerpc64-linux-gnu/bitcoin-b407558f5d1e-powerpc64-linux-gnu-debug.tar.gz
    4b2fef61838246b129adc5c3ee308b6f4e0d260a55162d947513e4e92a98f4e6  guix-build-b407558f5d1e/output/powerpc64-linux-gnu/bitcoin-b407558f5d1e-powerpc64-linux-gnu.tar.gz
    724bbadd73a9c124fd20363ad6db42cb1f11059e0937682465e495193b38f697  guix-build-b407558f5d1e/output/riscv64-linux-gnu/SHA256SUMS.part
    8dad0c096bd6d5fefa4ac717b1cd0a306b5856d2260878448adfdf98ec499c53  guix-build-b407558f5d1e/output/riscv64-linux-gnu/bitcoin-b407558f5d1e-riscv64-linux-gnu-debug.tar.gz
    582ceba95d42dd07afd95843ed49d4de3c1fee1b9c96fb7d0bc047c1fa4aabc8  guix-build-b407558f5d1e/output/riscv64-linux-gnu/bitcoin-b407558f5d1e-riscv64-linux-gnu.tar.gz
    2467b6eef500bbdb74ad8ebd6d6b84e6fcdcb9856a5099c4913fe580f62cf848  guix-build-b407558f5d1e/output/x86_64-apple-darwin/SHA256SUMS.part
    e0f0d64b4a570e6f85a6270883e5fc9a49b512324b6c686c769f901a86c3c7de  guix-build-b407558f5d1e/output/x86_64-apple-darwin/bitcoin-b407558f5d1e-x86_64-apple-darwin-codesigning.tar.gz
    590c62f33ba0c82e2ed7ad13d936bd8be339c1d996c150884af85482447f83de  guix-build-b407558f5d1e/output/x86_64-apple-darwin/bitcoin-b407558f5d1e-x86_64-apple-darwin-unsigned.tar.gz
    9234c91dfba4cbb42d58008a6ef04c7ef48bdbe0e8ae589b191b9f9fd6c08061  guix-build-b407558f5d1e/output/x86_64-apple-darwin/bitcoin-b407558f5d1e-x86_64-apple-darwin-unsigned.zip
    ab5bc1f4d291380a93f57581162d21345692b7dd9af8b2d4e0b0c54d8351cdbf  guix-build-b407558f5d1e/output/x86_64-linux-gnu/SHA256SUMS.part
    56ce2ce0d87e4a01cf09accd07e26ba2033ac694bfcb686db967c83dba4d4cf0  guix-build-b407558f5d1e/output/x86_64-linux-gnu/bitcoin-b407558f5d1e-x86_64-linux-gnu-debug.tar.gz
    05d85c56cb2f417489d686c75d0859c772d4827d17f7775608997c9a12107d9c  guix-build-b407558f5d1e/output/x86_64-linux-gnu/bitcoin-b407558f5d1e-x86_64-linux-gnu.tar.gz
    94e0e4b7453fca41b95deb184efa8e4c04dab141d7f094aeb8929356ff1b3aae  guix-build-b407558f5d1e/output/x86_64-w64-mingw32/SHA256SUMS.part
    853cc89a312d8a474950b81b4b372a71fc0d2d91646d41a2a46349f218ea5bc7  guix-build-b407558f5d1e/output/x86_64-w64-mingw32/bitcoin-b407558f5d1e-win64-codesigning.tar.gz
    4b0b34ec6269e12e0698dff69221a843cf05e94e63ba540599af0257a30da8af  guix-build-b407558f5d1e/output/x86_64-w64-mingw32/bitcoin-b407558f5d1e-win64-debug.zip
    9e6ec247bec6e8e031552ae565d4b639a59a6a45716a235013d5ea074a3026a3  guix-build-b407558f5d1e/output/x86_64-w64-mingw32/bitcoin-b407558f5d1e-win64-setup-unsigned.exe
    31fd89f7e88d2c105847bf0deaf2652f498c857532413d9d11189256c4a68113  guix-build-b407558f5d1e/output/x86_64-w64-mingw32/bitcoin-b407558f5d1e-win64-unsigned.zip
    

    Briefly tested that the (unsigned) macOS GUI and daemon archives still work.

  34. guix: split builds into Linux(gui) and macOS/Windows 16631de60e
  35. guix: split macOS and win builds bcf055c422
  36. fixme: generate windows installer from installed bins e07c398203
  37. fanquake force-pushed on Jun 19, 2026
  38. in contrib/guix/libexec/build_win.sh:86 in e07c398203
      81 | +
      82 | +    # Install built Bitcoin Core
      83 | +    cmake --install build
      84 | +)
      85 | +
      86 | +rm -rf "$DISTSRC"/build
    


    hebasto commented at 3:22 PM on June 19, 2026:

    b407558f5d1ee7a187fe67f2a68ed0fd63a44880

    FWIW, #35098 reused both the depends built artifacts and the CMake build tree for Windows and macOS. I don't see any conceptual incompatibility between these two approaches right now. Also, reusing the build tree makes modifying the add_windows_deploy_target function unnecessary. We can leave that performance improvement for follow-ups, though.

    For now, I'll look more closely at the changes in add_windows_deploy_target.

  39. hebasto commented at 11:22 PM on June 19, 2026: member

    Here is an alternative approach to create a Windows installer from the install tree.

    Feel free to grab any part of that branch.


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-06-20 23:51 UTC

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