depends: update `LD64_VERSION` to 711 #28630

pull fanquake wants to merge 2 commits into bitcoin:master from fanquake:forgot_to_bump_ld64 changing 2 files +7 −1
  1. fanquake commented at 10:49 AM on October 10, 2023: member

    I forgot to do this in https://github.com/bitcoin/bitcoin/commit/7d5815293ed8a3dea68b61a78944e410f02b147f. Add a test so it's impossible to forget.

  2. depends: update LD64_VERSION to 711
    I forgot to do this in 7d5815293ed8a3dea68b61a78944e410f02b147f.
    cefbf0bc20
  3. contrib: add test for macOS linker version to symbol-check 092daa2f95
  4. DrahtBot commented at 10:49 AM on October 10, 2023: contributor

    <!--e57a25ab6845829454e8d69fc972939a-->

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

    <!--006a51241073e994b41acfe9ec718e94-->

    Code Coverage

    For detailed information about the code coverage, see the test coverage report.

    <!--021abf342d371248e50ceaed478a90ca-->

    Reviews

    See the guideline for information on the review process.

    Type Reviewers
    ACK TheCharlatan, jarolrod, hebasto, laanwj, achow101

    If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.

    <!--174a7506f384e20aa4161008e828411d-->

    Conflicts

    Reviewers, this pull request conflicts with the following ones:

    • #28622 (build: use macOS 14 SDK (Xcode 15.0) 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.

  5. DrahtBot renamed this:
    depends: update `LD64_VERSION` to 711
    depends: update `LD64_VERSION` to 711
    on Oct 10, 2023
  6. DrahtBot added the label Build system on Oct 10, 2023
  7. fanquake added the label DrahtBot Guix build requested on Oct 10, 2023
  8. DrahtBot commented at 8:09 PM on October 10, 2023: contributor

    <!--9cd9c72976c961c55c7acef8f6ba82cd-->

    Guix builds (on x86_64)

    File commit 04265ba9378efbd4c35b33390b1e5cf246d420a9<br>(master) commit 9b18f3263127e616aabefb733ce4c0a815f03558<br>(master and this pull)
    SHA256SUMS.part 5f7b9409967bce91... 24ee5cd4de9d0194...
    *-aarch64-linux-gnu-debug.tar.gz 52e90d34f345ce49... 652ec94723bc5fd2...
    *-aarch64-linux-gnu.tar.gz 4e902429fabc1e11... 6a33ab46a38d86eb...
    *-arm-linux-gnueabihf-debug.tar.gz 9e24365552e7732f... 41b6d9756020af3e...
    *-arm-linux-gnueabihf.tar.gz 996542b0d675b54f... e0a73f94c191e9a2...
    *-arm64-apple-darwin-unsigned.tar.gz 49bd07b0508b50e4... 43f2811db216134b...
    *-arm64-apple-darwin-unsigned.zip 084ac0129c7c7c6b... 504e5c93e98104dc...
    *-arm64-apple-darwin.tar.gz b97f14c06c00862b... 6a8ec1c14238c63d...
    *-powerpc64-linux-gnu-debug.tar.gz 35993005b3322e3e... ddfca84061c6a589...
    *-powerpc64-linux-gnu.tar.gz 489a57c7b9cd3f2b... c235d888d8802bef...
    *-powerpc64le-linux-gnu-debug.tar.gz eb29e1ea6cec70c3... 620e5891b4842168...
    *-powerpc64le-linux-gnu.tar.gz 7895006f6318ed62... d421cd812736ae2c...
    *-riscv64-linux-gnu-debug.tar.gz f9119fd9fa7d3ed8... 56fc636a25f68e39...
    *-riscv64-linux-gnu.tar.gz 7644ccd5cd789154... cf5596ff8ee83177...
    *-x86_64-apple-darwin-unsigned.tar.gz 21265c6fc5d444d0... 59bd9f4fd30a3dad...
    *-x86_64-apple-darwin-unsigned.zip 905a80a477bfed07... 9cd169c8366a211e...
    *-x86_64-apple-darwin.tar.gz 6ff350519b9f4c49... ca5298bee8f70fc4...
    *-x86_64-linux-gnu-debug.tar.gz 36c1e3b815680db6... 5560a407c87a1c33...
    *-x86_64-linux-gnu.tar.gz c80ffb5eec287559... 7b7866d814205171...
    *.tar.gz a7aabcdfbf89f7c6... 05af7e0c9b374927...
    guix_build.log 1ac99f60c27ed1bc... 7240616b6ec6ecdf...
    guix_build.log.diff a1049e9d5b5fdcd6...
  9. DrahtBot removed the label DrahtBot Guix build requested on Oct 10, 2023
  10. TheCharlatan commented at 6:07 AM on October 11, 2023: contributor

    Damn, should have caught this :( utACK 092daa2f9524e371ee6b505519d9b722a2c6361a

  11. hebasto commented at 9:38 AM on October 11, 2023: member

    Add a test so it's impossible to forget.

    Why not derive the LD64_VERSION value directly from the linker:

    $ ./depends/x86_64-apple-darwin/native/bin/x86_64-apple-darwin-ld -v
    @(#)PROGRAM:ld  PROJECT:ld64-711
    BUILD 09:08:42 Oct 11 2023
    configured to support archs: armv6 armv7 armv7s arm64 arm64e arm64_32 i386 x86_64 x86_64h armv6m armv7k armv7m armv7em (tvOS)
    LTO support using: LLVM version 15.0.7 (static support for 29, runtime is 29)
    TAPI support using: TAPI version 1300.6.5 (1300.6.5)
    
  12. jarolrod commented at 9:52 AM on October 11, 2023: member

    ACK 092daa2f9524e371ee6b505519d9b722a2c6361a

  13. fanquake commented at 10:01 AM on October 11, 2023: member

    Why not derive the LD64_VERSION value directly from the linker:

    That would prevent us from being able to set it to anything other than the exact value output by -v.

    Also unsure if whatever parsing code you write would also be compatible with lld.

  14. hebasto commented at 10:17 AM on October 11, 2023: member

    Add a test so it's impossible to forget.

    The test passes with the first commit been reverted.

  15. fanquake commented at 10:18 AM on October 11, 2023: member

    The test passes with the first commit been reverted.

    The because if unset, the value is the default linker version, iirc.

  16. hebasto commented at 10:19 AM on October 11, 2023: member

    The test passes with the first commit been reverted.

    The because if unset, the value is the default linker version, iirc.

    How is it unset?

  17. fanquake commented at 10:32 AM on October 11, 2023: member

    How is it unset?

    If the test is still passing, clearly it's not being set to 609. Otherwise it would fail.

  18. hebasto commented at 10:50 AM on October 11, 2023: member

    How is it unset?

    If the test is still passing, clearly it's not being set to 609. Otherwise it would fail.

    Please consider https://github.com/hebasto/bitcoin/tree/pr28630/1011.

    the LD64_VERSION is still set to the wrong value::

    LD64_VERSION=609
    

    but the Guix build succeeds:

    8fdacd899e61f2314c1645c787b409197a9783a33994fc2707cd654ae10760fc  guix-build-4e68bd5325ea/output/dist-archive/bitcoin-4e68bd5325ea.tar.gz
    830188b61fa795e496ccf38c80900b5ee778ba2bea30f27552db046d738a5ca2  guix-build-4e68bd5325ea/output/x86_64-apple-darwin/SHA256SUMS.part
    ca3cf7f40f4ea85c7cf72abba47f25a509243977a587c2c1d9e6d2c6135099f7  guix-build-4e68bd5325ea/output/x86_64-apple-darwin/bitcoin-4e68bd5325ea-x86_64-apple-darwin-unsigned.tar.gz
    0517f0faf2abc3b07d3909f5f4e4e588159105f5d481065b36902d27b043f59c  guix-build-4e68bd5325ea/output/x86_64-apple-darwin/bitcoin-4e68bd5325ea-x86_64-apple-darwin-unsigned.zip
    51ada364ee1f37ad792d3b8d03230ac3896f5b2dbff469c1c2b411ad9f94fe1f  guix-build-4e68bd5325ea/output/x86_64-apple-darwin/bitcoin-4e68bd5325ea-x86_64-apple-darwin.tar.gz
    
  19. fanquake commented at 10:52 AM on October 11, 2023: member

    We don't need another branch. I'm saying the same thing. If the test is passing, clearly the value in the binary is not being set to 609 (in which case, it's being set to the default linker value (711)). (which is why the test is passing with the 2nd commit reverted).

  20. hebasto commented at 10:56 AM on October 11, 2023: member

    We don't need another branch. I'm saying the same thing. If the test is passing, clearly the value in the binary is not being set to 609 (in which case, it's being set to the default linker value (711)).

    If code has LD64_VERSION=609 and the test passes, what is the purpose of the test then?

  21. fanquake commented at 10:59 AM on October 11, 2023: member

    what is the purpose of the test then?

    To check for the version being used/embedded? Clearly it's exposed a bug here, potentially in our understanding of -mlinker-version.

  22. hebasto approved
  23. hebasto commented at 11:01 AM on October 11, 2023: member

    ACK 092daa2f9524e371ee6b505519d9b722a2c6361a.

    Suggesting to drop "Add a test so it's impossible to forget." from the PR description before merging.

    Clearly it's exposed a bug here, potentially in our understanding of -mlinker-version.

    Agree.

  24. laanwj approved
  25. laanwj commented at 12:35 PM on October 11, 2023: member

    ACK 092daa2f9524e371ee6b505519d9b722a2c6361a i dont know about mac linker specifics but reviewed symbol-check.py change and lgtm

  26. jarolrod commented at 11:06 PM on October 12, 2023: member

    GUIX hashes

    1451e9cdec787f51604257ce8810be020a3abc8e307474643f79fbb55e403584  guix-build-092daa2f9524/output/arm64-apple-darwin/SHA256SUMS.part
    4ffd62b263db859059840dbb2c8602c187d39ba98b8241135a09f54dba0ec4ea  guix-build-092daa2f9524/output/arm64-apple-darwin/bitcoin-092daa2f9524-arm64-apple-darwin-unsigned.tar.gz
    b479787d21ac0defabaccc804e4400d13ea51d73557c1fe9483aa2fd3b536b96  guix-build-092daa2f9524/output/arm64-apple-darwin/bitcoin-092daa2f9524-arm64-apple-darwin-unsigned.zip
    fe4e5d623e8ddee89414f5d6c5b370280769f8aadc495af4ed3c464499ec9cb0  guix-build-092daa2f9524/output/arm64-apple-darwin/bitcoin-092daa2f9524-arm64-apple-darwin.tar.gz
    714f9980e48a01f6ef8655d7f89a208201d2fb96038905de0e997c0c1f12fe68  guix-build-092daa2f9524/output/dist-archive/bitcoin-092daa2f9524.tar.gz
    23588af64e1b7019b237810c68df6750517b41df8c48b061147cafdb40408f5a  guix-build-092daa2f9524/output/x86_64-apple-darwin/SHA256SUMS.part
    1634732934ee01803adc84e5ba9f5e56579bff237b8aac8ac1882b02e2f64920  guix-build-092daa2f9524/output/x86_64-apple-darwin/bitcoin-092daa2f9524-x86_64-apple-darwin-unsigned.tar.gz
    c4dddc491901fe8ea112eb146a4bb9351797c5d8dfc0b8e84e2b548d01ae938e  guix-build-092daa2f9524/output/x86_64-apple-darwin/bitcoin-092daa2f9524-x86_64-apple-darwin-unsigned.zip
    2d5876eb31f2cfa32228029fb20851c1ad43c2c36c3870254db94b1da86e9d58  guix-build-092daa2f9524/output/x86_64-apple-darwin/bitcoin-092daa2f9524-x86_64-apple-darwin.tar.gz
    
  27. achow101 commented at 5:28 PM on October 16, 2023: member

    ACK 092daa2f9524e371ee6b505519d9b722a2c6361a

  28. achow101 merged this on Oct 16, 2023
  29. achow101 closed this on Oct 16, 2023

  30. fanquake deleted the branch on Oct 17, 2023
  31. Frank-GER referenced this in commit f842ba5ef9 on Oct 21, 2023
  32. bitcoin locked this on Oct 16, 2024

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-26 06:13 UTC

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