Opened 10 years ago

Closed 9 years ago

#29069 closed defect (fixed)

llvm: Library not loaded: @executable_path/../lib/libLLVM-2.9.dylib

Reported by: ryandesign (Ryan Schmidt) Owned by: mfeiri
Priority: Normal Milestone:
Component: ports Version: 1.9.2
Keywords: haspatch Cc: erickt@…
Port: llvm


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 (1)

llvm-install_name.diff (726 bytes) - added by ryandesign (Ryan Schmidt) 10 years ago.
possible fix

Download all attachments as: .zip

Change History (7)

Changed 10 years ago by ryandesign (Ryan Schmidt)

Attachment: llvm-install_name.diff added

possible fix

comment:1 Changed 10 years ago by ryandesign (Ryan Schmidt)

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 10 years ago by ryandesign (Ryan Schmidt)

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 10 years ago by ryandesign (Ryan Schmidt)

Yes, this does fix the issue for me; I'm now able to build pure again.

comment:4 Changed 10 years ago by mfeiri

Status: newassigned

There were some related changes in 2.9 and I assumed that this was fixed. But I forgot to actually check. Sorry about this.

comment:5 Changed 10 years ago by ryandesign (Ryan Schmidt)

So can we apply the patch I attached here?

comment:6 Changed 9 years ago by mfeiri

Resolution: fixed
Status: assignedclosed

Fixed in r78114

Note: See TracTickets for help on using tickets.