[lld] [llvm] [DTLTO][ELF][COFF] Add archive support for DTLTO. (PR #157043)
LLVM Continuous Integration via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 31 00:45:45 PST 2025
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `amdgpu-offload-rhel-8-cmake-build-only` running on `rocm-docker-rhel-8` while building `cross-project-tests,lld,llvm` at step 4 "annotate".
Full details are available at: https://lab.llvm.org/buildbot/#/builders/204/builds/31635
<details>
<summary>Here is the relevant piece of the build log for the reference</summary>
```
Step 4 (annotate) failure: '../llvm-zorg/zorg/buildbot/builders/annotated/amdgpu-offload-cmake.py --jobs=32' (failure)
...
[3039/8273] Building PDLInterpOpsDialect.cpp.inc...
[3040/8273] Building OpenMPOpsInterfaces.cpp.inc...
[3041/8273] Building OpenMPTypeInterfaces.cpp.inc...
[3042/8273] Building OpenMPOpsInterfaces.h.inc...
[3043/8273] Building OpenMPTypeInterfaces.h.inc...
[3044/8273] Building XeVMOpsDialect.cpp.inc...
[3045/8273] Building XeVMOpsDialect.h.inc...
[3046/8273] Building XeVMOpsTypes.cpp.inc...
[3047/8273] Building XeVMOpsAttributes.cpp.inc...
[3048/8273] Linking CXX shared library lib/libLLVMDTLTO.so.22.0git
FAILED: lib/libLLVMDTLTO.so.22.0git
: && /usr/bin/c++ -fPIC -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -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-array-bounds -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wno-comment -Wno-misleading-indentation -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -Wl,-z,defs -Wl,-z,nodelete -Wl,-rpath-link,/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/./lib -Wl,--gc-sections -shared -Wl,-soname,libLLVMDTLTO.so.22.0git -o lib/libLLVMDTLTO.so.22.0git lib/DTLTO/CMakeFiles/LLVMDTLTO.dir/DTLTO.cpp.o -Wl,-rpath,"\$ORIGIN/../lib:/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/lib:" lib/libLLVMCore.so.22.0git lib/libLLVMSupport.so.22.0git -Wl,-rpath-link,/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/lib && :
lib/DTLTO/CMakeFiles/LLVMDTLTO.dir/DTLTO.cpp.o: In function `std::_Sp_counted_ptr<llvm::lto::InputFile*, (__gnu_cxx::_Lock_policy)2>::_M_dispose()':
DTLTO.cpp:(.text._ZNSt15_Sp_counted_ptrIPN4llvm3lto9InputFileELN9__gnu_cxx12_Lock_policyE2EE10_M_disposeEv[_ZNSt15_Sp_counted_ptrIPN4llvm3lto9InputFileELN9__gnu_cxx12_Lock_policyE2EE10_M_disposeEv]+0xe): undefined reference to `llvm::lto::InputFile::~InputFile()'
lib/DTLTO/CMakeFiles/LLVMDTLTO.dir/DTLTO.cpp.o: In function `llvm::lto::DTLTO::removeTempFiles() [clone .localalias.2]':
DTLTO.cpp:(.text._ZN4llvm3lto5DTLTO15removeTempFilesEv+0x36): undefined reference to `llvm::lto::InputFile::getName() const'
lib/DTLTO/CMakeFiles/LLVMDTLTO.dir/DTLTO.cpp.o: In function `llvm::lto::DTLTO::~DTLTO()':
DTLTO.cpp:(.text._ZN4llvm3lto5DTLTOD2Ev[_ZN4llvm3lto5DTLTOD5Ev]+0x1ec): undefined reference to `llvm::lto::LTO::~LTO()'
lib/DTLTO/CMakeFiles/LLVMDTLTO.dir/DTLTO.cpp.o: In function `llvm::lto::DTLTO::~DTLTO()':
DTLTO.cpp:(.text._ZN4llvm3lto5DTLTOD0Ev[_ZN4llvm3lto5DTLTOD5Ev]+0x1e2): undefined reference to `llvm::lto::LTO::~LTO()'
lib/DTLTO/CMakeFiles/LLVMDTLTO.dir/DTLTO.cpp.o: In function `llvm::lto::DTLTO::isThinArchive(llvm::StringRef) [clone .localalias.3]':
DTLTO.cpp:(.text._ZN4llvm3lto5DTLTO13isThinArchiveENS_9StringRefE+0x6c2): undefined reference to `llvm::identify_magic(llvm::StringRef)'
lib/DTLTO/CMakeFiles/LLVMDTLTO.dir/DTLTO.cpp.o: In function `llvm::lto::DTLTO::addInput(std::unique_ptr<llvm::lto::InputFile, std::default_delete<llvm::lto::InputFile> >) [clone .localalias.4]':
DTLTO.cpp:(.text._ZN4llvm3lto5DTLTO8addInputESt10unique_ptrINS0_9InputFileESt14default_deleteIS3_EE+0x9c): undefined reference to `llvm::lto::InputFile::getName() const'
DTLTO.cpp:(.text._ZN4llvm3lto5DTLTO8addInputESt10unique_ptrINS0_9InputFileESt14default_deleteIS3_EE+0x147): undefined reference to `llvm::lto::InputFile::getSingleBitcodeModule()'
lib/DTLTO/CMakeFiles/LLVMDTLTO.dir/DTLTO.cpp.o: In function `llvm::lto::DTLTO::saveInputArchiveMember(llvm::lto::InputFile*)':
DTLTO.cpp:(.text._ZN4llvm3lto5DTLTO22saveInputArchiveMemberEPNS0_9InputFileE+0x10): undefined reference to `llvm::lto::InputFile::getName() const'
lib/DTLTO/CMakeFiles/LLVMDTLTO.dir/DTLTO.cpp.o: In function `llvm::lto::DTLTO::saveInputArchiveMembers() [clone .localalias.0]':
DTLTO.cpp:(.text._ZN4llvm3lto5DTLTO23saveInputArchiveMembersEv+0x37): undefined reference to `llvm::lto::InputFile::getName() const'
collect2: error: ld returned 1 exit status
[3049/8273] Building XeVMOpsAttributes.h.inc...
[3050/8273] Building XeVMOps.cpp.inc...
[3051/8273] Building XeVMOps.h.inc...
[3052/8273] Building XeVMConversions.inc...
[3053/8273] Building XeVMOpsTypes.h.inc...
[3054/8273] Building XeVMOpsEnums.cpp.inc...
[3055/8273] Building PDLInterpOpsDialect.h.inc...
[3056/8273] Building PDLInterpOpsTypes.cpp.inc...
[3057/8273] Building XeVMOpsEnums.h.inc...
[3058/8273] Building CXX object lib/MC/MCParser/CMakeFiles/LLVMMCParser.dir/AsmParser.cpp.o
[3059/8273] Building CXX object lib/Bitcode/Writer/CMakeFiles/LLVMBitWriter.dir/BitcodeWriter.cpp.o
In file included from /usr/include/c++/8/cassert:44,
from /home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/include/llvm/ProfileData/InstrProf.h:40,
from /home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/include/llvm/ProfileData/DataAccessProf.h:25,
from /home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/include/llvm/ProfileData/IndexedMemProfData.h:18,
from /home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/include/llvm/ProfileData/MemProfRadixTree.h:17,
from /home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp:66:
/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/include/llvm/ProfileData/InstrProf.h: In member function ‘llvm::ArrayRef<llvm::InstrProfValueSiteRecord> llvm::InstrProfRecord::getValueSitesForKind(uint32_t) const’:
/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/include/llvm/ProfileData/InstrProf.h:1027:23: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits]
Step 7 (build cmake config) failure: build cmake config (failure)
...
[3039/8273] Building PDLInterpOpsDialect.cpp.inc...
[3040/8273] Building OpenMPOpsInterfaces.cpp.inc...
[3041/8273] Building OpenMPTypeInterfaces.cpp.inc...
[3042/8273] Building OpenMPOpsInterfaces.h.inc...
[3043/8273] Building OpenMPTypeInterfaces.h.inc...
[3044/8273] Building XeVMOpsDialect.cpp.inc...
[3045/8273] Building XeVMOpsDialect.h.inc...
[3046/8273] Building XeVMOpsTypes.cpp.inc...
[3047/8273] Building XeVMOpsAttributes.cpp.inc...
[3048/8273] Linking CXX shared library lib/libLLVMDTLTO.so.22.0git
FAILED: lib/libLLVMDTLTO.so.22.0git
: && /usr/bin/c++ -fPIC -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -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-array-bounds -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wno-comment -Wno-misleading-indentation -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -Wl,-z,defs -Wl,-z,nodelete -Wl,-rpath-link,/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/./lib -Wl,--gc-sections -shared -Wl,-soname,libLLVMDTLTO.so.22.0git -o lib/libLLVMDTLTO.so.22.0git lib/DTLTO/CMakeFiles/LLVMDTLTO.dir/DTLTO.cpp.o -Wl,-rpath,"\$ORIGIN/../lib:/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/lib:" lib/libLLVMCore.so.22.0git lib/libLLVMSupport.so.22.0git -Wl,-rpath-link,/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/lib && :
lib/DTLTO/CMakeFiles/LLVMDTLTO.dir/DTLTO.cpp.o: In function `std::_Sp_counted_ptr<llvm::lto::InputFile*, (__gnu_cxx::_Lock_policy)2>::_M_dispose()':
DTLTO.cpp:(.text._ZNSt15_Sp_counted_ptrIPN4llvm3lto9InputFileELN9__gnu_cxx12_Lock_policyE2EE10_M_disposeEv[_ZNSt15_Sp_counted_ptrIPN4llvm3lto9InputFileELN9__gnu_cxx12_Lock_policyE2EE10_M_disposeEv]+0xe): undefined reference to `llvm::lto::InputFile::~InputFile()'
lib/DTLTO/CMakeFiles/LLVMDTLTO.dir/DTLTO.cpp.o: In function `llvm::lto::DTLTO::removeTempFiles() [clone .localalias.2]':
DTLTO.cpp:(.text._ZN4llvm3lto5DTLTO15removeTempFilesEv+0x36): undefined reference to `llvm::lto::InputFile::getName() const'
lib/DTLTO/CMakeFiles/LLVMDTLTO.dir/DTLTO.cpp.o: In function `llvm::lto::DTLTO::~DTLTO()':
DTLTO.cpp:(.text._ZN4llvm3lto5DTLTOD2Ev[_ZN4llvm3lto5DTLTOD5Ev]+0x1ec): undefined reference to `llvm::lto::LTO::~LTO()'
lib/DTLTO/CMakeFiles/LLVMDTLTO.dir/DTLTO.cpp.o: In function `llvm::lto::DTLTO::~DTLTO()':
DTLTO.cpp:(.text._ZN4llvm3lto5DTLTOD0Ev[_ZN4llvm3lto5DTLTOD5Ev]+0x1e2): undefined reference to `llvm::lto::LTO::~LTO()'
lib/DTLTO/CMakeFiles/LLVMDTLTO.dir/DTLTO.cpp.o: In function `llvm::lto::DTLTO::isThinArchive(llvm::StringRef) [clone .localalias.3]':
DTLTO.cpp:(.text._ZN4llvm3lto5DTLTO13isThinArchiveENS_9StringRefE+0x6c2): undefined reference to `llvm::identify_magic(llvm::StringRef)'
lib/DTLTO/CMakeFiles/LLVMDTLTO.dir/DTLTO.cpp.o: In function `llvm::lto::DTLTO::addInput(std::unique_ptr<llvm::lto::InputFile, std::default_delete<llvm::lto::InputFile> >) [clone .localalias.4]':
DTLTO.cpp:(.text._ZN4llvm3lto5DTLTO8addInputESt10unique_ptrINS0_9InputFileESt14default_deleteIS3_EE+0x9c): undefined reference to `llvm::lto::InputFile::getName() const'
DTLTO.cpp:(.text._ZN4llvm3lto5DTLTO8addInputESt10unique_ptrINS0_9InputFileESt14default_deleteIS3_EE+0x147): undefined reference to `llvm::lto::InputFile::getSingleBitcodeModule()'
lib/DTLTO/CMakeFiles/LLVMDTLTO.dir/DTLTO.cpp.o: In function `llvm::lto::DTLTO::saveInputArchiveMember(llvm::lto::InputFile*)':
DTLTO.cpp:(.text._ZN4llvm3lto5DTLTO22saveInputArchiveMemberEPNS0_9InputFileE+0x10): undefined reference to `llvm::lto::InputFile::getName() const'
lib/DTLTO/CMakeFiles/LLVMDTLTO.dir/DTLTO.cpp.o: In function `llvm::lto::DTLTO::saveInputArchiveMembers() [clone .localalias.0]':
DTLTO.cpp:(.text._ZN4llvm3lto5DTLTO23saveInputArchiveMembersEv+0x37): undefined reference to `llvm::lto::InputFile::getName() const'
collect2: error: ld returned 1 exit status
[3049/8273] Building XeVMOpsAttributes.h.inc...
[3050/8273] Building XeVMOps.cpp.inc...
[3051/8273] Building XeVMOps.h.inc...
[3052/8273] Building XeVMConversions.inc...
[3053/8273] Building XeVMOpsTypes.h.inc...
[3054/8273] Building XeVMOpsEnums.cpp.inc...
[3055/8273] Building PDLInterpOpsDialect.h.inc...
[3056/8273] Building PDLInterpOpsTypes.cpp.inc...
[3057/8273] Building XeVMOpsEnums.h.inc...
[3058/8273] Building CXX object lib/MC/MCParser/CMakeFiles/LLVMMCParser.dir/AsmParser.cpp.o
[3059/8273] Building CXX object lib/Bitcode/Writer/CMakeFiles/LLVMBitWriter.dir/BitcodeWriter.cpp.o
In file included from /usr/include/c++/8/cassert:44,
from /home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/include/llvm/ProfileData/InstrProf.h:40,
from /home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/include/llvm/ProfileData/DataAccessProf.h:25,
from /home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/include/llvm/ProfileData/IndexedMemProfData.h:18,
from /home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/include/llvm/ProfileData/MemProfRadixTree.h:17,
from /home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp:66:
/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/include/llvm/ProfileData/InstrProf.h: In member function ‘llvm::ArrayRef<llvm::InstrProfValueSiteRecord> llvm::InstrProfRecord::getValueSitesForKind(uint32_t) const’:
/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/include/llvm/ProfileData/InstrProf.h:1027:23: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits]
```
</details>
https://github.com/llvm/llvm-project/pull/157043
More information about the llvm-commits
mailing list