https://llvm.org/bugs/show_bug.cgi?id=25664
Bug ID: 25664 Summary: lib/*.dylib have invalid RPATH Product: Build scripts Version: trunk Hardware: PC OS: All Status: NEW Severity: normal Priority: P Component: cmake Assignee: unassignedb...@nondot.org Reporter: jerem...@apple.com CC: llvm-bugs@lists.llvm.org Classification: Unclassified After an initial pass moving from autoconf to cmake-based builds, I found that libLTO.dylib had an incorrect RPATH set: $ clang-mp-3.8 true.c dyld: Library not loaded: @rpath/libLLVMAArch64CodeGen.dylib Referenced from: /opt/local/libexec/llvm-3.8/lib/libLTO.dylib Reason: image not found clang-3.8: error: unable to execute command: Trace/BPT trap: 5 clang-3.8: error: linker command failed due to signal (use -v to see invocation) lib/*.dylib all have: cmd LC_RPATH cmdsize 40 path @executable_path/../lib (offset 12) That is a correct LC_RPATH for the executables in bin, but the libraries should have @load_path instead. -- You are receiving this mail because: You are on the CC list for the bug.
_______________________________________________ llvm-bugs mailing list llvm-bugs@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs