build: Fix Guix build for Windows #24311

pull hebasto wants to merge 2 commits into bitcoin:master from hebasto:220210-guix changing 20 files +56 −58
  1. hebasto commented at 1:31 PM on February 10, 2022: member

    This PR adds ugly crutches to avoid {i,o}fstream errors when cross-compiling for Windows in the Guix environment.

    I'm not happy with this solution, but it ~works~.

    Guix builds:

    $ find guix-build-$(git rev-parse --short=12 HEAD)/output/ -type f -print0 | env LC_ALL=C sort -z | xargs -r0 sha256sum
    157830ddd10f50a21ebbb7d54708c46b37b0a19739d09b2ae2d75ff8bc62b5ee  guix-build-fe054cf4abbd/output/dist-archive/bitcoin-fe054cf4abbd.tar.gz
    291ffabfdbca6880c4ac83589a23c90df4d481d8fd5d068ecaf61f772e644d69  guix-build-fe054cf4abbd/output/x86_64-w64-mingw32/SHA256SUMS.part
    93544c07d29126500fda993b6892013ea5fc84a0ee9aaf02e04c434f1b4d2540  guix-build-fe054cf4abbd/output/x86_64-w64-mingw32/bitcoin-fe054cf4abbd-win-unsigned.tar.gz
    b6502582afea382950c2b3382058bdf504d8c82d9f4b4ac3da3e6c68c6d19aae  guix-build-fe054cf4abbd/output/x86_64-w64-mingw32/bitcoin-fe054cf4abbd-win64-debug.zip
    f03f7049d032a153d32326726c29bf3119da461dac8c720c1548d497d7037622  guix-build-fe054cf4abbd/output/x86_64-w64-mingw32/bitcoin-fe054cf4abbd-win64-setup-unsigned.exe
    3540d07ce1e6106dce59fe401f7fb33211885b05d3a607268580a5de88f71ae3  guix-build-fe054cf4abbd/output/x86_64-w64-mingw32/bitcoin-fe054cf4abbd-win64.zip
    

    Fixes bitcoin/bitcoin#24055.

  2. Fix {i,o}fstream errors for Guix Windows build 8a71b403dd
  3. build: Point Guix to recent commit on the master branch fe054cf4ab
  4. laanwj commented at 1:50 PM on February 10, 2022: member

    Thanks for working on this. But I dislike this solution very much as well. Making so many source changes to work around an upstream bug seems really undesirable to me.

    Edit: I guess we could merge it for 0.23 branch if we find no other solution in time for the release.

  5. DrahtBot added the label Build system on Feb 10, 2022
  6. DrahtBot added the label GUI on Feb 10, 2022
  7. DrahtBot added the label RPC/REST/ZMQ on Feb 10, 2022
  8. DrahtBot added the label Scripts and tools on Feb 10, 2022
  9. DrahtBot added the label Utils/log/libs on Feb 10, 2022
  10. DrahtBot added the label Wallet on Feb 10, 2022
  11. laanwj removed the label GUI on Feb 10, 2022
  12. laanwj removed the label Wallet on Feb 10, 2022
  13. laanwj removed the label RPC/REST/ZMQ on Feb 10, 2022
  14. laanwj removed the label Scripts and tools on Feb 10, 2022
  15. laanwj removed the label Utils/log/libs on Feb 10, 2022
  16. laanwj added the label Utils/log/libs on Feb 10, 2022
  17. laanwj added this to the milestone 23.0 on Feb 10, 2022
  18. fanquake commented at 2:38 PM on February 10, 2022: member

    Edit: I guess we could merge it for 0.23 branch if we find no other solution in time for the release.

    I agree, I think this should be a last resort. More important is figuring out what is different about the Guix env compared to everywhere else we are cross-compiling for Windows.

  19. hebasto closed this on Feb 10, 2022

  20. hebasto deleted the branch on Feb 17, 2022
  21. DrahtBot locked this on Feb 17, 2023

Milestone
23.0


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-04-13 15:14 UTC

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