Ticket #29069 (closed defect: fixed)
llvm: Library not loaded: @executable_path/../lib/libLLVM-2.9.dylib
| Reported by: | ryandesign@… | Owned by: | mfeiri@… |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | 1.9.2 |
| Keywords: | haspatch | Cc: | erickt@… |
| Port: | llvm |
Description
Trying to update the pure port, configuration fails because llvm's libraries don't have the correct install_name:
dyld: Library not loaded: @executable_path/../lib/libLLVM-2.9.dylib Referenced from: /opt/local/var/macports/build/_Users_rschmidt_macports_dports_lang_pure/work/pure-0.47/./conftest Reason: image not found ./configure: line 3419: 24758 Trace/BPT trap ./conftest$ac_cv_exeext
Observe that in r77651 you removed the code from the llvm portfile from r70474 / r72287 / r73125 that had formerly fixed this problem.
Attachments
Change History
Changed 2 years ago by ryandesign@…
- Attachment llvm-install_name.diff added
comment:1 Changed 2 years ago by ryandesign@…
- Keywords haspatch added
Attached is a patch that brings back the earlier code to fix the install_name, updated for the names of the libraries in llvm 2.9. I am still testing whether this patch works and fixes the problem.
comment:2 Changed 2 years ago by ryandesign@…
P.S: When this issue is resolved, please commit the patch in #29145 at the same time so users only have to rebuild once.
comment:3 Changed 2 years ago by ryandesign@…
Yes, this does fix the issue for me; I'm now able to build pure again.
Note: See
TracTickets for help on using
tickets.


possible fix