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


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `llvm-clang-x86_64-sie-win` running on `sie-win-worker` while building `llvm` at step 6 "build-unified-tree".

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

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

```
Step 6 (build-unified-tree) failure: build (failure)
...
[4826/4841] Linking CXX executable bin\llvm-lto2.exe
[4827/4841] Linking CXX executable bin\llvm-opt-fuzzer.exe
[4828/4841] Linking CXX executable bin\clang-repl.exe
[4829/4841] Linking CXX executable bin\clang-tidy.exe
[4830/4841] Linking CXX shared library bin\libclang.dll
[4831/4841] Linking CXX executable bin\llvm-reduce.exe
[4832/4841] Linking CXX executable bin\clang.exe
[4833/4841] Linking CXX executable bin\opt.exe
[4834/4841] Building CXX object tools\llvm-split\CMakeFiles\llvm-split.dir\llvm-split.cpp.obj
[4835/4841] Linking CXX executable bin\llvm-split.exe
FAILED: bin/llvm-split.exe 
cmd.exe /C "cd . && "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe" -E vs_link_exe --intdir=tools\llvm-split\CMakeFiles\llvm-split.dir --rc=C:\PROGRA~2\WI3CF2~1\10\bin\100190~1.0\x64\rc.exe --mt=C:\PROGRA~2\WI3CF2~1\10\bin\100190~1.0\x64\mt.exe --manifests  -- C:\PROGRA~2\MICROS~1\2019\BUILDT~1\VC\Tools\MSVC\1429~1.301\bin\HostX64\x64\link.exe /nologo tools\llvm-split\CMakeFiles\llvm-split.dir\llvm-split.cpp.obj tools\llvm-split\CMakeFiles\llvm-split.dir\__\__\resources\windows_version_resource.rc.res  /out:bin\llvm-split.exe /implib:lib\llvm-split.lib /pdb:bin\llvm-split.pdb /version:0.0 /machine:x64 /STACK:10000000 /INCREMENTAL:NO /subsystem:console  lib\LLVMX86AsmParser.lib  lib\LLVMX86CodeGen.lib  lib\LLVMX86Desc.lib  lib\LLVMX86Info.lib  lib\LLVMTransformUtils.lib  lib\LLVMBitWriter.lib  lib\LLVMCodeGen.lib  lib\LLVMCore.lib  lib\LLVMIRReader.lib  lib\LLVMMC.lib  lib\LLVMSupport.lib  lib\LLVMTarget.lib  lib\LLVMTargetParser.lib  lib\LLVMMCDisassembler.lib  lib\LLVMAsmPrinter.lib  lib\LLVMCFGuard.lib  lib\LLVMGlobalISel.lib  lib\LLVMIRPrinter.lib  lib\LLVMInstrumentation.lib  lib\LLVMSelectionDAG.lib  lib\LLVMCodeGen.lib  lib\LLVMScalarOpts.lib  lib\LLVMAggressiveInstCombine.lib  lib\LLVMInstCombine.lib  lib\LLVMCGData.lib  lib\LLVMBitWriter.lib  lib\LLVMObjCARCOpts.lib  lib\LLVMTransformUtils.lib  lib\LLVMTarget.lib  lib\LLVMAnalysis.lib  lib\LLVMProfileData.lib  lib\LLVMSymbolize.lib  lib\LLVMDebugInfoDWARF.lib  lib\LLVMDebugInfoPDB.lib  lib\LLVMDebugInfoCodeView.lib  "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\DIA SDK\lib\amd64\diaguids.lib"  lib\LLVMDebugInfoMSF.lib  lib\LLVMDebugInfoBTF.lib  lib\LLVMObject.lib  lib\LLVMIRReader.lib  lib\LLVMAsmParser.lib  lib\LLVMMCParser.lib  lib\LLVMMC.lib  lib\LLVMBitReader.lib  lib\LLVMCore.lib  lib\LLVMRemarks.lib  lib\LLVMBitstreamReader.lib  lib\LLVMTextAPI.lib  lib\LLVMBinaryFormat.lib  lib\LLVMTargetParser.lib  lib\LLVMCodeGenTypes.lib  lib\LLVMSupport.lib  lib\LLVMDemangle.lib  psapi.lib  shell32.lib  ole32.lib  uuid.lib  advapi32.lib  ws2_32.lib  ntdll.lib  delayimp.lib  -delayload:shell32.dll  -delayload:ole32.dll  kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib && cd ."
LINK: command "C:\PROGRA~2\MICROS~1\2019\BUILDT~1\VC\Tools\MSVC\1429~1.301\bin\HostX64\x64\link.exe /nologo tools\llvm-split\CMakeFiles\llvm-split.dir\llvm-split.cpp.obj tools\llvm-split\CMakeFiles\llvm-split.dir\__\__\resources\windows_version_resource.rc.res /out:bin\llvm-split.exe /implib:lib\llvm-split.lib /pdb:bin\llvm-split.pdb /version:0.0 /machine:x64 /STACK:10000000 /INCREMENTAL:NO /subsystem:console lib\LLVMX86AsmParser.lib lib\LLVMX86CodeGen.lib lib\LLVMX86Desc.lib lib\LLVMX86Info.lib lib\LLVMTransformUtils.lib lib\LLVMBitWriter.lib lib\LLVMCodeGen.lib lib\LLVMCore.lib lib\LLVMIRReader.lib lib\LLVMMC.lib lib\LLVMSupport.lib lib\LLVMTarget.lib lib\LLVMTargetParser.lib lib\LLVMMCDisassembler.lib lib\LLVMAsmPrinter.lib lib\LLVMCFGuard.lib lib\LLVMGlobalISel.lib lib\LLVMIRPrinter.lib lib\LLVMInstrumentation.lib lib\LLVMSelectionDAG.lib lib\LLVMCodeGen.lib lib\LLVMScalarOpts.lib lib\LLVMAggressiveInstCombine.lib lib\LLVMInstCombine.lib lib\LLVMCGData.lib lib\LLVMBitWriter.lib lib\LLVMObjCARCOpts.lib lib\LLVMTransformUtils.lib lib\LLVMTarget.lib lib\LLVMAnalysis.lib lib\LLVMProfileData.lib lib\LLVMSymbolize.lib lib\LLVMDebugInfoDWARF.lib lib\LLVMDebugInfoPDB.lib lib\LLVMDebugInfoCodeView.lib C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\DIA SDK\lib\amd64\diaguids.lib lib\LLVMDebugInfoMSF.lib lib\LLVMDebugInfoBTF.lib lib\LLVMObject.lib lib\LLVMIRReader.lib lib\LLVMAsmParser.lib lib\LLVMMCParser.lib lib\LLVMMC.lib lib\LLVMBitReader.lib lib\LLVMCore.lib lib\LLVMRemarks.lib lib\LLVMBitstreamReader.lib lib\LLVMTextAPI.lib lib\LLVMBinaryFormat.lib lib\LLVMTargetParser.lib lib\LLVMCodeGenTypes.lib lib\LLVMSupport.lib lib\LLVMDemangle.lib psapi.lib shell32.lib ole32.lib uuid.lib advapi32.lib ws2_32.lib ntdll.lib delayimp.lib -delayload:shell32.dll -delayload:ole32.dll kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib /MANIFEST /MANIFESTFILE:bin\llvm-split.exe.manifest" failed (exit code 1120) with the following output:
LLVMTransformUtils.lib(SYCLSplitModule.cpp.obj) : error LNK2019: unresolved external symbol "public: class llvm::PreservedAnalyses __cdecl llvm::GlobalDCEPass::run(class llvm::Module &,class llvm::AnalysisManager<class llvm::Module> &)" (?run at GlobalDCEPass@llvm@@QEAA?AVPreservedAnalyses at 2@AEAVModule at 2@AEAV?$AnalysisManager at VModule@llvm@@$$V at 2@@Z) referenced in function "public: virtual class llvm::PreservedAnalyses __cdecl llvm::detail::PassModel<class llvm::Module,class llvm::GlobalDCEPass,class llvm::AnalysisManager<class llvm::Module> >::run(class llvm::Module &,class llvm::AnalysisManager<class llvm::Module> &)" (?run@?$PassModel at VModule@llvm@@VGlobalDCEPass at 2@V?$AnalysisManager at VModule@llvm@@$$V at 2@$$V at detail@llvm@@UEAA?AVPreservedAnalyses at 3@AEAVModule at 3@AEAV?$AnalysisManager at VModule@llvm@@$$V at 3@@Z)
LLVMTransformUtils.lib(SYCLSplitModule.cpp.obj) : error LNK2019: unresolved external symbol "public: void __cdecl llvm::GlobalDCEPass::printPipeline(class llvm::raw_ostream &,class llvm::function_ref<class llvm::StringRef __cdecl(class llvm::StringRef)>)" (?printPipeline at GlobalDCEPass@llvm@@QEAAXAEAVraw_ostream at 2@V?$function_ref@$$A6A?AVStringRef at llvm@@V12@@Z at 2@@Z) referenced in function "public: virtual void __cdecl llvm::detail::PassModel<class llvm::Module,class llvm::GlobalDCEPass,class llvm::AnalysisManager<class llvm::Module> >::printPipeline(class llvm::raw_ostream &,class llvm::function_ref<class llvm::StringRef __cdecl(class llvm::StringRef)>)" (?printPipeline@?$PassModel at VModule@llvm@@VGlobalDCEPass at 2@V?$AnalysisManager at VModule@llvm@@$$V at 2@$$V at detail@llvm@@UEAAXAEAVraw_ostream at 3@V?$function_ref@$$A6A?AVStringRef at llvm@@V12@@Z at 3@@Z)
LLVMTransformUtils.lib(SYCLSplitModule.cpp.obj) : error LNK2019: unresolved external symbol "public: class llvm::PreservedAnalyses __cdecl llvm::StripDeadPrototypesPass::run(class llvm::Module &,class llvm::AnalysisManager<class llvm::Module> &)" (?run at StripDeadPrototypesPass@llvm@@QEAA?AVPreservedAnalyses at 2@AEAVModule at 2@AEAV?$AnalysisManager at VModule@llvm@@$$V at 2@@Z) referenced in function "public: virtual class llvm::PreservedAnalyses __cdecl llvm::detail::PassModel<class llvm::Module,struct llvm::StripDeadPrototypesPass,class llvm::AnalysisManager<class llvm::Module> >::run(class llvm::Module &,class llvm::AnalysisManager<class llvm::Module> &)" (?run@?$PassModel at VModule@llvm@@UStripDeadPrototypesPass at 2@V?$AnalysisManager at VModule@llvm@@$$V at 2@$$V at detail@llvm@@UEAA?AVPreservedAnalyses at 3@AEAVModule at 3@AEAV?$AnalysisManager at VModule@llvm@@$$V at 3@@Z)
LLVMTransformUtils.lib(SYCLSplitModule.cpp.obj) : error LNK2019: unresolved external symbol "public: class llvm::PreservedAnalyses __cdecl llvm::StripDeadDebugInfoPass::run(class llvm::Module &,class llvm::AnalysisManager<class llvm::Module> &)" (?run at StripDeadDebugInfoPass@llvm@@QEAA?AVPreservedAnalyses at 2@AEAVModule at 2@AEAV?$AnalysisManager at VModule@llvm@@$$V at 2@@Z) referenced in function "public: virtual class llvm::PreservedAnalyses __cdecl llvm::detail::PassModel<class llvm::Module,struct llvm::StripDeadDebugInfoPass,class llvm::AnalysisManager<class llvm::Module> >::run(class llvm::Module &,class llvm::AnalysisManager<class llvm::Module> &)" (?run@?$PassModel at VModule@llvm@@UStripDeadDebugInfoPass at 2@V?$AnalysisManager at VModule@llvm@@$$V at 2@$$V at detail@llvm@@UEAA?AVPreservedAnalyses at 3@AEAVModule at 3@AEAV?$AnalysisManager at VModule@llvm@@$$V at 3@@Z)

bin\llvm-split.exe : fatal error LNK1120: 4 unresolved externals

[4836/4841] Linking CXX executable bin\c-index-test.exe
[4837/4841] Generating export list for LLVM-C
ninja: build stopped: subcommand failed.

```

</details>

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


More information about the llvm-commits mailing list