[lld] [llvm] [LLVM][LTO] Factor out RTLib calls and allow them to be dropped (PR #98512)

LLVM Continuous Integration via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 16 04:46:24 PDT 2024


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `bolt-x86_64-ubuntu-dylib` running on `bolt-worker` while building `lld,llvm` at step 5 "build-bolt".

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

Here is the relevant piece of the build log for the reference:
```
Step 5 (build-bolt) failure: build (failure)
...
14.575 [108/9/1835] Linking CXX static library lib/libLLVMAArch64AsmParser.a
14.577 [108/8/1836] Linking CXX static library lib/libLLVMX86AsmParser.a
14.601 [108/7/1837] Linking CXX static library lib/libLLVMObject.a
14.680 [105/9/1838] Linking CXX static library lib/libLLVMJITLink.a
14.688 [105/8/1839] Linking CXX static library lib/libLLVMDebugInfoDWARF.a
14.690 [104/8/1840] Linking CXX static library lib/libLLVMDebugInfoPDB.a
14.723 [103/8/1841] Linking CXX static library lib/libLLVMDWP.a
14.725 [103/7/1842] Linking CXX static library lib/libLLVMSymbolize.a
14.780 [102/7/1843] Linking CXX static library lib/libLLVMProfileData.a
14.903 [101/7/1844] Building CXX object tools/bolt/lib/Core/CMakeFiles/LLVMBOLTCore.dir/DIEBuilder.cpp.o
FAILED: tools/bolt/lib/Core/CMakeFiles/LLVMBOLTCore.dir/DIEBuilder.cpp.o 
ccache /usr/bin/c++ -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/worker/bolt-worker2/bolt-x86_64-ubuntu-dylib/build/tools/bolt/lib/Core -I/home/worker/bolt-worker2/bolt-x86_64-ubuntu-dylib/llvm-project/bolt/lib/Core -I/home/worker/bolt-worker2/bolt-x86_64-ubuntu-dylib/build/include -I/home/worker/bolt-worker2/bolt-x86_64-ubuntu-dylib/llvm-project/llvm/include -I/home/worker/bolt-worker2/bolt-x86_64-ubuntu-dylib/llvm-project/bolt/include -I/home/worker/bolt-worker2/bolt-x86_64-ubuntu-dylib/build/tools/bolt/include -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 -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -std=c++17 -MD -MT tools/bolt/lib/Core/CMakeFiles/LLVMBOLTCore.dir/DIEBuilder.cpp.o -MF tools/bolt/lib/Core/CMakeFiles/LLVMBOLTCore.dir/DIEBuilder.cpp.o.d -o tools/bolt/lib/Core/CMakeFiles/LLVMBOLTCore.dir/DIEBuilder.cpp.o -c /home/worker/bolt-worker2/bolt-x86_64-ubuntu-dylib/llvm-project/bolt/lib/Core/DIEBuilder.cpp
/home/worker/bolt-worker2/bolt-x86_64-ubuntu-dylib/llvm-project/bolt/lib/Core/DIEBuilder.cpp: In member function ‘llvm::DWARFDie llvm::bolt::DIEBuilder::resolveDIEReference(const llvm::DWARFFormValue&, llvm::DWARFAbbreviationDeclaration::AttributeSpec, llvm::DWARFUnit*&, llvm::DWARFDebugInfoEntry&)’:
/home/worker/bolt-worker2/bolt-x86_64-ubuntu-dylib/llvm-project/bolt/lib/Core/DIEBuilder.cpp:559:34: error: ‘const class llvm::DWARFFormValue’ has no member named ‘getAsReference’; did you mean ‘getAsReferenceUVal’?
  559 |   uint64_t RefOffset = *RefValue.getAsReference();
      |                                  ^~~~~~~~~~~~~~
      |                                  getAsReferenceUVal
/home/worker/bolt-worker2/bolt-x86_64-ubuntu-dylib/llvm-project/bolt/lib/Core/DIEBuilder.cpp: In member function ‘void llvm::bolt::DIEBuilder::cloneDieReferenceAttribute(llvm::DIE&, const llvm::DWARFUnit&, const llvm::DWARFDie&, llvm::DWARFAbbreviationDeclaration::AttributeSpec, const llvm::DWARFFormValue&)’:
/home/worker/bolt-worker2/bolt-x86_64-ubuntu-dylib/llvm-project/bolt/lib/Core/DIEBuilder.cpp:610:29: error: ‘const class llvm::DWARFFormValue’ has no member named ‘getAsReference’; did you mean ‘getAsReferenceUVal’?
  610 |   const uint64_t Ref = *Val.getAsReference();
      |                             ^~~~~~~~~~~~~~
      |                             getAsReferenceUVal
14.973 [101/6/1845] Linking CXX static library lib/libLLVMAnalysis.a
15.778 [101/5/1846] Building RISCVGenGlobalISel.inc...
15.878 [101/4/1847] Building RISCVGenInstrInfo.inc...
19.541 [101/3/1848] Building RISCVGenSubtargetInfo.inc...
19.611 [101/2/1849] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/LiveDebugValues/InstrRefBasedImpl.cpp.o
19.712 [101/1/1850] Building RISCVGenDAGISel.inc...
ninja: build stopped: subcommand failed.

```

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


More information about the llvm-commits mailing list