[PATCH] D135402: [LLD] Enable --no-undefined-version by default.
Joseph Huber via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 8 12:24:22 PST 2022
jhuber6 added a comment.
I'm still getting this when doing incremental builds. It's very annoying to need to completely remove my build directly every time I do a `git pull`.
FAILED: lib/libLTO.so.16git
: && /usr/bin/c++ -fPIC -fPIC -fno-semantic-interposition -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-pessimizing-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -Wl,-z,defs -Wl,-z,nodelete -fuse-ld=lld -Wl,--color-diagnostics -Wl,--gc-sections -Wl,--version-script,"/home/jhuber/Documents/llvm/llvm-project/build/tools/lto/LTO.exports" -shared -Wl,-soname,libLTO.so.16git -o lib/libLTO.so.16git tools/lto/CMakeFiles/LTO.dir/LTODisassembler.cpp.o tools/lto/CMakeFiles/LTO.dir/lto.cpp.o -Wl,-rpath,"\$ORIGIN/../lib" lib/libLLVMAArch64AsmParser.so.16git lib/libLLVMAMDGPUAsmParser.so.16git lib/libLLVMARMAsmParser.so.16git lib/libLLVMAVRAsmParser.so.16git lib/libLLVMBPFAsmParser.so.16git lib/libLLVMMipsAsmParser.so.16git lib/libLLVMMSP430AsmParser.so.16git lib/libLLVMPowerPCAsmParser.so.16git lib/libLLVMRISCVAsmParser.so.16git lib/libLLVMSparcAsmParser.so.16git lib/libLLVMSystemZAsmParser.so.16git lib/libLLVMVEAsmParser.so.16git lib/libLLVMWebAssemblyAsmParser.so.16git lib/libLLVMX86AsmParser.so.16git lib/libLLVMAArch64CodeGen.so.16git lib/libLLVMAMDGPUCodeGen.so.16git lib/libLLVMARMCodeGen.so.16git lib/libLLVMAVRCodeGen.so.16git lib/libLLVMBPFCodeGen.so.16git lib/libLLVMHexagonCodeGen.so.16git lib/libLLVMLanaiCodeGen.so.16git lib/libLLVMMipsCodeGen.so.16git lib/libLLVMMSP430CodeGen.so.16git lib/libLLVMNVPTXCodeGen.so.16git lib/libLLVMPowerPCCodeGen.so.16git lib/libLLVMRISCVCodeGen.so.16git lib/libLLVMSparcCodeGen.so.16git lib/libLLVMSystemZCodeGen.so.16git lib/libLLVMVECodeGen.so.16git lib/libLLVMWebAssemblyCodeGen.so.16git lib/libLLVMX86CodeGen.so.16git lib/libLLVMXCoreCodeGen.so.16git lib/libLLVMAVRDesc.so.16git lib/libLLVMBPFDesc.so.16git lib/libLLVMMipsDesc.so.16git lib/libLLVMMSP430Desc.so.16git lib/libLLVMNVPTXDesc.so.16git lib/libLLVMPowerPCDesc.so.16git lib/libLLVMSparcDesc.so.16git lib/libLLVMVEDesc.so.16git lib/libLLVMX86Desc.so.16git lib/libLLVMXCoreDesc.so.16git lib/libLLVMAArch64Disassembler.so.16git lib/libLLVMAMDGPUDisassembler.so.16git lib/libLLVMARMDisassembler.so.16git lib/libLLVMAVRDisassembler.so.16git lib/libLLVMBPFDisassembler.so.16git lib/libLLVMHexagonDisassembler.so.16git lib/libLLVMLanaiDisassembler.so.16git lib/libLLVMMipsDisassembler.so.16git lib/libLLVMMSP430Disassembler.so.16git lib/libLLVMPowerPCDisassembler.so.16git lib/libLLVMRISCVDisassembler.so.16git lib/libLLVMSparcDisassembler.so.16git lib/libLLVMSystemZDisassembler.so.16git lib/libLLVMVEDisassembler.so.16git lib/libLLVMWebAssemblyDisassembler.so.16git lib/libLLVMX86Disassembler.so.16git lib/libLLVMXCoreDisassembler.so.16git lib/libLLVMAVRInfo.so.16git lib/libLLVMBPFInfo.so.16git lib/libLLVMMipsInfo.so.16git lib/libLLVMMSP430Info.so.16git lib/libLLVMNVPTXInfo.so.16git lib/libLLVMPowerPCInfo.so.16git lib/libLLVMSparcInfo.so.16git lib/libLLVMVEInfo.so.16git lib/libLLVMX86Info.so.16git lib/libLLVMXCoreInfo.so.16git lib/libLLVMLTO.so.16git lib/libLLVMHexagonAsmParser.so.16git lib/libLLVMLanaiAsmParser.so.16git lib/libLLVMAArch64Desc.so.16git lib/libLLVMAArch64Info.so.16git lib/libLLVMAMDGPUDesc.so.16git lib/libLLVMAMDGPUInfo.so.16git lib/libLLVMARMDesc.so.16git lib/libLLVMARMInfo.so.16git lib/libLLVMHexagonDesc.so.16git lib/libLLVMHexagonInfo.so.16git lib/libLLVMLanaiDesc.so.16git lib/libLLVMLanaiInfo.so.16git lib/libLLVMRISCVDesc.so.16git lib/libLLVMRISCVInfo.so.16git lib/libLLVMSystemZDesc.so.16git lib/libLLVMSystemZInfo.so.16git lib/libLLVMWebAssemblyDesc.so.16git lib/libLLVMWebAssemblyInfo.so.16git lib/libLLVMMCDisassembler.so.16git lib/libLLVMCodeGen.so.16git lib/libLLVMTarget.so.16git lib/libLLVMMC.so.16git lib/libLLVMBitReader.so.16git lib/libLLVMCore.so.16git lib/libLLVMSupport.so.16git -Wl,-rpath-link,/home/jhuber/Documents/llvm/llvm-project/build/lib && :
ld.lld: error: version script assignment of 'LLVM_16' to symbol 'LLVMCreateDisasm' failed: symbol not defined
ld.lld: error: version script assignment of 'LLVM_16' to symbol 'LLVMCreateDisasmCPU' failed: symbol not defined
ld.lld: error: version script assignment of 'LLVM_16' to symbol 'LLVMDisasmDispose' failed: symbol not defined
ld.lld: error: version script assignment of 'LLVM_16' to symbol 'LLVMDisasmInstruction' failed: symbol not defined
ld.lld: error: version script assignment of 'LLVM_16' to symbol 'LLVMSetDisasmOptions' failed: symbol not defined
ld.lld: error: version script assignment of 'LLVM_16' to symbol 'LLVMCreateDisasmCPUFeatures' failed: symbol not defined
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D135402/new/
https://reviews.llvm.org/D135402
More information about the llvm-commits
mailing list