[llvm-bugs] [Bug 33669] New: Building with LINK_LLVM_DYLIB and LTO cause tblgen link failure
via llvm-bugs
llvm-bugs at lists.llvm.org
Sat Jul 1 10:36:34 PDT 2017
https://bugs.llvm.org/show_bug.cgi?id=33669
Bug ID: 33669
Summary: Building with LINK_LLVM_DYLIB and LTO cause tblgen
link failure
Product: tools
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: TableGen
Assignee: unassignedbugs at nondot.org
Reporter: me at marandil.pl
CC: llvm-bugs at lists.llvm.org
Created attachment 18742
--> https://bugs.llvm.org/attachment.cgi?id=18742&action=edit
Repro script and log
I tried building LLVM trunk with the following CMake config:
```
cmake $SOURCE -G Ninja \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=$TARGET \
-DLLVM_LINK_LLVM_DYLIB=On \
-DLLVM_ENABLE_LTO=On \
-DLLVM_ENABLE_ASSERTIONS=On \
-DLLVM_TARGETS_TO_BUILD=X86
```
However, the process crashed at linking tblgen with numerous errors, including
the following four:
/usr/bin/ld: error: lib/libLLVMSupport.a: no archive symbol table (run ranlib)
/usr/bin/ld: error: lib/libLLVMTableGen.a: no archive symbol table (run ranlib)
/usr/bin/ld: error: lib/libLLVMSupport.a: no archive symbol table (run ranlib)
/usr/bin/ld: error: lib/libLLVMDemangle.a: no archive symbol table (run ranlib)
... followed by an uncountable number of undefined references.
I'm using llvm-3.8's clang/clang++ and GNU gold 1.14 from binutils 2.28 in this
build.
I'm attaching my repro script and full log
(gathered as `bash repro.sh 2>&1 | tee repro.log`)
--
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/20170701/3b0ae893/attachment.html>
More information about the llvm-bugs
mailing list