Junsong Li via llvm-dev
2016-Jan-25 18:39 UTC
[llvm-dev] Undefined symbol LLVMDisasmDispose in LTO.exports
Hi list, I built the trunk LLVM using cmake with -DBUILD_SHARED_LIBS=ON, but got the following errors: [ 53%] Linking CXX shared library ../../lib/libLTO.so Undefined first referenced symbol in file LLVMDisasmDispose /workspace/llvm/build-trunk/tools/lto/LTO.exports LLVMCreateDisasmCPU /workspace/llvm/build-trunk/tools/lto/LTO.exports LLVMCreateDisasm /workspace/llvm/build-trunk/tools/lto/LTO.exports LLVMDisasmInstruction /workspace/llvm/build-trunk/tools/lto/LTO.exports LLVMSetDisasmOptions /workspace/llvm/build-trunk/tools/lto/LTO.exports ld: fatal: symbol referencing errors collect2: error: ld returned 1 exit status tools/lto/CMakeFiles/LTO.dir/build.make:138: recipe for target 'lib/libLTO.so' failed gmake[2]: *** [lib/libLTO.so] Error 1 CMakeFiles/Makefile2:6309: recipe for target 'tools/lto/CMakeFiles/LTO.dir/all' failed gmake[1]: *** [tools/lto/CMakeFiles/LTO.dir/all] Error 2 Makefile:149: recipe for target 'all' failed gmake: *** [all] Error 2 I built this on a Sparc Solaris system. If I remove these five symbols from the exports file, compilation continues. Any suggestions? Is it fine to just remove these five symbols (they are not documented on the LLVM LTO manual)? Thank you. Best, Junsong Li