: && /usr/lib/llvm-18/bin/clang++ -fPIC -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-class-memaccess -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -g -Wl,-z,defs -Wl,-z,nodelete -fuse-ld=lld -Wl,--color-diagnostics -Wl,--version-script,"/home/triton/work/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/libLLVMAMDGPUAsmParser.so.16git lib/libLLVMX86AsmParser.so.16git lib/libLLVMRISCVAsmParser.so.16git lib/libLLVMAMDGPUCodeGen.so.16git lib/libLLVMX86CodeGen.so.16git lib/libLLVMRISCVCodeGen.so.16git lib/libLLVMX86Desc.so.16git lib/libLLVMAMDGPUDisassembler.so.16git lib/libLLVMX86Disassembler.so.16git lib/libLLVMRISCVDisassembler.so.16git lib/libLLVMX86Info.so.16git lib/libLLVMLTO.so.16git lib/libLLVMMCDisassembler.so.16git lib/libLLVMAMDGPUDesc.so.16git lib/libLLVMAMDGPUInfo.so.16git lib/libLLVMRISCVDesc.so.16git lib/libLLVMRISCVInfo.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/triton/work/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
How to reproduce
First, download llvm-18(maybe higher version too), then use clang-18/clang++-18 as c/cxx compiler
Bug info