[llvm] Reapply [MachO] Move getArchTriple implementation..." with fixes. (PR #161949)
LLVM Continuous Integration via llvm-commits
llvm-commits at lists.llvm.org
Sat Oct 4 01:50:50 PDT 2025
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `amdgpu-offload-ubuntu-22-cmake-build-only` running on `rocm-docker-ubu-22` while building `llvm` at step 4 "annotate".
Full details are available at: https://lab.llvm.org/buildbot/#/builders/203/builds/25283
<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)
...
[5073/8097] Linking CXX shared library lib/libMLIRConvertToEmitC.so.22.0git
[5074/8097] Linking CXX shared library lib/libMLIRTransformSMTExtension.so.22.0git
[5075/8097] Creating library symlink lib/libMLIRSCFToOpenMP.so
[5076/8097] Linking CXX shared library lib/libMLIRTransformPDLExtension.so.22.0git
[5077/8097] Creating library symlink lib/libMLIRConvertToEmitC.so
[5078/8097] Creating library symlink lib/libMLIRTransformSMTExtension.so
[5079/8097] Creating library symlink lib/libMLIRTosaDialect.so
[5080/8097] Creating library symlink lib/libMLIRBufferizationTransforms.so
[5081/8097] Linking CXX executable bin/llvm-profdata
[5082/8097] Linking CXX shared library lib/libLLVMCoverage.so.22.0git
FAILED: lib/libLLVMCoverage.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-redundant-move -Wno-pessimizing-move -Wno-array-bounds -Wno-stringop-overread -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -Wl,-z,defs -Wl,-z,nodelete -Wl,-rpath-link,/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/build/./lib -Wl,--gc-sections -shared -Wl,-soname,libLLVMCoverage.so.22.0git -o lib/libLLVMCoverage.so.22.0git lib/ProfileData/Coverage/CMakeFiles/LLVMCoverage.dir/CoverageMapping.cpp.o lib/ProfileData/Coverage/CMakeFiles/LLVMCoverage.dir/CoverageMappingWriter.cpp.o lib/ProfileData/Coverage/CMakeFiles/LLVMCoverage.dir/CoverageMappingReader.cpp.o -Wl,-rpath,"\$ORIGIN/../lib:/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/build/lib:" lib/libLLVMProfileData.so.22.0git lib/libLLVMObject.so.22.0git lib/libLLVMCore.so.22.0git lib/libLLVMTargetParser.so.22.0git lib/libLLVMSupport.so.22.0git -Wl,-rpath-link,/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/build/lib && :
/usr/bin/ld: lib/ProfileData/Coverage/CMakeFiles/LLVMCoverage.dir/CoverageMappingReader.cpp.o: in function `llvm::coverage::BinaryCoverageReader::create(llvm::MemoryBufferRef, llvm::StringRef, llvm::SmallVectorImpl<std::unique_ptr<llvm::MemoryBuffer, std::default_delete<llvm::MemoryBuffer> > >&, llvm::StringRef, llvm::SmallVectorImpl<llvm::ArrayRef<unsigned char> >*) [clone .localalias]':
CoverageMappingReader.cpp:(.text._ZN4llvm8coverage20BinaryCoverageReader6createENS_15MemoryBufferRefENS_9StringRefERNS_15SmallVectorImplISt10unique_ptrINS_12MemoryBufferESt14default_deleteIS6_EEEES3_PNS4_INS_8ArrayRefIhEEEE+0x264): undefined reference to `llvm::MachO::getArchTriple(unsigned int, unsigned int, char const**, char const**)'
/usr/bin/ld: CoverageMappingReader.cpp:(.text._ZN4llvm8coverage20BinaryCoverageReader6createENS_15MemoryBufferRefENS_9StringRefERNS_15SmallVectorImplISt10unique_ptrINS_12MemoryBufferESt14default_deleteIS6_EEEES3_PNS4_INS_8ArrayRefIhEEEE+0x3b2): undefined reference to `llvm::MachO::getArchTriple(unsigned int, unsigned int, char const**, char const**)'
collect2: error: ld returned 1 exit status
[5083/8097] Linking CXX shared library lib/libMLIRAffineUtils.so.22.0git
[5084/8097] Linking CXX shared library lib/libMLIRVectorUtils.so.22.0git
[5085/8097] Linking CXX shared library lib/libMLIRArmNeon2dToIntr.so.22.0git
[5086/8097] Linking CXX shared library lib/libMLIRArmNeonTransforms.so.22.0git
[5087/8097] Linking CXX shared library lib/libMLIRSCFUtils.so.22.0git
[5088/8097] Linking CXX shared library lib/libMLIRTosaShardingInterfaceImpl.so.22.0git
[5089/8097] Linking CXX shared library lib/libMLIRNVVMDialect.so.22.0git
[5090/8097] Linking CXX shared library lib/libMLIRBufferizationToMemRef.so.22.0git
[5091/8097] Linking CXX shared library lib/libMLIRTestMathToVCIX.so.22.0git
[5092/8097] Building AMDGPUGenPostLegalizeGICombiner.inc...
[5093/8097] Linking CXX shared library lib/libMLIRArmSVEDialect.so.22.0git
[5094/8097] Linking CXX shared library lib/libMLIRArithTransforms.so.22.0git
[5095/8097] Linking CXX shared library lib/libMLIRAMDGPUDialect.so.22.0git
[5096/8097] Linking CXX shared library lib/libLLVMAnalysis.so.22.0git
[5097/8097] Linking CXX shared library lib/libMLIRArmSMEDialect.so.22.0git
[5098/8097] Building AMDGPUGenPreLegalizeGICombiner.inc...
[5099/8097] Linking CXX shared library lib/libMLIRLinalgDialect.so.22.0git
[5100/8097] Building AMDGPUGenRegBankGICombiner.inc...
[5101/8097] Linking CXX shared library lib/libMLIRSPIRVDialect.so.22.0git
[5102/8097] Building AMDGPUGenDisassemblerTables.inc...
[5103/8097] Building AMDGPUGenSubtargetInfo.inc...
[5104/8097] Building AMDGPUGenMCCodeEmitter.inc...
[5105/8097] Building AMDGPUGenSearchableTables.inc...
[5106/8097] Building CXX object lib/CodeGen/AsmPrinter/CMakeFiles/LLVMAsmPrinter.dir/AsmPrinter.cpp.o
[5107/8097] Building CXX object lib/LTO/CMakeFiles/LLVMLTO.dir/LTO.cpp.o
[5108/8097] Building AMDGPUGenCallingConv.inc...
[5109/8097] Building AMDGPUGenAsmWriter.inc...
[5110/8097] Building AMDGPUGenGlobalISel.inc...
[5111/8097] Building AMDGPUGenDAGISel.inc...
[5112/8097] Building AMDGPUGenInstrInfo.inc...
[5113/8097] Building AMDGPUGenAsmMatcher.inc...
[5114/8097] Building AMDGPUGenRegisterInfo.inc...
[5115/8097] Building AMDGPUGenRegisterBank.inc...
Step 7 (build cmake config) failure: build cmake config (failure)
...
[5073/8097] Linking CXX shared library lib/libMLIRConvertToEmitC.so.22.0git
[5074/8097] Linking CXX shared library lib/libMLIRTransformSMTExtension.so.22.0git
[5075/8097] Creating library symlink lib/libMLIRSCFToOpenMP.so
[5076/8097] Linking CXX shared library lib/libMLIRTransformPDLExtension.so.22.0git
[5077/8097] Creating library symlink lib/libMLIRConvertToEmitC.so
[5078/8097] Creating library symlink lib/libMLIRTransformSMTExtension.so
[5079/8097] Creating library symlink lib/libMLIRTosaDialect.so
[5080/8097] Creating library symlink lib/libMLIRBufferizationTransforms.so
[5081/8097] Linking CXX executable bin/llvm-profdata
[5082/8097] Linking CXX shared library lib/libLLVMCoverage.so.22.0git
FAILED: lib/libLLVMCoverage.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-redundant-move -Wno-pessimizing-move -Wno-array-bounds -Wno-stringop-overread -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -Wl,-z,defs -Wl,-z,nodelete -Wl,-rpath-link,/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/build/./lib -Wl,--gc-sections -shared -Wl,-soname,libLLVMCoverage.so.22.0git -o lib/libLLVMCoverage.so.22.0git lib/ProfileData/Coverage/CMakeFiles/LLVMCoverage.dir/CoverageMapping.cpp.o lib/ProfileData/Coverage/CMakeFiles/LLVMCoverage.dir/CoverageMappingWriter.cpp.o lib/ProfileData/Coverage/CMakeFiles/LLVMCoverage.dir/CoverageMappingReader.cpp.o -Wl,-rpath,"\$ORIGIN/../lib:/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/build/lib:" lib/libLLVMProfileData.so.22.0git lib/libLLVMObject.so.22.0git lib/libLLVMCore.so.22.0git lib/libLLVMTargetParser.so.22.0git lib/libLLVMSupport.so.22.0git -Wl,-rpath-link,/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/build/lib && :
/usr/bin/ld: lib/ProfileData/Coverage/CMakeFiles/LLVMCoverage.dir/CoverageMappingReader.cpp.o: in function `llvm::coverage::BinaryCoverageReader::create(llvm::MemoryBufferRef, llvm::StringRef, llvm::SmallVectorImpl<std::unique_ptr<llvm::MemoryBuffer, std::default_delete<llvm::MemoryBuffer> > >&, llvm::StringRef, llvm::SmallVectorImpl<llvm::ArrayRef<unsigned char> >*) [clone .localalias]':
CoverageMappingReader.cpp:(.text._ZN4llvm8coverage20BinaryCoverageReader6createENS_15MemoryBufferRefENS_9StringRefERNS_15SmallVectorImplISt10unique_ptrINS_12MemoryBufferESt14default_deleteIS6_EEEES3_PNS4_INS_8ArrayRefIhEEEE+0x264): undefined reference to `llvm::MachO::getArchTriple(unsigned int, unsigned int, char const**, char const**)'
/usr/bin/ld: CoverageMappingReader.cpp:(.text._ZN4llvm8coverage20BinaryCoverageReader6createENS_15MemoryBufferRefENS_9StringRefERNS_15SmallVectorImplISt10unique_ptrINS_12MemoryBufferESt14default_deleteIS6_EEEES3_PNS4_INS_8ArrayRefIhEEEE+0x3b2): undefined reference to `llvm::MachO::getArchTriple(unsigned int, unsigned int, char const**, char const**)'
collect2: error: ld returned 1 exit status
[5083/8097] Linking CXX shared library lib/libMLIRAffineUtils.so.22.0git
[5084/8097] Linking CXX shared library lib/libMLIRVectorUtils.so.22.0git
[5085/8097] Linking CXX shared library lib/libMLIRArmNeon2dToIntr.so.22.0git
[5086/8097] Linking CXX shared library lib/libMLIRArmNeonTransforms.so.22.0git
[5087/8097] Linking CXX shared library lib/libMLIRSCFUtils.so.22.0git
[5088/8097] Linking CXX shared library lib/libMLIRTosaShardingInterfaceImpl.so.22.0git
[5089/8097] Linking CXX shared library lib/libMLIRNVVMDialect.so.22.0git
[5090/8097] Linking CXX shared library lib/libMLIRBufferizationToMemRef.so.22.0git
[5091/8097] Linking CXX shared library lib/libMLIRTestMathToVCIX.so.22.0git
[5092/8097] Building AMDGPUGenPostLegalizeGICombiner.inc...
[5093/8097] Linking CXX shared library lib/libMLIRArmSVEDialect.so.22.0git
[5094/8097] Linking CXX shared library lib/libMLIRArithTransforms.so.22.0git
[5095/8097] Linking CXX shared library lib/libMLIRAMDGPUDialect.so.22.0git
[5096/8097] Linking CXX shared library lib/libLLVMAnalysis.so.22.0git
[5097/8097] Linking CXX shared library lib/libMLIRArmSMEDialect.so.22.0git
[5098/8097] Building AMDGPUGenPreLegalizeGICombiner.inc...
[5099/8097] Linking CXX shared library lib/libMLIRLinalgDialect.so.22.0git
[5100/8097] Building AMDGPUGenRegBankGICombiner.inc...
[5101/8097] Linking CXX shared library lib/libMLIRSPIRVDialect.so.22.0git
[5102/8097] Building AMDGPUGenDisassemblerTables.inc...
[5103/8097] Building AMDGPUGenSubtargetInfo.inc...
[5104/8097] Building AMDGPUGenMCCodeEmitter.inc...
[5105/8097] Building AMDGPUGenSearchableTables.inc...
[5106/8097] Building CXX object lib/CodeGen/AsmPrinter/CMakeFiles/LLVMAsmPrinter.dir/AsmPrinter.cpp.o
[5107/8097] Building CXX object lib/LTO/CMakeFiles/LLVMLTO.dir/LTO.cpp.o
[5108/8097] Building AMDGPUGenCallingConv.inc...
[5109/8097] Building AMDGPUGenAsmWriter.inc...
[5110/8097] Building AMDGPUGenGlobalISel.inc...
[5111/8097] Building AMDGPUGenDAGISel.inc...
[5112/8097] Building AMDGPUGenInstrInfo.inc...
[5113/8097] Building AMDGPUGenAsmMatcher.inc...
[5114/8097] Building AMDGPUGenRegisterInfo.inc...
[5115/8097] Building AMDGPUGenRegisterBank.inc...
```
</details>
https://github.com/llvm/llvm-project/pull/161949
More information about the llvm-commits
mailing list