[llvm-bugs] [Bug 42575] New: CLANG_LINK_CLANG_DYLIB=ON does not work with LLVM_INSTALL_TOOLCHAIN_ONLY=ON

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Jul 11 01:26:54 PDT 2019


https://bugs.llvm.org/show_bug.cgi?id=42575

            Bug ID: 42575
           Summary: CLANG_LINK_CLANG_DYLIB=ON does not work with
                    LLVM_INSTALL_TOOLCHAIN_ONLY=ON
           Product: clang
           Version: trunk
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: libclang
          Assignee: unassignedclangbugs at nondot.org
          Reporter: aheejin at gmail.com
                CC: klimek at google.com, llvm-bugs at lists.llvm.org,
                    richard-llvm at metafoo.co.uk

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.

-- 
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/20190711/08d26fb6/attachment.html>


More information about the llvm-bugs mailing list