depends: fix for llvm-ranlib (etc): ‘No such file or directory’ macOS 15.0 #30994

pull itornaza wants to merge 1 commits into bitcoin:master from itornaza:ion-issue-30978 changing 1 files +5 −0
  1. itornaza commented at 11:28 am on September 28, 2024: contributor

    This is an attempt to fix the issue #30978 .

    To briefly summarize, @Sjors found that while compiling dependencies on macOS 15.0 the following “No such file or directory” are generated while these tools are installed.

    0$ cd depends
    1$ make
    2/bin/sh: command -v llvm-ranlib: No such file or directory
    3/bin/sh: command -v llvm-strip: No such file or directory
    4/bin/sh: command -v llvm-nm: No such file or directory
    5/bin/sh: command -v llvm-objdump: No such file or directory
    6/bin/sh: command -v dsymutil: No such file or directory
    

    The proposed fix conditionally defines the necessary variables for these tools in the ./depends/Makefile when building on macOS. The rationale is described in more detail in #30978 (comment) as the Solution number 3.

    Update 1:

    It turns out that Xcode’s make is not setting the flags that Gnu does as @hebasto described in #30978 (comment). So, to avoid any architectural changes in the depends directory that may lead to more confusion, the current patch manually sets the required flag in order for the above errors to be resolved.

    cc @hebasto

  2. DrahtBot commented at 11:28 am on September 28, 2024: contributor

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

    Code Coverage & Benchmarks

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

    Reviews

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

    Conflicts

    No conflicts as of last run.

  3. DrahtBot added the label Build system on Sep 28, 2024
  4. DrahtBot added the label CI failed on Sep 28, 2024
  5. DrahtBot removed the label CI failed on Sep 29, 2024
  6. fanquake commented at 9:42 am on October 2, 2024: member
    Not sure about this issue, or making this change. Looks like it needs more investigation. See my comment here: #30978 (comment).
  7. itornaza marked this as a draft on Oct 4, 2024
  8. itornaza commented at 4:31 pm on October 4, 2024: contributor

    Not sure about this issue, or making this change. Looks like it needs more investigation. See my comment here: #30978 (comment).

    Yes, switched to draft until we have a better understanding of the issue.

  9. hebasto commented at 11:56 am on January 10, 2025: member

    Not sure about this issue, or making this change. Looks like it needs more investigation. See my comment here: #30978 (comment).

    Yes, switched to draft until we have a better understanding of the issue.

    See #30978 (comment).

  10. DrahtBot added the label Needs rebase on Feb 12, 2025
  11. itornaza force-pushed on Feb 25, 2025
  12. itornaza force-pushed on Feb 25, 2025
  13. DrahtBot added the label CI failed on Feb 25, 2025
  14. depends: fix for llvm-ranlib (etc): 'No such file or directory' macOS 15.0 7982b95f85
  15. itornaza force-pushed on Feb 25, 2025
  16. DrahtBot removed the label Needs rebase on Feb 25, 2025
  17. itornaza commented at 12:21 pm on February 25, 2025: contributor

    Rebased and updated the description.

    The errors are now suppressed by setting a flag for make in the depends/hosts/darwin.mk that make implementation of Xcode does not, see #30978 (comment) and #30978 (comment).

  18. DrahtBot removed the label CI failed on Feb 25, 2025
  19. itornaza marked this as ready for review on Feb 25, 2025
  20. DrahtBot added the label CI failed on Apr 2, 2025
  21. DrahtBot removed the label CI failed on Apr 6, 2025

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: 2025-06-30 18:13 UTC

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