[llvm] [ORC] Add LoadRelocatableObject: universal binary support, clearer er… (PR #104406)
LLVM Continuous Integration via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 24 20:22:01 PST 2025
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `openmp-offload-amdgpu-runtime-2` running on `rocm-worker-hw-02` while building `llvm` at step 5 "compile-openmp".
Full details are available at: https://lab.llvm.org/buildbot/#/builders/10/builds/75
<details>
<summary>Here is the relevant piece of the build log for the reference</summary>
```
Step 5 (compile-openmp) failure: build (failure)
...
11.228 [660/19/3746] Linking CXX executable bin/clang-format
11.235 [660/18/3747] Linking CXX shared library lib/libLLVMPasses.so.20.0git
11.244 [659/18/3748] Creating library symlink lib/libLLVMPasses.so
11.337 [657/19/3749] Building CXX object tools/lld/Common/CMakeFiles/lldCommon.dir/Version.cpp.o
11.338 [656/19/3750] Linking CXX executable bin/llvm-extract
11.371 [656/18/3751] Linking CXX shared library lib/libLLVMGlobalISel.so.20.0git
11.379 [655/18/3752] Creating library symlink lib/libLLVMGlobalISel.so
11.415 [655/17/3753] Linking CXX shared library lib/liblldCommon.so.20.0git
11.423 [654/17/3754] Creating library symlink lib/liblldCommon.so
11.444 [654/16/3755] Linking CXX shared library lib/libLLVMOrcJIT.so.20.0git
FAILED: lib/libLLVMOrcJIT.so.20.0git
: && /usr/bin/c++ -fPIC -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -fno-lifetime-dse -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -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 -Wl,-rpath-link,/home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.build/./lib -Wl,--gc-sections -shared -Wl,-soname,libLLVMOrcJIT.so.20.0git -o lib/libLLVMOrcJIT.so.20.0git lib/ExecutionEngine/Orc/CMakeFiles/LLVMOrcJIT.dir/COFFVCRuntimeSupport.cpp.o lib/ExecutionEngine/Orc/CMakeFiles/LLVMOrcJIT.dir/COFFPlatform.cpp.o lib/ExecutionEngine/Orc/CMakeFiles/LLVMOrcJIT.dir/CompileOnDemandLayer.cpp.o lib/ExecutionEngine/Orc/CMakeFiles/LLVMOrcJIT.dir/CompileUtils.cpp.o lib/ExecutionEngine/Orc/CMakeFiles/LLVMOrcJIT.dir/Core.cpp.o lib/ExecutionEngine/Orc/CMakeFiles/LLVMOrcJIT.dir/DebugObjectManagerPlugin.cpp.o lib/ExecutionEngine/Orc/CMakeFiles/LLVMOrcJIT.dir/DebugUtils.cpp.o lib/ExecutionEngine/Orc/CMakeFiles/LLVMOrcJIT.dir/EPCDynamicLibrarySearchGenerator.cpp.o lib/ExecutionEngine/Orc/CMakeFiles/LLVMOrcJIT.dir/EPCDebugObjectRegistrar.cpp.o lib/ExecutionEngine/Orc/CMakeFiles/LLVMOrcJIT.dir/EPCEHFrameRegistrar.cpp.o lib/ExecutionEngine/Orc/CMakeFiles/LLVMOrcJIT.dir/EPCGenericDylibManager.cpp.o lib/ExecutionEngine/Orc/CMakeFiles/LLVMOrcJIT.dir/EPCGenericJITLinkMemoryManager.cpp.o lib/ExecutionEngine/Orc/CMakeFiles/LLVMOrcJIT.dir/EPCGenericRTDyldMemoryManager.cpp.o lib/ExecutionEngine/Orc/CMakeFiles/LLVMOrcJIT.dir/EPCIndirectionUtils.cpp.o lib/ExecutionEngine/Orc/CMakeFiles/LLVMOrcJIT.dir/ExecutionUtils.cpp.o lib/ExecutionEngine/Orc/CMakeFiles/LLVMOrcJIT.dir/ObjectFileInterface.cpp.o lib/ExecutionEngine/Orc/CMakeFiles/LLVMOrcJIT.dir/IndirectionUtils.cpp.o lib/ExecutionEngine/Orc/CMakeFiles/LLVMOrcJIT.dir/IRCompileLayer.cpp.o lib/ExecutionEngine/Orc/CMakeFiles/LLVMOrcJIT.dir/IRTransformLayer.cpp.o lib/ExecutionEngine/Orc/CMakeFiles/LLVMOrcJIT.dir/JITTargetMachineBuilder.cpp.o lib/ExecutionEngine/Orc/CMakeFiles/LLVMOrcJIT.dir/LazyReexports.cpp.o lib/ExecutionEngine/Orc/CMakeFiles/LLVMOrcJIT.dir/Layer.cpp.o lib/ExecutionEngine/Orc/CMakeFiles/LLVMOrcJIT.dir/LoadRelocatableObject.cpp.o lib/ExecutionEngine/Orc/CMakeFiles/LLVMOrcJIT.dir/LookupAndRecordAddrs.cpp.o lib/ExecutionEngine/Orc/CMakeFiles/LLVMOrcJIT.dir/LLJIT.cpp.o lib/ExecutionEngine/Orc/CMakeFiles/LLVMOrcJIT.dir/MachO.cpp.o lib/ExecutionEngine/Orc/CMakeFiles/LLVMOrcJIT.dir/MachOPlatform.cpp.o lib/ExecutionEngine/Orc/CMakeFiles/LLVMOrcJIT.dir/MapperJITLinkMemoryManager.cpp.o lib/ExecutionEngine/Orc/CMakeFiles/LLVMOrcJIT.dir/MemoryMapper.cpp.o lib/ExecutionEngine/Orc/CMakeFiles/LLVMOrcJIT.dir/ELFNixPlatform.cpp.o lib/ExecutionEngine/Orc/CMakeFiles/LLVMOrcJIT.dir/Mangling.cpp.o lib/ExecutionEngine/Orc/CMakeFiles/LLVMOrcJIT.dir/ObjectLinkingLayer.cpp.o lib/ExecutionEngine/Orc/CMakeFiles/LLVMOrcJIT.dir/ObjectTransformLayer.cpp.o lib/ExecutionEngine/Orc/CMakeFiles/LLVMOrcJIT.dir/OrcABISupport.cpp.o lib/ExecutionEngine/Orc/CMakeFiles/LLVMOrcJIT.dir/OrcV2CBindings.cpp.o lib/ExecutionEngine/Orc/CMakeFiles/LLVMOrcJIT.dir/RTDyldObjectLinkingLayer.cpp.o lib/ExecutionEngine/Orc/CMakeFiles/LLVMOrcJIT.dir/SectCreate.cpp.o lib/ExecutionEngine/Orc/CMakeFiles/LLVMOrcJIT.dir/SimpleRemoteEPC.cpp.o lib/ExecutionEngine/Orc/CMakeFiles/LLVMOrcJIT.dir/Speculation.cpp.o lib/ExecutionEngine/Orc/CMakeFiles/LLVMOrcJIT.dir/SpeculateAnalyses.cpp.o lib/ExecutionEngine/Orc/CMakeFiles/LLVMOrcJIT.dir/ExecutorProcessControl.cpp.o lib/ExecutionEngine/Orc/CMakeFiles/LLVMOrcJIT.dir/TaskDispatch.cpp.o lib/ExecutionEngine/Orc/CMakeFiles/LLVMOrcJIT.dir/ThreadSafeModule.cpp.o -Wl,-rpath,"\$ORIGIN/../lib:/home/botwork
JITLink.so.20.0git lib/libLLVMOrcTargetProcess.so.20.0git lib/libLLVMWindowsDriver.so.20.0git lib/libLLVMPasses.so.20.0git lib/libLLVMRuntimeDyld.so.20.0git lib/libLLVMBitWriter.so.20.0git lib/libLLVMTransformUtils.so.20.0git lib/libLLVMTarget.so.20.0git lib/libLLVMAnalysis.so.20.0git lib/libLLVMObject.so.20.0git lib/libLLVMBitReader.so.20.0git lib/libLLVMCore.so.20.0git lib/libLLVMMC.so.20.0git lib/libLLVMOrcShared.so.20.0git lib/libLLVMTargetParser.so.20.0git lib/libLLVMSupport.so.20.0git -Wl,-rpath-link,/home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.build/lib && :
/usr/bin/ld: lib/ExecutionEngine/Orc/CMakeFiles/LLVMOrcJIT.dir/LoadRelocatableObject.cpp.o: in function `llvm::orc::loadRelocatableObject(llvm::StringRef, llvm::Triple const&)':
LoadRelocatableObject.cpp:(.text._ZN4llvm3orc21loadRelocatableObjectENS_9StringRefERKNS_6TripleE+0x9c): undefined reference to `llvm::identify_magic(llvm::StringRef)'
/usr/bin/ld: lib/ExecutionEngine/Orc/CMakeFiles/LLVMOrcJIT.dir/MachO.cpp.o: in function `llvm::orc::loadMachORelocatableObject(llvm::StringRef, llvm::Triple const&)':
MachO.cpp:(.text._ZN4llvm3orc26loadMachORelocatableObjectENS_9StringRefERKNS_6TripleE+0xa6): undefined reference to `llvm::identify_magic(llvm::StringRef)'
collect2: error: ld returned 1 exit status
11.501 [654/15/3756] Linking CXX shared library lib/libclangAST.so.20.0git
11.650 [654/14/3757] Building AMDGPUGenSearchableTables.inc...
12.514 [654/13/3758] Building CXX object lib/LTO/CMakeFiles/LLVMLTO.dir/LTO.cpp.o
12.931 [654/12/3759] Building CXX object lib/CodeGen/AsmPrinter/CMakeFiles/LLVMAsmPrinter.dir/AsmPrinter.cpp.o
14.317 [654/11/3760] Building CXX object tools/llvm-exegesis/lib/X86/CMakeFiles/obj.LLVMExegesisX86.dir/Target.cpp.o
14.423 [654/10/3761] Building CXX object tools/llvm-exegesis/CMakeFiles/llvm-exegesis.dir/llvm-exegesis.cpp.o
14.971 [654/9/3762] Building CXX object tools/lli/CMakeFiles/lli.dir/lli.cpp.o
15.384 [654/8/3763] Building AMDGPUGenAsmWriter.inc...
15.799 [654/7/3764] Building AMDGPUGenGlobalISel.inc...
16.612 [654/6/3765] Building AMDGPUGenDAGISel.inc...
16.615 [654/5/3766] Building AMDGPUGenAsmMatcher.inc...
17.469 [654/4/3767] Building AMDGPUGenInstrInfo.inc...
18.055 [654/3/3768] Building CXX object tools/clang/lib/Interpreter/CMakeFiles/obj.clangInterpreter.dir/Interpreter.cpp.o
18.300 [654/2/3769] Building AMDGPUGenRegisterInfo.inc...
18.700 [654/1/3770] Building AMDGPUGenRegisterBank.inc...
ninja: build stopped: subcommand failed.
```
</details>
https://github.com/llvm/llvm-project/pull/104406
More information about the llvm-commits
mailing list