[llvm] Add verification support for .debug_names with foreign type units. (PR #109011)

LLVM Continuous Integration via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 22 12:13:36 PDT 2024


llvm-ci wrote:

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

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

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

```
Step 7 (build-bolt) failure: build (failure)
...
      |                      ^~~~~~~~~~~~~~~~~~~~~~~
33.929 [137/18/1822] Building CXX object tools/bolt/lib/Passes/CMakeFiles/LLVMBOLTPasses.dir/BinaryPasses.cpp.o
In file included from /home/worker/bolt-worker2/bolt-x86_64-ubuntu-nfc/llvm-project/bolt/include/bolt/Core/BinarySection.h:18,
                 from /home/worker/bolt-worker2/bolt-x86_64-ubuntu-nfc/llvm-project/bolt/include/bolt/Core/BinaryContext.h:18,
                 from /home/worker/bolt-worker2/bolt-x86_64-ubuntu-nfc/llvm-project/bolt/include/bolt/Passes/BinaryPasses.h:16,
                 from /home/worker/bolt-worker2/bolt-x86_64-ubuntu-nfc/llvm-project/bolt/lib/Passes/BinaryPasses.cpp:13:
/home/worker/bolt-worker2/bolt-x86_64-ubuntu-nfc/llvm-project/bolt/include/bolt/Core/DebugData.h:512:22: warning: ‘maybe_unused’ attribute ignored [-Wattributes]
  512 |   DenseSet<uint64_t> DebugStrOffsetFinalized;
      |                      ^~~~~~~~~~~~~~~~~~~~~~~
34.171 [136/18/1823] 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++ -DCMAKE_INSTALL_FULL_LIBDIR=\"/usr/local/lib\" -DGTEST_HAS_RTTI=0 -DLLVM_BUILD_STATIC -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-nfc/build/tools/bolt/lib/Core -I/home/worker/bolt-worker2/bolt-x86_64-ubuntu-nfc/llvm-project/bolt/lib/Core -I/home/worker/bolt-worker2/bolt-x86_64-ubuntu-nfc/build/include -I/home/worker/bolt-worker2/bolt-x86_64-ubuntu-nfc/llvm-project/llvm/include -I/home/worker/bolt-worker2/bolt-x86_64-ubuntu-nfc/llvm-project/bolt/include -I/home/worker/bolt-worker2/bolt-x86_64-ubuntu-nfc/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-nfc/llvm-project/bolt/lib/Core/DIEBuilder.cpp
In file included from /home/worker/bolt-worker2/bolt-x86_64-ubuntu-nfc/llvm-project/bolt/include/bolt/Core/BinarySection.h:18,
                 from /home/worker/bolt-worker2/bolt-x86_64-ubuntu-nfc/llvm-project/bolt/include/bolt/Core/BinaryContext.h:18,
                 from /home/worker/bolt-worker2/bolt-x86_64-ubuntu-nfc/llvm-project/bolt/include/bolt/Core/DIEBuilder.h:18,
                 from /home/worker/bolt-worker2/bolt-x86_64-ubuntu-nfc/llvm-project/bolt/lib/Core/DIEBuilder.cpp:9:
/home/worker/bolt-worker2/bolt-x86_64-ubuntu-nfc/llvm-project/bolt/include/bolt/Core/DebugData.h:512:22: warning: ‘maybe_unused’ attribute ignored [-Wattributes]
  512 |   DenseSet<uint64_t> DebugStrOffsetFinalized;
      |                      ^~~~~~~~~~~~~~~~~~~~~~~
/home/worker/bolt-worker2/bolt-x86_64-ubuntu-nfc/llvm-project/bolt/lib/Core/DIEBuilder.cpp: In member function ‘void llvm::bolt::DIEBuilder::buildTypeUnits(llvm::bolt::DebugStrOffsetsWriter*, bool)’:
/home/worker/bolt-worker2/bolt-x86_64-ubuntu-nfc/llvm-project/bolt/lib/Core/DIEBuilder.cpp:284:39: error: no matching function for call to ‘llvm::DWARFContext::getTypeUnitForHash(unsigned int, uint64_t&, bool)’
  284 |       DwarfContext->getTypeUnitForHash(DwarfContext->getMaxVersion(), Signature,
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  285 |                                        true);
      |                                        ~~~~~
In file included from /home/worker/bolt-worker2/bolt-x86_64-ubuntu-nfc/llvm-project/bolt/include/bolt/Core/DebugData.h:19,
                 from /home/worker/bolt-worker2/bolt-x86_64-ubuntu-nfc/llvm-project/bolt/include/bolt/Core/BinarySection.h:18,
                 from /home/worker/bolt-worker2/bolt-x86_64-ubuntu-nfc/llvm-project/bolt/include/bolt/Core/BinaryContext.h:18,
                 from /home/worker/bolt-worker2/bolt-x86_64-ubuntu-nfc/llvm-project/bolt/include/bolt/Core/DIEBuilder.h:18,
                 from /home/worker/bolt-worker2/bolt-x86_64-ubuntu-nfc/llvm-project/bolt/lib/Core/DIEBuilder.cpp:9:
/home/worker/bolt-worker2/bolt-x86_64-ubuntu-nfc/llvm-project/llvm/include/llvm/DebugInfo/DWARF/DWARFContext.h:268:18: note: candidate: ‘llvm::DWARFTypeUnit* llvm::DWARFContext::getTypeUnitForHash(uint64_t, bool)’
  268 |   DWARFTypeUnit *getTypeUnitForHash(uint64_t Hash, bool IsDWO);
      |                  ^~~~~~~~~~~~~~~~~~
/home/worker/bolt-worker2/bolt-x86_64-ubuntu-nfc/llvm-project/llvm/include/llvm/DebugInfo/DWARF/DWARFContext.h:268:18: note:   candidate expects 2 arguments, 3 provided
35.017 [136/17/1824] Building CXX object tools/bolt/lib/Core/CMakeFiles/LLVMBOLTCore.dir/GDBIndex.cpp.o
In file included from /home/worker/bolt-worker2/bolt-x86_64-ubuntu-nfc/llvm-project/bolt/include/bolt/Core/BinarySection.h:18,
                 from /home/worker/bolt-worker2/bolt-x86_64-ubuntu-nfc/llvm-project/bolt/include/bolt/Core/BinaryContext.h:18,
                 from /home/worker/bolt-worker2/bolt-x86_64-ubuntu-nfc/llvm-project/bolt/include/bolt/Core/GDBIndex.h:17,
                 from /home/worker/bolt-worker2/bolt-x86_64-ubuntu-nfc/llvm-project/bolt/lib/Core/GDBIndex.cpp:9:
/home/worker/bolt-worker2/bolt-x86_64-ubuntu-nfc/llvm-project/bolt/include/bolt/Core/DebugData.h:512:22: warning: ‘maybe_unused’ attribute ignored [-Wattributes]
  512 |   DenseSet<uint64_t> DebugStrOffsetFinalized;
      |                      ^~~~~~~~~~~~~~~~~~~~~~~
35.055 [136/16/1825] Building CXX object tools/bolt/lib/Core/CMakeFiles/LLVMBOLTCore.dir/BinaryFunctionProfile.cpp.o
In file included from /home/worker/bolt-worker2/bolt-x86_64-ubuntu-nfc/llvm-project/bolt/include/bolt/Core/BinarySection.h:18,
                 from /home/worker/bolt-worker2/bolt-x86_64-ubuntu-nfc/llvm-project/bolt/include/bolt/Core/BinaryContext.h:18,
                 from /home/worker/bolt-worker2/bolt-x86_64-ubuntu-nfc/llvm-project/bolt/include/bolt/Core/BinaryFunction.h:29,
                 from /home/worker/bolt-worker2/bolt-x86_64-ubuntu-nfc/llvm-project/bolt/lib/Core/BinaryFunctionProfile.cpp:15:
/home/worker/bolt-worker2/bolt-x86_64-ubuntu-nfc/llvm-project/bolt/include/bolt/Core/DebugData.h:512:22: warning: ‘maybe_unused’ attribute ignored [-Wattributes]
  512 |   DenseSet<uint64_t> DebugStrOffsetFinalized;

```

</details>

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


More information about the llvm-commits mailing list