[llvm-bugs] [Bug 25664] New: lib/*.dylib have invalid RPATH

via llvm-bugs llvm-bugs at lists.llvm.org
Sat Nov 28 18:49:07 PST 2015


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: unassignedbugs at nondot.org
          Reporter: jeremyhu at apple.com
                CC: llvm-bugs at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20151129/2e81dbbb/attachment.html>


More information about the llvm-bugs mailing list