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: unassignedclangb...@nondot.org
          Reporter: ahee...@gmail.com
                CC: kli...@google.com, llvm-bugs@lists.llvm.org,
                    richard-l...@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to