Opened 8 years ago
Closed 8 years ago
#51754 closed defect (duplicate)
clang-3.9: dyld: Library not loaded: @rpath/libLLVM.dylib
Reported by: | noloader (Jeffrey Walton) | Owned by: | jeremyhu (Jeremy Huddleston Sequoia) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.3.4 |
Keywords: | Cc: | ||
Port: | clang-3.9 |
Description (last modified by ryandesign (Ryan Carsten Schmidt))
$ cat test.cxx #include <iostream> #include <algorithm> int main(int argc, char* argv[]) { std::for_each(argv, argv+argc, [](char* str) {std::cout << str << std::endl;}); return 0; }
And
$ /opt/local/bin/clang-mp-3.9 -std=c++11 test.cxx -o test.exe dyld: Library not loaded: @rpath/libLLVM.dylib Referenced from: /opt/local/libexec/llvm-3.9/lib/libLTO.dylib Reason: image not found clang: error: unable to execute command: Trace/BPT trap: 5 clang: error: linker command failed due to signal (use -v to see invocation)
This appears to be related: #50853
Change History (3)
comment:1 Changed 8 years ago by kenneth.f.cunningham@…
comment:2 Changed 8 years ago by ryandesign (Ryan Carsten Schmidt)
Description: | modified (diff) |
---|---|
Keywords: | "clang-3.9" "link" removed |
Owner: | changed from macports-tickets@… to jeremyhu@… |
Port: | clang-3.9 added |
Summary: | Clang 3.9 can't link a C++ program → clang-3.9: dyld: Library not loaded: @rpath/libLLVM.dylib |
Jeffrey, are you also running Snow Leopard? If so, I would call this a duplicate of #51542.
comment:3 Changed 8 years ago by jeremyhu (Jeremy Huddleston Sequoia)
Resolution: | → duplicate |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
This issue seems similar to the one I reported last month and so you might try the solution I found:
Whether this was needed seemed to depend on the exact version of MacOSX used; I needed it for Snow Leopard, but not for El Cap. I didn't try the OS versions between those two. There is more info in that previous bug report that you might find helpful.