[llvm] [offload][SYCL] Add SYCL Module splitting (PR #119713)

LLVM Continuous Integration via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 11 06:44:39 PDT 2025


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `clang-armv8-quick` running on `linaro-clang-armv8-quick` while building `llvm` at step 4 "build stage 1".

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

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

```
Step 4 (build stage 1) failure: 'ninja' (failure)
...
[4695/4704] Linking CXX executable bin/verify-uselistorder
[4696/4704] Linking CXX executable bin/llvm-lto2
[4697/4704] Linking CXX executable bin/sancov
[4698/4704] Linking CXX executable bin/clang-repl
[4699/4704] Linking CXX executable bin/c-index-test
[4700/4704] Linking CXX executable bin/llvm-opt-fuzzer
[4701/4704] Building CXX object tools/llvm-split/CMakeFiles/llvm-split.dir/llvm-split.cpp.o
[4702/4704] Linking CXX executable bin/llvm-reduce
[4703/4704] Linking CXX executable bin/opt
[4704/4704] Linking CXX executable bin/llvm-split
FAILED: bin/llvm-split 
: && /usr/local/bin/c++ -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 -pedantic -Wno-long-long -Wc++98-compat-extra-semi -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,-rpath-link,/home/tcwg-buildbot/worker/clang-armv8-quick/stage1/./lib  -Wl,--gc-sections tools/llvm-split/CMakeFiles/llvm-split.dir/llvm-split.cpp.o -o bin/llvm-split  -Wl,-rpath,"\$ORIGIN/../lib:"  lib/libLLVMARMAsmParser.a  lib/libLLVMARMCodeGen.a  lib/libLLVMARMDesc.a  lib/libLLVMARMInfo.a  lib/libLLVMTransformUtils.a  lib/libLLVMBitWriter.a  lib/libLLVMCodeGen.a  lib/libLLVMCore.a  lib/libLLVMIRReader.a  lib/libLLVMMC.a  lib/libLLVMSupport.a  lib/libLLVMTarget.a  lib/libLLVMTargetParser.a  lib/libLLVMMCDisassembler.a  lib/libLLVMARMUtils.a  lib/libLLVMAsmPrinter.a  lib/libLLVMCFGuard.a  lib/libLLVMGlobalISel.a  lib/libLLVMipo.a  lib/libLLVMFrontendOpenMP.a  lib/libLLVMFrontendOffloading.a  lib/libLLVMObjectYAML.a  lib/libLLVMFrontendAtomic.a  lib/libLLVMLinker.a  lib/libLLVMVectorize.a  lib/libLLVMSandboxIR.a  lib/libLLVMInstrumentation.a  lib/libLLVMSelectionDAG.a  lib/libLLVMCodeGen.a  lib/libLLVMScalarOpts.a  lib/libLLVMAggressiveInstCombine.a  lib/libLLVMInstCombine.a  lib/libLLVMCGData.a  lib/libLLVMBitWriter.a  lib/libLLVMObjCARCOpts.a  lib/libLLVMTransformUtils.a  lib/libLLVMTarget.a  lib/libLLVMCodeGenTypes.a  lib/libLLVMAnalysis.a  lib/libLLVMProfileData.a  lib/libLLVMSymbolize.a  lib/libLLVMDebugInfoDWARF.a  lib/libLLVMDebugInfoPDB.a  lib/libLLVMObject.a  lib/libLLVMIRReader.a  lib/libLLVMAsmParser.a  lib/libLLVMMCParser.a  lib/libLLVMMC.a  lib/libLLVMBitReader.a  lib/libLLVMCore.a  lib/libLLVMRemarks.a  lib/libLLVMBitstreamReader.a  lib/libLLVMTextAPI.a  lib/libLLVMBinaryFormat.a  lib/libLLVMTargetParser.a  lib/libLLVMDebugInfoCodeView.a  lib/libLLVMDebugInfoMSF.a  lib/libLLVMDebugInfoBTF.a  lib/libLLVMSupport.a  lib/libLLVMDemangle.a  -lrt  -ldl  -lm  /usr/lib/arm-linux-gnueabihf/libz.so && :
/usr/bin/ld: lib/libLLVMTransformUtils.a(SYCLSplitModule.cpp.o): in function `saveModuleDesc((anonymous namespace)::ModuleDesc&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, bool)':
SYCLSplitModule.cpp:(.text._ZL14saveModuleDescRN12_GLOBAL__N_110ModuleDescENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEb+0x1e4): undefined reference to `llvm::PrintModulePass::PrintModulePass(llvm::raw_ostream&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool, bool)'
/usr/bin/ld: lib/libLLVMTransformUtils.a(SYCLSplitModule.cpp.o): in function `llvm::detail::PassModel<llvm::Module, llvm::PrintModulePass, llvm::AnalysisManager<llvm::Module>>::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&)':
SYCLSplitModule.cpp:(.text._ZN4llvm6detail9PassModelINS_6ModuleENS_15PrintModulePassENS_15AnalysisManagerIS2_JEEEJEE3runERS2_RS5_[_ZN4llvm6detail9PassModelINS_6ModuleENS_15PrintModulePassENS_15AnalysisManagerIS2_JEEEJEE3runERS2_RS5_]+0x8): undefined reference to `llvm::PrintModulePass::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&)'
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.

```

</details>

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


More information about the llvm-commits mailing list