New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #29069 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

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

llvm-install_name.diff (726 bytes) - added by ryandesign@… 2 years ago.
possible fix

Change History

Changed 2 years ago by ryandesign@…

possible fix

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.

comment:4 Changed 2 years ago by mfeiri@…

  • Status changed from new to assigned

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 2 years ago by ryandesign@…

So can we apply the patch I attached here?

comment:6 Changed 2 years ago by mfeiri@…

  • Status changed from assigned to closed
  • Resolution set to fixed

Fixed in r78114

Note: See TracTickets for help on using tickets.