[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:40:33 PDT 2025


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `cross-project-tests-sie-ubuntu` running on `doug-worker-1a` while building `llvm` at step 5 "build-unified-tree".

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

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

```
Step 5 (build-unified-tree) failure: build (failure)
...
88.997 [3/7/5109] Building CXX object third-party/benchmark/src/CMakeFiles/benchmark.dir/timers.cc.o
88.997 [3/6/5110] Building CXX object third-party/benchmark/src/CMakeFiles/benchmark.dir/string_util.cc.o
89.005 [3/5/5111] Building CXX object third-party/benchmark/src/CMakeFiles/benchmark.dir/statistics.cc.o
89.006 [3/4/5112] Building CXX object third-party/benchmark/src/CMakeFiles/benchmark.dir/sysinfo.cc.o
89.012 [2/4/5113] Building CXX object third-party/benchmark/src/CMakeFiles/benchmark_main.dir/benchmark_main.cc.o
89.055 [2/3/5114] Linking CXX static library lib/libbenchmark.a
89.076 [1/3/5115] Linking CXX static library lib/libbenchmark_main.a
90.050 [1/2/5116] Linking CXX executable bin/opt
91.380 [1/1/5117] Building CXX object tools/llvm-split/CMakeFiles/llvm-split.dir/llvm-split.cpp.o
92.468 [0/1/5118] Linking CXX executable bin/llvm-split
FAILED: bin/llvm-split 
: && /opt/ccache/bin/g++ -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 -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -fuse-ld=gold    -Wl,--gc-sections tools/llvm-split/CMakeFiles/llvm-split.dir/llvm-split.cpp.o -o bin/llvm-split  -Wl,-rpath,"\$ORIGIN/../lib:"  lib/libLLVMX86AsmParser.a  lib/libLLVMX86CodeGen.a  lib/libLLVMX86Desc.a  lib/libLLVMX86Info.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  -lpthread  lib/libLLVMMCDisassembler.a  lib/libLLVMAsmPrinter.a  lib/libLLVMCFGuard.a  lib/libLLVMGlobalISel.a  lib/libLLVMIRPrinter.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/libLLVMAnalysis.a  lib/libLLVMProfileData.a  lib/libLLVMSymbolize.a  lib/libLLVMDebugInfoDWARF.a  lib/libLLVMDebugInfoPDB.a  lib/libLLVMDebugInfoCodeView.a  lib/libLLVMDebugInfoMSF.a  lib/libLLVMDebugInfoBTF.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/libLLVMCodeGenTypes.a  lib/libLLVMSupport.a  lib/libLLVMDemangle.a  -lrt  -ldl  -lpthread  -lm  /usr/lib/x86_64-linux-gnu/libz.so && :
lib/libLLVMTransformUtils.a(SYCLSplitModule.cpp.o):SYCLSplitModule.cpp:function llvm::detail::PassModel<llvm::Module, llvm::GlobalDCEPass, llvm::AnalysisManager<llvm::Module>>::printPipeline(llvm::raw_ostream&, llvm::function_ref<llvm::StringRef (llvm::StringRef)>): error: undefined reference to 'llvm::GlobalDCEPass::printPipeline(llvm::raw_ostream&, llvm::function_ref<llvm::StringRef (llvm::StringRef)>)'
lib/libLLVMTransformUtils.a(SYCLSplitModule.cpp.o):SYCLSplitModule.cpp:function llvm::detail::PassModel<llvm::Module, llvm::GlobalDCEPass, llvm::AnalysisManager<llvm::Module>>::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&): error: undefined reference to 'llvm::GlobalDCEPass::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&)'
lib/libLLVMTransformUtils.a(SYCLSplitModule.cpp.o):SYCLSplitModule.cpp:function llvm::detail::PassModel<llvm::Module, llvm::StripDeadPrototypesPass, llvm::AnalysisManager<llvm::Module>>::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&): error: undefined reference to 'llvm::StripDeadPrototypesPass::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&)'
lib/libLLVMTransformUtils.a(SYCLSplitModule.cpp.o):SYCLSplitModule.cpp:function llvm::detail::PassModel<llvm::Module, llvm::StripDeadDebugInfoPass, llvm::AnalysisManager<llvm::Module>>::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&): error: undefined reference to 'llvm::StripDeadDebugInfoPass::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&)'
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.

```

</details>

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


More information about the llvm-commits mailing list