[llvm-bugs] [Bug 47847] New: libLTO fails to link: /llvm/Config/Targets.def:31: undefined reference to `LLVMInitializeVETargetInfo'
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Oct 14 15:20:04 PDT 2020
https://bugs.llvm.org/show_bug.cgi?id=47847
Bug ID: 47847
Summary: libLTO fails to link: /llvm/Config/Targets.def:31:
undefined reference to `LLVMInitializeVETargetInfo'
Product: libraries
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Linker
Assignee: unassignedbugs at nondot.org
Reporter: slyfox at inbox.ru
CC: llvm-bugs at lists.llvm.org
llvm-11 and llvm trunk both fail to link libLTO:
$ cmake ../llvm -DCMAKE_INSTALL_PREFIX=/usr -DLLVM_APPEND_VC_REV=OFF
-DCMAKE_INSTALL_PREFIX=/usr/lib/llvm/11 -DLLVM_LIBDIR_SUFFIX=
-DBUILD_SHARED_LIBS=OFF -DLLVM_BUILD_LLVM_DYLIB=ON -DLLVM_LINK_LLVM_DYLIB=ON
-DLLVM_DISTRIBUTION_COMPONENTS='LLVM;LTO;Remarks;llvm-config;cmake-exports;llvm-headers;LLVMDemangle;LLVMSupport;LLVMTableGen'
-DLLVM_TARGETS_TO_BUILD=
-DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD='ARM;SystemZ;Hexagon;RISCV;AArch64;VE;X86;WebAssembly;AMDGPU;Sparc;Lanai;AVR;ARC;MSP430;XCore;PowerPC;Mips;NVPTX;BPF'
-DLLVM_BUILD_TESTS=yes -DLLVM_ENABLE_FFI=yes -DLLVM_ENABLE_LIBEDIT=no
-DLLVM_ENABLE_TERMINFO=yes -DLLVM_ENABLE_LIBXML2=no -DLLVM_ENABLE_ASSERTIONS=no
-DLLVM_ENABLE_LIBPFM=yes -DLLVM_ENABLE_EH=ON -DLLVM_ENABLE_RTTI=ON
-DLLVM_ENABLE_Z3_SOLVER=no -DFFI_INCLUDE_DIR=/usr/lib/libffi/include
-DFFI_LIBRARY_DIR= -DHAVE_LIBXAR=0 -DOCAMLFIND=NO
-DGO_EXECUTABLE=GO_EXECUTABLE-NOTFOUND -DCMAKE_BUILD_TYPE=RelWithDebInfo
-DCMAKE_CXX_FLAGS_DEBUG='-g0' -DCMAKE_C_FLAGS_DEBUG='-g0'
...
$ LANG=C make VERBOSE=1
...
[ 76%] Linking CXX shared library ../../lib/libLTO.so
cd /home/slyfox/dev/git/llvm-project/build/tools/lto && /usr/bin/cmake -E
cmake_link_script CMakeFiles/LTO.dir/link.txt --verbose=1
/usr/x86_64-pc-linux-gnu/gcc-bin/11.0.0/c++ -fPIC -fPIC
-fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra
-Wno-unused-parameter -Wwrite-strings -Wcast-qual
-Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough
-Wno-maybe-uninitialized -Wno-class-memaccess -Wno-redundant-move
-Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment
-ffunction-sections -fdata-sections -O2 -g -DNDEBUG
-Wl,-rpath-link,/home/slyfox/dev/git/llvm-project/build/./lib -Wl,-O3
-Wl,--gc-sections
-Wl,--version-script,"/home/slyfox/dev/git/llvm-project/build/tools/lto/LTO.exports"
-Wl,-z,defs -Wl,-z,nodelete -shared -Wl,-soname,libLTO.so.12git -o
../../lib/libLTO.so.12git CMakeFiles/LTO.dir/LTODisassembler.cpp.o
CMakeFiles/LTO.dir/lto.cpp.o -Wl,-rpath,"\$ORIGIN/../lib"
../../lib/libLLVM-12git.so
/usr/lib/gcc/x86_64-pc-linux-gnu/11.0.0/../../../../x86_64-pc-linux-gnu/bin/ld:
CMakeFiles/LTO.dir/lto.cpp.o: in function `llvm::InitializeAllTargetInfos()':
/home/slyfox/dev/git/llvm-project/build/include/llvm/Config/Targets.def:31:
undefined reference to `LLVMInitializeVETargetInfo'
/usr/lib/gcc/x86_64-pc-linux-gnu/11.0.0/../../../../x86_64-pc-linux-gnu/bin/ld:
/home/slyfox/dev/git/llvm-project/build/include/llvm/Config/Targets.def:31:
undefined reference to `LLVMInitializeVETargetInfo'
/usr/lib/gcc/x86_64-pc-linux-gnu/11.0.0/../../../../x86_64-pc-linux-gnu/bin/ld:
CMakeFiles/LTO.dir/lto.cpp.o: in function `llvm::InitializeAllTargets()':
/home/slyfox/dev/git/llvm-project/build/include/llvm/Config/Targets.def:31:
undefined reference to `LLVMInitializeVETarget'
/usr/lib/gcc/x86_64-pc-linux-gnu/11.0.0/../../../../x86_64-pc-linux-gnu/bin/ld:
CMakeFiles/LTO.dir/lto.cpp.o: in function `llvm::InitializeAllTargetMCs()':
/home/slyfox/dev/git/llvm-project/build/include/llvm/Config/Targets.def:31:
undefined reference to `LLVMInitializeVETargetMC'
/usr/lib/gcc/x86_64-pc-linux-gnu/11.0.0/../../../../x86_64-pc-linux-gnu/bin/ld:
CMakeFiles/LTO.dir/lto.cpp.o: in function `llvm::InitializeAllAsmPrinters()':
/home/slyfox/dev/git/llvm-project/build/include/llvm/Config/AsmPrinters.def:32:
undefined reference to `LLVMInitializeVEAsmPrinter'
/usr/lib/gcc/x86_64-pc-linux-gnu/11.0.0/../../../../x86_64-pc-linux-gnu/bin/ld:
CMakeFiles/LTO.dir/lto.cpp.o: in function `llvm::InitializeAllDisassemblers()':
/home/slyfox/dev/git/llvm-project/build/include/llvm/Config/Disassemblers.def:32:
undefined reference to `LLVMInitializeVEDisassembler'
/usr/lib/gcc/x86_64-pc-linux-gnu/11.0.0/../../../../x86_64-pc-linux-gnu/bin/ld:
CMakeFiles/LTO.dir/LTODisassembler.cpp.o: in function
`llvm::InitializeAllTargetInfos()':
/home/slyfox/dev/git/llvm-project/build/include/llvm/Config/Targets.def:31:
undefined reference to `LLVMInitializeVETargetInfo'
/usr/lib/gcc/x86_64-pc-linux-gnu/11.0.0/../../../../x86_64-pc-linux-gnu/bin/ld:
CMakeFiles/LTO.dir/LTODisassembler.cpp.o: in function
`llvm::InitializeAllTargetMCs()':
/home/slyfox/dev/git/llvm-project/build/include/llvm/Config/Targets.def:31:
undefined reference to `LLVMInitializeVETargetMC'
/usr/lib/gcc/x86_64-pc-linux-gnu/11.0.0/../../../../x86_64-pc-linux-gnu/bin/ld:
CMakeFiles/LTO.dir/LTODisassembler.cpp.o: in function
`llvm::InitializeAllDisassemblers()':
/home/slyfox/dev/git/llvm-project/build/include/llvm/Config/Disassemblers.def:32:
undefined reference to `LLVMInitializeVEDisassembler'
collect2: error: ld returned 1 exit status
make[2]: *** [tools/lto/CMakeFiles/LTO.dir/build.make:119: lib/libLTO.so.12git]
Error 1
make[2]: Leaving directory '/home/slyfox/dev/git/llvm-project/build'
make[1]: *** [CMakeFiles/Makefile2:26888: tools/lto/CMakeFiles/LTO.dir/all]
Error 2
make[1]: Leaving directory '/home/slyfox/dev/git/llvm-project/build'
--
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/20201014/fc605650/attachment.html>
More information about the llvm-bugs
mailing list