https://bugs.llvm.org/show_bug.cgi?id=37591
Bug ID: 37591
Summary: Dynamic linking: undefined references when linking
libLTO.so
Product: tools
Version: 6.0
Hardware: Sun
OS: Solaris
Status: NEW
Severity: normal
Priority: P
Component: lto
Assignee: unassignedb...@nondot.org
Reporter: phant...@gmail.com
CC: llvm-bugs@lists.llvm.org
I'm building on Solaris 10 / sparcv9, though I suspect this isn't solaris or
sparc specific.
I built with the following:
cmake ../src/llvm \
-DCMAKE_C_COMPILER=gcc-7.2.0 \
-DCMAKE_CXX_COMPILER=g++-7.2.0 \
-DGCC_INSTALL_PREFIX=$(dirname $(dirname $(which gcc-7.2.0))) \
-DBUILD_SHARED_LIBS=ON \
-DLINK_LLVM_DYLIB=ON \
-DCMAKE_BUILD_TYPE=RelWithDebInfo
make -j32
I'll explain why I built using those options in a separate comment.
When linking libLTO.so it fails with undefined references to the following:
LLVMDisasmDispose
LLVMCreateDisasmCPU
LLVMCreateDisasm
LLVMDisasmInstruction
LLVMSetDisasmOptions
If I remove those entries from tools/lto/lto.exports then it links fine.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs