<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </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 - CLANG_LINK_CLANG_DYLIB=ON does not work with LLVM_INSTALL_TOOLCHAIN_ONLY=ON"
   href="https://bugs.llvm.org/show_bug.cgi?id=42575">42575</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>CLANG_LINK_CLANG_DYLIB=ON does not work with LLVM_INSTALL_TOOLCHAIN_ONLY=ON
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

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

        <tr>
          <th>Hardware</th>
          <td>All
          </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>libclang
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>aheejin@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>klimek@google.com, llvm-bugs@lists.llvm.org, richard-llvm@metafoo.co.uk
          </td>
        </tr></table>
      <p>
        <div>
        <pre>If llvm + clang is built with CLANG_LINK_CLANG_DYLIB=ON, or
LLVM_LINK_LLVM_DYLIB=ON (which sets CLANG_LINK_CLANG_DYLIB=ON) and
LLVM_INSTALL_TOOLCHAIN_ONLY=ON at the same time, the resulting clang binary
crashes with the error message:
```
clang: error while loading shared libraries: libclang_shared.so.9svn: cannot
open shared object file: No such file or directory
```
This message is from Linux, but other platforms have similar messages. I
haven't checked on Windows, but Mac has the same error.

I think even with `LLVM_INSTALL_TOOLCHAIN_ONLY=ON`, libclang_shared should be
installed in lib/ directory to make binaries work.</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>