[llvm] [llvm] Move data layout string computation to TargetParser (PR #157612)
LLVM Continuous Integration via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 11 12:41:03 PDT 2025
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `clang-ppc64le-linux-multistage` running on `ppc64le-clang-multistage-test` while building `llvm` at step 4 "build stage 1".
Full details are available at: https://lab.llvm.org/buildbot/#/builders/76/builds/12834
<details>
<summary>Here is the relevant piece of the build log for the reference</summary>
```
Step 4 (build stage 1) failure: 'ninja' (failure)
...
[5702/6512] Creating library symlink lib/libLLVMDWARFLinkerClassic.so
[5703/6512] Linking CXX shared library lib/libLLVMDWARFLinkerParallel.so.22.0git
[5704/6512] Creating library symlink lib/libLLVMDWARFLinkerParallel.so
[5705/6512] Linking CXX shared library lib/libLLVMSelectionDAG.so.22.0git
[5706/6512] Creating library symlink lib/libLLVMSelectionDAG.so
[5707/6512] Linking CXX shared library lib/libLLVMSparcCodeGen.so.22.0git
[5708/6512] Creating library symlink lib/libLLVMSparcCodeGen.so
[5709/6512] Linking CXX shared library lib/libLLVMVECodeGen.so.22.0git
[5710/6512] Creating library symlink lib/libLLVMVECodeGen.so
[5711/6512] Linking CXX shared library lib/libLLVMMSP430CodeGen.so.22.0git
FAILED: lib/libLLVMMSP430CodeGen.so.22.0git
: && /usr/lib64/ccache/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-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/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage1/./lib -Wl,--gc-sections -shared -Wl,-soname,libLLVMMSP430CodeGen.so.22.0git -o lib/libLLVMMSP430CodeGen.so.22.0git lib/Target/MSP430/CMakeFiles/LLVMMSP430CodeGen.dir/MSP430BranchSelector.cpp.o lib/Target/MSP430/CMakeFiles/LLVMMSP430CodeGen.dir/MSP430ISelDAGToDAG.cpp.o lib/Target/MSP430/CMakeFiles/LLVMMSP430CodeGen.dir/MSP430ISelLowering.cpp.o lib/Target/MSP430/CMakeFiles/LLVMMSP430CodeGen.dir/MSP430InstrInfo.cpp.o lib/Target/MSP430/CMakeFiles/LLVMMSP430CodeGen.dir/MSP430FrameLowering.cpp.o lib/Target/MSP430/CMakeFiles/LLVMMSP430CodeGen.dir/MSP430MachineFunctionInfo.cpp.o lib/Target/MSP430/CMakeFiles/LLVMMSP430CodeGen.dir/MSP430RegisterInfo.cpp.o lib/Target/MSP430/CMakeFiles/LLVMMSP430CodeGen.dir/MSP430SelectionDAGInfo.cpp.o lib/Target/MSP430/CMakeFiles/LLVMMSP430CodeGen.dir/MSP430Subtarget.cpp.o lib/Target/MSP430/CMakeFiles/LLVMMSP430CodeGen.dir/MSP430TargetMachine.cpp.o lib/Target/MSP430/CMakeFiles/LLVMMSP430CodeGen.dir/MSP430AsmPrinter.cpp.o lib/Target/MSP430/CMakeFiles/LLVMMSP430CodeGen.dir/MSP430MCInstLower.cpp.o -Wl,-rpath,"\$ORIGIN/../lib:/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage1/lib:" lib/libLLVMAsmPrinter.so.22.0git lib/libLLVMMSP430Desc.so.22.0git lib/libLLVMMSP430Info.so.22.0git lib/libLLVMSelectionDAG.so.22.0git lib/libLLVMCodeGen.so.22.0git lib/libLLVMCodeGenTypes.so.22.0git lib/libLLVMTarget.so.22.0git lib/libLLVMMC.so.22.0git lib/libLLVMCore.so.22.0git lib/libLLVMSupport.so.22.0git -Wl,-rpath-link,/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage1/lib && :
lib/Target/MSP430/CMakeFiles/LLVMMSP430CodeGen.dir/MSP430TargetMachine.cpp.o: In function `llvm::RegisterTargetMachine<llvm::MSP430TargetMachine>::Allocator(llvm::Target const&, llvm::Triple const&, llvm::StringRef, llvm::StringRef, llvm::TargetOptions const&, std::optional<llvm::Reloc::Model>, std::optional<llvm::CodeModel::Model>, llvm::CodeGenOptLevel, bool)':
MSP430TargetMachine.cpp:(.text._ZN4llvm21RegisterTargetMachineINS_19MSP430TargetMachineEE9AllocatorERKNS_6TargetERKNS_6TripleENS_9StringRefES9_RKNS_13TargetOptionsESt8optionalINS_5Reloc5ModelEESD_INS_9CodeModel5ModelEENS_15CodeGenOptLevelEb[_ZN4llvm21RegisterTargetMachineINS_19MSP430TargetMachineEE9AllocatorERKNS_6TargetERKNS_6TripleENS_9StringRefES9_RKNS_13TargetOptionsESt8optionalINS_5Reloc5ModelEESD_INS_9CodeModel5ModelEENS_15CodeGenOptLevelEb]+0xa0): undefined reference to `llvm::Triple::computeDataLayout[abi:cxx11](llvm::StringRef) const'
lib/Target/MSP430/CMakeFiles/LLVMMSP430CodeGen.dir/MSP430TargetMachine.cpp.o: In function `llvm::MSP430TargetMachine::MSP430TargetMachine(llvm::Target const&, llvm::Triple const&, llvm::StringRef, llvm::StringRef, llvm::TargetOptions const&, std::optional<llvm::Reloc::Model>, std::optional<llvm::CodeModel::Model>, llvm::CodeGenOptLevel, bool)':
MSP430TargetMachine.cpp:(.text._ZN4llvm19MSP430TargetMachineC2ERKNS_6TargetERKNS_6TripleENS_9StringRefES7_RKNS_13TargetOptionsESt8optionalINS_5Reloc5ModelEESB_INS_9CodeModel5ModelEENS_15CodeGenOptLevelEb+0x88): undefined reference to `llvm::Triple::computeDataLayout[abi:cxx11](llvm::StringRef) const'
collect2: error: ld returned 1 exit status
[5712/6512] Linking CXX shared library lib/libLLVMAVRCodeGen.so.22.0git
[5713/6512] Linking CXX shared library lib/libLLVMLanaiCodeGen.so.22.0git
[5714/6512] Linking CXX shared library lib/libLLVMXCoreCodeGen.so.22.0git
[5715/6512] Linking CXX shared library lib/libLLVMLoongArchCodeGen.so.22.0git
[5716/6512] Linking CXX shared library lib/libLLVMSystemZCodeGen.so.22.0git
[5717/6512] Linking CXX shared library lib/libLLVMWebAssemblyCodeGen.so.22.0git
[5718/6512] Linking CXX shared library lib/libLLVMGlobalISel.so.22.0git
[5719/6512] Building CXX object tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/CGDebugInfo.cpp.o
[5720/6512] Building CXX object lib/Target/RISCV/CMakeFiles/LLVMRISCVCodeGen.dir/RISCVInstrInfo.cpp.o
[5721/6512] Building CXX object tools/clang/tools/extra/clang-tidy/modernize/CMakeFiles/obj.clangTidyModernizeModule.dir/LoopConvertUtils.cpp.o
[5722/6512] Building AMDGPUGenRegisterInfo.inc...
[5723/6512] Building CXX object tools/clang/lib/AST/CMakeFiles/obj.clangAST.dir/ByteCode/Interp.cpp.o
In file included from /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/clang/lib/AST/ByteCode/Interp.cpp:9:
/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/clang/lib/AST/ByteCode/Interp.h: In instantiation of ‘bool clang::interp::BitCastPrim(clang::interp::InterpState&, clang::interp::CodePtr, bool, uint32_t, const llvm::fltSemantics*) [with clang::interp::PrimType Name = (clang::interp::PrimType)13; T = clang::interp::Pointer; uint32_t = unsigned int]’:
/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage1/tools/clang/lib/AST/Opcodes.inc:2959:47: required from here
/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/clang/lib/AST/ByteCode/Interp.h:3568:60: warning: parameter ‘TargetIsUCharOrByte’ set but not used [-Wunused-but-set-parameter]
inline bool BitCastPrim(InterpState &S, CodePtr OpPC, bool TargetIsUCharOrByte,
~~~~~^~~~~~~~~~~~~~~~~~~
/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/clang/lib/AST/ByteCode/Interp.h: In instantiation of ‘bool clang::interp::CastFloatingIntegral(clang::interp::InterpState&, clang::interp::CodePtr, uint32_t) [with clang::interp::PrimType Name = (clang::interp::PrimType)10; T = clang::interp::Boolean; uint32_t = unsigned int]’:
/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage1/tools/clang/lib/AST/Opcodes.inc:7431:49: required from here
/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/clang/lib/AST/ByteCode/Interp.h:2556:51: warning: parameter ‘OpPC’ set but not used [-Wunused-but-set-parameter]
bool CastFloatingIntegral(InterpState &S, CodePtr OpPC, uint32_t FPOI) {
~~~~~~~~^~~~
/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/clang/lib/AST/ByteCode/Interp.h:2556:66: warning: parameter ‘FPOI’ set but not used [-Wunused-but-set-parameter]
bool CastFloatingIntegral(InterpState &S, CodePtr OpPC, uint32_t FPOI) {
~~~~~~~~~^~~~
/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/clang/lib/AST/ByteCode/Interp.h: In instantiation of ‘bool clang::interp::Divc(clang::interp::InterpState&, clang::interp::CodePtr) [with clang::interp::PrimType Name = (clang::interp::PrimType)12; T = clang::interp::Floating]’:
/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage1/tools/clang/lib/AST/Opcodes.inc:11579:30: required from here
/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/clang/lib/AST/ByteCode/Interp.h:524:42: warning: parameter ‘OpPC’ set but not used [-Wunused-but-set-parameter]
inline bool Divc(InterpState &S, CodePtr OpPC) {
~~~~~~~~^~~~
/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/clang/lib/AST/ByteCode/Interp.h: In instantiation of ‘bool clang::interp::Neg(clang::interp::InterpState&, clang::interp::CodePtr) [with clang::interp::PrimType Name = (clang::interp::PrimType)12; T = clang::interp::Floating]’:
```
</details>
https://github.com/llvm/llvm-project/pull/157612
More information about the llvm-commits
mailing list