[llvm-bugs] [Bug 43009] New: build of clang with LLVM_TARGETS_TO_BUILD set to X86 breaks when building clang shared library
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Aug 15 11:11:36 PDT 2019
https://bugs.llvm.org/show_bug.cgi?id=43009
Bug ID: 43009
Summary: build of clang with LLVM_TARGETS_TO_BUILD set to X86
breaks when building clang shared library
Product: clang
Version: 8.0
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Tooling
Assignee: unassignedclangbugs at nondot.org
Reporter: jscharf at purestorage.com
CC: llvm-bugs at lists.llvm.org
I was building clang 8.0.1 from source and tried using
-DLLVM_TARGETS_TO_BUILD="X86" as part of the cmake input along with shared
libraries. LLVM builds fine, the clang executable builds fine but the clang .so
fails, saying all the other arch entry points are missing. As soon as I change
X86 to all for both llvm and clang, it works fine. I am bootstrapping with
gcc9/ld first in this case.
cmake command for llvm:
LD_LIBRARY_PATH="/usr/local/compilers/gcc9/lib64" cmake -G "Unix Makefiles"
-DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=/usr/local/compilers/gcc9/bin/gcc
-DCMAKE_CXX_COMPILER=/usr/local/compilers/gcc9/bin/g++
-DCMAKE_INSTALL_PREFIX=/usr/local/compilers/clang8
-DLLVM_TARGETS_TO_BUILD="all" -DLLVM_BUILD_LLVM_DYLIB=true
-DLLVM_LINK_LLVM_DYLIB=true ../../llvm-8.0.1.src
clang:
LD_LIBRARY_PATH="/usr/local/compilers/gcc9/lib64" cmake -G "Unix Makefiles"
-DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=/usr/local/compilers/gcc9/bin/gcc
-DCMAKE_CXX_COMPILER=/usr/local/compilers/gcc9/bin/g++
-DCMAKE_INSTALL_PREFIX=/usr/local/compilers/clang8
-DLLVM_TARGETS_TO_BUILD="all" -DLLVM_BUILD_LLVM_DYLIB=true
-DLLVM_LINK_LLVM_DYLIB=true -DCMAKE_C_FLAGS="-L/usr/local/compilers/c
lang8/lib" -DCMAKE_CXX_FLAGS="-L/usr/local/compilers/clang8/lib"
../../cfe-8.0.1.src
--
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/20190815/1378d92b/attachment.html>
More information about the llvm-bugs
mailing list