guix: Make windows cross architecture reproducible #25558

pull achow101 wants to merge 1 commits into bitcoin:master from achow101:guix-win-cross-arch-repro changing 2 files +29 −1
  1. achow101 commented at 9:29 pm on July 6, 2022: member

    The only thing preventing windows from being cross architecture reproducible is a single guix store winpthreads path in the debug symbols. This can be removed by patching libgcc to use -ffile-prefix-map so that the debug symbol will be mapped to a fixed /usr instead of the guix store path which depends on the building architecture.

    x86_64

    02e585c4a66e930b5e273e89b8aeddc9c3bd1c8375b19d988a6fff64f0d49edfd  guix-build-5bff18bce5d9/output/dist-archive/bitcoin-5bff18bce5d9.tar.gz
    1b9235dc1a8541e840231cfafd0d971bd5e8a3ea7d5331c4d7af9dbfdabc6905b  guix-build-5bff18bce5d9/output/x86_64-w64-mingw32/SHA256SUMS.part
    2f82d861de60e22fc7dd731bef60a3e4399b5317eb16e41e92ded171490d1a578  guix-build-5bff18bce5d9/output/x86_64-w64-mingw32/bitcoin-5bff18bce5d9-win64-debug.zip
    3bfd59561c3cfce91b09d05b17cfc67cd70cb78eea39ea863119870260a8dbdec  guix-build-5bff18bce5d9/output/x86_64-w64-mingw32/bitcoin-5bff18bce5d9-win64-setup-unsigned.exe
    43d049d98c6add13b0eb4c7adcf0d3ae59d1eab09799292a2c900de0ad067912a  guix-build-5bff18bce5d9/output/x86_64-w64-mingw32/bitcoin-5bff18bce5d9-win64-unsigned.tar.gz
    57af4c34c47f349028ec1f4c2edea547bd9fa30d1c67977d482607a9c6bf2ddee  guix-build-5bff18bce5d9/output/x86_64-w64-mingw32/bitcoin-5bff18bce5d9-win64.zip
    

    arm64

    02e585c4a66e930b5e273e89b8aeddc9c3bd1c8375b19d988a6fff64f0d49edfd  guix-build-5bff18bce5d9/output/dist-archive/bitcoin-5bff18bce5d9.tar.gz
    1b9235dc1a8541e840231cfafd0d971bd5e8a3ea7d5331c4d7af9dbfdabc6905b  guix-build-5bff18bce5d9/output/x86_64-w64-mingw32/SHA256SUMS.part
    2f82d861de60e22fc7dd731bef60a3e4399b5317eb16e41e92ded171490d1a578  guix-build-5bff18bce5d9/output/x86_64-w64-mingw32/bitcoin-5bff18bce5d9-win64-debug.zip
    3bfd59561c3cfce91b09d05b17cfc67cd70cb78eea39ea863119870260a8dbdec  guix-build-5bff18bce5d9/output/x86_64-w64-mingw32/bitcoin-5bff18bce5d9-win64-setup-unsigned.exe
    43d049d98c6add13b0eb4c7adcf0d3ae59d1eab09799292a2c900de0ad067912a  guix-build-5bff18bce5d9/output/x86_64-w64-mingw32/bitcoin-5bff18bce5d9-win64-unsigned.tar.gz
    57af4c34c47f349028ec1f4c2edea547bd9fa30d1c67977d482607a9c6bf2ddee  guix-build-5bff18bce5d9/output/x86_64-w64-mingw32/bitcoin-5bff18bce5d9-win64.zip
    
  2. guix: patch gcc 10 with pthreads to remap guix store paths 5bff18bce5
  3. achow101 added the label DrahtBot Guix build requested on Jul 6, 2022
  4. jarolrod commented at 11:40 pm on July 6, 2022: member

    GUIX hashes

    x86:

    0$ env HOSTS='x86_64-w64-mingw32' ./contrib/guix/guix-build 
    1$ find guix-build-$(git rev-parse --short=12 HEAD)/output/ -type f -print0 | env LC_ALL=C sort -z | xargs -r0 sha256sum
    2
    32e585c4a66e930b5e273e89b8aeddc9c3bd1c8375b19d988a6fff64f0d49edfd  guix-build-5bff18bce5d9/output/dist-archive/bitcoin-5bff18bce5d9.tar.gz
    4b9235dc1a8541e840231cfafd0d971bd5e8a3ea7d5331c4d7af9dbfdabc6905b  guix-build-5bff18bce5d9/output/x86_64-w64-mingw32/SHA256SUMS.part
    5f82d861de60e22fc7dd731bef60a3e4399b5317eb16e41e92ded171490d1a578  guix-build-5bff18bce5d9/output/x86_64-w64-mingw32/bitcoin-5bff18bce5d9-win64-debug.zip
    6bfd59561c3cfce91b09d05b17cfc67cd70cb78eea39ea863119870260a8dbdec  guix-build-5bff18bce5d9/output/x86_64-w64-mingw32/bitcoin-5bff18bce5d9-win64-setup-unsigned.exe
    73d049d98c6add13b0eb4c7adcf0d3ae59d1eab09799292a2c900de0ad067912a  guix-build-5bff18bce5d9/output/x86_64-w64-mingw32/bitcoin-5bff18bce5d9-win64-unsigned.tar.gz
    87af4c34c47f349028ec1f4c2edea547bd9fa30d1c67977d482607a9c6bf2ddee  guix-build-5bff18bce5d9/output/x86_64-w64-mingw32/bitcoin-5bff18bce5d9-win64.zip
    

    arm64:

  5. fanquake added the label Windows on Jul 7, 2022
  6. fanquake added the label Build system on Jul 7, 2022
  7. fanquake approved
  8. fanquake commented at 9:01 am on July 7, 2022: member

    ACK 5bff18bce5d9d8bd1bae0cb89facf73c829c947b

    Guix Build (x86_64):

    02e585c4a66e930b5e273e89b8aeddc9c3bd1c8375b19d988a6fff64f0d49edfd  guix-build-5bff18bce5d9/output/dist-archive/bitcoin-5bff18bce5d9.tar.gz
    1b9235dc1a8541e840231cfafd0d971bd5e8a3ea7d5331c4d7af9dbfdabc6905b  guix-build-5bff18bce5d9/output/x86_64-w64-mingw32/SHA256SUMS.part
    2f82d861de60e22fc7dd731bef60a3e4399b5317eb16e41e92ded171490d1a578  guix-build-5bff18bce5d9/output/x86_64-w64-mingw32/bitcoin-5bff18bce5d9-win64-debug.zip
    3bfd59561c3cfce91b09d05b17cfc67cd70cb78eea39ea863119870260a8dbdec  guix-build-5bff18bce5d9/output/x86_64-w64-mingw32/bitcoin-5bff18bce5d9-win64-setup-unsigned.exe
    43d049d98c6add13b0eb4c7adcf0d3ae59d1eab09799292a2c900de0ad067912a  guix-build-5bff18bce5d9/output/x86_64-w64-mingw32/bitcoin-5bff18bce5d9-win64-unsigned.tar.gz
    57af4c34c47f349028ec1f4c2edea547bd9fa30d1c67977d482607a9c6bf2ddee  guix-build-5bff18bce5d9/output/x86_64-w64-mingw32/bitcoin-5bff18bce5d9-win64.zip
    

    Guix Build (arm64):

    02e585c4a66e930b5e273e89b8aeddc9c3bd1c8375b19d988a6fff64f0d49edfd  guix-build-5bff18bce5d9/output/dist-archive/bitcoin-5bff18bce5d9.tar.gz
    1b9235dc1a8541e840231cfafd0d971bd5e8a3ea7d5331c4d7af9dbfdabc6905b  guix-build-5bff18bce5d9/output/x86_64-w64-mingw32/SHA256SUMS.part
    2f82d861de60e22fc7dd731bef60a3e4399b5317eb16e41e92ded171490d1a578  guix-build-5bff18bce5d9/output/x86_64-w64-mingw32/bitcoin-5bff18bce5d9-win64-debug.zip
    3bfd59561c3cfce91b09d05b17cfc67cd70cb78eea39ea863119870260a8dbdec  guix-build-5bff18bce5d9/output/x86_64-w64-mingw32/bitcoin-5bff18bce5d9-win64-setup-unsigned.exe
    43d049d98c6add13b0eb4c7adcf0d3ae59d1eab09799292a2c900de0ad067912a  guix-build-5bff18bce5d9/output/x86_64-w64-mingw32/bitcoin-5bff18bce5d9-win64-unsigned.tar.gz
    57af4c34c47f349028ec1f4c2edea547bd9fa30d1c67977d482607a9c6bf2ddee  guix-build-5bff18bce5d9/output/x86_64-w64-mingw32/bitcoin-5bff18bce5d9-win64.zip
    
  9. hebasto commented at 1:47 pm on July 7, 2022: member

    Guix builds on arm64:

    0# find guix-build-$(git rev-parse --short=12 HEAD)/output/ -type f -print0 | env LC_ALL=C sort -z | xargs -r0 sha256sum
    12e585c4a66e930b5e273e89b8aeddc9c3bd1c8375b19d988a6fff64f0d49edfd  guix-build-5bff18bce5d9/output/dist-archive/bitcoin-5bff18bce5d9.tar.gz
    2b9235dc1a8541e840231cfafd0d971bd5e8a3ea7d5331c4d7af9dbfdabc6905b  guix-build-5bff18bce5d9/output/x86_64-w64-mingw32/SHA256SUMS.part
    3f82d861de60e22fc7dd731bef60a3e4399b5317eb16e41e92ded171490d1a578  guix-build-5bff18bce5d9/output/x86_64-w64-mingw32/bitcoin-5bff18bce5d9-win64-debug.zip
    4bfd59561c3cfce91b09d05b17cfc67cd70cb78eea39ea863119870260a8dbdec  guix-build-5bff18bce5d9/output/x86_64-w64-mingw32/bitcoin-5bff18bce5d9-win64-setup-unsigned.exe
    53d049d98c6add13b0eb4c7adcf0d3ae59d1eab09799292a2c900de0ad067912a  guix-build-5bff18bce5d9/output/x86_64-w64-mingw32/bitcoin-5bff18bce5d9-win64-unsigned.tar.gz
    67af4c34c47f349028ec1f4c2edea547bd9fa30d1c67977d482607a9c6bf2ddee  guix-build-5bff18bce5d9/output/x86_64-w64-mingw32/bitcoin-5bff18bce5d9-win64.zip
    
  10. hebasto commented at 1:49 pm on July 7, 2022: member

    Guix builds on x86_64:

    0$ find guix-build-$(git rev-parse --short=12 HEAD)/output/ -type f -print0 | env LC_ALL=C sort -z | xargs -r0 sha256sum
    12e585c4a66e930b5e273e89b8aeddc9c3bd1c8375b19d988a6fff64f0d49edfd  guix-build-5bff18bce5d9/output/dist-archive/bitcoin-5bff18bce5d9.tar.gz
    2b9235dc1a8541e840231cfafd0d971bd5e8a3ea7d5331c4d7af9dbfdabc6905b  guix-build-5bff18bce5d9/output/x86_64-w64-mingw32/SHA256SUMS.part
    3f82d861de60e22fc7dd731bef60a3e4399b5317eb16e41e92ded171490d1a578  guix-build-5bff18bce5d9/output/x86_64-w64-mingw32/bitcoin-5bff18bce5d9-win64-debug.zip
    4bfd59561c3cfce91b09d05b17cfc67cd70cb78eea39ea863119870260a8dbdec  guix-build-5bff18bce5d9/output/x86_64-w64-mingw32/bitcoin-5bff18bce5d9-win64-setup-unsigned.exe
    53d049d98c6add13b0eb4c7adcf0d3ae59d1eab09799292a2c900de0ad067912a  guix-build-5bff18bce5d9/output/x86_64-w64-mingw32/bitcoin-5bff18bce5d9-win64-unsigned.tar.gz
    67af4c34c47f349028ec1f4c2edea547bd9fa30d1c67977d482607a9c6bf2ddee  guix-build-5bff18bce5d9/output/x86_64-w64-mingw32/bitcoin-5bff18bce5d9-win64.zip
    
  11. hebasto approved
  12. hebasto commented at 1:53 pm on July 7, 2022: member
    ACK 5bff18bce5d9d8bd1bae0cb89facf73c829c947b, I have reviewed the code and it looks OK. Confirming reproducibility for x86_64 and arm64 platforms.
  13. fanquake merged this on Jul 7, 2022
  14. fanquake closed this on Jul 7, 2022

  15. DrahtBot commented at 9:15 pm on July 8, 2022: contributor

    Guix builds

    File commit aeab1b42e67cc8146bfc7d127d15633bd652fe60(master) commit dfe15a35b4215e46f673ee9c587e9406ed6b384b(master and this pull)
    SHA256SUMS.part e1af0fbf276771f0... a065c40dec7836d4...
    *-aarch64-linux-gnu-debug.tar.gz 7e425f5617dda63b... 1ff37163d9fd2c97...
    *-aarch64-linux-gnu.tar.gz 0a5c20a768282f16... 21f5a7aa3b584e0f...
    *-arm-linux-gnueabihf-debug.tar.gz 4cbe80b799c77c1f... 52f516e5eaf25d39...
    *-arm-linux-gnueabihf.tar.gz 5cb8bd97bf2bdb54... 206d0a99d93c2999...
    *-arm64-apple-darwin-unsigned.dmg 5b0a5ba4c4ab6902... f2df111df0a3c0f8...
    *-arm64-apple-darwin-unsigned.tar.gz 370e902fc7e2bde9... 9bd408f340f300df...
    *-arm64-apple-darwin.tar.gz f548d5c3a1c25982... 9eaa37231ff257f8...
    *-powerpc64-linux-gnu-debug.tar.gz ebf68f47b6cebd2e... 6c99363edccab908...
    *-powerpc64-linux-gnu.tar.gz d34803cd5d1e853e... cf7ea0077440ab9d...
    *-powerpc64le-linux-gnu-debug.tar.gz afbb030a099d9a81... edbdeb019dafecc3...
    *-powerpc64le-linux-gnu.tar.gz 96e2714d0df18227... 12456a1cea12c724...
    *-riscv64-linux-gnu-debug.tar.gz c5c5b4651da44124... 6aa51952d71198ed...
    *-riscv64-linux-gnu.tar.gz 92958ecbf3505539... 15df4f845274edea...
    *-win64-debug.zip 8e668a04040c9e83... 3e5a8650f4cae3ab...
    *-win64-setup-unsigned.exe 6b032ed5d8166f29... 9c1b4e42da0c1d32...
    *-win64-unsigned.tar.gz 667715ac1c69c4c3... f12faa6d02c5da6c...
    *-win64.zip dcb1c13fd46c7b1d... 69b9cc33926570df...
    *-x86_64-apple-darwin-unsigned.dmg 5939a5a521b4b4a3... b151ad8221dada8b...
    *-x86_64-apple-darwin-unsigned.tar.gz 4fb264effef1c7ec... b35bdf1830ebc84d...
    *-x86_64-apple-darwin.tar.gz 731b01794c45d092... f3ec92873d5358ff...
    *-x86_64-linux-gnu-debug.tar.gz 1037d010238358df... d0358bfe576d0ed3...
    *-x86_64-linux-gnu.tar.gz 11cc68fe8776b31b... 0e58a04d1ba1ea39...
    *.tar.gz a67ac577d2561584... 316a46ad47ab6fc5...
    guix_build.log 90a2f0912b66c6d0... 6d308baec3d9db85...
    guix_build.log.diff 6ae1bf652a937df3...
  16. DrahtBot removed the label DrahtBot Guix build requested on Jul 8, 2022
  17. sidhujag referenced this in commit 964b29359c on Jul 11, 2022
  18. kittywhiskers referenced this in commit 306411e74d on Jun 11, 2023
  19. PastaPastaPasta referenced this in commit 51675eef1d on Jun 18, 2023
  20. PastaPastaPasta referenced this in commit d159340395 on Jun 18, 2023
  21. bitcoin locked this on Jul 8, 2023

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: 2024-12-18 21:12 UTC

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