[llvm] Reland - [Offload] Introduce offload-tblgen and initial new API implementation (#108413) (PR #117704)

LLVM Continuous Integration via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 27 02:41:54 PST 2024


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `openmp-offload-sles-build-only` running on `rocm-worker-hw-04-sles` while building `offload` at step 5 "compile-openmp".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/140/builds/11833

<details>
<summary>Here is the relevant piece of the build log for the reference</summary>

```
Step 5 (compile-openmp) failure: build (failure)
...
23.617 [6/9/1777] Building CXX object offload/src/CMakeFiles/omptarget.dir/LegacyAPI.cpp.o
23.740 [6/8/1778] Building CXX object offload/src/CMakeFiles/omptarget.dir/OpenMP/InteropAPI.cpp.o
23.874 [6/7/1779] Building CXX object offload/src/CMakeFiles/omptarget.dir/OpenMP/Mapping.cpp.o
23.971 [6/6/1780] Building CXX object offload/src/CMakeFiles/omptarget.dir/device.cpp.o
23.980 [6/5/1781] Building CXX object offload/src/CMakeFiles/omptarget.dir/OpenMP/API.cpp.o
24.009 [6/4/1782] Building CXX object offload/src/CMakeFiles/omptarget.dir/interface.cpp.o
24.342 [6/3/1783] Building CXX object offload/src/CMakeFiles/omptarget.dir/PluginManager.cpp.o
24.523 [6/2/1784] Building CXX object offload/liboffload/CMakeFiles/LLVMOffload.dir/src/OffloadImpl.cpp.o
24.688 [5/2/1785] Building CXX object offload/src/CMakeFiles/omptarget.dir/omptarget.cpp.o
24.816 [4/2/1786] Linking CXX shared library /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/lib/libLLVMOffload.so.20.0git
FAILED: /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/lib/libLLVMOffload.so.20.0git 
: && /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/./bin/clang++ --target=x86_64-unknown-linux-gnu -fPIC -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG  -Wl,-z,defs -Wl,-z,nodelete -Wl,--color-diagnostics   -Wl,--gc-sections -shared -Wl,-soname,libLLVMOffload.so.20.0git -o /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/lib/libLLVMOffload.so.20.0git offload/liboffload/CMakeFiles/LLVMOffload.dir/src/OffloadLib.cpp.o offload/liboffload/CMakeFiles/LLVMOffload.dir/src/OffloadImpl.cpp.o  -Wl,-rpath,"\$ORIGIN:/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/runtimes/runtimes-bins/offload/liboffload/..:"  /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/lib/libomptarget.rtl.amdgpu.a  /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/lib/libomptarget.rtl.cuda.a  /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/lib/libomptarget.rtl.host.a  -Wl,--version-script=/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/offload/liboffload/exports  /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/lib/libLLVMExtensions.a  /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/lib/libLLVMAMDGPUCodeGen.a  /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/lib/libLLVMPasses.a  /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/lib/libLLVMCFGuard.a  /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/lib/libLLVMCoroutines.a  /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/lib/libLLVMipo.a  /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/lib/libLLVMInstrumentation.a  /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/lib/libLLVMLinker.a  /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/lib/libLLVMFrontendOpenMP.a  /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/lib/libLLVMFrontendOffloading.a  /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/lib/libLLVMVectorize.a  /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/lib/libLLVMSandboxIR.a  /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/lib/libLLVMHipStdPar.a  /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/lib/libLLVMIRPrinter.a  /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/lib/libLLVMAsmPrinter.a  /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/lib/libLLVMGlobalISel.a  /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/lib/libLLVMMIRParser.a  /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/lib/libLLVMSelectionDAG.a  /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/lib/libLLVMCodeGen.a  /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/lib/libLLVMScalarOpts.a  /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/lib/libLLVMAggressiveInstCombine.a  /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/lib/libLLVMInstCombine.a  /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/lib/libLLVMCGData.a  /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/lib/libLLVMBitWriter.a  /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/lib/libLLVMObjCARCOpts.a  /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/lib/libLLVMTarget.a  /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/lib/libLLVMTransformUtils.a  /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/lib/libLLVMAMDGPUAsmParser.a  /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/lib/libLLVMAMDGPUDisassembler.a  /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/lib/libLLVMAMDGPUDesc.a  /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/lib/libLLVMMCDisassembler.a  /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/lib/libLLVMAMDGPUInfo.a  /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/lib/libLLVMAMDGPUUtils.a  /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/lib/libLLVMAnalysis.a  /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/lib/libLLVMProfileData.a  /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/lib/libLLVMSymbolize.a  /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/lib/libLLVMDebugInfoPDB.a  /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/lib/libLLVMDebugInfoCodeView.a  /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/lib/libLLVMDebugInfoMSF.a  /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/lib/libLLVMDebugInfoBTF.a  /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/lib/libLLVMDebugInfoDWARF.a  /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/lib/libLLVMObject.a  /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/lib/libLLVMIRReader.a  /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/lib/libLLVMBitReader.a  /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/lib/libLLVMAsmParser.a  /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/lib/libLLVMTextAPI.a  /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/lib/libLLVMCore.a  /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/lib/libLLVMRemarks.a  /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/lib/libLLVMBitstreamReader.a  /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/lib/libLLVMCodeGenTypes.a  /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/lib/libLLVMMCParser.a  /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/lib/libLLVMMC.a  /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/lib/libLLVMBinaryFormat.a  /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/lib/libLLVMTargetParser.a  /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/lib/libLLVMSupport.a  /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/lib/libLLVMDemangle.a  -lrt  -ldl  -lm  /usr/lib64/libz.so  /usr/lib64/libzstd.so  -lpthread  /usr/lib64/libffi.so && :
ld.lld: error: undefined symbol: llvm::omp::target::ompt::Initialized
>>> referenced by PluginInterface.cpp
>>>               PluginInterface.cpp.o:(llvm::omp::target::plugin::GenericDeviceTy::GenericDeviceTy(llvm::omp::target::plugin::GenericPluginTy&, int, int, llvm::omp::GV const&)) in archive /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/lib/libomptarget.rtl.amdgpu.a
>>> referenced by PluginInterface.cpp
>>>               PluginInterface.cpp.o:(llvm::omp::target::plugin::GenericDeviceTy::init(llvm::omp::target::plugin::GenericPluginTy&)) in archive /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/lib/libomptarget.rtl.amdgpu.a

ld.lld: error: undefined symbol: llvm::omp::target::ompt::lookupCallbackByCode
>>> referenced by PluginInterface.cpp
>>>               PluginInterface.cpp.o:(llvm::omp::target::plugin::GenericDeviceTy::GenericDeviceTy(llvm::omp::target::plugin::GenericPluginTy&, int, int, llvm::omp::GV const&)) in archive /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/lib/libomptarget.rtl.amdgpu.a

ld.lld: error: undefined symbol: llvm::omp::target::ompt::lookupCallbackByName
>>> referenced by PluginInterface.cpp
>>>               PluginInterface.cpp.o:(llvm::omp::target::plugin::GenericDeviceTy::init(llvm::omp::target::plugin::GenericPluginTy&)) in archive /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/lib/libomptarget.rtl.amdgpu.a
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
25.096 [4/1/1787] Linking CXX shared library /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/lib/libomptarget.so.20.0git
ninja: build stopped: subcommand failed.
FAILED: runtimes/runtimes-stamps/runtimes-build 
cd /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/runtimes/runtimes-bins && /usr/bin/cmake --build .
ninja: build stopped: subcommand failed.

```

</details>

https://github.com/llvm/llvm-project/pull/117704


More information about the llvm-commits mailing list