<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - lib/*.dylib have invalid RPATH"
   href="https://llvm.org/bugs/show_bug.cgi?id=25664">25664</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>lib/*.dylib have invalid RPATH
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Build scripts
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>cmake
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>jeremyhu@apple.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>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.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>