Skip to content

[llvm-debuginfo-analyzer] Add support for LLVM IR format. - #135440

Merged
CarlosAlbertoEnciso merged 18 commits into
llvm:mainfrom
CarlosAlbertoEnciso:debuginfo-analyzer-ir-reader
May 27, 2026
Merged

[llvm-debuginfo-analyzer] Add support for LLVM IR format.#135440
CarlosAlbertoEnciso merged 18 commits into
llvm:mainfrom
CarlosAlbertoEnciso:debuginfo-analyzer-ir-reader

Conversation

@CarlosAlbertoEnciso

@CarlosAlbertoEnciso CarlosAlbertoEnciso commented Apr 11, 2025

Copy link
Copy Markdown
Member

Add support for the LLVM IR format and be able to generate logical views.

Both textual representation (.ll) and bitcode (.bc) format are supported.

@llvmbot

llvmbot commented Apr 11, 2025

Copy link
Copy Markdown
Member

@llvm/pr-subscribers-debuginfo

Author: Carlos Alberto Enciso (CarlosAlbertoEnciso)

Changes

Add support for the LLVM IR format and be able to generate logical views.

Both textual representation (.ll) and bitcode (.bc) format are supported.

Note: This patch requires:

Add DebugSSAUpdater class to track debug value liveness
#135349


Patch is 226.09 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/135440.diff

35 Files Affected:

  • (modified) llvm/docs/CommandGuide/llvm-debuginfo-analyzer.rst (+165-4)
  • (modified) llvm/include/llvm/DebugInfo/LogicalView/Core/LVReader.h (+25-1)
  • (modified) llvm/include/llvm/DebugInfo/LogicalView/Core/LVSupport.h (+13)
  • (modified) llvm/include/llvm/DebugInfo/LogicalView/LVReaderHandler.h (+9-3)
  • (modified) llvm/include/llvm/DebugInfo/LogicalView/Readers/LVBinaryReader.h (+1-11)
  • (modified) llvm/include/llvm/DebugInfo/LogicalView/Readers/LVDWARFReader.h (-10)
  • (added) llvm/include/llvm/DebugInfo/LogicalView/Readers/LVIRReader.h (+300)
  • (modified) llvm/lib/DebugInfo/LogicalView/CMakeLists.txt (+2)
  • (modified) llvm/lib/DebugInfo/LogicalView/Core/LVElement.cpp (+8-4)
  • (modified) llvm/lib/DebugInfo/LogicalView/Core/LVReader.cpp (+271)
  • (modified) llvm/lib/DebugInfo/LogicalView/LVReaderHandler.cpp (+37-8)
  • (modified) llvm/lib/DebugInfo/LogicalView/Readers/LVBinaryReader.cpp (-24)
  • (modified) llvm/lib/DebugInfo/LogicalView/Readers/LVDWARFReader.cpp (+6-218)
  • (added) llvm/lib/DebugInfo/LogicalView/Readers/LVIRReader.cpp (+2348)
  • (added) llvm/test/tools/llvm-debuginfo-analyzer/IR/01-ir-compare-logical-elements.test (+121)
  • (added) llvm/test/tools/llvm-debuginfo-analyzer/IR/01-ir-print-basic-details.test (+76)
  • (added) llvm/test/tools/llvm-debuginfo-analyzer/IR/01-ir-select-logical-elements.test (+122)
  • (added) llvm/test/tools/llvm-debuginfo-analyzer/IR/02-ir-logical-lines.test (+60)
  • (added) llvm/test/tools/llvm-debuginfo-analyzer/IR/03-ir-incorrect-lexical-scope-typedef.test (+131)
  • (added) llvm/test/tools/llvm-debuginfo-analyzer/IR/04-ir-missing-nested-enumerators.test (+144)
  • (added) llvm/test/tools/llvm-debuginfo-analyzer/IR/05-ir-incorrect-lexical-scope-variable.test (+113)
  • (added) llvm/test/tools/llvm-debuginfo-analyzer/IR/06-ir-full-logical-view.test (+118)
  • (added) llvm/test/tools/llvm-debuginfo-analyzer/IR/07-ir-debug-formats.test (+48)
  • (added) llvm/test/tools/llvm-debuginfo-analyzer/IR/Inputs/hello-world-clang.ll (+49)
  • (added) llvm/test/tools/llvm-debuginfo-analyzer/IR/Inputs/pr-43860-clang.ll (+92)
  • (added) llvm/test/tools/llvm-debuginfo-analyzer/IR/Inputs/pr-44884-clang.ll (+98)
  • (added) llvm/test/tools/llvm-debuginfo-analyzer/IR/Inputs/pr-46466-clang.ll (+44)
  • (added) llvm/test/tools/llvm-debuginfo-analyzer/IR/Inputs/test-clang-intrinsics.ll (+87)
  • (added) llvm/test/tools/llvm-debuginfo-analyzer/IR/Inputs/test-clang.ll (+83)
  • (modified) llvm/tools/llvm-debuginfo-analyzer/CMakeLists.txt (+2)
  • (modified) llvm/unittests/DebugInfo/LogicalView/CMakeLists.txt (+3)
  • (added) llvm/unittests/DebugInfo/LogicalView/IRReaderTest.cpp (+355)
  • (modified) llvm/unittests/DebugInfo/LogicalView/Inputs/README.md (+11)
  • (added) llvm/unittests/DebugInfo/LogicalView/Inputs/test-clang.bc ()
  • (added) llvm/unittests/DebugInfo/LogicalView/Inputs/test-clang.ll (+83)
diff --git a/llvm/docs/CommandGuide/llvm-debuginfo-analyzer.rst b/llvm/docs/CommandGuide/llvm-debuginfo-analyzer.rst
index 60fa024db5e99..c5d3293c02f57 100644
--- a/llvm/docs/CommandGuide/llvm-debuginfo-analyzer.rst
+++ b/llvm/docs/CommandGuide/llvm-debuginfo-analyzer.rst
@@ -13,10 +13,11 @@ SYNOPSIS
 DESCRIPTION
 -----------
 :program:`llvm-debuginfo-analyzer` parses debug and text sections in
-binary object files and prints their contents in a logical view, which
-is a human readable representation that closely matches the structure
-of the original user source code. Supported object file formats include
-ELF, Mach-O, WebAssembly, PDB and COFF.
+binary object files and textual IR representations and prints their
+contents in a logical view, which is a human readable representation
+that closely matches the structure of the original user source code.
+Supported object file formats include ELF, Mach-O, WebAssembly, PDB,
+COFF, IR (textual representation and bitcode).
 
 The **logical view** abstracts the complexity associated with the
 different low-level representations of the debugging information that
@@ -2124,6 +2125,138 @@ layout and given the number of matches.
   -----------------------------
   Total           71          8
 
+IR (Textual representation and bitcode) SUPPORT
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+The below example is used to show the IR output generated by
+:program:`llvm-debuginfo-analyzer`. We compiled the example for a
+IR 64-bit target with Clang (-O0 -g --target=x86_64-linux):
+
+.. code-block:: c++
+
+  1  using INTPTR = const int *;
+  2  int foo(INTPTR ParamPtr, unsigned ParamUnsigned, bool ParamBool) {
+  3    if (ParamBool) {
+  4      typedef int INTEGER;
+  5      const INTEGER CONSTANT = 7;
+  6      return CONSTANT;
+  7    }
+  8    return ParamUnsigned;
+  9  }
+
+PRINT BASIC DETAILS
+^^^^^^^^^^^^^^^^^^^
+The following command prints basic details for all the logical elements
+sorted by the debug information internal offset; it includes its lexical
+level and debug info format.
+
+.. code-block:: none
+
+  llvm-debuginfo-analyzer --attribute=level,format
+                          --output-sort=offset
+                          --print=scopes,symbols,types,lines,instructions
+                          test-clang.ll
+
+or
+
+.. code-block:: none
+
+  llvm-debuginfo-analyzer --attribute=level,format
+                          --output-sort=offset
+                          --print=elements
+                          test-clang.ll
+
+Each row represents an element that is present within the debug
+information. The first column represents the scope level, followed by
+the associated line number (if any), and finally the description of
+the element.
+
+.. code-block:: none
+
+  Logical View:
+  [000]           {File} 'test-clang.ll' -> Textual IR
+
+  [001]             {CompileUnit} 'test.cpp'
+  [002]     2         {Function} extern not_inlined 'foo' -> 'int'
+  [003]                 {Block}
+  [004]     5             {Variable} 'CONSTANT' -> 'const INTEGER'
+  [004]     5             {Line}
+  [004]                   {Code} 'store i32 7, ptr %CONSTANT, align 4, !dbg !32'
+  [004]     6             {Line}
+  [004]                   {Code} 'store i32 7, ptr %retval, align 4, !dbg !33'
+  [004]     6             {Line}
+  [004]                   {Code} 'br label %return, !dbg !33'
+  [003]     2           {Parameter} 'ParamPtr' -> 'INTPTR'
+  [003]     2           {Parameter} 'ParamUnsigned' -> 'unsigned int'
+  [003]     2           {Parameter} 'ParamBool' -> 'bool'
+  [003]     4           {TypeAlias} 'INTEGER' -> 'int'
+  [003]     2           {Line}
+  [003]                 {Code} '%retval = alloca i32, align 4'
+  [003]                 {Code} '%ParamPtr.addr = alloca ptr, align 8'
+  [003]                 {Code} '%ParamUnsigned.addr = alloca i32, align 4'
+  [003]                 {Code} '%ParamBool.addr = alloca i8, align 1'
+  [003]                 {Code} '%CONSTANT = alloca i32, align 4'
+  [003]                 {Code} 'store ptr %ParamPtr, ptr %ParamPtr.addr, align 8'
+  [003]                 {Code} 'store i32 %ParamUnsigned, ptr %ParamUnsigned.addr, align 4'
+  [003]                 {Code} '%storedv = zext i1 %ParamBool to i8'
+  [003]                 {Code} 'store i8 %storedv, ptr %ParamBool.addr, align 1'
+  [003]     8           {Line}
+  [003]                 {Code} '%1 = load i32, ptr %ParamUnsigned.addr, align 4, !dbg !34'
+  [003]     8           {Line}
+  [003]                 {Code} 'store i32 %1, ptr %retval, align 4, !dbg !35'
+  [003]     8           {Line}
+  [003]                 {Code} 'br label %return, !dbg !35'
+  [003]     9           {Line}
+  [003]                 {Code} '%2 = load i32, ptr %retval, align 4, !dbg !36'
+  [003]     9           {Line}
+  [003]                 {Code} 'ret i32 %2, !dbg !36'
+  [003]     3           {Line}
+  [003]     3           {Line}
+  [003]     3           {Line}
+  [003]                 {Code} 'br i1 %loadedv, label %if.then, label %if.end, !dbg !26'
+  [002]     1         {TypeAlias} 'INTPTR' -> '* const int'
+
+SELECT LOGICAL ELEMENTS
+^^^^^^^^^^^^^^^^^^^^^^^
+The following prints all *instructions*, *symbols* and *types* that
+contain **'block'** or **'.store'** in their names or types, using a tab
+layout and given the number of matches.
+
+.. code-block:: none
+
+  llvm-debuginfo-analyzer --attribute=level
+                          --select-nocase --select-regex
+                          --select=LOAD --select=store
+                          --report=list
+                          --print=symbols,types,instructions,summary
+                          test-clang.ll
+
+  Logical View:
+  [000]           {File} 'test-clang.ll'
+
+  [001]           {CompileUnit} 'test.cpp'
+  [003]           {Code} '%0 = load i8, ptr %ParamBool.addr, align 1, !dbg !26'
+  [003]           {Code} '%1 = load i32, ptr %ParamUnsigned.addr, align 4, !dbg !34'
+  [003]           {Code} '%2 = load i32, ptr %retval, align 4, !dbg !36'
+  [004]           {Code} '%loadedv = trunc i8 %0 to i1, !dbg !26'
+  [003]           {Code} '%storedv = zext i1 %ParamBool to i8'
+  [003]           {Code} 'br i1 %loadedv, label %if.then, label %if.end, !dbg !26'
+  [003]           {Code} 'store i32 %1, ptr %retval, align 4, !dbg !35'
+  [003]           {Code} 'store i32 %ParamUnsigned, ptr %ParamUnsigned.addr, align 4'
+  [004]           {Code} 'store i32 7, ptr %CONSTANT, align 4, !dbg !32'
+  [004]           {Code} 'store i32 7, ptr %retval, align 4, !dbg !33'
+  [003]           {Code} 'store i8 %storedv, ptr %ParamBool.addr, align 1'
+  [003]           {Code} 'store ptr %ParamPtr, ptr %ParamPtr.addr, align 8'
+
+  -----------------------------
+  Element      Total    Printed
+  -----------------------------
+  Scopes           5          0
+  Symbols          4          0
+  Types            2          0
+  Lines           22         12
+  -----------------------------
+  Total           33         12
+
 COMPARISON MODE
 ^^^^^^^^^^^^^^^
 Given the previous example we found the above debug information issue
@@ -2197,6 +2330,34 @@ giving more context by swapping the reference and target object files.
 The output shows the merging view path (reference and target) with the
 missing and added elements.
 
+.. code-block:: none
+
+  llvm-debuginfo-analyzer --attribute=level,format
+                          --compare=types
+                          --report=view
+                          --print=symbols,types
+                          test-clang.bc test-dwarf-gcc.o
+
+  Reference: 'test-clang.bc'
+  Target:    'test-dwarf-gcc.o'
+
+  Logical View:
+   [000]           {File} 'test-clang.bc' -> Bitcode IR
+
+   [001]             {CompileUnit} 'test.cpp'
+   [002]     1         {TypeAlias} 'INTPTR' -> '* const int'
+   [002]     2         {Function} extern not_inlined 'foo' -> 'int'
+   [003]                 {Block}
+   [004]     5             {Variable} 'CONSTANT' -> 'const INTEGER'
+  +[004]     4             {TypeAlias} 'INTEGER' -> 'int'
+   [003]     2           {Parameter} 'ParamBool' -> 'bool'
+   [003]     2           {Parameter} 'ParamPtr' -> 'INTPTR'
+   [003]     2           {Parameter} 'ParamUnsigned' -> 'unsigned int'
+  -[003]     4           {TypeAlias} 'INTEGER' -> 'int'
+
+The same output but this time comparing the Clang bitcode with the
+binary object (DWARF) generated by GCC.
+
 LOGICAL ELEMENTS
 """"""""""""""""
 It compares individual logical elements without considering if their
diff --git a/llvm/include/llvm/DebugInfo/LogicalView/Core/LVReader.h b/llvm/include/llvm/DebugInfo/LogicalView/Core/LVReader.h
index 9ce26398e48df..c848ea44f63a7 100644
--- a/llvm/include/llvm/DebugInfo/LogicalView/Core/LVReader.h
+++ b/llvm/include/llvm/DebugInfo/LogicalView/Core/LVReader.h
@@ -56,7 +56,7 @@ class LVSplitContext final {
 
 /// The logical reader owns of all the logical elements created during
 /// the debug information parsing. For its creation it uses a specific
-///  bump allocator for each type of logical element.
+/// bump allocator for each type of logical element.
 class LVReader {
   LVBinaryType BinaryType;
 
@@ -121,7 +121,24 @@ class LVReader {
 
 #undef LV_OBJECT_ALLOCATOR
 
+  // Scopes with ranges for current compile unit. It is used to find a line
+  // giving its exact or closest address. To support comdat functions, all
+  // addresses for the same section are recorded in the same map.
+  using LVSectionRanges = std::map<LVSectionIndex, std::unique_ptr<LVRange>>;
+  LVSectionRanges SectionRanges;
+
 protected:
+  // Current elements during the processing of a DIE/MDNode.
+  LVElement *CurrentElement = nullptr;
+  LVScope *CurrentScope = nullptr;
+  LVSymbol *CurrentSymbol = nullptr;
+  LVType *CurrentType = nullptr;
+  LVLine *CurrentLine = nullptr;
+  LVOffset CurrentOffset = 0;
+
+  // Address ranges collected for current DIE/MDNode/AST Node.
+  std::vector<LVAddressRange> CurrentRanges;
+
   LVScopeRoot *Root = nullptr;
   std::string InputFilename;
   std::string FileFormatName;
@@ -132,11 +149,18 @@ class LVReader {
   // Only for ELF format. The CodeView is handled in a different way.
   LVSectionIndex DotTextSectionIndex = UndefinedSectionIndex;
 
+  void addSectionRange(LVSectionIndex SectionIndex, LVScope *Scope);
+  void addSectionRange(LVSectionIndex SectionIndex, LVScope *Scope,
+                       LVAddress LowerAddress, LVAddress UpperAddress);
+  LVRange *getSectionRanges(LVSectionIndex SectionIndex);
+
   // Record Compilation Unit entry.
   void addCompileUnitOffset(LVOffset Offset, LVScopeCompileUnit *CompileUnit) {
     CompileUnits.emplace(Offset, CompileUnit);
   }
 
+  LVElement *createElement(dwarf::Tag Tag);
+
   // Create the Scope Root.
   virtual Error createScopes() {
     Root = createScopeRoot();
diff --git a/llvm/include/llvm/DebugInfo/LogicalView/Core/LVSupport.h b/llvm/include/llvm/DebugInfo/LogicalView/Core/LVSupport.h
index 8269344fe6efe..28f6dbcf4e2ae 100644
--- a/llvm/include/llvm/DebugInfo/LogicalView/Core/LVSupport.h
+++ b/llvm/include/llvm/DebugInfo/LogicalView/Core/LVSupport.h
@@ -99,6 +99,19 @@ template <typename T> class LVProperties {
 #define KIND_3(ENUM, FIELD, F1, F2, F3)                                        \
   BOOL_BIT_3(Kinds, ENUM, FIELD, F1, F2, F3)
 
+const int DEC_WIDTH = 8;
+inline FormattedNumber decValue(uint64_t N, unsigned Width = DEC_WIDTH) {
+  return format_decimal(N, Width);
+}
+
+// Output the decimal representation of 'Value'.
+inline std::string decString(uint64_t Value, size_t Width = DEC_WIDTH) {
+  std::string String;
+  raw_string_ostream Stream(String);
+  Stream << decValue(Value, Width);
+  return Stream.str();
+}
+
 const int HEX_WIDTH = 12;
 inline FormattedNumber hexValue(uint64_t N, unsigned Width = HEX_WIDTH,
                                 bool Upper = false) {
diff --git a/llvm/include/llvm/DebugInfo/LogicalView/LVReaderHandler.h b/llvm/include/llvm/DebugInfo/LogicalView/LVReaderHandler.h
index bf30501d00c1f..c743e517e371b 100644
--- a/llvm/include/llvm/DebugInfo/LogicalView/LVReaderHandler.h
+++ b/llvm/include/llvm/DebugInfo/LogicalView/LVReaderHandler.h
@@ -17,6 +17,7 @@
 #include "llvm/DebugInfo/LogicalView/Core/LVReader.h"
 #include "llvm/DebugInfo/PDB/Native/PDBFile.h"
 #include "llvm/Object/Archive.h"
+#include "llvm/Object/IRObjectFile.h"
 #include "llvm/Object/MachOUniversal.h"
 #include "llvm/Object/ObjectFile.h"
 #include "llvm/Support/MemoryBuffer.h"
@@ -29,7 +30,9 @@ namespace logicalview {
 
 using LVReaders = std::vector<std::unique_ptr<LVReader>>;
 using ArgVector = std::vector<std::string>;
-using PdbOrObj = PointerUnion<object::ObjectFile *, pdb::PDBFile *>;
+using PdbOrObjOrIr =
+    PointerUnion<object::ObjectFile *, pdb::PDBFile *, object::IRObjectFile *,
+                 MemoryBufferRef *, StringRef *>;
 
 // This class performs the following tasks:
 // - Creates a logical reader for every binary file in the command line,
@@ -60,9 +63,12 @@ class LVReaderHandler {
                      object::Binary &Binary);
   Error handleObject(LVReaders &Readers, StringRef Filename, StringRef Buffer,
                      StringRef ExePath);
+  Error handleObject(LVReaders &Readers, StringRef Filename,
+                     MemoryBufferRef Buffer);
 
-  Error createReader(StringRef Filename, LVReaders &Readers, PdbOrObj &Input,
-                     StringRef FileFormatName, StringRef ExePath = {});
+  Error createReader(StringRef Filename, LVReaders &Readers,
+                     PdbOrObjOrIr &Input, StringRef FileFormatName,
+                     StringRef ExePath = {});
 
 public:
   LVReaderHandler() = delete;
diff --git a/llvm/include/llvm/DebugInfo/LogicalView/Readers/LVBinaryReader.h b/llvm/include/llvm/DebugInfo/LogicalView/Readers/LVBinaryReader.h
index 9cda64e33ddf7..bd897a9944bf7 100644
--- a/llvm/include/llvm/DebugInfo/LogicalView/Readers/LVBinaryReader.h
+++ b/llvm/include/llvm/DebugInfo/LogicalView/Readers/LVBinaryReader.h
@@ -25,6 +25,7 @@
 #include "llvm/MC/MCSubtargetInfo.h"
 #include "llvm/MC/TargetRegistry.h"
 #include "llvm/Object/COFF.h"
+#include "llvm/Object/IRObjectFile.h"
 #include "llvm/Object/ObjectFile.h"
 
 namespace llvm {
@@ -93,12 +94,6 @@ class LVBinaryReader : public LVReader {
       SectionAddresses.emplace(Section.getAddress(), Section);
   }
 
-  // Scopes with ranges for current compile unit. It is used to find a line
-  // giving its exact or closest address. To support comdat functions, all
-  // addresses for the same section are recorded in the same map.
-  using LVSectionRanges = std::map<LVSectionIndex, std::unique_ptr<LVRange>>;
-  LVSectionRanges SectionRanges;
-
   // Image base and virtual address for Executable file.
   uint64_t ImageBaseAddress = 0;
   uint64_t VirtualAddress = 0;
@@ -179,11 +174,6 @@ class LVBinaryReader : public LVReader {
   Expected<std::pair<LVSectionIndex, object::SectionRef>>
   getSection(LVScope *Scope, LVAddress Address, LVSectionIndex SectionIndex);
 
-  void addSectionRange(LVSectionIndex SectionIndex, LVScope *Scope);
-  void addSectionRange(LVSectionIndex SectionIndex, LVScope *Scope,
-                       LVAddress LowerAddress, LVAddress UpperAddress);
-  LVRange *getSectionRanges(LVSectionIndex SectionIndex);
-
   void includeInlineeLines(LVSectionIndex SectionIndex, LVScope *Function);
 
   Error createInstructions();
diff --git a/llvm/include/llvm/DebugInfo/LogicalView/Readers/LVDWARFReader.h b/llvm/include/llvm/DebugInfo/LogicalView/Readers/LVDWARFReader.h
index fdc97249d8e5a..3fb099924b5f2 100644
--- a/llvm/include/llvm/DebugInfo/LogicalView/Readers/LVDWARFReader.h
+++ b/llvm/include/llvm/DebugInfo/LogicalView/Readers/LVDWARFReader.h
@@ -39,12 +39,6 @@ class LVDWARFReader final : public LVBinaryReader {
   LVAddress CUBaseAddress = 0;
   LVAddress CUHighAddress = 0;
 
-  // Current elements during the processing of a DIE.
-  LVElement *CurrentElement = nullptr;
-  LVScope *CurrentScope = nullptr;
-  LVSymbol *CurrentSymbol = nullptr;
-  LVType *CurrentType = nullptr;
-  LVOffset CurrentOffset = 0;
   LVOffset CurrentEndOffset = 0;
 
   // In DWARF v4, the files are 1-indexed.
@@ -52,9 +46,6 @@ class LVDWARFReader final : public LVBinaryReader {
   // The DWARF reader expects the indexes as 1-indexed.
   bool IncrementFileIndex = false;
 
-  // Address ranges collected for current DIE.
-  std::vector<LVAddressRange> CurrentRanges;
-
   // Symbols with locations for current compile unit.
   LVSymbols SymbolsWithLocations;
 
@@ -82,7 +73,6 @@ class LVDWARFReader final : public LVBinaryReader {
 
   void mapRangeAddress(const object::ObjectFile &Obj) override;
 
-  LVElement *createElement(dwarf::Tag Tag);
   void traverseDieAndChildren(DWARFDie &DIE, LVScope *Parent,
                               DWARFDie &SkeletonDie);
   // Process the attributes for the given DIE.
diff --git a/llvm/include/llvm/DebugInfo/LogicalView/Readers/LVIRReader.h b/llvm/include/llvm/DebugInfo/LogicalView/Readers/LVIRReader.h
new file mode 100644
index 0000000000000..5c70ec9077791
--- /dev/null
+++ b/llvm/include/llvm/DebugInfo/LogicalView/Readers/LVIRReader.h
@@ -0,0 +1,300 @@
+//===-- LVIRReader.h --------------------------------------------*- C++ -*-===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+//
+// This file defines the LVIRReader class, which is used to describe a
+// LLVM IR reader.
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef LLVM_DEBUGINFO_LOGICALVIEW_READERS_LVIRREADER_H
+#define LLVM_DEBUGINFO_LOGICALVIEW_READERS_LVIRREADER_H
+
+#include "llvm/DebugInfo/LogicalView/Core/LVReader.h"
+#include "llvm/Transforms/Utils/DebugSSAUpdater.h"
+
+namespace llvm {
+class DIFile;
+class DINode;
+class DILocation;
+class DIScope;
+class DISubprogram;
+class DIVariable;
+class BasicBlock;
+
+namespace object {
+class IRObjectFile;
+}
+
+namespace logicalview {
+
+class LVElement;
+class LVLine;
+class LVScopeCompileUnit;
+class LVSymbol;
+class LVType;
+
+class LVIRReader final : public LVReader {
+  object::IRObjectFile *BitCodeIR = nullptr;
+  MemoryBufferRef *TextualIR = nullptr;
+
+  // Symbols with locations for current compile unit.
+  LVSymbols SymbolsWithLocations;
+
+  LVSectionIndex SectionIndex = 0;
+
+  const DICompileUnit *CUNode = nullptr;
+
+  // The Dwarf Version (from the module flags).
+  unsigned DwarfVersion;
+
+  // Location index for global variables.
+  uint64_t PoolAddressIndex = 0;
+
+  // Whether to emit all linkage names, or just abstract subprograms.
+  bool UseAllLinkageNames = true;
+
+  // Dependencies on external options (llc, etc).
+  bool includeMinimalInlineScopes() const;
+  bool useAllLinkageNames() const { return UseAllLinkageNames; }
+
+  bool LanguageIsFortran = false;
+  void mapFortranLanguage(unsigned DWLang);
+  bool moduleIsInFortran() const { return LanguageIsFortran; }
+
+  // Generate logical debug line before prologue.
+  bool GenerateLineBeforePrologue = true;
+
+  // We assume a constante increase between instructions.
+  const unsigned OffsetIncrease = 4;
+  void updateLineOffset() { CurrentOffset += OffsetIncrease; }
+
+  // An anonymous type for index type.
+  LVType *NodeIndexType = nullptr;
+
+  std::unique_ptr<DbgValueRangeTable> DbgValueRanges;
+
+  // Record the last assigned file index for each compile unit.
+  using LVIndexFiles = std::map<LVScopeCompileUnit *, size_t>;
+  LVIndexFiles IndexFiles;
+
+  void updateFileIndex(LVScopeCompileUnit *CompileUnit, size_t FileIndex) {
+    LVIndexFiles::iterator Iter = IndexFiles.find(CompileUnit);
+    if (Iter == IndexFiles.end())
+      IndexFiles.emplace(CompileUnit, FileIndex);
+    else
+      Iter->second = FileIndex;
+  }
+
+  // Get the current assigned index file for the given compile unit.
+  size_t getFileIndex(LVScopeCompileUnit *CompileUnit) {
+    size_t FileIndex = 0;
+    LVIndexFiles::iterator Iter = IndexFiles.find(CompileUnit);
+    if (Iter != IndexFiles.end())
+      FileIndex = Iter->second;
+    return FileIndex;
+  }
+
+  // Collect the compile unit metadata files.
+  using LVCompileUnitFiles = std::map<const DIFile *, size_t>;
+  LVCompileUnitFiles CompileUnitFiles;
+
+  size_t getOrCreateSourceID(cons...
[truncated]

@llvmbot

llvmbot commented Apr 11, 2025

Copy link
Copy Markdown
Member

@llvm/pr-subscribers-llvm-binary-utilities

Author: Carlos Alberto Enciso (CarlosAlbertoEnciso)

Changes

Add support for the LLVM IR format and be able to generate logical views.

Both textual representation (.ll) and bitcode (.bc) format are supported.

Note: This patch requires:

Add DebugSSAUpdater class to track debug value liveness
#135349


Patch is 226.09 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/135440.diff

35 Files Affected:

  • (modified) llvm/docs/CommandGuide/llvm-debuginfo-analyzer.rst (+165-4)
  • (modified) llvm/include/llvm/DebugInfo/LogicalView/Core/LVReader.h (+25-1)
  • (modified) llvm/include/llvm/DebugInfo/LogicalView/Core/LVSupport.h (+13)
  • (modified) llvm/include/llvm/DebugInfo/LogicalView/LVReaderHandler.h (+9-3)
  • (modified) llvm/include/llvm/DebugInfo/LogicalView/Readers/LVBinaryReader.h (+1-11)
  • (modified) llvm/include/llvm/DebugInfo/LogicalView/Readers/LVDWARFReader.h (-10)
  • (added) llvm/include/llvm/DebugInfo/LogicalView/Readers/LVIRReader.h (+300)
  • (modified) llvm/lib/DebugInfo/LogicalView/CMakeLists.txt (+2)
  • (modified) llvm/lib/DebugInfo/LogicalView/Core/LVElement.cpp (+8-4)
  • (modified) llvm/lib/DebugInfo/LogicalView/Core/LVReader.cpp (+271)
  • (modified) llvm/lib/DebugInfo/LogicalView/LVReaderHandler.cpp (+37-8)
  • (modified) llvm/lib/DebugInfo/LogicalView/Readers/LVBinaryReader.cpp (-24)
  • (modified) llvm/lib/DebugInfo/LogicalView/Readers/LVDWARFReader.cpp (+6-218)
  • (added) llvm/lib/DebugInfo/LogicalView/Readers/LVIRReader.cpp (+2348)
  • (added) llvm/test/tools/llvm-debuginfo-analyzer/IR/01-ir-compare-logical-elements.test (+121)
  • (added) llvm/test/tools/llvm-debuginfo-analyzer/IR/01-ir-print-basic-details.test (+76)
  • (added) llvm/test/tools/llvm-debuginfo-analyzer/IR/01-ir-select-logical-elements.test (+122)
  • (added) llvm/test/tools/llvm-debuginfo-analyzer/IR/02-ir-logical-lines.test (+60)
  • (added) llvm/test/tools/llvm-debuginfo-analyzer/IR/03-ir-incorrect-lexical-scope-typedef.test (+131)
  • (added) llvm/test/tools/llvm-debuginfo-analyzer/IR/04-ir-missing-nested-enumerators.test (+144)
  • (added) llvm/test/tools/llvm-debuginfo-analyzer/IR/05-ir-incorrect-lexical-scope-variable.test (+113)
  • (added) llvm/test/tools/llvm-debuginfo-analyzer/IR/06-ir-full-logical-view.test (+118)
  • (added) llvm/test/tools/llvm-debuginfo-analyzer/IR/07-ir-debug-formats.test (+48)
  • (added) llvm/test/tools/llvm-debuginfo-analyzer/IR/Inputs/hello-world-clang.ll (+49)
  • (added) llvm/test/tools/llvm-debuginfo-analyzer/IR/Inputs/pr-43860-clang.ll (+92)
  • (added) llvm/test/tools/llvm-debuginfo-analyzer/IR/Inputs/pr-44884-clang.ll (+98)
  • (added) llvm/test/tools/llvm-debuginfo-analyzer/IR/Inputs/pr-46466-clang.ll (+44)
  • (added) llvm/test/tools/llvm-debuginfo-analyzer/IR/Inputs/test-clang-intrinsics.ll (+87)
  • (added) llvm/test/tools/llvm-debuginfo-analyzer/IR/Inputs/test-clang.ll (+83)
  • (modified) llvm/tools/llvm-debuginfo-analyzer/CMakeLists.txt (+2)
  • (modified) llvm/unittests/DebugInfo/LogicalView/CMakeLists.txt (+3)
  • (added) llvm/unittests/DebugInfo/LogicalView/IRReaderTest.cpp (+355)
  • (modified) llvm/unittests/DebugInfo/LogicalView/Inputs/README.md (+11)
  • (added) llvm/unittests/DebugInfo/LogicalView/Inputs/test-clang.bc ()
  • (added) llvm/unittests/DebugInfo/LogicalView/Inputs/test-clang.ll (+83)
diff --git a/llvm/docs/CommandGuide/llvm-debuginfo-analyzer.rst b/llvm/docs/CommandGuide/llvm-debuginfo-analyzer.rst
index 60fa024db5e99..c5d3293c02f57 100644
--- a/llvm/docs/CommandGuide/llvm-debuginfo-analyzer.rst
+++ b/llvm/docs/CommandGuide/llvm-debuginfo-analyzer.rst
@@ -13,10 +13,11 @@ SYNOPSIS
 DESCRIPTION
 -----------
 :program:`llvm-debuginfo-analyzer` parses debug and text sections in
-binary object files and prints their contents in a logical view, which
-is a human readable representation that closely matches the structure
-of the original user source code. Supported object file formats include
-ELF, Mach-O, WebAssembly, PDB and COFF.
+binary object files and textual IR representations and prints their
+contents in a logical view, which is a human readable representation
+that closely matches the structure of the original user source code.
+Supported object file formats include ELF, Mach-O, WebAssembly, PDB,
+COFF, IR (textual representation and bitcode).
 
 The **logical view** abstracts the complexity associated with the
 different low-level representations of the debugging information that
@@ -2124,6 +2125,138 @@ layout and given the number of matches.
   -----------------------------
   Total           71          8
 
+IR (Textual representation and bitcode) SUPPORT
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+The below example is used to show the IR output generated by
+:program:`llvm-debuginfo-analyzer`. We compiled the example for a
+IR 64-bit target with Clang (-O0 -g --target=x86_64-linux):
+
+.. code-block:: c++
+
+  1  using INTPTR = const int *;
+  2  int foo(INTPTR ParamPtr, unsigned ParamUnsigned, bool ParamBool) {
+  3    if (ParamBool) {
+  4      typedef int INTEGER;
+  5      const INTEGER CONSTANT = 7;
+  6      return CONSTANT;
+  7    }
+  8    return ParamUnsigned;
+  9  }
+
+PRINT BASIC DETAILS
+^^^^^^^^^^^^^^^^^^^
+The following command prints basic details for all the logical elements
+sorted by the debug information internal offset; it includes its lexical
+level and debug info format.
+
+.. code-block:: none
+
+  llvm-debuginfo-analyzer --attribute=level,format
+                          --output-sort=offset
+                          --print=scopes,symbols,types,lines,instructions
+                          test-clang.ll
+
+or
+
+.. code-block:: none
+
+  llvm-debuginfo-analyzer --attribute=level,format
+                          --output-sort=offset
+                          --print=elements
+                          test-clang.ll
+
+Each row represents an element that is present within the debug
+information. The first column represents the scope level, followed by
+the associated line number (if any), and finally the description of
+the element.
+
+.. code-block:: none
+
+  Logical View:
+  [000]           {File} 'test-clang.ll' -> Textual IR
+
+  [001]             {CompileUnit} 'test.cpp'
+  [002]     2         {Function} extern not_inlined 'foo' -> 'int'
+  [003]                 {Block}
+  [004]     5             {Variable} 'CONSTANT' -> 'const INTEGER'
+  [004]     5             {Line}
+  [004]                   {Code} 'store i32 7, ptr %CONSTANT, align 4, !dbg !32'
+  [004]     6             {Line}
+  [004]                   {Code} 'store i32 7, ptr %retval, align 4, !dbg !33'
+  [004]     6             {Line}
+  [004]                   {Code} 'br label %return, !dbg !33'
+  [003]     2           {Parameter} 'ParamPtr' -> 'INTPTR'
+  [003]     2           {Parameter} 'ParamUnsigned' -> 'unsigned int'
+  [003]     2           {Parameter} 'ParamBool' -> 'bool'
+  [003]     4           {TypeAlias} 'INTEGER' -> 'int'
+  [003]     2           {Line}
+  [003]                 {Code} '%retval = alloca i32, align 4'
+  [003]                 {Code} '%ParamPtr.addr = alloca ptr, align 8'
+  [003]                 {Code} '%ParamUnsigned.addr = alloca i32, align 4'
+  [003]                 {Code} '%ParamBool.addr = alloca i8, align 1'
+  [003]                 {Code} '%CONSTANT = alloca i32, align 4'
+  [003]                 {Code} 'store ptr %ParamPtr, ptr %ParamPtr.addr, align 8'
+  [003]                 {Code} 'store i32 %ParamUnsigned, ptr %ParamUnsigned.addr, align 4'
+  [003]                 {Code} '%storedv = zext i1 %ParamBool to i8'
+  [003]                 {Code} 'store i8 %storedv, ptr %ParamBool.addr, align 1'
+  [003]     8           {Line}
+  [003]                 {Code} '%1 = load i32, ptr %ParamUnsigned.addr, align 4, !dbg !34'
+  [003]     8           {Line}
+  [003]                 {Code} 'store i32 %1, ptr %retval, align 4, !dbg !35'
+  [003]     8           {Line}
+  [003]                 {Code} 'br label %return, !dbg !35'
+  [003]     9           {Line}
+  [003]                 {Code} '%2 = load i32, ptr %retval, align 4, !dbg !36'
+  [003]     9           {Line}
+  [003]                 {Code} 'ret i32 %2, !dbg !36'
+  [003]     3           {Line}
+  [003]     3           {Line}
+  [003]     3           {Line}
+  [003]                 {Code} 'br i1 %loadedv, label %if.then, label %if.end, !dbg !26'
+  [002]     1         {TypeAlias} 'INTPTR' -> '* const int'
+
+SELECT LOGICAL ELEMENTS
+^^^^^^^^^^^^^^^^^^^^^^^
+The following prints all *instructions*, *symbols* and *types* that
+contain **'block'** or **'.store'** in their names or types, using a tab
+layout and given the number of matches.
+
+.. code-block:: none
+
+  llvm-debuginfo-analyzer --attribute=level
+                          --select-nocase --select-regex
+                          --select=LOAD --select=store
+                          --report=list
+                          --print=symbols,types,instructions,summary
+                          test-clang.ll
+
+  Logical View:
+  [000]           {File} 'test-clang.ll'
+
+  [001]           {CompileUnit} 'test.cpp'
+  [003]           {Code} '%0 = load i8, ptr %ParamBool.addr, align 1, !dbg !26'
+  [003]           {Code} '%1 = load i32, ptr %ParamUnsigned.addr, align 4, !dbg !34'
+  [003]           {Code} '%2 = load i32, ptr %retval, align 4, !dbg !36'
+  [004]           {Code} '%loadedv = trunc i8 %0 to i1, !dbg !26'
+  [003]           {Code} '%storedv = zext i1 %ParamBool to i8'
+  [003]           {Code} 'br i1 %loadedv, label %if.then, label %if.end, !dbg !26'
+  [003]           {Code} 'store i32 %1, ptr %retval, align 4, !dbg !35'
+  [003]           {Code} 'store i32 %ParamUnsigned, ptr %ParamUnsigned.addr, align 4'
+  [004]           {Code} 'store i32 7, ptr %CONSTANT, align 4, !dbg !32'
+  [004]           {Code} 'store i32 7, ptr %retval, align 4, !dbg !33'
+  [003]           {Code} 'store i8 %storedv, ptr %ParamBool.addr, align 1'
+  [003]           {Code} 'store ptr %ParamPtr, ptr %ParamPtr.addr, align 8'
+
+  -----------------------------
+  Element      Total    Printed
+  -----------------------------
+  Scopes           5          0
+  Symbols          4          0
+  Types            2          0
+  Lines           22         12
+  -----------------------------
+  Total           33         12
+
 COMPARISON MODE
 ^^^^^^^^^^^^^^^
 Given the previous example we found the above debug information issue
@@ -2197,6 +2330,34 @@ giving more context by swapping the reference and target object files.
 The output shows the merging view path (reference and target) with the
 missing and added elements.
 
+.. code-block:: none
+
+  llvm-debuginfo-analyzer --attribute=level,format
+                          --compare=types
+                          --report=view
+                          --print=symbols,types
+                          test-clang.bc test-dwarf-gcc.o
+
+  Reference: 'test-clang.bc'
+  Target:    'test-dwarf-gcc.o'
+
+  Logical View:
+   [000]           {File} 'test-clang.bc' -> Bitcode IR
+
+   [001]             {CompileUnit} 'test.cpp'
+   [002]     1         {TypeAlias} 'INTPTR' -> '* const int'
+   [002]     2         {Function} extern not_inlined 'foo' -> 'int'
+   [003]                 {Block}
+   [004]     5             {Variable} 'CONSTANT' -> 'const INTEGER'
+  +[004]     4             {TypeAlias} 'INTEGER' -> 'int'
+   [003]     2           {Parameter} 'ParamBool' -> 'bool'
+   [003]     2           {Parameter} 'ParamPtr' -> 'INTPTR'
+   [003]     2           {Parameter} 'ParamUnsigned' -> 'unsigned int'
+  -[003]     4           {TypeAlias} 'INTEGER' -> 'int'
+
+The same output but this time comparing the Clang bitcode with the
+binary object (DWARF) generated by GCC.
+
 LOGICAL ELEMENTS
 """"""""""""""""
 It compares individual logical elements without considering if their
diff --git a/llvm/include/llvm/DebugInfo/LogicalView/Core/LVReader.h b/llvm/include/llvm/DebugInfo/LogicalView/Core/LVReader.h
index 9ce26398e48df..c848ea44f63a7 100644
--- a/llvm/include/llvm/DebugInfo/LogicalView/Core/LVReader.h
+++ b/llvm/include/llvm/DebugInfo/LogicalView/Core/LVReader.h
@@ -56,7 +56,7 @@ class LVSplitContext final {
 
 /// The logical reader owns of all the logical elements created during
 /// the debug information parsing. For its creation it uses a specific
-///  bump allocator for each type of logical element.
+/// bump allocator for each type of logical element.
 class LVReader {
   LVBinaryType BinaryType;
 
@@ -121,7 +121,24 @@ class LVReader {
 
 #undef LV_OBJECT_ALLOCATOR
 
+  // Scopes with ranges for current compile unit. It is used to find a line
+  // giving its exact or closest address. To support comdat functions, all
+  // addresses for the same section are recorded in the same map.
+  using LVSectionRanges = std::map<LVSectionIndex, std::unique_ptr<LVRange>>;
+  LVSectionRanges SectionRanges;
+
 protected:
+  // Current elements during the processing of a DIE/MDNode.
+  LVElement *CurrentElement = nullptr;
+  LVScope *CurrentScope = nullptr;
+  LVSymbol *CurrentSymbol = nullptr;
+  LVType *CurrentType = nullptr;
+  LVLine *CurrentLine = nullptr;
+  LVOffset CurrentOffset = 0;
+
+  // Address ranges collected for current DIE/MDNode/AST Node.
+  std::vector<LVAddressRange> CurrentRanges;
+
   LVScopeRoot *Root = nullptr;
   std::string InputFilename;
   std::string FileFormatName;
@@ -132,11 +149,18 @@ class LVReader {
   // Only for ELF format. The CodeView is handled in a different way.
   LVSectionIndex DotTextSectionIndex = UndefinedSectionIndex;
 
+  void addSectionRange(LVSectionIndex SectionIndex, LVScope *Scope);
+  void addSectionRange(LVSectionIndex SectionIndex, LVScope *Scope,
+                       LVAddress LowerAddress, LVAddress UpperAddress);
+  LVRange *getSectionRanges(LVSectionIndex SectionIndex);
+
   // Record Compilation Unit entry.
   void addCompileUnitOffset(LVOffset Offset, LVScopeCompileUnit *CompileUnit) {
     CompileUnits.emplace(Offset, CompileUnit);
   }
 
+  LVElement *createElement(dwarf::Tag Tag);
+
   // Create the Scope Root.
   virtual Error createScopes() {
     Root = createScopeRoot();
diff --git a/llvm/include/llvm/DebugInfo/LogicalView/Core/LVSupport.h b/llvm/include/llvm/DebugInfo/LogicalView/Core/LVSupport.h
index 8269344fe6efe..28f6dbcf4e2ae 100644
--- a/llvm/include/llvm/DebugInfo/LogicalView/Core/LVSupport.h
+++ b/llvm/include/llvm/DebugInfo/LogicalView/Core/LVSupport.h
@@ -99,6 +99,19 @@ template <typename T> class LVProperties {
 #define KIND_3(ENUM, FIELD, F1, F2, F3)                                        \
   BOOL_BIT_3(Kinds, ENUM, FIELD, F1, F2, F3)
 
+const int DEC_WIDTH = 8;
+inline FormattedNumber decValue(uint64_t N, unsigned Width = DEC_WIDTH) {
+  return format_decimal(N, Width);
+}
+
+// Output the decimal representation of 'Value'.
+inline std::string decString(uint64_t Value, size_t Width = DEC_WIDTH) {
+  std::string String;
+  raw_string_ostream Stream(String);
+  Stream << decValue(Value, Width);
+  return Stream.str();
+}
+
 const int HEX_WIDTH = 12;
 inline FormattedNumber hexValue(uint64_t N, unsigned Width = HEX_WIDTH,
                                 bool Upper = false) {
diff --git a/llvm/include/llvm/DebugInfo/LogicalView/LVReaderHandler.h b/llvm/include/llvm/DebugInfo/LogicalView/LVReaderHandler.h
index bf30501d00c1f..c743e517e371b 100644
--- a/llvm/include/llvm/DebugInfo/LogicalView/LVReaderHandler.h
+++ b/llvm/include/llvm/DebugInfo/LogicalView/LVReaderHandler.h
@@ -17,6 +17,7 @@
 #include "llvm/DebugInfo/LogicalView/Core/LVReader.h"
 #include "llvm/DebugInfo/PDB/Native/PDBFile.h"
 #include "llvm/Object/Archive.h"
+#include "llvm/Object/IRObjectFile.h"
 #include "llvm/Object/MachOUniversal.h"
 #include "llvm/Object/ObjectFile.h"
 #include "llvm/Support/MemoryBuffer.h"
@@ -29,7 +30,9 @@ namespace logicalview {
 
 using LVReaders = std::vector<std::unique_ptr<LVReader>>;
 using ArgVector = std::vector<std::string>;
-using PdbOrObj = PointerUnion<object::ObjectFile *, pdb::PDBFile *>;
+using PdbOrObjOrIr =
+    PointerUnion<object::ObjectFile *, pdb::PDBFile *, object::IRObjectFile *,
+                 MemoryBufferRef *, StringRef *>;
 
 // This class performs the following tasks:
 // - Creates a logical reader for every binary file in the command line,
@@ -60,9 +63,12 @@ class LVReaderHandler {
                      object::Binary &Binary);
   Error handleObject(LVReaders &Readers, StringRef Filename, StringRef Buffer,
                      StringRef ExePath);
+  Error handleObject(LVReaders &Readers, StringRef Filename,
+                     MemoryBufferRef Buffer);
 
-  Error createReader(StringRef Filename, LVReaders &Readers, PdbOrObj &Input,
-                     StringRef FileFormatName, StringRef ExePath = {});
+  Error createReader(StringRef Filename, LVReaders &Readers,
+                     PdbOrObjOrIr &Input, StringRef FileFormatName,
+                     StringRef ExePath = {});
 
 public:
   LVReaderHandler() = delete;
diff --git a/llvm/include/llvm/DebugInfo/LogicalView/Readers/LVBinaryReader.h b/llvm/include/llvm/DebugInfo/LogicalView/Readers/LVBinaryReader.h
index 9cda64e33ddf7..bd897a9944bf7 100644
--- a/llvm/include/llvm/DebugInfo/LogicalView/Readers/LVBinaryReader.h
+++ b/llvm/include/llvm/DebugInfo/LogicalView/Readers/LVBinaryReader.h
@@ -25,6 +25,7 @@
 #include "llvm/MC/MCSubtargetInfo.h"
 #include "llvm/MC/TargetRegistry.h"
 #include "llvm/Object/COFF.h"
+#include "llvm/Object/IRObjectFile.h"
 #include "llvm/Object/ObjectFile.h"
 
 namespace llvm {
@@ -93,12 +94,6 @@ class LVBinaryReader : public LVReader {
       SectionAddresses.emplace(Section.getAddress(), Section);
   }
 
-  // Scopes with ranges for current compile unit. It is used to find a line
-  // giving its exact or closest address. To support comdat functions, all
-  // addresses for the same section are recorded in the same map.
-  using LVSectionRanges = std::map<LVSectionIndex, std::unique_ptr<LVRange>>;
-  LVSectionRanges SectionRanges;
-
   // Image base and virtual address for Executable file.
   uint64_t ImageBaseAddress = 0;
   uint64_t VirtualAddress = 0;
@@ -179,11 +174,6 @@ class LVBinaryReader : public LVReader {
   Expected<std::pair<LVSectionIndex, object::SectionRef>>
   getSection(LVScope *Scope, LVAddress Address, LVSectionIndex SectionIndex);
 
-  void addSectionRange(LVSectionIndex SectionIndex, LVScope *Scope);
-  void addSectionRange(LVSectionIndex SectionIndex, LVScope *Scope,
-                       LVAddress LowerAddress, LVAddress UpperAddress);
-  LVRange *getSectionRanges(LVSectionIndex SectionIndex);
-
   void includeInlineeLines(LVSectionIndex SectionIndex, LVScope *Function);
 
   Error createInstructions();
diff --git a/llvm/include/llvm/DebugInfo/LogicalView/Readers/LVDWARFReader.h b/llvm/include/llvm/DebugInfo/LogicalView/Readers/LVDWARFReader.h
index fdc97249d8e5a..3fb099924b5f2 100644
--- a/llvm/include/llvm/DebugInfo/LogicalView/Readers/LVDWARFReader.h
+++ b/llvm/include/llvm/DebugInfo/LogicalView/Readers/LVDWARFReader.h
@@ -39,12 +39,6 @@ class LVDWARFReader final : public LVBinaryReader {
   LVAddress CUBaseAddress = 0;
   LVAddress CUHighAddress = 0;
 
-  // Current elements during the processing of a DIE.
-  LVElement *CurrentElement = nullptr;
-  LVScope *CurrentScope = nullptr;
-  LVSymbol *CurrentSymbol = nullptr;
-  LVType *CurrentType = nullptr;
-  LVOffset CurrentOffset = 0;
   LVOffset CurrentEndOffset = 0;
 
   // In DWARF v4, the files are 1-indexed.
@@ -52,9 +46,6 @@ class LVDWARFReader final : public LVBinaryReader {
   // The DWARF reader expects the indexes as 1-indexed.
   bool IncrementFileIndex = false;
 
-  // Address ranges collected for current DIE.
-  std::vector<LVAddressRange> CurrentRanges;
-
   // Symbols with locations for current compile unit.
   LVSymbols SymbolsWithLocations;
 
@@ -82,7 +73,6 @@ class LVDWARFReader final : public LVBinaryReader {
 
   void mapRangeAddress(const object::ObjectFile &Obj) override;
 
-  LVElement *createElement(dwarf::Tag Tag);
   void traverseDieAndChildren(DWARFDie &DIE, LVScope *Parent,
                               DWARFDie &SkeletonDie);
   // Process the attributes for the given DIE.
diff --git a/llvm/include/llvm/DebugInfo/LogicalView/Readers/LVIRReader.h b/llvm/include/llvm/DebugInfo/LogicalView/Readers/LVIRReader.h
new file mode 100644
index 0000000000000..5c70ec9077791
--- /dev/null
+++ b/llvm/include/llvm/DebugInfo/LogicalView/Readers/LVIRReader.h
@@ -0,0 +1,300 @@
+//===-- LVIRReader.h --------------------------------------------*- C++ -*-===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+//
+// This file defines the LVIRReader class, which is used to describe a
+// LLVM IR reader.
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef LLVM_DEBUGINFO_LOGICALVIEW_READERS_LVIRREADER_H
+#define LLVM_DEBUGINFO_LOGICALVIEW_READERS_LVIRREADER_H
+
+#include "llvm/DebugInfo/LogicalView/Core/LVReader.h"
+#include "llvm/Transforms/Utils/DebugSSAUpdater.h"
+
+namespace llvm {
+class DIFile;
+class DINode;
+class DILocation;
+class DIScope;
+class DISubprogram;
+class DIVariable;
+class BasicBlock;
+
+namespace object {
+class IRObjectFile;
+}
+
+namespace logicalview {
+
+class LVElement;
+class LVLine;
+class LVScopeCompileUnit;
+class LVSymbol;
+class LVType;
+
+class LVIRReader final : public LVReader {
+  object::IRObjectFile *BitCodeIR = nullptr;
+  MemoryBufferRef *TextualIR = nullptr;
+
+  // Symbols with locations for current compile unit.
+  LVSymbols SymbolsWithLocations;
+
+  LVSectionIndex SectionIndex = 0;
+
+  const DICompileUnit *CUNode = nullptr;
+
+  // The Dwarf Version (from the module flags).
+  unsigned DwarfVersion;
+
+  // Location index for global variables.
+  uint64_t PoolAddressIndex = 0;
+
+  // Whether to emit all linkage names, or just abstract subprograms.
+  bool UseAllLinkageNames = true;
+
+  // Dependencies on external options (llc, etc).
+  bool includeMinimalInlineScopes() const;
+  bool useAllLinkageNames() const { return UseAllLinkageNames; }
+
+  bool LanguageIsFortran = false;
+  void mapFortranLanguage(unsigned DWLang);
+  bool moduleIsInFortran() const { return LanguageIsFortran; }
+
+  // Generate logical debug line before prologue.
+  bool GenerateLineBeforePrologue = true;
+
+  // We assume a constante increase between instructions.
+  const unsigned OffsetIncrease = 4;
+  void updateLineOffset() { CurrentOffset += OffsetIncrease; }
+
+  // An anonymous type for index type.
+  LVType *NodeIndexType = nullptr;
+
+  std::unique_ptr<DbgValueRangeTable> DbgValueRanges;
+
+  // Record the last assigned file index for each compile unit.
+  using LVIndexFiles = std::map<LVScopeCompileUnit *, size_t>;
+  LVIndexFiles IndexFiles;
+
+  void updateFileIndex(LVScopeCompileUnit *CompileUnit, size_t FileIndex) {
+    LVIndexFiles::iterator Iter = IndexFiles.find(CompileUnit);
+    if (Iter == IndexFiles.end())
+      IndexFiles.emplace(CompileUnit, FileIndex);
+    else
+      Iter->second = FileIndex;
+  }
+
+  // Get the current assigned index file for the given compile unit.
+  size_t getFileIndex(LVScopeCompileUnit *CompileUnit) {
+    size_t FileIndex = 0;
+    LVIndexFiles::iterator Iter = IndexFiles.find(CompileUnit);
+    if (Iter != IndexFiles.end())
+      FileIndex = Iter->second;
+    return FileIndex;
+  }
+
+  // Collect the compile unit metadata files.
+  using LVCompileUnitFiles = std::map<const DIFile *, size_t>;
+  LVCompileUnitFiles CompileUnitFiles;
+
+  size_t getOrCreateSourceID(cons...
[truncated]

@jalopezg-git

Copy link
Copy Markdown
Contributor

@CarlosAlbertoEnciso If this needs another pair of eyes, do not hesitate to add me as reviewer. Cheers!

@CarlosAlbertoEnciso

Copy link
Copy Markdown
Member Author

@CarlosAlbertoEnciso If this needs another pair of eyes, do not hesitate to add me as reviewer. Cheers!

@jalopezg-git Thanks; that would be great.

@jmorse jmorse left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some initial comments; I made it to about 1000 lines into LVIRReader.cpp.

Comment thread llvm/docs/CommandGuide/llvm-debuginfo-analyzer.rst Outdated
Comment thread llvm/include/llvm/DebugInfo/LogicalView/LVReaderHandler.h Outdated
Comment thread llvm/include/llvm/DebugInfo/LogicalView/Core/LVReader.h Outdated
Comment thread llvm/include/llvm/DebugInfo/LogicalView/Readers/LVIRReader.h Outdated
Comment thread llvm/include/llvm/DebugInfo/LogicalView/Readers/LVIRReader.h Outdated
Comment thread llvm/lib/DebugInfo/LogicalView/Readers/LVIRReader.cpp Outdated
Comment thread llvm/lib/DebugInfo/LogicalView/Readers/LVIRReader.cpp Outdated
Comment thread llvm/lib/DebugInfo/LogicalView/Readers/LVIRReader.cpp Outdated
Comment thread llvm/lib/DebugInfo/LogicalView/Readers/LVIRReader.cpp Outdated
Comment thread llvm/lib/DebugInfo/LogicalView/Readers/LVIRReader.cpp Outdated
@CarlosAlbertoEnciso

Copy link
Copy Markdown
Member Author

Rebased branch to take into account #142740 (Move some functionality to LVReader).

@CarlosAlbertoEnciso

Copy link
Copy Markdown
Member Author

Uploaded new patch to address @jmorse comments.

@jalopezg-git
jalopezg-git self-requested a review June 12, 2025 10:46
@CarlosAlbertoEnciso
CarlosAlbertoEnciso changed the base branch from users/SLTozer/debug-ssa-updater to main September 16, 2025 20:43
@CarlosAlbertoEnciso
CarlosAlbertoEnciso force-pushed the debuginfo-analyzer-ir-reader branch from 0bd9352 to 89741b2 Compare September 16, 2025 21:13
@github-actions

github-actions Bot commented Sep 16, 2025

Copy link
Copy Markdown

✅ With the latest revision this PR passed the C/C++ code formatter.

@jalopezg-git jalopezg-git left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @CarlosAlbertoEnciso! Taking into account the last batch of comments, I did an incremental review over the last changes.

I added a couple of minor comments, but this seems to be in pretty good shape now 👍 ; thus, approving!
I requested @jmorse review, but if he (or anybody else) have no further comments, I think this work can be merged. Good job!

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The if statement in line 1541 can now be removed (as Count is directly initialized to 0.

Comment thread llvm/lib/DebugInfo/LogicalView/LVReaderHandler.cpp Outdated
@CarlosAlbertoEnciso

Copy link
Copy Markdown
Member Author

@jalopezg-git Thanks very much for the approval.
If no one has anything else to add, I will merge the patch.

@CarlosAlbertoEnciso
CarlosAlbertoEnciso merged commit 6bbbf74 into llvm:main May 27, 2026
11 checks passed
@llvm-ci

llvm-ci commented May 27, 2026

Copy link
Copy Markdown

LLVM Buildbot has detected a new failure on builder openmp-offload-libc-amdgpu-runtime running on omp-vega20-1 while building llvm at step 4 "annotate".

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

Here is the relevant piece of the build log for the reference
Step 4 (annotate) failure: '../llvm-zorg/zorg/buildbot/builders/annotated/amdgpu-offload-cmake.py --cmake-file=AMDGPULibcBot.cmake' (failure)
...
[3765/5026] Linking CXX shared library lib/libclangParse.so.23.0git
[3766/5026] Creating library symlink lib/libclangToolingInclusionsStdlib.so
[3767/5026] Building CXX object tools/clang/lib/Tooling/CMakeFiles/obj.clangTooling.dir/CommonOptionsParser.cpp.o
[3768/5026] Creating library symlink lib/libclangParse.so
[3769/5026] Building CXX object tools/clang/lib/Tooling/Refactoring/CMakeFiles/obj.clangToolingRefactoring.dir/Rename/SymbolOccurrences.cpp.o
[3770/5026] Building CXX object tools/clang/lib/Tooling/Refactoring/CMakeFiles/obj.clangToolingRefactoring.dir/Rename/USRFinder.cpp.o
[3771/5026] Building CXX object tools/clang/lib/Tooling/Refactoring/CMakeFiles/obj.clangToolingRefactoring.dir/ASTSelection.cpp.o
[3772/5026] Linking CXX shared library lib/libclangSerialization.so.23.0git
[3773/5026] Building CXX object tools/clang/lib/Tooling/Syntax/CMakeFiles/obj.clangToolingSyntax.dir/Nodes.cpp.o
[3774/5026] Linking CXX shared library lib/libLLVMDebugInfoLogicalView.so.23.0git
FAILED: lib/libLLVMDebugInfoLogicalView.so.23.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/openmp-offload-libc-amdgpu-runtime/build/./lib  -Wl,--gc-sections -shared -Wl,-soname,libLLVMDebugInfoLogicalView.so.23.0git -o lib/libLLVMDebugInfoLogicalView.so.23.0git lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVCompare.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVElement.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVLine.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVLocation.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVObject.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVOptions.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVRange.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVReader.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVScope.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVSort.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVSourceLanguage.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVSupport.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVSymbol.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVType.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/LVReaderHandler.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVBinaryReader.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVCodeViewReader.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVCodeViewVisitor.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVDWARFReader.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o  -Wl,-rpath,"\$ORIGIN/../lib:/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/build/lib:"  lib/libLLVMAsmPrinter.so.23.0git  lib/libLLVMDebugInfoPDB.so.23.0git  lib/libLLVMDebugInfoCodeView.so.23.0git  lib/libLLVMDebugInfoDWARF.so.23.0git  lib/libLLVMObject.so.23.0git  lib/libLLVMMC.so.23.0git  lib/libLLVMDebugInfoDWARFLowLevel.so.23.0git  lib/libLLVMBinaryFormat.so.23.0git  lib/libLLVMTargetParser.so.23.0git  lib/libLLVMSupport.so.23.0git  lib/libLLVMDemangle.so.23.0git  -Wl,-rpath-link,/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/build/lib && :
/usr/bin/ld: lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/LVReaderHandler.cpp.o: in function `llvm::ValueMapCallbackVH<llvm::Value*, unsigned long, llvm::SSAValueNameMap::Config>::deleted()':
LVReaderHandler.cpp:(.text._ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE7deletedEv[_ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE7deletedEv]+0x65): undefined reference to `llvm::ValueHandleBase::AddToExistingUseList(llvm::ValueHandleBase**)'
/usr/bin/ld: LVReaderHandler.cpp:(.text._ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE7deletedEv[_ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE7deletedEv]+0x125): undefined reference to `llvm::ValueHandleBase::RemoveFromUseList()'
/usr/bin/ld: LVReaderHandler.cpp:(.text._ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE7deletedEv[_ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE7deletedEv]+0x16b): undefined reference to `llvm::ValueHandleBase::AddToExistingUseList(llvm::ValueHandleBase**)'
/usr/bin/ld: LVReaderHandler.cpp:(.text._ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE7deletedEv[_ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE7deletedEv]+0x1ab): undefined reference to `vtable for llvm::CallbackVH'
/usr/bin/ld: LVReaderHandler.cpp:(.text._ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE7deletedEv[_ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE7deletedEv]+0x1f3): undefined reference to `llvm::ValueHandleBase::RemoveFromUseList()'
/usr/bin/ld: LVReaderHandler.cpp:(.text._ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE7deletedEv[_ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE7deletedEv]+0x233): undefined reference to `vtable for llvm::CallbackVH'
/usr/bin/ld: LVReaderHandler.cpp:(.text._ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE7deletedEv[_ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE7deletedEv]+0x274): undefined reference to `vtable for llvm::CallbackVH'
/usr/bin/ld: LVReaderHandler.cpp:(.text._ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE7deletedEv[_ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE7deletedEv]+0x28f): undefined reference to `llvm::ValueHandleBase::RemoveFromUseList()'
/usr/bin/ld: lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/LVReaderHandler.cpp.o: in function `llvm::ValueMapCallbackVH<llvm::Value*, unsigned long, llvm::SSAValueNameMap::Config>::allUsesReplacedWith(llvm::Value*)':
LVReaderHandler.cpp:(.text._ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE19allUsesReplacedWithES2_[_ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE19allUsesReplacedWithES2_]+0x6f): undefined reference to `llvm::ValueHandleBase::AddToExistingUseList(llvm::ValueHandleBase**)'
/usr/bin/ld: LVReaderHandler.cpp:(.text._ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE19allUsesReplacedWithES2_[_ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE19allUsesReplacedWithES2_]+0x84): undefined reference to `vtable for llvm::CallbackVH'
/usr/bin/ld: LVReaderHandler.cpp:(.text._ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE19allUsesReplacedWithES2_[_ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE19allUsesReplacedWithES2_]+0xaf): undefined reference to `llvm::ValueHandleBase::RemoveFromUseList()'
/usr/bin/ld: lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/LVReaderHandler.cpp.o: in function `llvm::logicalview::LVReaderHandler::handleBuffer(std::vector<std::unique_ptr<llvm::logicalview::LVReader, std::default_delete<llvm::logicalview::LVReader> >, std::allocator<std::unique_ptr<llvm::logicalview::LVReader, std::default_delete<llvm::logicalview::LVReader> > > >&, llvm::StringRef, llvm::MemoryBufferRef, llvm::StringRef) [clone .localalias]':
LVReaderHandler.cpp:(.text._ZN4llvm11logicalview15LVReaderHandler12handleBufferERSt6vectorISt10unique_ptrINS0_8LVReaderESt14default_deleteIS4_EESaIS7_EENS_9StringRefENS_15MemoryBufferRefESB_+0x87): undefined reference to `llvm::LLVMContext::LLVMContext()'
/usr/bin/ld: LVReaderHandler.cpp:(.text._ZN4llvm11logicalview15LVReaderHandler12handleBufferERSt6vectorISt10unique_ptrINS0_8LVReaderESt14default_deleteIS4_EESaIS7_EENS_9StringRefENS_15MemoryBufferRefESB_+0x18c): undefined reference to `llvm::LLVMContext::~LLVMContext()'
/usr/bin/ld: lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/LVReaderHandler.cpp.o:(.data.rel.ro._ZTVN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEEE[_ZTVN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEEE]+0x10): undefined reference to `llvm::CallbackVH::anchor()'
/usr/bin/ld: lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o: in function `llvm::DINode::getStringOperand(unsigned int) const':
LVIRReader.cpp:(.text._ZNK4llvm6DINode16getStringOperandEj[_ZNK4llvm6DINode16getStringOperandEj]+0x39): undefined reference to `llvm::MDString::getString() const'
/usr/bin/ld: lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o: in function `llvm::DIMacroNode::getStringOperand(unsigned int) const':
LVIRReader.cpp:(.text._ZNK4llvm11DIMacroNode16getStringOperandEj[_ZNK4llvm11DIMacroNode16getStringOperandEj]+0x39): undefined reference to `llvm::MDString::getString() const'
/usr/bin/ld: lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o: in function `llvm::logicalview::LVIRReader::getMDFile(llvm::MDNode const*) const [clone .localalias]':
LVIRReader.cpp:(.text._ZNK4llvm11logicalview10LVIRReader9getMDFileEPKNS_6MDNodeE+0xdf): undefined reference to `llvm::Metadata::dump(llvm::Module const*) const'
/usr/bin/ld: lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o: in function `llvm::logicalview::LVIRReader::getMDName(llvm::DINode const*) const [clone .localalias]':
LVIRReader.cpp:(.text._ZNK4llvm11logicalview10LVIRReader9getMDNameEPKNS_6DINodeE+0x8b): undefined reference to `llvm::Metadata::dump(llvm::Module const*) const'
/usr/bin/ld: LVIRReader.cpp:(.text._ZNK4llvm11logicalview10LVIRReader9getMDNameEPKNS_6DINodeE+0xbf): undefined reference to `llvm::DIScope::getName() const'
/usr/bin/ld: lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o: in function `llvm::logicalview::LVIRReader::getMDScope(llvm::DINode const*) const [clone .localalias]':
LVIRReader.cpp:(.text._ZNK4llvm11logicalview10LVIRReader10getMDScopeEPKNS_6DINodeE+0xec): undefined reference to `llvm::Metadata::dump(llvm::Module const*) const'
/usr/bin/ld: LVIRReader.cpp:(.text._ZNK4llvm11logicalview10LVIRReader10getMDScopeEPKNS_6DINodeE+0x156): undefined reference to `llvm::DIScope::getScope() const'
/usr/bin/ld: lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o: in function `llvm::logicalview::LVIRReader::constructGenericSubrange(llvm::logicalview::LVScopeArray*, llvm::DIGenericSubrange const*, llvm::logicalview::LVType*) [clone .localalias]':
LVIRReader.cpp:(.text._ZN4llvm11logicalview10LVIRReader24constructGenericSubrangeEPNS0_12LVScopeArrayEPKNS_17DIGenericSubrangeEPNS0_6LVTypeE+0xcb): undefined reference to `llvm::Metadata::dump(llvm::Module const*) const'
/usr/bin/ld: lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o: in function `llvm::logicalview::LVIRReader::printAllInstructions(llvm::BasicBlock*) [clone .localalias]':
LVIRReader.cpp:(.text._ZN4llvm11logicalview10LVIRReader20printAllInstructionsEPNS_10BasicBlockE+0x22): undefined reference to `llvm::Function::getSubprogram() const'
/usr/bin/ld: LVIRReader.cpp:(.text._ZN4llvm11logicalview10LVIRReader20printAllInstructionsEPNS_10BasicBlockE+0xec): undefined reference to `llvm::Value::print(llvm::raw_ostream&, bool) const'
/usr/bin/ld: LVIRReader.cpp:(.text._ZN4llvm11logicalview10LVIRReader20printAllInstructionsEPNS_10BasicBlockE+0x121): undefined reference to `llvm::DbgMarker::getDbgRecordRange()'
/usr/bin/ld: LVIRReader.cpp:(.text._ZN4llvm11logicalview10LVIRReader20printAllInstructionsEPNS_10BasicBlockE+0x19e): undefined reference to `llvm::DbgRecordParamRef<llvm::DILocalVariable>::get() const'
/usr/bin/ld: LVIRReader.cpp:(.text._ZN4llvm11logicalview10LVIRReader20printAllInstructionsEPNS_10BasicBlockE+0x1ad): undefined reference to `llvm::Metadata::dump(llvm::Module const*) const'
Step 7 (build cmake config) failure: build cmake config (failure)
...
[3765/5026] Linking CXX shared library lib/libclangParse.so.23.0git
[3766/5026] Creating library symlink lib/libclangToolingInclusionsStdlib.so
[3767/5026] Building CXX object tools/clang/lib/Tooling/CMakeFiles/obj.clangTooling.dir/CommonOptionsParser.cpp.o
[3768/5026] Creating library symlink lib/libclangParse.so
[3769/5026] Building CXX object tools/clang/lib/Tooling/Refactoring/CMakeFiles/obj.clangToolingRefactoring.dir/Rename/SymbolOccurrences.cpp.o
[3770/5026] Building CXX object tools/clang/lib/Tooling/Refactoring/CMakeFiles/obj.clangToolingRefactoring.dir/Rename/USRFinder.cpp.o
[3771/5026] Building CXX object tools/clang/lib/Tooling/Refactoring/CMakeFiles/obj.clangToolingRefactoring.dir/ASTSelection.cpp.o
[3772/5026] Linking CXX shared library lib/libclangSerialization.so.23.0git
[3773/5026] Building CXX object tools/clang/lib/Tooling/Syntax/CMakeFiles/obj.clangToolingSyntax.dir/Nodes.cpp.o
[3774/5026] Linking CXX shared library lib/libLLVMDebugInfoLogicalView.so.23.0git
FAILED: lib/libLLVMDebugInfoLogicalView.so.23.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/openmp-offload-libc-amdgpu-runtime/build/./lib  -Wl,--gc-sections -shared -Wl,-soname,libLLVMDebugInfoLogicalView.so.23.0git -o lib/libLLVMDebugInfoLogicalView.so.23.0git lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVCompare.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVElement.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVLine.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVLocation.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVObject.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVOptions.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVRange.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVReader.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVScope.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVSort.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVSourceLanguage.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVSupport.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVSymbol.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVType.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/LVReaderHandler.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVBinaryReader.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVCodeViewReader.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVCodeViewVisitor.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVDWARFReader.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o  -Wl,-rpath,"\$ORIGIN/../lib:/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/build/lib:"  lib/libLLVMAsmPrinter.so.23.0git  lib/libLLVMDebugInfoPDB.so.23.0git  lib/libLLVMDebugInfoCodeView.so.23.0git  lib/libLLVMDebugInfoDWARF.so.23.0git  lib/libLLVMObject.so.23.0git  lib/libLLVMMC.so.23.0git  lib/libLLVMDebugInfoDWARFLowLevel.so.23.0git  lib/libLLVMBinaryFormat.so.23.0git  lib/libLLVMTargetParser.so.23.0git  lib/libLLVMSupport.so.23.0git  lib/libLLVMDemangle.so.23.0git  -Wl,-rpath-link,/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/build/lib && :
/usr/bin/ld: lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/LVReaderHandler.cpp.o: in function `llvm::ValueMapCallbackVH<llvm::Value*, unsigned long, llvm::SSAValueNameMap::Config>::deleted()':
LVReaderHandler.cpp:(.text._ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE7deletedEv[_ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE7deletedEv]+0x65): undefined reference to `llvm::ValueHandleBase::AddToExistingUseList(llvm::ValueHandleBase**)'
/usr/bin/ld: LVReaderHandler.cpp:(.text._ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE7deletedEv[_ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE7deletedEv]+0x125): undefined reference to `llvm::ValueHandleBase::RemoveFromUseList()'
/usr/bin/ld: LVReaderHandler.cpp:(.text._ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE7deletedEv[_ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE7deletedEv]+0x16b): undefined reference to `llvm::ValueHandleBase::AddToExistingUseList(llvm::ValueHandleBase**)'
/usr/bin/ld: LVReaderHandler.cpp:(.text._ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE7deletedEv[_ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE7deletedEv]+0x1ab): undefined reference to `vtable for llvm::CallbackVH'
/usr/bin/ld: LVReaderHandler.cpp:(.text._ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE7deletedEv[_ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE7deletedEv]+0x1f3): undefined reference to `llvm::ValueHandleBase::RemoveFromUseList()'
/usr/bin/ld: LVReaderHandler.cpp:(.text._ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE7deletedEv[_ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE7deletedEv]+0x233): undefined reference to `vtable for llvm::CallbackVH'
/usr/bin/ld: LVReaderHandler.cpp:(.text._ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE7deletedEv[_ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE7deletedEv]+0x274): undefined reference to `vtable for llvm::CallbackVH'
/usr/bin/ld: LVReaderHandler.cpp:(.text._ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE7deletedEv[_ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE7deletedEv]+0x28f): undefined reference to `llvm::ValueHandleBase::RemoveFromUseList()'
/usr/bin/ld: lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/LVReaderHandler.cpp.o: in function `llvm::ValueMapCallbackVH<llvm::Value*, unsigned long, llvm::SSAValueNameMap::Config>::allUsesReplacedWith(llvm::Value*)':
LVReaderHandler.cpp:(.text._ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE19allUsesReplacedWithES2_[_ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE19allUsesReplacedWithES2_]+0x6f): undefined reference to `llvm::ValueHandleBase::AddToExistingUseList(llvm::ValueHandleBase**)'
/usr/bin/ld: LVReaderHandler.cpp:(.text._ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE19allUsesReplacedWithES2_[_ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE19allUsesReplacedWithES2_]+0x84): undefined reference to `vtable for llvm::CallbackVH'
/usr/bin/ld: LVReaderHandler.cpp:(.text._ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE19allUsesReplacedWithES2_[_ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE19allUsesReplacedWithES2_]+0xaf): undefined reference to `llvm::ValueHandleBase::RemoveFromUseList()'
/usr/bin/ld: lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/LVReaderHandler.cpp.o: in function `llvm::logicalview::LVReaderHandler::handleBuffer(std::vector<std::unique_ptr<llvm::logicalview::LVReader, std::default_delete<llvm::logicalview::LVReader> >, std::allocator<std::unique_ptr<llvm::logicalview::LVReader, std::default_delete<llvm::logicalview::LVReader> > > >&, llvm::StringRef, llvm::MemoryBufferRef, llvm::StringRef) [clone .localalias]':
LVReaderHandler.cpp:(.text._ZN4llvm11logicalview15LVReaderHandler12handleBufferERSt6vectorISt10unique_ptrINS0_8LVReaderESt14default_deleteIS4_EESaIS7_EENS_9StringRefENS_15MemoryBufferRefESB_+0x87): undefined reference to `llvm::LLVMContext::LLVMContext()'
/usr/bin/ld: LVReaderHandler.cpp:(.text._ZN4llvm11logicalview15LVReaderHandler12handleBufferERSt6vectorISt10unique_ptrINS0_8LVReaderESt14default_deleteIS4_EESaIS7_EENS_9StringRefENS_15MemoryBufferRefESB_+0x18c): undefined reference to `llvm::LLVMContext::~LLVMContext()'
/usr/bin/ld: lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/LVReaderHandler.cpp.o:(.data.rel.ro._ZTVN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEEE[_ZTVN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEEE]+0x10): undefined reference to `llvm::CallbackVH::anchor()'
/usr/bin/ld: lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o: in function `llvm::DINode::getStringOperand(unsigned int) const':
LVIRReader.cpp:(.text._ZNK4llvm6DINode16getStringOperandEj[_ZNK4llvm6DINode16getStringOperandEj]+0x39): undefined reference to `llvm::MDString::getString() const'
/usr/bin/ld: lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o: in function `llvm::DIMacroNode::getStringOperand(unsigned int) const':
LVIRReader.cpp:(.text._ZNK4llvm11DIMacroNode16getStringOperandEj[_ZNK4llvm11DIMacroNode16getStringOperandEj]+0x39): undefined reference to `llvm::MDString::getString() const'
/usr/bin/ld: lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o: in function `llvm::logicalview::LVIRReader::getMDFile(llvm::MDNode const*) const [clone .localalias]':
LVIRReader.cpp:(.text._ZNK4llvm11logicalview10LVIRReader9getMDFileEPKNS_6MDNodeE+0xdf): undefined reference to `llvm::Metadata::dump(llvm::Module const*) const'
/usr/bin/ld: lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o: in function `llvm::logicalview::LVIRReader::getMDName(llvm::DINode const*) const [clone .localalias]':
LVIRReader.cpp:(.text._ZNK4llvm11logicalview10LVIRReader9getMDNameEPKNS_6DINodeE+0x8b): undefined reference to `llvm::Metadata::dump(llvm::Module const*) const'
/usr/bin/ld: LVIRReader.cpp:(.text._ZNK4llvm11logicalview10LVIRReader9getMDNameEPKNS_6DINodeE+0xbf): undefined reference to `llvm::DIScope::getName() const'
/usr/bin/ld: lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o: in function `llvm::logicalview::LVIRReader::getMDScope(llvm::DINode const*) const [clone .localalias]':
LVIRReader.cpp:(.text._ZNK4llvm11logicalview10LVIRReader10getMDScopeEPKNS_6DINodeE+0xec): undefined reference to `llvm::Metadata::dump(llvm::Module const*) const'
/usr/bin/ld: LVIRReader.cpp:(.text._ZNK4llvm11logicalview10LVIRReader10getMDScopeEPKNS_6DINodeE+0x156): undefined reference to `llvm::DIScope::getScope() const'
/usr/bin/ld: lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o: in function `llvm::logicalview::LVIRReader::constructGenericSubrange(llvm::logicalview::LVScopeArray*, llvm::DIGenericSubrange const*, llvm::logicalview::LVType*) [clone .localalias]':
LVIRReader.cpp:(.text._ZN4llvm11logicalview10LVIRReader24constructGenericSubrangeEPNS0_12LVScopeArrayEPKNS_17DIGenericSubrangeEPNS0_6LVTypeE+0xcb): undefined reference to `llvm::Metadata::dump(llvm::Module const*) const'
/usr/bin/ld: lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o: in function `llvm::logicalview::LVIRReader::printAllInstructions(llvm::BasicBlock*) [clone .localalias]':
LVIRReader.cpp:(.text._ZN4llvm11logicalview10LVIRReader20printAllInstructionsEPNS_10BasicBlockE+0x22): undefined reference to `llvm::Function::getSubprogram() const'
/usr/bin/ld: LVIRReader.cpp:(.text._ZN4llvm11logicalview10LVIRReader20printAllInstructionsEPNS_10BasicBlockE+0xec): undefined reference to `llvm::Value::print(llvm::raw_ostream&, bool) const'
/usr/bin/ld: LVIRReader.cpp:(.text._ZN4llvm11logicalview10LVIRReader20printAllInstructionsEPNS_10BasicBlockE+0x121): undefined reference to `llvm::DbgMarker::getDbgRecordRange()'
/usr/bin/ld: LVIRReader.cpp:(.text._ZN4llvm11logicalview10LVIRReader20printAllInstructionsEPNS_10BasicBlockE+0x19e): undefined reference to `llvm::DbgRecordParamRef<llvm::DILocalVariable>::get() const'
/usr/bin/ld: LVIRReader.cpp:(.text._ZN4llvm11logicalview10LVIRReader20printAllInstructionsEPNS_10BasicBlockE+0x1ad): undefined reference to `llvm::Metadata::dump(llvm::Module const*) const'

@llvm-ci

llvm-ci commented May 27, 2026

Copy link
Copy Markdown

LLVM Buildbot has detected a new failure on builder llvm-nvptx64-nvidia-ubuntu running on as-builder-7 while building llvm at step 5 "build-unified-tree".

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

Here is the relevant piece of the build log for the reference
Step 5 (build-unified-tree) failure: build (failure)
...
57.428 [65/13/2861] Building CXX object tools/llvm-reduce/CMakeFiles/llvm-reduce.dir/deltas/SimplifyInstructions.cpp.o
57.429 [65/12/2862] Building CXX object tools/llvm-reduce/CMakeFiles/llvm-reduce.dir/deltas/StripDebugInfo.cpp.o
57.429 [65/11/2863] Building CXX object tools/llvm-reduce/CMakeFiles/llvm-reduce.dir/llvm-reduce.cpp.o
57.430 [65/10/2864] Building CXX object tools/llvm-rtdyld/CMakeFiles/llvm-rtdyld.dir/llvm-rtdyld.cpp.o
57.431 [65/9/2865] Building CXX object tools/llvm-split/CMakeFiles/llvm-split.dir/llvm-split.cpp.o
57.431 [65/8/2866] Building CXX object tools/opt/CMakeFiles/opt.dir/opt.cpp.o
57.432 [65/7/2867] Building CXX object tools/sancov/CMakeFiles/sancov.dir/sancov.cpp.o
57.432 [65/6/2868] Building CXX object tools/sancov/CMakeFiles/sancov.dir/sancov-driver.cpp.o
57.432 [65/5/2869] Creating library symlink lib/libLLVMX86Info.so
57.435 [62/7/2870] Linking CXX shared library lib/libLLVMDebugInfoLogicalView.so.23.0git
FAILED: lib/libLLVMDebugInfoLogicalView.so.23.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-dangling-reference -Wno-redundant-move -Wno-pessimizing-move -Wno-array-bounds -Wno-stringop-overread -Wno-dangling-pointer -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 -fuse-ld=gold   -Wl,--gc-sections -shared -Wl,-soname,libLLVMDebugInfoLogicalView.so.23.0git -o lib/libLLVMDebugInfoLogicalView.so.23.0git lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVCompare.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVElement.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVLine.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVLocation.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVObject.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVOptions.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVRange.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVReader.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVScope.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVSort.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVSourceLanguage.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVSupport.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVSymbol.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVType.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/LVReaderHandler.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVBinaryReader.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVCodeViewReader.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVCodeViewVisitor.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVDWARFReader.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o  -Wl,-rpath,"\$ORIGIN/../lib:/home/buildbot/worker/as-builder-7/llvm-nvptx64-nvidia-ubuntu/build/lib:"  lib/libLLVMAsmPrinter.so.23.0git  lib/libLLVMDebugInfoPDB.so.23.0git  lib/libLLVMDebugInfoCodeView.so.23.0git  lib/libLLVMDebugInfoDWARF.so.23.0git  lib/libLLVMObject.so.23.0git  lib/libLLVMMC.so.23.0git  lib/libLLVMDebugInfoDWARFLowLevel.so.23.0git  lib/libLLVMBinaryFormat.so.23.0git  lib/libLLVMTargetParser.so.23.0git  lib/libLLVMSupport.so.23.0git  lib/libLLVMDemangle.so.23.0git  -Wl,-rpath-link,/home/buildbot/worker/as-builder-7/llvm-nvptx64-nvidia-ubuntu/build/lib && :
lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/LVReaderHandler.cpp.o:LVReaderHandler.cpp:function llvm::ValueMapCallbackVH<llvm::Value*, unsigned long, llvm::SSAValueNameMap::Config>::deleted():(.text._ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE7deletedEv+0x65): error: undefined reference to 'llvm::ValueHandleBase::AddToExistingUseList(llvm::ValueHandleBase**)'
lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/LVReaderHandler.cpp.o:LVReaderHandler.cpp:function llvm::ValueMapCallbackVH<llvm::Value*, unsigned long, llvm::SSAValueNameMap::Config>::deleted():(.text._ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE7deletedEv+0x125): error: undefined reference to 'llvm::ValueHandleBase::RemoveFromUseList()'
lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/LVReaderHandler.cpp.o:LVReaderHandler.cpp:function llvm::ValueMapCallbackVH<llvm::Value*, unsigned long, llvm::SSAValueNameMap::Config>::deleted():(.text._ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE7deletedEv+0x162): error: undefined reference to 'llvm::ValueHandleBase::AddToExistingUseList(llvm::ValueHandleBase**)'
lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/LVReaderHandler.cpp.o:LVReaderHandler.cpp:function llvm::ValueMapCallbackVH<llvm::Value*, unsigned long, llvm::SSAValueNameMap::Config>::deleted():(.text._ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE7deletedEv+0x177): error: undefined reference to 'vtable for llvm::CallbackVH'
/usr/bin/ld.gold: the vtable symbol may be undefined because the class is missing its key function
lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/LVReaderHandler.cpp.o:LVReaderHandler.cpp:function llvm::ValueMapCallbackVH<llvm::Value*, unsigned long, llvm::SSAValueNameMap::Config>::deleted():(.text._ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE7deletedEv+0x1a5): error: undefined reference to 'llvm::ValueHandleBase::RemoveFromUseList()'
lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/LVReaderHandler.cpp.o:LVReaderHandler.cpp:function llvm::ValueMapCallbackVH<llvm::Value*, unsigned long, llvm::SSAValueNameMap::Config>::deleted():(.text._ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE7deletedEv+0x1c3): error: undefined reference to 'vtable for llvm::CallbackVH'
/usr/bin/ld.gold: the vtable symbol may be undefined because the class is missing its key function
lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/LVReaderHandler.cpp.o:LVReaderHandler.cpp:function llvm::ValueMapCallbackVH<llvm::Value*, unsigned long, llvm::SSAValueNameMap::Config>::deleted():(.text._ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE7deletedEv+0x20b): error: undefined reference to 'llvm::ValueHandleBase::RemoveFromUseList()'
lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/LVReaderHandler.cpp.o:LVReaderHandler.cpp:function llvm::ValueMapCallbackVH<llvm::Value*, unsigned long, llvm::SSAValueNameMap::Config>::deleted():(.text._ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE7deletedEv+0x243): error: undefined reference to 'vtable for llvm::CallbackVH'
/usr/bin/ld.gold: the vtable symbol may be undefined because the class is missing its key function
lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/LVReaderHandler.cpp.o:LVReaderHandler.cpp:function llvm::ValueMapCallbackVH<llvm::Value*, unsigned long, llvm::SSAValueNameMap::Config>::deleted():(.text._ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE7deletedEv+0x25c): error: undefined reference to 'vtable for llvm::CallbackVH'
/usr/bin/ld.gold: the vtable symbol may be undefined because the class is missing its key function
lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/LVReaderHandler.cpp.o:LVReaderHandler.cpp:function llvm::ValueMapCallbackVH<llvm::Value*, unsigned long, llvm::SSAValueNameMap::Config>::allUsesReplacedWith(llvm::Value*):(.text._ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE19allUsesReplacedWithES2_+0x6f): error: undefined reference to 'llvm::ValueHandleBase::AddToExistingUseList(llvm::ValueHandleBase**)'
lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/LVReaderHandler.cpp.o:LVReaderHandler.cpp:function llvm::ValueMapCallbackVH<llvm::Value*, unsigned long, llvm::SSAValueNameMap::Config>::allUsesReplacedWith(llvm::Value*):(.text._ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE19allUsesReplacedWithES2_+0xaf): error: undefined reference to 'llvm::ValueHandleBase::RemoveFromUseList()'
lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/LVReaderHandler.cpp.o:LVReaderHandler.cpp:function llvm::logicalview::LVReaderHandler::handleBuffer(std::vector<std::unique_ptr<llvm::logicalview::LVReader, std::default_delete<llvm::logicalview::LVReader> >, std::allocator<std::unique_ptr<llvm::logicalview::LVReader, std::default_delete<llvm::logicalview::LVReader> > > >&, llvm::StringRef, llvm::MemoryBufferRef, llvm::StringRef) [clone .localalias]:(.text._ZN4llvm11logicalview15LVReaderHandler12handleBufferERSt6vectorISt10unique_ptrINS0_8LVReaderESt14default_deleteIS4_EESaIS7_EENS_9StringRefENS_15MemoryBufferRefESB_+0x7f): error: undefined reference to 'llvm::LLVMContext::LLVMContext()'
lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/LVReaderHandler.cpp.o:LVReaderHandler.cpp:function llvm::logicalview::LVReaderHandler::handleBuffer(std::vector<std::unique_ptr<llvm::logicalview::LVReader, std::default_delete<llvm::logicalview::LVReader> >, std::allocator<std::unique_ptr<llvm::logicalview::LVReader, std::default_delete<llvm::logicalview::LVReader> > > >&, llvm::StringRef, llvm::MemoryBufferRef, llvm::StringRef) [clone .localalias]:(.text._ZN4llvm11logicalview15LVReaderHandler12handleBufferERSt6vectorISt10unique_ptrINS0_8LVReaderESt14default_deleteIS4_EESaIS7_EENS_9StringRefENS_15MemoryBufferRefESB_+0x1a0): error: undefined reference to 'llvm::LLVMContext::~LLVMContext()'
lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/LVReaderHandler.cpp.o:LVReaderHandler.cpp:vtable for llvm::ValueMapCallbackVH<llvm::Value*, unsigned long, llvm::SSAValueNameMap::Config>:(.data.rel.ro._ZTVN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEEE+0x10): error: undefined reference to 'llvm::CallbackVH::anchor()'
lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o:LVIRReader.cpp:function llvm::DINode::getStringOperand(unsigned int) const:(.text._ZNK4llvm6DINode16getStringOperandEj+0x3d): error: undefined reference to 'llvm::MDString::getString() const'
lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o:LVIRReader.cpp:function llvm::DIMacroNode::getStringOperand(unsigned int) const:(.text._ZNK4llvm11DIMacroNode16getStringOperandEj+0x3d): error: undefined reference to 'llvm::MDString::getString() const'
lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o:LVIRReader.cpp:function llvm::logicalview::LVIRReader::getMDFile(llvm::MDNode const*) const [clone .localalias]:(.text._ZNK4llvm11logicalview10LVIRReader9getMDFileEPKNS_6MDNodeE+0x117): error: undefined reference to 'llvm::Metadata::dump(llvm::Module const*) const'
lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o:LVIRReader.cpp:function llvm::logicalview::LVIRReader::getMDName(llvm::DINode const*) const [clone .localalias]:(.text._ZNK4llvm11logicalview10LVIRReader9getMDNameEPKNS_6DINodeE+0xb3): error: undefined reference to 'llvm::Metadata::dump(llvm::Module const*) const'
lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o:LVIRReader.cpp:function llvm::logicalview::LVIRReader::getMDName(llvm::DINode const*) const [clone .localalias]:(.text._ZNK4llvm11logicalview10LVIRReader9getMDNameEPKNS_6DINodeE+0x5d): error: undefined reference to 'llvm::DIScope::getName() const'
lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o:LVIRReader.cpp:function llvm::logicalview::LVIRReader::getMDScope(llvm::DINode const*) const [clone .localalias]:(.text._ZNK4llvm11logicalview10LVIRReader10getMDScopeEPKNS_6DINodeE+0xec): error: undefined reference to 'llvm::Metadata::dump(llvm::Module const*) const'
lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o:LVIRReader.cpp:function llvm::logicalview::LVIRReader::getMDScope(llvm::DINode const*) const [clone .localalias]:(.text._ZNK4llvm11logicalview10LVIRReader10getMDScopeEPKNS_6DINodeE+0x156): error: undefined reference to 'llvm::DIScope::getScope() const'
lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o:LVIRReader.cpp:function llvm::logicalview::LVIRReader::constructGenericSubrange(llvm::logicalview::LVScopeArray*, llvm::DIGenericSubrange const*, llvm::logicalview::LVType*) [clone .localalias]:(.text._ZN4llvm11logicalview10LVIRReader24constructGenericSubrangeEPNS0_12LVScopeArrayEPKNS_17DIGenericSubrangeEPNS0_6LVTypeE+0xcb): error: undefined reference to 'llvm::Metadata::dump(llvm::Module const*) const'
lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o:LVIRReader.cpp:function llvm::logicalview::LVIRReader::printAllInstructions(llvm::BasicBlock*) [clone .localalias]:(.text._ZN4llvm11logicalview10LVIRReader20printAllInstructionsEPNS_10BasicBlockE+0x22): error: undefined reference to 'llvm::Function::getSubprogram() const'
lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o:LVIRReader.cpp:function llvm::logicalview::LVIRReader::printAllInstructions(llvm::BasicBlock*) [clone .localalias]:(.text._ZN4llvm11logicalview10LVIRReader20printAllInstructionsEPNS_10BasicBlockE+0xe7): error: undefined reference to 'llvm::Value::print(llvm::raw_ostream&, bool) const'
lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o:LVIRReader.cpp:function llvm::logicalview::LVIRReader::printAllInstructions(llvm::BasicBlock*) [clone .localalias]:(.text._ZN4llvm11logicalview10LVIRReader20printAllInstructionsEPNS_10BasicBlockE+0x104): error: undefined reference to 'llvm::DbgMarker::getDbgRecordRange()'
lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o:LVIRReader.cpp:function llvm::logicalview::LVIRReader::printAllInstructions(llvm::BasicBlock*) [clone .localalias]:(.text._ZN4llvm11logicalview10LVIRReader20printAllInstructionsEPNS_10BasicBlockE+0x18b): error: undefined reference to 'llvm::DbgRecordParamRef<llvm::DILocalVariable>::get() const'
lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o:LVIRReader.cpp:function llvm::logicalview::LVIRReader::constructElement(llvm::DINode const*) [clone .localalias]:(.text._ZN4llvm11logicalview10LVIRReader16constructElementEPKNS_6DINodeE+0x18): error: undefined reference to 'llvm::DINode::getTag() const'
lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o:LVIRReader.cpp:function llvm::logicalview::LVIRReader::constructSubrange(llvm::logicalview::LVScopeArray*, llvm::DISubrange const*, llvm::logicalview::LVType*) [clone .localalias]:(.text._ZN4llvm11logicalview10LVIRReader17constructSubrangeEPNS0_12LVScopeArrayEPKNS_10DISubrangeEPNS0_6LVTypeE+0x7c): error: undefined reference to 'llvm::DISubrange::getCount() const'
lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o:LVIRReader.cpp:function llvm::logicalview::LVIRReader::constructSubrange(llvm::logicalview::LVScopeArray*, llvm::DISubrange const*, llvm::logicalview::LVType*) [clone .localalias]:(.text._ZN4llvm11logicalview10LVIRReader17constructSubrangeEPNS0_12LVScopeArrayEPKNS_10DISubrangeEPNS0_6LVTypeE+0x174): error: undefined reference to 'llvm::DISubrange::getUpperBound() const'
lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o:LVIRReader.cpp:function llvm::logicalview::LVIRReader::constructSubrange(llvm::logicalview::LVScopeArray*, llvm::DISubrange const*, llvm::logicalview::LVType*) [clone .localalias]:(.text._ZN4llvm11logicalview10LVIRReader17constructSubrangeEPNS0_12LVScopeArrayEPKNS_10DISubrangeEPNS0_6LVTypeE+0x196): error: undefined reference to 'llvm::DISubrange::getLowerBound() const'
lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o:LVIRReader.cpp:function llvm::logicalview::LVIRReader::constructAggregate(llvm::logicalview::LVScopeAggregate*, llvm::DICompositeType const*) [clone .localalias]:(.text._ZN4llvm11logicalview10LVIRReader18constructAggregateEPNS0_16LVScopeAggregateEPKNS_15DICompositeTypeE+0x1a3): error: undefined reference to 'llvm::DINode::getTag() const'
lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o:LVIRReader.cpp:function llvm::logicalview::LVIRReader::constructArray(llvm::logicalview::LVScopeArray*, llvm::DICompositeType const*) [clone .localalias]:(.text._ZN4llvm11logicalview10LVIRReader14constructArrayEPNS0_12LVScopeArrayEPKNS_15DICompositeTypeE+0x18b): error: undefined reference to 'llvm::DINode::getTag() const'
lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o:LVIRReader.cpp:function llvm::logicalview::LVIRReader::constructArray(llvm::logicalview::LVScopeArray*, llvm::DICompositeType const*) [clone .localalias]:(.text._ZN4llvm11logicalview10LVIRReader14constructArrayEPNS0_12LVScopeArrayEPKNS_15DICompositeTypeE+0x199): error: undefined reference to 'llvm::DINode::getTag() const'

@llvm-ci

llvm-ci commented May 27, 2026

Copy link
Copy Markdown

LLVM Buildbot has detected a new failure on builder openmp-offload-amdgpu-clang-flang running on rocm-worker-hw-01 while building llvm at step 3 "annotate".

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

Here is the relevant piece of the build log for the reference
Step 3 (annotate) failure: 'python ../llvm.src/offload/ci/openmp-offload-amdgpu-clang-flang.py ...' (failure)
...
[ 87%/15.712s :: 1047->11->7600 (of 8657)] Creating library symlink lib/libLLVMAsmPrinter.so
[ 87%/15.776s :: 1041->16->7601 (of 8657)] Linking CXX shared library lib/libclangCodeGen.so.23.0git
[ 87%/15.785s :: 1040->16->7602 (of 8657)] Creating library symlink lib/libclangCodeGen.so
[ 87%/15.797s :: 1038->17->7603 (of 8657)] Linking CXX shared library lib/libLLVMDWARFLinkerClassic.so.23.0git
[ 87%/15.800s :: 1037->17->7604 (of 8657)] Linking CXX shared library lib/libLLVMDWARFLinkerParallel.so.23.0git
[ 87%/15.807s :: 1036->17->7605 (of 8657)] Creating library symlink lib/libLLVMDWARFLinkerClassic.so
[ 87%/15.809s :: 1036->16->7606 (of 8657)] Creating library symlink lib/libLLVMDWARFLinkerParallel.so
[ 87%/15.828s :: 1036->15->7607 (of 8657)] Linking CXX shared library lib/libCUFAttrs.so.23.0git
[ 87%/15.836s :: 1035->15->7608 (of 8657)] Creating library symlink lib/libCUFAttrs.so
[ 87%/15.839s :: 1035->14->7609 (of 8657)] Linking CXX shared library lib/libLLVMDebugInfoLogicalView.so.23.0git
FAILED: lib/libLLVMDebugInfoLogicalView.so.23.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/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/./lib  -Wl,--gc-sections -shared -Wl,-soname,libLLVMDebugInfoLogicalView.so.23.0git -o lib/libLLVMDebugInfoLogicalView.so.23.0git lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVCompare.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVElement.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVLine.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVLocation.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVObject.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVOptions.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVRange.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVReader.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVScope.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVSort.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVSourceLanguage.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVSupport.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVSymbol.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVType.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/LVReaderHandler.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVBinaryReader.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVCodeViewReader.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVCodeViewVisitor.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVDWARFReader.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o  -Wl,-rpath,"\$ORIGIN/../lib:/home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/lib:"  lib/libLLVMAsmPrinter.so.23.0git  lib/libLLVMDebugInfoPDB.so.23.0git  lib/libLLVMDebugInfoCodeView.so.23.0git  lib/libLLVMDebugInfoDWARF.so.23.0git  lib/libLLVMObject.so.23.0git  lib/libLLVMMC.so.23.0git  lib/libLLVMDebugInfoDWARFLowLevel.so.23.0git  lib/libLLVMBinaryFormat.so.23.0git  lib/libLLVMTargetParser.so.23.0git  lib/libLLVMSupport.so.23.0git  lib/libLLVMDemangle.so.23.0git  -Wl,-rpath-link,/home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/lib && :
/usr/bin/ld: lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/LVReaderHandler.cpp.o: in function `llvm::ValueMapCallbackVH<llvm::Value*, unsigned long, llvm::SSAValueNameMap::Config>::deleted()':
LVReaderHandler.cpp:(.text._ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE7deletedEv[_ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE7deletedEv]+0x65): undefined reference to `llvm::ValueHandleBase::AddToExistingUseList(llvm::ValueHandleBase**)'
/usr/bin/ld: LVReaderHandler.cpp:(.text._ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE7deletedEv[_ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE7deletedEv]+0x125): undefined reference to `llvm::ValueHandleBase::RemoveFromUseList()'
/usr/bin/ld: LVReaderHandler.cpp:(.text._ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE7deletedEv[_ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE7deletedEv]+0x16b): undefined reference to `llvm::ValueHandleBase::AddToExistingUseList(llvm::ValueHandleBase**)'
/usr/bin/ld: LVReaderHandler.cpp:(.text._ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE7deletedEv[_ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE7deletedEv]+0x1ab): undefined reference to `vtable for llvm::CallbackVH'
/usr/bin/ld: LVReaderHandler.cpp:(.text._ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE7deletedEv[_ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE7deletedEv]+0x1f3): undefined reference to `llvm::ValueHandleBase::RemoveFromUseList()'
/usr/bin/ld: LVReaderHandler.cpp:(.text._ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE7deletedEv[_ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE7deletedEv]+0x233): undefined reference to `vtable for llvm::CallbackVH'
/usr/bin/ld: LVReaderHandler.cpp:(.text._ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE7deletedEv[_ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE7deletedEv]+0x274): undefined reference to `vtable for llvm::CallbackVH'
/usr/bin/ld: LVReaderHandler.cpp:(.text._ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE7deletedEv[_ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE7deletedEv]+0x28f): undefined reference to `llvm::ValueHandleBase::RemoveFromUseList()'
/usr/bin/ld: lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/LVReaderHandler.cpp.o: in function `llvm::ValueMapCallbackVH<llvm::Value*, unsigned long, llvm::SSAValueNameMap::Config>::allUsesReplacedWith(llvm::Value*)':
LVReaderHandler.cpp:(.text._ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE19allUsesReplacedWithES2_[_ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE19allUsesReplacedWithES2_]+0x6f): undefined reference to `llvm::ValueHandleBase::AddToExistingUseList(llvm::ValueHandleBase**)'
/usr/bin/ld: LVReaderHandler.cpp:(.text._ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE19allUsesReplacedWithES2_[_ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE19allUsesReplacedWithES2_]+0x84): undefined reference to `vtable for llvm::CallbackVH'
/usr/bin/ld: LVReaderHandler.cpp:(.text._ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE19allUsesReplacedWithES2_[_ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE19allUsesReplacedWithES2_]+0xaf): undefined reference to `llvm::ValueHandleBase::RemoveFromUseList()'
/usr/bin/ld: lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/LVReaderHandler.cpp.o: in function `llvm::logicalview::LVReaderHandler::handleBuffer(std::vector<std::unique_ptr<llvm::logicalview::LVReader, std::default_delete<llvm::logicalview::LVReader> >, std::allocator<std::unique_ptr<llvm::logicalview::LVReader, std::default_delete<llvm::logicalview::LVReader> > > >&, llvm::StringRef, llvm::MemoryBufferRef, llvm::StringRef) [clone .localalias]':
LVReaderHandler.cpp:(.text._ZN4llvm11logicalview15LVReaderHandler12handleBufferERSt6vectorISt10unique_ptrINS0_8LVReaderESt14default_deleteIS4_EESaIS7_EENS_9StringRefENS_15MemoryBufferRefESB_+0x87): undefined reference to `llvm::LLVMContext::LLVMContext()'
/usr/bin/ld: LVReaderHandler.cpp:(.text._ZN4llvm11logicalview15LVReaderHandler12handleBufferERSt6vectorISt10unique_ptrINS0_8LVReaderESt14default_deleteIS4_EESaIS7_EENS_9StringRefENS_15MemoryBufferRefESB_+0x18c): undefined reference to `llvm::LLVMContext::~LLVMContext()'
/usr/bin/ld: lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/LVReaderHandler.cpp.o:(.data.rel.ro._ZTVN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEEE[_ZTVN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEEE]+0x10): undefined reference to `llvm::CallbackVH::anchor()'
/usr/bin/ld: lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o: in function `llvm::DINode::getStringOperand(unsigned int) const':
LVIRReader.cpp:(.text._ZNK4llvm6DINode16getStringOperandEj[_ZNK4llvm6DINode16getStringOperandEj]+0x39): undefined reference to `llvm::MDString::getString() const'
/usr/bin/ld: lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o: in function `llvm::DIMacroNode::getStringOperand(unsigned int) const':
LVIRReader.cpp:(.text._ZNK4llvm11DIMacroNode16getStringOperandEj[_ZNK4llvm11DIMacroNode16getStringOperandEj]+0x39): undefined reference to `llvm::MDString::getString() const'
/usr/bin/ld: lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o: in function `llvm::logicalview::LVIRReader::getMDFile(llvm::MDNode const*) const [clone .localalias]':
LVIRReader.cpp:(.text._ZNK4llvm11logicalview10LVIRReader9getMDFileEPKNS_6MDNodeE+0xdf): undefined reference to `llvm::Metadata::dump(llvm::Module const*) const'
/usr/bin/ld: lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o: in function `llvm::logicalview::LVIRReader::getMDName(llvm::DINode const*) const [clone .localalias]':
LVIRReader.cpp:(.text._ZNK4llvm11logicalview10LVIRReader9getMDNameEPKNS_6DINodeE+0x8b): undefined reference to `llvm::Metadata::dump(llvm::Module const*) const'
/usr/bin/ld: LVIRReader.cpp:(.text._ZNK4llvm11logicalview10LVIRReader9getMDNameEPKNS_6DINodeE+0xbf): undefined reference to `llvm::DIScope::getName() const'
/usr/bin/ld: lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o: in function `llvm::logicalview::LVIRReader::getMDScope(llvm::DINode const*) const [clone .localalias]':
LVIRReader.cpp:(.text._ZNK4llvm11logicalview10LVIRReader10getMDScopeEPKNS_6DINodeE+0xec): undefined reference to `llvm::Metadata::dump(llvm::Module const*) const'
/usr/bin/ld: LVIRReader.cpp:(.text._ZNK4llvm11logicalview10LVIRReader10getMDScopeEPKNS_6DINodeE+0x156): undefined reference to `llvm::DIScope::getScope() const'
/usr/bin/ld: lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o: in function `llvm::logicalview::LVIRReader::constructGenericSubrange(llvm::logicalview::LVScopeArray*, llvm::DIGenericSubrange const*, llvm::logicalview::LVType*) [clone .localalias]':
LVIRReader.cpp:(.text._ZN4llvm11logicalview10LVIRReader24constructGenericSubrangeEPNS0_12LVScopeArrayEPKNS_17DIGenericSubrangeEPNS0_6LVTypeE+0xcb): undefined reference to `llvm::Metadata::dump(llvm::Module const*) const'
/usr/bin/ld: lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o: in function `llvm::logicalview::LVIRReader::printAllInstructions(llvm::BasicBlock*) [clone .localalias]':
LVIRReader.cpp:(.text._ZN4llvm11logicalview10LVIRReader20printAllInstructionsEPNS_10BasicBlockE+0x22): undefined reference to `llvm::Function::getSubprogram() const'
/usr/bin/ld: LVIRReader.cpp:(.text._ZN4llvm11logicalview10LVIRReader20printAllInstructionsEPNS_10BasicBlockE+0xec): undefined reference to `llvm::Value::print(llvm::raw_ostream&, bool) const'
/usr/bin/ld: LVIRReader.cpp:(.text._ZN4llvm11logicalview10LVIRReader20printAllInstructionsEPNS_10BasicBlockE+0x121): undefined reference to `llvm::DbgMarker::getDbgRecordRange()'
/usr/bin/ld: LVIRReader.cpp:(.text._ZN4llvm11logicalview10LVIRReader20printAllInstructionsEPNS_10BasicBlockE+0x19e): undefined reference to `llvm::DbgRecordParamRef<llvm::DILocalVariable>::get() const'
/usr/bin/ld: LVIRReader.cpp:(.text._ZN4llvm11logicalview10LVIRReader20printAllInstructionsEPNS_10BasicBlockE+0x1ad): undefined reference to `llvm::Metadata::dump(llvm::Module const*) const'
Step 7 (compile-openmp) failure: compile-openmp (failure)
...
[ 87%/15.712s :: 1047->11->7600 (of 8657)] Creating library symlink lib/libLLVMAsmPrinter.so
[ 87%/15.776s :: 1041->16->7601 (of 8657)] Linking CXX shared library lib/libclangCodeGen.so.23.0git
[ 87%/15.785s :: 1040->16->7602 (of 8657)] Creating library symlink lib/libclangCodeGen.so
[ 87%/15.797s :: 1038->17->7603 (of 8657)] Linking CXX shared library lib/libLLVMDWARFLinkerClassic.so.23.0git
[ 87%/15.800s :: 1037->17->7604 (of 8657)] Linking CXX shared library lib/libLLVMDWARFLinkerParallel.so.23.0git
[ 87%/15.807s :: 1036->17->7605 (of 8657)] Creating library symlink lib/libLLVMDWARFLinkerClassic.so
[ 87%/15.809s :: 1036->16->7606 (of 8657)] Creating library symlink lib/libLLVMDWARFLinkerParallel.so
[ 87%/15.828s :: 1036->15->7607 (of 8657)] Linking CXX shared library lib/libCUFAttrs.so.23.0git
[ 87%/15.836s :: 1035->15->7608 (of 8657)] Creating library symlink lib/libCUFAttrs.so
[ 87%/15.839s :: 1035->14->7609 (of 8657)] Linking CXX shared library lib/libLLVMDebugInfoLogicalView.so.23.0git
FAILED: lib/libLLVMDebugInfoLogicalView.so.23.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/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/./lib  -Wl,--gc-sections -shared -Wl,-soname,libLLVMDebugInfoLogicalView.so.23.0git -o lib/libLLVMDebugInfoLogicalView.so.23.0git lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVCompare.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVElement.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVLine.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVLocation.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVObject.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVOptions.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVRange.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVReader.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVScope.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVSort.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVSourceLanguage.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVSupport.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVSymbol.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVType.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/LVReaderHandler.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVBinaryReader.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVCodeViewReader.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVCodeViewVisitor.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVDWARFReader.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o  -Wl,-rpath,"\$ORIGIN/../lib:/home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/lib:"  lib/libLLVMAsmPrinter.so.23.0git  lib/libLLVMDebugInfoPDB.so.23.0git  lib/libLLVMDebugInfoCodeView.so.23.0git  lib/libLLVMDebugInfoDWARF.so.23.0git  lib/libLLVMObject.so.23.0git  lib/libLLVMMC.so.23.0git  lib/libLLVMDebugInfoDWARFLowLevel.so.23.0git  lib/libLLVMBinaryFormat.so.23.0git  lib/libLLVMTargetParser.so.23.0git  lib/libLLVMSupport.so.23.0git  lib/libLLVMDemangle.so.23.0git  -Wl,-rpath-link,/home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/lib && :
/usr/bin/ld: lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/LVReaderHandler.cpp.o: in function `llvm::ValueMapCallbackVH<llvm::Value*, unsigned long, llvm::SSAValueNameMap::Config>::deleted()':
LVReaderHandler.cpp:(.text._ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE7deletedEv[_ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE7deletedEv]+0x65): undefined reference to `llvm::ValueHandleBase::AddToExistingUseList(llvm::ValueHandleBase**)'
/usr/bin/ld: LVReaderHandler.cpp:(.text._ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE7deletedEv[_ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE7deletedEv]+0x125): undefined reference to `llvm::ValueHandleBase::RemoveFromUseList()'
/usr/bin/ld: LVReaderHandler.cpp:(.text._ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE7deletedEv[_ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE7deletedEv]+0x16b): undefined reference to `llvm::ValueHandleBase::AddToExistingUseList(llvm::ValueHandleBase**)'
/usr/bin/ld: LVReaderHandler.cpp:(.text._ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE7deletedEv[_ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE7deletedEv]+0x1ab): undefined reference to `vtable for llvm::CallbackVH'
/usr/bin/ld: LVReaderHandler.cpp:(.text._ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE7deletedEv[_ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE7deletedEv]+0x1f3): undefined reference to `llvm::ValueHandleBase::RemoveFromUseList()'
/usr/bin/ld: LVReaderHandler.cpp:(.text._ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE7deletedEv[_ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE7deletedEv]+0x233): undefined reference to `vtable for llvm::CallbackVH'
/usr/bin/ld: LVReaderHandler.cpp:(.text._ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE7deletedEv[_ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE7deletedEv]+0x274): undefined reference to `vtable for llvm::CallbackVH'
/usr/bin/ld: LVReaderHandler.cpp:(.text._ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE7deletedEv[_ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE7deletedEv]+0x28f): undefined reference to `llvm::ValueHandleBase::RemoveFromUseList()'
/usr/bin/ld: lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/LVReaderHandler.cpp.o: in function `llvm::ValueMapCallbackVH<llvm::Value*, unsigned long, llvm::SSAValueNameMap::Config>::allUsesReplacedWith(llvm::Value*)':
LVReaderHandler.cpp:(.text._ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE19allUsesReplacedWithES2_[_ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE19allUsesReplacedWithES2_]+0x6f): undefined reference to `llvm::ValueHandleBase::AddToExistingUseList(llvm::ValueHandleBase**)'
/usr/bin/ld: LVReaderHandler.cpp:(.text._ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE19allUsesReplacedWithES2_[_ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE19allUsesReplacedWithES2_]+0x84): undefined reference to `vtable for llvm::CallbackVH'
/usr/bin/ld: LVReaderHandler.cpp:(.text._ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE19allUsesReplacedWithES2_[_ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE19allUsesReplacedWithES2_]+0xaf): undefined reference to `llvm::ValueHandleBase::RemoveFromUseList()'
/usr/bin/ld: lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/LVReaderHandler.cpp.o: in function `llvm::logicalview::LVReaderHandler::handleBuffer(std::vector<std::unique_ptr<llvm::logicalview::LVReader, std::default_delete<llvm::logicalview::LVReader> >, std::allocator<std::unique_ptr<llvm::logicalview::LVReader, std::default_delete<llvm::logicalview::LVReader> > > >&, llvm::StringRef, llvm::MemoryBufferRef, llvm::StringRef) [clone .localalias]':
LVReaderHandler.cpp:(.text._ZN4llvm11logicalview15LVReaderHandler12handleBufferERSt6vectorISt10unique_ptrINS0_8LVReaderESt14default_deleteIS4_EESaIS7_EENS_9StringRefENS_15MemoryBufferRefESB_+0x87): undefined reference to `llvm::LLVMContext::LLVMContext()'
/usr/bin/ld: LVReaderHandler.cpp:(.text._ZN4llvm11logicalview15LVReaderHandler12handleBufferERSt6vectorISt10unique_ptrINS0_8LVReaderESt14default_deleteIS4_EESaIS7_EENS_9StringRefENS_15MemoryBufferRefESB_+0x18c): undefined reference to `llvm::LLVMContext::~LLVMContext()'
/usr/bin/ld: lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/LVReaderHandler.cpp.o:(.data.rel.ro._ZTVN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEEE[_ZTVN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEEE]+0x10): undefined reference to `llvm::CallbackVH::anchor()'
/usr/bin/ld: lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o: in function `llvm::DINode::getStringOperand(unsigned int) const':
LVIRReader.cpp:(.text._ZNK4llvm6DINode16getStringOperandEj[_ZNK4llvm6DINode16getStringOperandEj]+0x39): undefined reference to `llvm::MDString::getString() const'
/usr/bin/ld: lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o: in function `llvm::DIMacroNode::getStringOperand(unsigned int) const':
LVIRReader.cpp:(.text._ZNK4llvm11DIMacroNode16getStringOperandEj[_ZNK4llvm11DIMacroNode16getStringOperandEj]+0x39): undefined reference to `llvm::MDString::getString() const'
/usr/bin/ld: lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o: in function `llvm::logicalview::LVIRReader::getMDFile(llvm::MDNode const*) const [clone .localalias]':
LVIRReader.cpp:(.text._ZNK4llvm11logicalview10LVIRReader9getMDFileEPKNS_6MDNodeE+0xdf): undefined reference to `llvm::Metadata::dump(llvm::Module const*) const'
/usr/bin/ld: lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o: in function `llvm::logicalview::LVIRReader::getMDName(llvm::DINode const*) const [clone .localalias]':
LVIRReader.cpp:(.text._ZNK4llvm11logicalview10LVIRReader9getMDNameEPKNS_6DINodeE+0x8b): undefined reference to `llvm::Metadata::dump(llvm::Module const*) const'
/usr/bin/ld: LVIRReader.cpp:(.text._ZNK4llvm11logicalview10LVIRReader9getMDNameEPKNS_6DINodeE+0xbf): undefined reference to `llvm::DIScope::getName() const'
/usr/bin/ld: lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o: in function `llvm::logicalview::LVIRReader::getMDScope(llvm::DINode const*) const [clone .localalias]':
LVIRReader.cpp:(.text._ZNK4llvm11logicalview10LVIRReader10getMDScopeEPKNS_6DINodeE+0xec): undefined reference to `llvm::Metadata::dump(llvm::Module const*) const'
/usr/bin/ld: LVIRReader.cpp:(.text._ZNK4llvm11logicalview10LVIRReader10getMDScopeEPKNS_6DINodeE+0x156): undefined reference to `llvm::DIScope::getScope() const'
/usr/bin/ld: lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o: in function `llvm::logicalview::LVIRReader::constructGenericSubrange(llvm::logicalview::LVScopeArray*, llvm::DIGenericSubrange const*, llvm::logicalview::LVType*) [clone .localalias]':
LVIRReader.cpp:(.text._ZN4llvm11logicalview10LVIRReader24constructGenericSubrangeEPNS0_12LVScopeArrayEPKNS_17DIGenericSubrangeEPNS0_6LVTypeE+0xcb): undefined reference to `llvm::Metadata::dump(llvm::Module const*) const'
/usr/bin/ld: lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o: in function `llvm::logicalview::LVIRReader::printAllInstructions(llvm::BasicBlock*) [clone .localalias]':
LVIRReader.cpp:(.text._ZN4llvm11logicalview10LVIRReader20printAllInstructionsEPNS_10BasicBlockE+0x22): undefined reference to `llvm::Function::getSubprogram() const'
/usr/bin/ld: LVIRReader.cpp:(.text._ZN4llvm11logicalview10LVIRReader20printAllInstructionsEPNS_10BasicBlockE+0xec): undefined reference to `llvm::Value::print(llvm::raw_ostream&, bool) const'
/usr/bin/ld: LVIRReader.cpp:(.text._ZN4llvm11logicalview10LVIRReader20printAllInstructionsEPNS_10BasicBlockE+0x121): undefined reference to `llvm::DbgMarker::getDbgRecordRange()'
/usr/bin/ld: LVIRReader.cpp:(.text._ZN4llvm11logicalview10LVIRReader20printAllInstructionsEPNS_10BasicBlockE+0x19e): undefined reference to `llvm::DbgRecordParamRef<llvm::DILocalVariable>::get() const'
/usr/bin/ld: LVIRReader.cpp:(.text._ZN4llvm11logicalview10LVIRReader20printAllInstructionsEPNS_10BasicBlockE+0x1ad): undefined reference to `llvm::Metadata::dump(llvm::Module const*) const'

@llvm-ci

llvm-ci commented May 27, 2026

Copy link
Copy Markdown

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/47168

Here is the relevant piece of the build log for the reference
Step 4 (annotate) failure: '../llvm-zorg/zorg/buildbot/builders/annotated/amdgpu-offload-cmake.py --jobs=32' (failure)
...
[5951/8644] Creating library symlink lib/libMLIRAMDGPUUtils.so
[5952/8644] Linking CXX shared library lib/libMLIRXeGPUToXeVM.so.23.0git
[5953/8644] Linking CXX shared library lib/libMLIRArmSMEToLLVM.so.23.0git
[5954/8644] Building CXX object tools/clang/lib/Basic/CMakeFiles/obj.clangBasic.dir/Version.cpp.o
[5955/8644] Linking CXX shared library lib/libMLIRNVVMTarget.so.23.0git
[5956/8644] Creating library symlink lib/libMLIRXeGPUToXeVM.so
[5957/8644] Creating library symlink lib/libMLIRArmSMEToLLVM.so
[5958/8644] Linking CXX executable bin/lli
[5959/8644] Creating library symlink lib/libMLIRNVVMTarget.so
[5960/8644] Linking CXX shared library lib/libLLVMDebugInfoLogicalView.so.23.0git
FAILED: lib/libLLVMDebugInfoLogicalView.so.23.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,libLLVMDebugInfoLogicalView.so.23.0git -o lib/libLLVMDebugInfoLogicalView.so.23.0git lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVCompare.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVElement.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVLine.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVLocation.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVObject.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVOptions.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVRange.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVReader.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVScope.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVSort.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVSourceLanguage.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVSupport.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVSymbol.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVType.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/LVReaderHandler.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVBinaryReader.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVCodeViewReader.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVCodeViewVisitor.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVDWARFReader.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o  -Wl,-rpath,"\$ORIGIN/../lib:/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/build/lib:"  lib/libLLVMAsmPrinter.so.23.0git  lib/libLLVMDebugInfoPDB.so.23.0git  lib/libLLVMDebugInfoCodeView.so.23.0git  lib/libLLVMDebugInfoDWARF.so.23.0git  lib/libLLVMObject.so.23.0git  lib/libLLVMMC.so.23.0git  lib/libLLVMDebugInfoDWARFLowLevel.so.23.0git  lib/libLLVMBinaryFormat.so.23.0git  lib/libLLVMTargetParser.so.23.0git  lib/libLLVMSupport.so.23.0git  lib/libLLVMDemangle.so.23.0git  -Wl,-rpath-link,/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/build/lib && :
/usr/bin/ld: lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/LVReaderHandler.cpp.o: in function `llvm::ValueMapCallbackVH<llvm::Value*, unsigned long, llvm::SSAValueNameMap::Config>::deleted()':
LVReaderHandler.cpp:(.text._ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE7deletedEv[_ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE7deletedEv]+0x65): undefined reference to `llvm::ValueHandleBase::AddToExistingUseList(llvm::ValueHandleBase**)'
/usr/bin/ld: LVReaderHandler.cpp:(.text._ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE7deletedEv[_ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE7deletedEv]+0x125): undefined reference to `llvm::ValueHandleBase::RemoveFromUseList()'
/usr/bin/ld: LVReaderHandler.cpp:(.text._ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE7deletedEv[_ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE7deletedEv]+0x16b): undefined reference to `llvm::ValueHandleBase::AddToExistingUseList(llvm::ValueHandleBase**)'
/usr/bin/ld: LVReaderHandler.cpp:(.text._ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE7deletedEv[_ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE7deletedEv]+0x1ab): undefined reference to `vtable for llvm::CallbackVH'
/usr/bin/ld: LVReaderHandler.cpp:(.text._ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE7deletedEv[_ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE7deletedEv]+0x1f3): undefined reference to `llvm::ValueHandleBase::RemoveFromUseList()'
/usr/bin/ld: LVReaderHandler.cpp:(.text._ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE7deletedEv[_ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE7deletedEv]+0x233): undefined reference to `vtable for llvm::CallbackVH'
/usr/bin/ld: LVReaderHandler.cpp:(.text._ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE7deletedEv[_ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE7deletedEv]+0x274): undefined reference to `vtable for llvm::CallbackVH'
/usr/bin/ld: LVReaderHandler.cpp:(.text._ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE7deletedEv[_ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE7deletedEv]+0x28f): undefined reference to `llvm::ValueHandleBase::RemoveFromUseList()'
/usr/bin/ld: lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/LVReaderHandler.cpp.o: in function `llvm::ValueMapCallbackVH<llvm::Value*, unsigned long, llvm::SSAValueNameMap::Config>::allUsesReplacedWith(llvm::Value*)':
LVReaderHandler.cpp:(.text._ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE19allUsesReplacedWithES2_[_ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE19allUsesReplacedWithES2_]+0x6f): undefined reference to `llvm::ValueHandleBase::AddToExistingUseList(llvm::ValueHandleBase**)'
/usr/bin/ld: LVReaderHandler.cpp:(.text._ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE19allUsesReplacedWithES2_[_ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE19allUsesReplacedWithES2_]+0x84): undefined reference to `vtable for llvm::CallbackVH'
/usr/bin/ld: LVReaderHandler.cpp:(.text._ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE19allUsesReplacedWithES2_[_ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE19allUsesReplacedWithES2_]+0xaf): undefined reference to `llvm::ValueHandleBase::RemoveFromUseList()'
/usr/bin/ld: lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/LVReaderHandler.cpp.o: in function `llvm::logicalview::LVReaderHandler::handleBuffer(std::vector<std::unique_ptr<llvm::logicalview::LVReader, std::default_delete<llvm::logicalview::LVReader> >, std::allocator<std::unique_ptr<llvm::logicalview::LVReader, std::default_delete<llvm::logicalview::LVReader> > > >&, llvm::StringRef, llvm::MemoryBufferRef, llvm::StringRef) [clone .localalias]':
LVReaderHandler.cpp:(.text._ZN4llvm11logicalview15LVReaderHandler12handleBufferERSt6vectorISt10unique_ptrINS0_8LVReaderESt14default_deleteIS4_EESaIS7_EENS_9StringRefENS_15MemoryBufferRefESB_+0x87): undefined reference to `llvm::LLVMContext::LLVMContext()'
/usr/bin/ld: LVReaderHandler.cpp:(.text._ZN4llvm11logicalview15LVReaderHandler12handleBufferERSt6vectorISt10unique_ptrINS0_8LVReaderESt14default_deleteIS4_EESaIS7_EENS_9StringRefENS_15MemoryBufferRefESB_+0x18c): undefined reference to `llvm::LLVMContext::~LLVMContext()'
/usr/bin/ld: lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/LVReaderHandler.cpp.o:(.data.rel.ro._ZTVN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEEE[_ZTVN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEEE]+0x10): undefined reference to `llvm::CallbackVH::anchor()'
/usr/bin/ld: lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o: in function `llvm::DINode::getStringOperand(unsigned int) const':
LVIRReader.cpp:(.text._ZNK4llvm6DINode16getStringOperandEj[_ZNK4llvm6DINode16getStringOperandEj]+0x39): undefined reference to `llvm::MDString::getString() const'
/usr/bin/ld: lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o: in function `llvm::DIMacroNode::getStringOperand(unsigned int) const':
LVIRReader.cpp:(.text._ZNK4llvm11DIMacroNode16getStringOperandEj[_ZNK4llvm11DIMacroNode16getStringOperandEj]+0x39): undefined reference to `llvm::MDString::getString() const'
/usr/bin/ld: lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o: in function `llvm::logicalview::LVIRReader::getMDFile(llvm::MDNode const*) const [clone .localalias]':
LVIRReader.cpp:(.text._ZNK4llvm11logicalview10LVIRReader9getMDFileEPKNS_6MDNodeE+0xdf): undefined reference to `llvm::Metadata::dump(llvm::Module const*) const'
/usr/bin/ld: lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o: in function `llvm::logicalview::LVIRReader::getMDName(llvm::DINode const*) const [clone .localalias]':
LVIRReader.cpp:(.text._ZNK4llvm11logicalview10LVIRReader9getMDNameEPKNS_6DINodeE+0x8b): undefined reference to `llvm::Metadata::dump(llvm::Module const*) const'
/usr/bin/ld: LVIRReader.cpp:(.text._ZNK4llvm11logicalview10LVIRReader9getMDNameEPKNS_6DINodeE+0xbf): undefined reference to `llvm::DIScope::getName() const'
/usr/bin/ld: lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o: in function `llvm::logicalview::LVIRReader::getMDScope(llvm::DINode const*) const [clone .localalias]':
LVIRReader.cpp:(.text._ZNK4llvm11logicalview10LVIRReader10getMDScopeEPKNS_6DINodeE+0xec): undefined reference to `llvm::Metadata::dump(llvm::Module const*) const'
/usr/bin/ld: LVIRReader.cpp:(.text._ZNK4llvm11logicalview10LVIRReader10getMDScopeEPKNS_6DINodeE+0x156): undefined reference to `llvm::DIScope::getScope() const'
/usr/bin/ld: lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o: in function `llvm::logicalview::LVIRReader::constructGenericSubrange(llvm::logicalview::LVScopeArray*, llvm::DIGenericSubrange const*, llvm::logicalview::LVType*) [clone .localalias]':
LVIRReader.cpp:(.text._ZN4llvm11logicalview10LVIRReader24constructGenericSubrangeEPNS0_12LVScopeArrayEPKNS_17DIGenericSubrangeEPNS0_6LVTypeE+0xcb): undefined reference to `llvm::Metadata::dump(llvm::Module const*) const'
/usr/bin/ld: lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o: in function `llvm::logicalview::LVIRReader::printAllInstructions(llvm::BasicBlock*) [clone .localalias]':
LVIRReader.cpp:(.text._ZN4llvm11logicalview10LVIRReader20printAllInstructionsEPNS_10BasicBlockE+0x22): undefined reference to `llvm::Function::getSubprogram() const'
/usr/bin/ld: LVIRReader.cpp:(.text._ZN4llvm11logicalview10LVIRReader20printAllInstructionsEPNS_10BasicBlockE+0xec): undefined reference to `llvm::Value::print(llvm::raw_ostream&, bool) const'
/usr/bin/ld: LVIRReader.cpp:(.text._ZN4llvm11logicalview10LVIRReader20printAllInstructionsEPNS_10BasicBlockE+0x121): undefined reference to `llvm::DbgMarker::getDbgRecordRange()'
/usr/bin/ld: LVIRReader.cpp:(.text._ZN4llvm11logicalview10LVIRReader20printAllInstructionsEPNS_10BasicBlockE+0x19e): undefined reference to `llvm::DbgRecordParamRef<llvm::DILocalVariable>::get() const'
/usr/bin/ld: LVIRReader.cpp:(.text._ZN4llvm11logicalview10LVIRReader20printAllInstructionsEPNS_10BasicBlockE+0x1ad): undefined reference to `llvm::Metadata::dump(llvm::Module const*) const'
Step 7 (build cmake config) failure: build cmake config (failure)
...
[5951/8644] Creating library symlink lib/libMLIRAMDGPUUtils.so
[5952/8644] Linking CXX shared library lib/libMLIRXeGPUToXeVM.so.23.0git
[5953/8644] Linking CXX shared library lib/libMLIRArmSMEToLLVM.so.23.0git
[5954/8644] Building CXX object tools/clang/lib/Basic/CMakeFiles/obj.clangBasic.dir/Version.cpp.o
[5955/8644] Linking CXX shared library lib/libMLIRNVVMTarget.so.23.0git
[5956/8644] Creating library symlink lib/libMLIRXeGPUToXeVM.so
[5957/8644] Creating library symlink lib/libMLIRArmSMEToLLVM.so
[5958/8644] Linking CXX executable bin/lli
[5959/8644] Creating library symlink lib/libMLIRNVVMTarget.so
[5960/8644] Linking CXX shared library lib/libLLVMDebugInfoLogicalView.so.23.0git
FAILED: lib/libLLVMDebugInfoLogicalView.so.23.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,libLLVMDebugInfoLogicalView.so.23.0git -o lib/libLLVMDebugInfoLogicalView.so.23.0git lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVCompare.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVElement.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVLine.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVLocation.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVObject.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVOptions.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVRange.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVReader.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVScope.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVSort.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVSourceLanguage.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVSupport.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVSymbol.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVType.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/LVReaderHandler.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVBinaryReader.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVCodeViewReader.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVCodeViewVisitor.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVDWARFReader.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o  -Wl,-rpath,"\$ORIGIN/../lib:/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/build/lib:"  lib/libLLVMAsmPrinter.so.23.0git  lib/libLLVMDebugInfoPDB.so.23.0git  lib/libLLVMDebugInfoCodeView.so.23.0git  lib/libLLVMDebugInfoDWARF.so.23.0git  lib/libLLVMObject.so.23.0git  lib/libLLVMMC.so.23.0git  lib/libLLVMDebugInfoDWARFLowLevel.so.23.0git  lib/libLLVMBinaryFormat.so.23.0git  lib/libLLVMTargetParser.so.23.0git  lib/libLLVMSupport.so.23.0git  lib/libLLVMDemangle.so.23.0git  -Wl,-rpath-link,/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/build/lib && :
/usr/bin/ld: lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/LVReaderHandler.cpp.o: in function `llvm::ValueMapCallbackVH<llvm::Value*, unsigned long, llvm::SSAValueNameMap::Config>::deleted()':
LVReaderHandler.cpp:(.text._ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE7deletedEv[_ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE7deletedEv]+0x65): undefined reference to `llvm::ValueHandleBase::AddToExistingUseList(llvm::ValueHandleBase**)'
/usr/bin/ld: LVReaderHandler.cpp:(.text._ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE7deletedEv[_ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE7deletedEv]+0x125): undefined reference to `llvm::ValueHandleBase::RemoveFromUseList()'
/usr/bin/ld: LVReaderHandler.cpp:(.text._ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE7deletedEv[_ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE7deletedEv]+0x16b): undefined reference to `llvm::ValueHandleBase::AddToExistingUseList(llvm::ValueHandleBase**)'
/usr/bin/ld: LVReaderHandler.cpp:(.text._ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE7deletedEv[_ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE7deletedEv]+0x1ab): undefined reference to `vtable for llvm::CallbackVH'
/usr/bin/ld: LVReaderHandler.cpp:(.text._ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE7deletedEv[_ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE7deletedEv]+0x1f3): undefined reference to `llvm::ValueHandleBase::RemoveFromUseList()'
/usr/bin/ld: LVReaderHandler.cpp:(.text._ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE7deletedEv[_ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE7deletedEv]+0x233): undefined reference to `vtable for llvm::CallbackVH'
/usr/bin/ld: LVReaderHandler.cpp:(.text._ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE7deletedEv[_ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE7deletedEv]+0x274): undefined reference to `vtable for llvm::CallbackVH'
/usr/bin/ld: LVReaderHandler.cpp:(.text._ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE7deletedEv[_ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE7deletedEv]+0x28f): undefined reference to `llvm::ValueHandleBase::RemoveFromUseList()'
/usr/bin/ld: lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/LVReaderHandler.cpp.o: in function `llvm::ValueMapCallbackVH<llvm::Value*, unsigned long, llvm::SSAValueNameMap::Config>::allUsesReplacedWith(llvm::Value*)':
LVReaderHandler.cpp:(.text._ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE19allUsesReplacedWithES2_[_ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE19allUsesReplacedWithES2_]+0x6f): undefined reference to `llvm::ValueHandleBase::AddToExistingUseList(llvm::ValueHandleBase**)'
/usr/bin/ld: LVReaderHandler.cpp:(.text._ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE19allUsesReplacedWithES2_[_ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE19allUsesReplacedWithES2_]+0x84): undefined reference to `vtable for llvm::CallbackVH'
/usr/bin/ld: LVReaderHandler.cpp:(.text._ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE19allUsesReplacedWithES2_[_ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE19allUsesReplacedWithES2_]+0xaf): undefined reference to `llvm::ValueHandleBase::RemoveFromUseList()'
/usr/bin/ld: lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/LVReaderHandler.cpp.o: in function `llvm::logicalview::LVReaderHandler::handleBuffer(std::vector<std::unique_ptr<llvm::logicalview::LVReader, std::default_delete<llvm::logicalview::LVReader> >, std::allocator<std::unique_ptr<llvm::logicalview::LVReader, std::default_delete<llvm::logicalview::LVReader> > > >&, llvm::StringRef, llvm::MemoryBufferRef, llvm::StringRef) [clone .localalias]':
LVReaderHandler.cpp:(.text._ZN4llvm11logicalview15LVReaderHandler12handleBufferERSt6vectorISt10unique_ptrINS0_8LVReaderESt14default_deleteIS4_EESaIS7_EENS_9StringRefENS_15MemoryBufferRefESB_+0x87): undefined reference to `llvm::LLVMContext::LLVMContext()'
/usr/bin/ld: LVReaderHandler.cpp:(.text._ZN4llvm11logicalview15LVReaderHandler12handleBufferERSt6vectorISt10unique_ptrINS0_8LVReaderESt14default_deleteIS4_EESaIS7_EENS_9StringRefENS_15MemoryBufferRefESB_+0x18c): undefined reference to `llvm::LLVMContext::~LLVMContext()'
/usr/bin/ld: lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/LVReaderHandler.cpp.o:(.data.rel.ro._ZTVN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEEE[_ZTVN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEEE]+0x10): undefined reference to `llvm::CallbackVH::anchor()'
/usr/bin/ld: lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o: in function `llvm::DINode::getStringOperand(unsigned int) const':
LVIRReader.cpp:(.text._ZNK4llvm6DINode16getStringOperandEj[_ZNK4llvm6DINode16getStringOperandEj]+0x39): undefined reference to `llvm::MDString::getString() const'
/usr/bin/ld: lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o: in function `llvm::DIMacroNode::getStringOperand(unsigned int) const':
LVIRReader.cpp:(.text._ZNK4llvm11DIMacroNode16getStringOperandEj[_ZNK4llvm11DIMacroNode16getStringOperandEj]+0x39): undefined reference to `llvm::MDString::getString() const'
/usr/bin/ld: lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o: in function `llvm::logicalview::LVIRReader::getMDFile(llvm::MDNode const*) const [clone .localalias]':
LVIRReader.cpp:(.text._ZNK4llvm11logicalview10LVIRReader9getMDFileEPKNS_6MDNodeE+0xdf): undefined reference to `llvm::Metadata::dump(llvm::Module const*) const'
/usr/bin/ld: lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o: in function `llvm::logicalview::LVIRReader::getMDName(llvm::DINode const*) const [clone .localalias]':
LVIRReader.cpp:(.text._ZNK4llvm11logicalview10LVIRReader9getMDNameEPKNS_6DINodeE+0x8b): undefined reference to `llvm::Metadata::dump(llvm::Module const*) const'
/usr/bin/ld: LVIRReader.cpp:(.text._ZNK4llvm11logicalview10LVIRReader9getMDNameEPKNS_6DINodeE+0xbf): undefined reference to `llvm::DIScope::getName() const'
/usr/bin/ld: lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o: in function `llvm::logicalview::LVIRReader::getMDScope(llvm::DINode const*) const [clone .localalias]':
LVIRReader.cpp:(.text._ZNK4llvm11logicalview10LVIRReader10getMDScopeEPKNS_6DINodeE+0xec): undefined reference to `llvm::Metadata::dump(llvm::Module const*) const'
/usr/bin/ld: LVIRReader.cpp:(.text._ZNK4llvm11logicalview10LVIRReader10getMDScopeEPKNS_6DINodeE+0x156): undefined reference to `llvm::DIScope::getScope() const'
/usr/bin/ld: lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o: in function `llvm::logicalview::LVIRReader::constructGenericSubrange(llvm::logicalview::LVScopeArray*, llvm::DIGenericSubrange const*, llvm::logicalview::LVType*) [clone .localalias]':
LVIRReader.cpp:(.text._ZN4llvm11logicalview10LVIRReader24constructGenericSubrangeEPNS0_12LVScopeArrayEPKNS_17DIGenericSubrangeEPNS0_6LVTypeE+0xcb): undefined reference to `llvm::Metadata::dump(llvm::Module const*) const'
/usr/bin/ld: lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o: in function `llvm::logicalview::LVIRReader::printAllInstructions(llvm::BasicBlock*) [clone .localalias]':
LVIRReader.cpp:(.text._ZN4llvm11logicalview10LVIRReader20printAllInstructionsEPNS_10BasicBlockE+0x22): undefined reference to `llvm::Function::getSubprogram() const'
/usr/bin/ld: LVIRReader.cpp:(.text._ZN4llvm11logicalview10LVIRReader20printAllInstructionsEPNS_10BasicBlockE+0xec): undefined reference to `llvm::Value::print(llvm::raw_ostream&, bool) const'
/usr/bin/ld: LVIRReader.cpp:(.text._ZN4llvm11logicalview10LVIRReader20printAllInstructionsEPNS_10BasicBlockE+0x121): undefined reference to `llvm::DbgMarker::getDbgRecordRange()'
/usr/bin/ld: LVIRReader.cpp:(.text._ZN4llvm11logicalview10LVIRReader20printAllInstructionsEPNS_10BasicBlockE+0x19e): undefined reference to `llvm::DbgRecordParamRef<llvm::DILocalVariable>::get() const'
/usr/bin/ld: LVIRReader.cpp:(.text._ZN4llvm11logicalview10LVIRReader20printAllInstructionsEPNS_10BasicBlockE+0x1ad): undefined reference to `llvm::Metadata::dump(llvm::Module const*) const'

@llvm-ci

llvm-ci commented May 27, 2026

Copy link
Copy Markdown

LLVM Buildbot has detected a new failure on builder amdgpu-offload-build-only running on AMD-bb-w-01 while building llvm at step 4 "annotate".

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

Here is the relevant piece of the build log for the reference
Step 4 (annotate) failure: '../llvm-zorg/zorg/buildbot/builders/annotated/amdgpu-offload-cmake.py --jobs=32' (failure)
...
-- For x86_64 builtins preferring x86_64/floatdidf.c to floatdidf.c
-- For x86_64 builtins preferring x86_64/floatdisf.c to floatdisf.c
-- For x86_64 builtins preferring x86_64/floatundidf.S to floatundidf.c
-- For x86_64 builtins preferring x86_64/floatundisf.S to floatundisf.c
-- For x86_64 builtins preferring x86_64/floatdixf.c to floatdixf.c
-- For x86_64 builtins preferring x86_64/floatundixf.S to floatundixf.c
-- Configuring done (4.0s)
-- Generating done (0.0s)
-- Build files have been written to: /home/botworker/bbot/amdgpu-offload-build-only/build/runtimes/builtins-bins
[8514/8644] Linking CXX shared library lib/libLLVMDebugInfoLogicalView.so.23.0git
FAILED: lib/libLLVMDebugInfoLogicalView.so.23.0git 
: && /opt/rh/gcc-toolset-13/root/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-dangling-reference -Wno-redundant-move -Wno-pessimizing-move -Wno-array-bounds -Wno-stringop-overread -Wno-dangling-pointer -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-build-only/build/./lib  -Wl,--gc-sections -shared -Wl,-soname,libLLVMDebugInfoLogicalView.so.23.0git -o lib/libLLVMDebugInfoLogicalView.so.23.0git lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVCompare.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVElement.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVLine.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVLocation.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVObject.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVOptions.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVRange.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVReader.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVScope.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVSort.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVSourceLanguage.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVSupport.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVSymbol.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVType.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/LVReaderHandler.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVBinaryReader.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVCodeViewReader.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVCodeViewVisitor.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVDWARFReader.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o  -Wl,-rpath,"\$ORIGIN/../lib:/home/botworker/bbot/amdgpu-offload-build-only/build/lib:"  lib/libLLVMAsmPrinter.so.23.0git  lib/libLLVMDebugInfoPDB.so.23.0git  lib/libLLVMDebugInfoCodeView.so.23.0git  lib/libLLVMDebugInfoDWARF.so.23.0git  lib/libLLVMObject.so.23.0git  lib/libLLVMMC.so.23.0git  lib/libLLVMDebugInfoDWARFLowLevel.so.23.0git  lib/libLLVMBinaryFormat.so.23.0git  lib/libLLVMTargetParser.so.23.0git  lib/libLLVMSupport.so.23.0git  lib/libLLVMDemangle.so.23.0git  -Wl,-rpath-link,/home/botworker/bbot/amdgpu-offload-build-only/build/lib && :
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o: in function `llvm::DINode::getStringOperand(unsigned int) const':
LVIRReader.cpp:(.text._ZNK4llvm6DINode16getStringOperandEj[_ZNK4llvm6DINode16getStringOperandEj]+0x39): undefined reference to `llvm::MDString::getString() const'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o: in function `llvm::DIMacroNode::getStringOperand(unsigned int) const':
LVIRReader.cpp:(.text._ZNK4llvm11DIMacroNode16getStringOperandEj[_ZNK4llvm11DIMacroNode16getStringOperandEj]+0x39): undefined reference to `llvm::MDString::getString() const'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o: in function `llvm::logicalview::LVIRReader::getMDFile(llvm::MDNode const*) const [clone .localalias]':
LVIRReader.cpp:(.text._ZNK4llvm11logicalview10LVIRReader9getMDFileEPKNS_6MDNodeE+0x117): undefined reference to `llvm::Metadata::dump(llvm::Module const*) const'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o: in function `llvm::logicalview::LVIRReader::getMDName(llvm::DINode const*) const [clone .localalias]':
LVIRReader.cpp:(.text._ZNK4llvm11logicalview10LVIRReader9getMDNameEPKNS_6DINodeE+0xb3): undefined reference to `llvm::Metadata::dump(llvm::Module const*) const'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: LVIRReader.cpp:(.text._ZNK4llvm11logicalview10LVIRReader9getMDNameEPKNS_6DINodeE+0x5d): undefined reference to `llvm::DIScope::getName() const'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o: in function `llvm::logicalview::LVIRReader::getMDScope(llvm::DINode const*) const [clone .localalias]':
LVIRReader.cpp:(.text._ZNK4llvm11logicalview10LVIRReader10getMDScopeEPKNS_6DINodeE+0xec): undefined reference to `llvm::Metadata::dump(llvm::Module const*) const'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: LVIRReader.cpp:(.text._ZNK4llvm11logicalview10LVIRReader10getMDScopeEPKNS_6DINodeE+0x15e): undefined reference to `llvm::DIScope::getScope() const'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o: in function `llvm::logicalview::LVIRReader::constructGenericSubrange(llvm::logicalview::LVScopeArray*, llvm::DIGenericSubrange const*, llvm::logicalview::LVType*) [clone .localalias]':
LVIRReader.cpp:(.text._ZN4llvm11logicalview10LVIRReader24constructGenericSubrangeEPNS0_12LVScopeArrayEPKNS_17DIGenericSubrangeEPNS0_6LVTypeE+0xcb): undefined reference to `llvm::Metadata::dump(llvm::Module const*) const'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o: in function `llvm::logicalview::LVIRReader::printAllInstructions(llvm::BasicBlock*) [clone .localalias]':
LVIRReader.cpp:(.text._ZN4llvm11logicalview10LVIRReader20printAllInstructionsEPNS_10BasicBlockE+0x1e): undefined reference to `llvm::Function::getSubprogram() const'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: LVIRReader.cpp:(.text._ZN4llvm11logicalview10LVIRReader20printAllInstructionsEPNS_10BasicBlockE+0xe7): undefined reference to `llvm::Value::print(llvm::raw_ostream&, bool) const'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: LVIRReader.cpp:(.text._ZN4llvm11logicalview10LVIRReader20printAllInstructionsEPNS_10BasicBlockE+0x104): undefined reference to `llvm::DbgMarker::getDbgRecordRange()'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: LVIRReader.cpp:(.text._ZN4llvm11logicalview10LVIRReader20printAllInstructionsEPNS_10BasicBlockE+0x18b): undefined reference to `llvm::DbgRecordParamRef<llvm::DILocalVariable>::get() const'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: LVIRReader.cpp:(.text._ZN4llvm11logicalview10LVIRReader20printAllInstructionsEPNS_10BasicBlockE+0x19a): undefined reference to `llvm::Metadata::dump(llvm::Module const*) const'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: LVIRReader.cpp:(.text._ZN4llvm11logicalview10LVIRReader20printAllInstructionsEPNS_10BasicBlockE+0x1f3): undefined reference to `llvm::Metadata::dump(llvm::Module const*) const'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o: in function `llvm::logicalview::LVIRReader::getOrCreateSourceID(llvm::DIFile const*) [clone .localalias]':
LVIRReader.cpp:(.text._ZN4llvm11logicalview10LVIRReader19getOrCreateSourceIDEPKNS_6DIFileE+0x594): undefined reference to `llvm::Metadata::dump(llvm::Module const*) const'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o: in function `llvm::logicalview::LVIRReader::addSourceLine(llvm::logicalview::LVElement*, unsigned int, llvm::DIFile const*) [clone .localalias]':
LVIRReader.cpp:(.text._ZN4llvm11logicalview10LVIRReader13addSourceLineEPNS0_9LVElementEjPKNS_6DIFileE+0xb6): undefined reference to `llvm::Metadata::dump(llvm::Module const*) const'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o: in function `llvm::logicalview::LVIRReader::constructElement(llvm::DINode const*) [clone .localalias]':
LVIRReader.cpp:(.text._ZN4llvm11logicalview10LVIRReader16constructElementEPKNS_6DINodeE+0x14): undefined reference to `llvm::DINode::getTag() const'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o: in function `llvm::logicalview::LVIRReader::constructSubrange(llvm::logicalview::LVScopeArray*, llvm::DISubrange const*, llvm::logicalview::LVType*) [clone .localalias]':
LVIRReader.cpp:(.text._ZN4llvm11logicalview10LVIRReader17constructSubrangeEPNS0_12LVScopeArrayEPKNS_10DISubrangeEPNS0_6LVTypeE+0x74): undefined reference to `llvm::DISubrange::getCount() const'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: LVIRReader.cpp:(.text._ZN4llvm11logicalview10LVIRReader17constructSubrangeEPNS0_12LVScopeArrayEPKNS_10DISubrangeEPNS0_6LVTypeE+0x8f): undefined reference to `llvm::DISubrange::getUpperBound() const'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: LVIRReader.cpp:(.text._ZN4llvm11logicalview10LVIRReader17constructSubrangeEPNS0_12LVScopeArrayEPKNS_10DISubrangeEPNS0_6LVTypeE+0x10d): undefined reference to `llvm::Metadata::dump(llvm::Module const*) const'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: LVIRReader.cpp:(.text._ZN4llvm11logicalview10LVIRReader17constructSubrangeEPNS0_12LVScopeArrayEPKNS_10DISubrangeEPNS0_6LVTypeE+0x17c): undefined reference to `llvm::DISubrange::getLowerBound() const'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o: in function `llvm::logicalview::LVIRReader::applySubprogramDefinitionAttributes(llvm::logicalview::LVScope*, llvm::DISubprogram const*, bool) [clone .localalias]':
LVIRReader.cpp:(.text._ZN4llvm11logicalview10LVIRReader35applySubprogramDefinitionAttributesEPNS0_7LVScopeEPKNS_12DISubprogramEb+0x1bc): undefined reference to `llvm::Metadata::dump(llvm::Module const*) const'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o: in function `llvm::logicalview::LVIRReader::applySubprogramAttributes(llvm::logicalview::LVScope*, llvm::DISubprogram const*, bool) [clone .localalias]':
LVIRReader.cpp:(.text._ZN4llvm11logicalview10LVIRReader25applySubprogramAttributesEPNS0_7LVScopeEPKNS_12DISubprogramEb+0x1fd): undefined reference to `llvm::Metadata::dump(llvm::Module const*) const'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o: in function `llvm::logicalview::LVIRReader::getOrCreateSubprogram(llvm::logicalview::LVScope*, llvm::DISubprogram const*, bool) [clone .localalias]':
Step 7 (build cmake config) failure: build cmake config (failure)
...
-- For x86_64 builtins preferring x86_64/floatdidf.c to floatdidf.c
-- For x86_64 builtins preferring x86_64/floatdisf.c to floatdisf.c
-- For x86_64 builtins preferring x86_64/floatundidf.S to floatundidf.c
-- For x86_64 builtins preferring x86_64/floatundisf.S to floatundisf.c
-- For x86_64 builtins preferring x86_64/floatdixf.c to floatdixf.c
-- For x86_64 builtins preferring x86_64/floatundixf.S to floatundixf.c
-- Configuring done (4.0s)
-- Generating done (0.0s)
-- Build files have been written to: /home/botworker/bbot/amdgpu-offload-build-only/build/runtimes/builtins-bins
[8514/8644] Linking CXX shared library lib/libLLVMDebugInfoLogicalView.so.23.0git
FAILED: lib/libLLVMDebugInfoLogicalView.so.23.0git 
: && /opt/rh/gcc-toolset-13/root/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-dangling-reference -Wno-redundant-move -Wno-pessimizing-move -Wno-array-bounds -Wno-stringop-overread -Wno-dangling-pointer -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-build-only/build/./lib  -Wl,--gc-sections -shared -Wl,-soname,libLLVMDebugInfoLogicalView.so.23.0git -o lib/libLLVMDebugInfoLogicalView.so.23.0git lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVCompare.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVElement.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVLine.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVLocation.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVObject.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVOptions.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVRange.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVReader.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVScope.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVSort.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVSourceLanguage.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVSupport.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVSymbol.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVType.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/LVReaderHandler.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVBinaryReader.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVCodeViewReader.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVCodeViewVisitor.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVDWARFReader.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o  -Wl,-rpath,"\$ORIGIN/../lib:/home/botworker/bbot/amdgpu-offload-build-only/build/lib:"  lib/libLLVMAsmPrinter.so.23.0git  lib/libLLVMDebugInfoPDB.so.23.0git  lib/libLLVMDebugInfoCodeView.so.23.0git  lib/libLLVMDebugInfoDWARF.so.23.0git  lib/libLLVMObject.so.23.0git  lib/libLLVMMC.so.23.0git  lib/libLLVMDebugInfoDWARFLowLevel.so.23.0git  lib/libLLVMBinaryFormat.so.23.0git  lib/libLLVMTargetParser.so.23.0git  lib/libLLVMSupport.so.23.0git  lib/libLLVMDemangle.so.23.0git  -Wl,-rpath-link,/home/botworker/bbot/amdgpu-offload-build-only/build/lib && :
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o: in function `llvm::DINode::getStringOperand(unsigned int) const':
LVIRReader.cpp:(.text._ZNK4llvm6DINode16getStringOperandEj[_ZNK4llvm6DINode16getStringOperandEj]+0x39): undefined reference to `llvm::MDString::getString() const'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o: in function `llvm::DIMacroNode::getStringOperand(unsigned int) const':
LVIRReader.cpp:(.text._ZNK4llvm11DIMacroNode16getStringOperandEj[_ZNK4llvm11DIMacroNode16getStringOperandEj]+0x39): undefined reference to `llvm::MDString::getString() const'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o: in function `llvm::logicalview::LVIRReader::getMDFile(llvm::MDNode const*) const [clone .localalias]':
LVIRReader.cpp:(.text._ZNK4llvm11logicalview10LVIRReader9getMDFileEPKNS_6MDNodeE+0x117): undefined reference to `llvm::Metadata::dump(llvm::Module const*) const'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o: in function `llvm::logicalview::LVIRReader::getMDName(llvm::DINode const*) const [clone .localalias]':
LVIRReader.cpp:(.text._ZNK4llvm11logicalview10LVIRReader9getMDNameEPKNS_6DINodeE+0xb3): undefined reference to `llvm::Metadata::dump(llvm::Module const*) const'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: LVIRReader.cpp:(.text._ZNK4llvm11logicalview10LVIRReader9getMDNameEPKNS_6DINodeE+0x5d): undefined reference to `llvm::DIScope::getName() const'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o: in function `llvm::logicalview::LVIRReader::getMDScope(llvm::DINode const*) const [clone .localalias]':
LVIRReader.cpp:(.text._ZNK4llvm11logicalview10LVIRReader10getMDScopeEPKNS_6DINodeE+0xec): undefined reference to `llvm::Metadata::dump(llvm::Module const*) const'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: LVIRReader.cpp:(.text._ZNK4llvm11logicalview10LVIRReader10getMDScopeEPKNS_6DINodeE+0x15e): undefined reference to `llvm::DIScope::getScope() const'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o: in function `llvm::logicalview::LVIRReader::constructGenericSubrange(llvm::logicalview::LVScopeArray*, llvm::DIGenericSubrange const*, llvm::logicalview::LVType*) [clone .localalias]':
LVIRReader.cpp:(.text._ZN4llvm11logicalview10LVIRReader24constructGenericSubrangeEPNS0_12LVScopeArrayEPKNS_17DIGenericSubrangeEPNS0_6LVTypeE+0xcb): undefined reference to `llvm::Metadata::dump(llvm::Module const*) const'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o: in function `llvm::logicalview::LVIRReader::printAllInstructions(llvm::BasicBlock*) [clone .localalias]':
LVIRReader.cpp:(.text._ZN4llvm11logicalview10LVIRReader20printAllInstructionsEPNS_10BasicBlockE+0x1e): undefined reference to `llvm::Function::getSubprogram() const'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: LVIRReader.cpp:(.text._ZN4llvm11logicalview10LVIRReader20printAllInstructionsEPNS_10BasicBlockE+0xe7): undefined reference to `llvm::Value::print(llvm::raw_ostream&, bool) const'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: LVIRReader.cpp:(.text._ZN4llvm11logicalview10LVIRReader20printAllInstructionsEPNS_10BasicBlockE+0x104): undefined reference to `llvm::DbgMarker::getDbgRecordRange()'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: LVIRReader.cpp:(.text._ZN4llvm11logicalview10LVIRReader20printAllInstructionsEPNS_10BasicBlockE+0x18b): undefined reference to `llvm::DbgRecordParamRef<llvm::DILocalVariable>::get() const'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: LVIRReader.cpp:(.text._ZN4llvm11logicalview10LVIRReader20printAllInstructionsEPNS_10BasicBlockE+0x19a): undefined reference to `llvm::Metadata::dump(llvm::Module const*) const'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: LVIRReader.cpp:(.text._ZN4llvm11logicalview10LVIRReader20printAllInstructionsEPNS_10BasicBlockE+0x1f3): undefined reference to `llvm::Metadata::dump(llvm::Module const*) const'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o: in function `llvm::logicalview::LVIRReader::getOrCreateSourceID(llvm::DIFile const*) [clone .localalias]':
LVIRReader.cpp:(.text._ZN4llvm11logicalview10LVIRReader19getOrCreateSourceIDEPKNS_6DIFileE+0x594): undefined reference to `llvm::Metadata::dump(llvm::Module const*) const'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o: in function `llvm::logicalview::LVIRReader::addSourceLine(llvm::logicalview::LVElement*, unsigned int, llvm::DIFile const*) [clone .localalias]':
LVIRReader.cpp:(.text._ZN4llvm11logicalview10LVIRReader13addSourceLineEPNS0_9LVElementEjPKNS_6DIFileE+0xb6): undefined reference to `llvm::Metadata::dump(llvm::Module const*) const'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o: in function `llvm::logicalview::LVIRReader::constructElement(llvm::DINode const*) [clone .localalias]':
LVIRReader.cpp:(.text._ZN4llvm11logicalview10LVIRReader16constructElementEPKNS_6DINodeE+0x14): undefined reference to `llvm::DINode::getTag() const'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o: in function `llvm::logicalview::LVIRReader::constructSubrange(llvm::logicalview::LVScopeArray*, llvm::DISubrange const*, llvm::logicalview::LVType*) [clone .localalias]':
LVIRReader.cpp:(.text._ZN4llvm11logicalview10LVIRReader17constructSubrangeEPNS0_12LVScopeArrayEPKNS_10DISubrangeEPNS0_6LVTypeE+0x74): undefined reference to `llvm::DISubrange::getCount() const'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: LVIRReader.cpp:(.text._ZN4llvm11logicalview10LVIRReader17constructSubrangeEPNS0_12LVScopeArrayEPKNS_10DISubrangeEPNS0_6LVTypeE+0x8f): undefined reference to `llvm::DISubrange::getUpperBound() const'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: LVIRReader.cpp:(.text._ZN4llvm11logicalview10LVIRReader17constructSubrangeEPNS0_12LVScopeArrayEPKNS_10DISubrangeEPNS0_6LVTypeE+0x10d): undefined reference to `llvm::Metadata::dump(llvm::Module const*) const'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: LVIRReader.cpp:(.text._ZN4llvm11logicalview10LVIRReader17constructSubrangeEPNS0_12LVScopeArrayEPKNS_10DISubrangeEPNS0_6LVTypeE+0x17c): undefined reference to `llvm::DISubrange::getLowerBound() const'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o: in function `llvm::logicalview::LVIRReader::applySubprogramDefinitionAttributes(llvm::logicalview::LVScope*, llvm::DISubprogram const*, bool) [clone .localalias]':
LVIRReader.cpp:(.text._ZN4llvm11logicalview10LVIRReader35applySubprogramDefinitionAttributesEPNS0_7LVScopeEPKNS_12DISubprogramEb+0x1bc): undefined reference to `llvm::Metadata::dump(llvm::Module const*) const'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o: in function `llvm::logicalview::LVIRReader::applySubprogramAttributes(llvm::logicalview::LVScope*, llvm::DISubprogram const*, bool) [clone .localalias]':
LVIRReader.cpp:(.text._ZN4llvm11logicalview10LVIRReader25applySubprogramAttributesEPNS0_7LVScopeEPKNS_12DISubprogramEb+0x1fd): undefined reference to `llvm::Metadata::dump(llvm::Module const*) const'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o: in function `llvm::logicalview::LVIRReader::getOrCreateSubprogram(llvm::logicalview::LVScope*, llvm::DISubprogram const*, bool) [clone .localalias]':

@llvm-ci

llvm-ci commented May 27, 2026

Copy link
Copy Markdown

LLVM Buildbot has detected a new failure on builder polly-x86_64-linux-shared-plugin running on polly-x86_64-gce2 while building llvm at step 3 "annotate".

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

Here is the relevant piece of the build log for the reference
Step 3 (annotate) failure: 'python ../llvm.src/polly/ci/polly-x86_64-linux-shared-plugin.py ...' (failure)
...
[ 70%/202.845s :: 892->2->2137 (of 3030)] Creating library symlink lib/libLLVMMIRParser.so
[ 70%/202.933s :: 891->2->2138 (of 3030)] Linking CXX shared library lib/libLLVMGlobalISel.so.23.0git
[ 70%/202.949s :: 890->2->2139 (of 3030)] Creating library symlink lib/libLLVMGlobalISel.so
[ 70%/203.004s :: 889->2->2140 (of 3030)] Linking CXX shared library lib/libLLVMDWARFLinker.so.23.0git
[ 70%/203.019s :: 888->2->2141 (of 3030)] Creating library symlink lib/libLLVMDWARFLinker.so
[ 70%/203.081s :: 887->2->2142 (of 3030)] Linking CXX shared library lib/libLLVMDWARFLinkerClassic.so.23.0git
[ 70%/203.097s :: 886->2->2143 (of 3030)] Creating library symlink lib/libLLVMDWARFLinkerClassic.so
[ 70%/203.162s :: 885->2->2144 (of 3030)] Linking CXX shared library lib/libLLVMDWARFLinkerParallel.so.23.0git
[ 70%/203.178s :: 884->2->2145 (of 3030)] Creating library symlink lib/libLLVMDWARFLinkerParallel.so
[ 70%/203.247s :: 883->2->2146 (of 3030)] Linking CXX shared library lib/libLLVMDebugInfoLogicalView.so.23.0git
FAILED: lib/libLLVMDebugInfoLogicalView.so.23.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-dangling-reference -Wno-redundant-move -Wno-pessimizing-move -Wno-array-bounds -Wno-stringop-overread -Wno-dangling-pointer -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 -fuse-ld=lld -Wl,--color-diagnostics   -Wl,--gc-sections -shared -Wl,-soname,libLLVMDebugInfoLogicalView.so.23.0git -o lib/libLLVMDebugInfoLogicalView.so.23.0git lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVCompare.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVElement.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVLine.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVLocation.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVObject.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVOptions.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVRange.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVReader.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVScope.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVSort.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVSourceLanguage.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVSupport.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVSymbol.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVType.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/LVReaderHandler.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVBinaryReader.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVCodeViewReader.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVCodeViewVisitor.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVDWARFReader.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o  -Wl,-rpath,"\$ORIGIN/../lib:/home/worker/workers/polly-x86_64-gce2/polly-x86_64-linux-shared-plugin/build/llvm.build/lib:"  lib/libLLVMAsmPrinter.so.23.0git  lib/libLLVMDebugInfoPDB.so.23.0git  lib/libLLVMDebugInfoCodeView.so.23.0git  lib/libLLVMDebugInfoDWARF.so.23.0git  lib/libLLVMObject.so.23.0git  lib/libLLVMMC.so.23.0git  lib/libLLVMDebugInfoDWARFLowLevel.so.23.0git  lib/libLLVMBinaryFormat.so.23.0git  lib/libLLVMTargetParser.so.23.0git  lib/libLLVMSupport.so.23.0git  lib/libLLVMDemangle.so.23.0git  -Wl,-rpath-link,/home/worker/workers/polly-x86_64-gce2/polly-x86_64-linux-shared-plugin/build/llvm.build/lib && :
ld.lld: error: undefined symbol: llvm::MDString::getString() const
>>> referenced by LVIRReader.cpp
>>>               lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o:(llvm::DINode::getStringOperand(unsigned int) const)
>>> referenced by LVIRReader.cpp
>>>               lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o:(llvm::DIMacroNode::getStringOperand(unsigned int) const)
>>> referenced by LVIRReader.cpp
>>>               lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o:(llvm::logicalview::LVIRReader::constructTemplateValueParameter(llvm::logicalview::LVElement*, llvm::DITemplateValueParameter const*) (.localalias))

ld.lld: error: undefined symbol: llvm::Metadata::dump(llvm::Module const*) const
>>> referenced by LVIRReader.cpp
>>>               lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o:(llvm::logicalview::LVIRReader::getMDFile(llvm::MDNode const*) const (.localalias))
>>> referenced by LVIRReader.cpp
>>>               lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o:(llvm::logicalview::LVIRReader::getMDName(llvm::DINode const*) const (.localalias))
>>> referenced by LVIRReader.cpp
>>>               lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o:(llvm::logicalview::LVIRReader::getMDScope(llvm::DINode const*) const (.localalias))
>>> referenced 48 more times

ld.lld: error: undefined symbol: llvm::DIScope::getName() const
>>> referenced by LVIRReader.cpp
>>>               lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o:(llvm::logicalview::LVIRReader::getMDName(llvm::DINode const*) const (.localalias))

ld.lld: error: undefined symbol: llvm::DIScope::getScope() const
>>> referenced by LVIRReader.cpp
>>>               lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o:(llvm::logicalview::LVIRReader::getMDScope(llvm::DINode const*) const (.localalias))

ld.lld: error: undefined symbol: llvm::Function::getSubprogram() const
>>> referenced by LVIRReader.cpp
>>>               lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o:(llvm::logicalview::LVIRReader::printAllInstructions(llvm::BasicBlock*) (.localalias))
>>> referenced by LVIRReader.cpp
>>>               lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o:(llvm::logicalview::LVIRReader::processBasicBlocks(llvm::Function&) (.localalias))
>>> referenced by LVIRReader.cpp
>>>               lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o:(llvm::logicalview::LVIRReader::createScopes() (.localalias))

ld.lld: error: undefined symbol: llvm::Value::print(llvm::raw_ostream&, bool) const
>>> referenced by LVIRReader.cpp
>>>               lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o:(llvm::logicalview::LVIRReader::printAllInstructions(llvm::BasicBlock*) (.localalias))
>>> referenced by LVIRReader.cpp
Step 7 (build-llvm) failure: build-llvm (failure)
...
[ 70%/202.845s :: 892->2->2137 (of 3030)] Creating library symlink lib/libLLVMMIRParser.so
[ 70%/202.933s :: 891->2->2138 (of 3030)] Linking CXX shared library lib/libLLVMGlobalISel.so.23.0git
[ 70%/202.949s :: 890->2->2139 (of 3030)] Creating library symlink lib/libLLVMGlobalISel.so
[ 70%/203.004s :: 889->2->2140 (of 3030)] Linking CXX shared library lib/libLLVMDWARFLinker.so.23.0git
[ 70%/203.019s :: 888->2->2141 (of 3030)] Creating library symlink lib/libLLVMDWARFLinker.so
[ 70%/203.081s :: 887->2->2142 (of 3030)] Linking CXX shared library lib/libLLVMDWARFLinkerClassic.so.23.0git
[ 70%/203.097s :: 886->2->2143 (of 3030)] Creating library symlink lib/libLLVMDWARFLinkerClassic.so
[ 70%/203.162s :: 885->2->2144 (of 3030)] Linking CXX shared library lib/libLLVMDWARFLinkerParallel.so.23.0git
[ 70%/203.178s :: 884->2->2145 (of 3030)] Creating library symlink lib/libLLVMDWARFLinkerParallel.so
[ 70%/203.247s :: 883->2->2146 (of 3030)] Linking CXX shared library lib/libLLVMDebugInfoLogicalView.so.23.0git
FAILED: lib/libLLVMDebugInfoLogicalView.so.23.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-dangling-reference -Wno-redundant-move -Wno-pessimizing-move -Wno-array-bounds -Wno-stringop-overread -Wno-dangling-pointer -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 -fuse-ld=lld -Wl,--color-diagnostics   -Wl,--gc-sections -shared -Wl,-soname,libLLVMDebugInfoLogicalView.so.23.0git -o lib/libLLVMDebugInfoLogicalView.so.23.0git lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVCompare.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVElement.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVLine.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVLocation.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVObject.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVOptions.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVRange.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVReader.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVScope.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVSort.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVSourceLanguage.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVSupport.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVSymbol.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVType.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/LVReaderHandler.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVBinaryReader.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVCodeViewReader.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVCodeViewVisitor.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVDWARFReader.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o  -Wl,-rpath,"\$ORIGIN/../lib:/home/worker/workers/polly-x86_64-gce2/polly-x86_64-linux-shared-plugin/build/llvm.build/lib:"  lib/libLLVMAsmPrinter.so.23.0git  lib/libLLVMDebugInfoPDB.so.23.0git  lib/libLLVMDebugInfoCodeView.so.23.0git  lib/libLLVMDebugInfoDWARF.so.23.0git  lib/libLLVMObject.so.23.0git  lib/libLLVMMC.so.23.0git  lib/libLLVMDebugInfoDWARFLowLevel.so.23.0git  lib/libLLVMBinaryFormat.so.23.0git  lib/libLLVMTargetParser.so.23.0git  lib/libLLVMSupport.so.23.0git  lib/libLLVMDemangle.so.23.0git  -Wl,-rpath-link,/home/worker/workers/polly-x86_64-gce2/polly-x86_64-linux-shared-plugin/build/llvm.build/lib && :
ld.lld: error: undefined symbol: llvm::MDString::getString() const
>>> referenced by LVIRReader.cpp
>>>               lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o:(llvm::DINode::getStringOperand(unsigned int) const)
>>> referenced by LVIRReader.cpp
>>>               lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o:(llvm::DIMacroNode::getStringOperand(unsigned int) const)
>>> referenced by LVIRReader.cpp
>>>               lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o:(llvm::logicalview::LVIRReader::constructTemplateValueParameter(llvm::logicalview::LVElement*, llvm::DITemplateValueParameter const*) (.localalias))

ld.lld: error: undefined symbol: llvm::Metadata::dump(llvm::Module const*) const
>>> referenced by LVIRReader.cpp
>>>               lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o:(llvm::logicalview::LVIRReader::getMDFile(llvm::MDNode const*) const (.localalias))
>>> referenced by LVIRReader.cpp
>>>               lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o:(llvm::logicalview::LVIRReader::getMDName(llvm::DINode const*) const (.localalias))
>>> referenced by LVIRReader.cpp
>>>               lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o:(llvm::logicalview::LVIRReader::getMDScope(llvm::DINode const*) const (.localalias))
>>> referenced 48 more times

ld.lld: error: undefined symbol: llvm::DIScope::getName() const
>>> referenced by LVIRReader.cpp
>>>               lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o:(llvm::logicalview::LVIRReader::getMDName(llvm::DINode const*) const (.localalias))

ld.lld: error: undefined symbol: llvm::DIScope::getScope() const
>>> referenced by LVIRReader.cpp
>>>               lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o:(llvm::logicalview::LVIRReader::getMDScope(llvm::DINode const*) const (.localalias))

ld.lld: error: undefined symbol: llvm::Function::getSubprogram() const
>>> referenced by LVIRReader.cpp
>>>               lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o:(llvm::logicalview::LVIRReader::printAllInstructions(llvm::BasicBlock*) (.localalias))
>>> referenced by LVIRReader.cpp
>>>               lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o:(llvm::logicalview::LVIRReader::processBasicBlocks(llvm::Function&) (.localalias))
>>> referenced by LVIRReader.cpp
>>>               lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o:(llvm::logicalview::LVIRReader::createScopes() (.localalias))

ld.lld: error: undefined symbol: llvm::Value::print(llvm::raw_ostream&, bool) const
>>> referenced by LVIRReader.cpp
>>>               lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o:(llvm::logicalview::LVIRReader::printAllInstructions(llvm::BasicBlock*) (.localalias))
>>> referenced by LVIRReader.cpp

@llvm-ci

llvm-ci commented May 27, 2026

Copy link
Copy Markdown

LLVM Buildbot has detected a new failure on builder llvm-nvptx-nvidia-ubuntu running on as-builder-7 while building llvm at step 5 "build-unified-tree".

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

Here is the relevant piece of the build log for the reference
Step 5 (build-unified-tree) failure: build (failure)
...
56.739 [317/4/2618] Building CXX object lib/CodeGen/AsmPrinter/CMakeFiles/LLVMAsmPrinter.dir/AsmPrinter.cpp.o
56.831 [316/4/2619] Building X86GenSubtargetInfo.inc...
56.923 [316/3/2620] Linking CXX shared library lib/libLLVMAsmPrinter.so.23.0git
56.946 [315/3/2621] Creating library symlink lib/libLLVMAsmPrinter.so
57.060 [311/6/2622] Linking CXX shared library lib/libLLVMDWARFLinkerClassic.so.23.0git
57.075 [310/6/2623] Linking CXX shared library lib/libLLVMDWARFLinkerParallel.so.23.0git
57.083 [309/6/2624] Building CXX object lib/LTO/CMakeFiles/LLVMLTO.dir/LTO.cpp.o
57.085 [308/6/2625] Creating library symlink lib/libLLVMDWARFLinkerClassic.so
57.098 [308/5/2626] Creating library symlink lib/libLLVMDWARFLinkerParallel.so
57.135 [308/4/2627] Linking CXX shared library lib/libLLVMDebugInfoLogicalView.so.23.0git
FAILED: lib/libLLVMDebugInfoLogicalView.so.23.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-dangling-reference -Wno-redundant-move -Wno-pessimizing-move -Wno-array-bounds -Wno-stringop-overread -Wno-dangling-pointer -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 -fuse-ld=gold   -Wl,--gc-sections -shared -Wl,-soname,libLLVMDebugInfoLogicalView.so.23.0git -o lib/libLLVMDebugInfoLogicalView.so.23.0git lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVCompare.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVElement.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVLine.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVLocation.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVObject.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVOptions.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVRange.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVReader.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVScope.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVSort.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVSourceLanguage.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVSupport.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVSymbol.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVType.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/LVReaderHandler.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVBinaryReader.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVCodeViewReader.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVCodeViewVisitor.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVDWARFReader.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o  -Wl,-rpath,"\$ORIGIN/../lib:/home/buildbot/worker/as-builder-7/llvm-nvptx-nvidia-ubuntu/build/lib:"  lib/libLLVMAsmPrinter.so.23.0git  lib/libLLVMDebugInfoPDB.so.23.0git  lib/libLLVMDebugInfoCodeView.so.23.0git  lib/libLLVMDebugInfoDWARF.so.23.0git  lib/libLLVMObject.so.23.0git  lib/libLLVMMC.so.23.0git  lib/libLLVMDebugInfoDWARFLowLevel.so.23.0git  lib/libLLVMBinaryFormat.so.23.0git  lib/libLLVMTargetParser.so.23.0git  lib/libLLVMSupport.so.23.0git  lib/libLLVMDemangle.so.23.0git  -Wl,-rpath-link,/home/buildbot/worker/as-builder-7/llvm-nvptx-nvidia-ubuntu/build/lib && :
lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/LVReaderHandler.cpp.o:LVReaderHandler.cpp:function llvm::ValueMapCallbackVH<llvm::Value*, unsigned long, llvm::SSAValueNameMap::Config>::deleted():(.text._ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE7deletedEv+0x65): error: undefined reference to 'llvm::ValueHandleBase::AddToExistingUseList(llvm::ValueHandleBase**)'
lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/LVReaderHandler.cpp.o:LVReaderHandler.cpp:function llvm::ValueMapCallbackVH<llvm::Value*, unsigned long, llvm::SSAValueNameMap::Config>::deleted():(.text._ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE7deletedEv+0x125): error: undefined reference to 'llvm::ValueHandleBase::RemoveFromUseList()'
lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/LVReaderHandler.cpp.o:LVReaderHandler.cpp:function llvm::ValueMapCallbackVH<llvm::Value*, unsigned long, llvm::SSAValueNameMap::Config>::deleted():(.text._ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE7deletedEv+0x162): error: undefined reference to 'llvm::ValueHandleBase::AddToExistingUseList(llvm::ValueHandleBase**)'
lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/LVReaderHandler.cpp.o:LVReaderHandler.cpp:function llvm::ValueMapCallbackVH<llvm::Value*, unsigned long, llvm::SSAValueNameMap::Config>::deleted():(.text._ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE7deletedEv+0x177): error: undefined reference to 'vtable for llvm::CallbackVH'
/usr/bin/ld.gold: the vtable symbol may be undefined because the class is missing its key function
lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/LVReaderHandler.cpp.o:LVReaderHandler.cpp:function llvm::ValueMapCallbackVH<llvm::Value*, unsigned long, llvm::SSAValueNameMap::Config>::deleted():(.text._ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE7deletedEv+0x1a5): error: undefined reference to 'llvm::ValueHandleBase::RemoveFromUseList()'
lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/LVReaderHandler.cpp.o:LVReaderHandler.cpp:function llvm::ValueMapCallbackVH<llvm::Value*, unsigned long, llvm::SSAValueNameMap::Config>::deleted():(.text._ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE7deletedEv+0x1c3): error: undefined reference to 'vtable for llvm::CallbackVH'
/usr/bin/ld.gold: the vtable symbol may be undefined because the class is missing its key function
lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/LVReaderHandler.cpp.o:LVReaderHandler.cpp:function llvm::ValueMapCallbackVH<llvm::Value*, unsigned long, llvm::SSAValueNameMap::Config>::deleted():(.text._ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE7deletedEv+0x20b): error: undefined reference to 'llvm::ValueHandleBase::RemoveFromUseList()'
lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/LVReaderHandler.cpp.o:LVReaderHandler.cpp:function llvm::ValueMapCallbackVH<llvm::Value*, unsigned long, llvm::SSAValueNameMap::Config>::deleted():(.text._ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE7deletedEv+0x243): error: undefined reference to 'vtable for llvm::CallbackVH'
/usr/bin/ld.gold: the vtable symbol may be undefined because the class is missing its key function
lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/LVReaderHandler.cpp.o:LVReaderHandler.cpp:function llvm::ValueMapCallbackVH<llvm::Value*, unsigned long, llvm::SSAValueNameMap::Config>::deleted():(.text._ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE7deletedEv+0x25c): error: undefined reference to 'vtable for llvm::CallbackVH'
/usr/bin/ld.gold: the vtable symbol may be undefined because the class is missing its key function
lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/LVReaderHandler.cpp.o:LVReaderHandler.cpp:function llvm::ValueMapCallbackVH<llvm::Value*, unsigned long, llvm::SSAValueNameMap::Config>::allUsesReplacedWith(llvm::Value*):(.text._ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE19allUsesReplacedWithES2_+0x6f): error: undefined reference to 'llvm::ValueHandleBase::AddToExistingUseList(llvm::ValueHandleBase**)'
lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/LVReaderHandler.cpp.o:LVReaderHandler.cpp:function llvm::ValueMapCallbackVH<llvm::Value*, unsigned long, llvm::SSAValueNameMap::Config>::allUsesReplacedWith(llvm::Value*):(.text._ZN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEE19allUsesReplacedWithES2_+0xaf): error: undefined reference to 'llvm::ValueHandleBase::RemoveFromUseList()'
lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/LVReaderHandler.cpp.o:LVReaderHandler.cpp:function llvm::logicalview::LVReaderHandler::handleBuffer(std::vector<std::unique_ptr<llvm::logicalview::LVReader, std::default_delete<llvm::logicalview::LVReader> >, std::allocator<std::unique_ptr<llvm::logicalview::LVReader, std::default_delete<llvm::logicalview::LVReader> > > >&, llvm::StringRef, llvm::MemoryBufferRef, llvm::StringRef) [clone .localalias]:(.text._ZN4llvm11logicalview15LVReaderHandler12handleBufferERSt6vectorISt10unique_ptrINS0_8LVReaderESt14default_deleteIS4_EESaIS7_EENS_9StringRefENS_15MemoryBufferRefESB_+0x7f): error: undefined reference to 'llvm::LLVMContext::LLVMContext()'
lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/LVReaderHandler.cpp.o:LVReaderHandler.cpp:function llvm::logicalview::LVReaderHandler::handleBuffer(std::vector<std::unique_ptr<llvm::logicalview::LVReader, std::default_delete<llvm::logicalview::LVReader> >, std::allocator<std::unique_ptr<llvm::logicalview::LVReader, std::default_delete<llvm::logicalview::LVReader> > > >&, llvm::StringRef, llvm::MemoryBufferRef, llvm::StringRef) [clone .localalias]:(.text._ZN4llvm11logicalview15LVReaderHandler12handleBufferERSt6vectorISt10unique_ptrINS0_8LVReaderESt14default_deleteIS4_EESaIS7_EENS_9StringRefENS_15MemoryBufferRefESB_+0x1a0): error: undefined reference to 'llvm::LLVMContext::~LLVMContext()'
lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/LVReaderHandler.cpp.o:LVReaderHandler.cpp:vtable for llvm::ValueMapCallbackVH<llvm::Value*, unsigned long, llvm::SSAValueNameMap::Config>:(.data.rel.ro._ZTVN4llvm18ValueMapCallbackVHIPNS_5ValueEmNS_15SSAValueNameMap6ConfigEEE+0x10): error: undefined reference to 'llvm::CallbackVH::anchor()'
lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o:LVIRReader.cpp:function llvm::DINode::getStringOperand(unsigned int) const:(.text._ZNK4llvm6DINode16getStringOperandEj+0x3d): error: undefined reference to 'llvm::MDString::getString() const'
lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o:LVIRReader.cpp:function llvm::DIMacroNode::getStringOperand(unsigned int) const:(.text._ZNK4llvm11DIMacroNode16getStringOperandEj+0x3d): error: undefined reference to 'llvm::MDString::getString() const'
lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o:LVIRReader.cpp:function llvm::logicalview::LVIRReader::getMDFile(llvm::MDNode const*) const [clone .localalias]:(.text._ZNK4llvm11logicalview10LVIRReader9getMDFileEPKNS_6MDNodeE+0x117): error: undefined reference to 'llvm::Metadata::dump(llvm::Module const*) const'
lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o:LVIRReader.cpp:function llvm::logicalview::LVIRReader::getMDName(llvm::DINode const*) const [clone .localalias]:(.text._ZNK4llvm11logicalview10LVIRReader9getMDNameEPKNS_6DINodeE+0xb3): error: undefined reference to 'llvm::Metadata::dump(llvm::Module const*) const'
lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o:LVIRReader.cpp:function llvm::logicalview::LVIRReader::getMDName(llvm::DINode const*) const [clone .localalias]:(.text._ZNK4llvm11logicalview10LVIRReader9getMDNameEPKNS_6DINodeE+0x5d): error: undefined reference to 'llvm::DIScope::getName() const'
lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o:LVIRReader.cpp:function llvm::logicalview::LVIRReader::getMDScope(llvm::DINode const*) const [clone .localalias]:(.text._ZNK4llvm11logicalview10LVIRReader10getMDScopeEPKNS_6DINodeE+0xec): error: undefined reference to 'llvm::Metadata::dump(llvm::Module const*) const'
lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o:LVIRReader.cpp:function llvm::logicalview::LVIRReader::getMDScope(llvm::DINode const*) const [clone .localalias]:(.text._ZNK4llvm11logicalview10LVIRReader10getMDScopeEPKNS_6DINodeE+0x156): error: undefined reference to 'llvm::DIScope::getScope() const'
lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o:LVIRReader.cpp:function llvm::logicalview::LVIRReader::constructGenericSubrange(llvm::logicalview::LVScopeArray*, llvm::DIGenericSubrange const*, llvm::logicalview::LVType*) [clone .localalias]:(.text._ZN4llvm11logicalview10LVIRReader24constructGenericSubrangeEPNS0_12LVScopeArrayEPKNS_17DIGenericSubrangeEPNS0_6LVTypeE+0xcb): error: undefined reference to 'llvm::Metadata::dump(llvm::Module const*) const'
lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o:LVIRReader.cpp:function llvm::logicalview::LVIRReader::printAllInstructions(llvm::BasicBlock*) [clone .localalias]:(.text._ZN4llvm11logicalview10LVIRReader20printAllInstructionsEPNS_10BasicBlockE+0x22): error: undefined reference to 'llvm::Function::getSubprogram() const'
lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o:LVIRReader.cpp:function llvm::logicalview::LVIRReader::printAllInstructions(llvm::BasicBlock*) [clone .localalias]:(.text._ZN4llvm11logicalview10LVIRReader20printAllInstructionsEPNS_10BasicBlockE+0xe7): error: undefined reference to 'llvm::Value::print(llvm::raw_ostream&, bool) const'
lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o:LVIRReader.cpp:function llvm::logicalview::LVIRReader::printAllInstructions(llvm::BasicBlock*) [clone .localalias]:(.text._ZN4llvm11logicalview10LVIRReader20printAllInstructionsEPNS_10BasicBlockE+0x104): error: undefined reference to 'llvm::DbgMarker::getDbgRecordRange()'
lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o:LVIRReader.cpp:function llvm::logicalview::LVIRReader::printAllInstructions(llvm::BasicBlock*) [clone .localalias]:(.text._ZN4llvm11logicalview10LVIRReader20printAllInstructionsEPNS_10BasicBlockE+0x18b): error: undefined reference to 'llvm::DbgRecordParamRef<llvm::DILocalVariable>::get() const'
lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o:LVIRReader.cpp:function llvm::logicalview::LVIRReader::constructElement(llvm::DINode const*) [clone .localalias]:(.text._ZN4llvm11logicalview10LVIRReader16constructElementEPKNS_6DINodeE+0x18): error: undefined reference to 'llvm::DINode::getTag() const'
lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o:LVIRReader.cpp:function llvm::logicalview::LVIRReader::constructSubrange(llvm::logicalview::LVScopeArray*, llvm::DISubrange const*, llvm::logicalview::LVType*) [clone .localalias]:(.text._ZN4llvm11logicalview10LVIRReader17constructSubrangeEPNS0_12LVScopeArrayEPKNS_10DISubrangeEPNS0_6LVTypeE+0x7c): error: undefined reference to 'llvm::DISubrange::getCount() const'
lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o:LVIRReader.cpp:function llvm::logicalview::LVIRReader::constructSubrange(llvm::logicalview::LVScopeArray*, llvm::DISubrange const*, llvm::logicalview::LVType*) [clone .localalias]:(.text._ZN4llvm11logicalview10LVIRReader17constructSubrangeEPNS0_12LVScopeArrayEPKNS_10DISubrangeEPNS0_6LVTypeE+0x174): error: undefined reference to 'llvm::DISubrange::getUpperBound() const'
lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o:LVIRReader.cpp:function llvm::logicalview::LVIRReader::constructSubrange(llvm::logicalview::LVScopeArray*, llvm::DISubrange const*, llvm::logicalview::LVType*) [clone .localalias]:(.text._ZN4llvm11logicalview10LVIRReader17constructSubrangeEPNS0_12LVScopeArrayEPKNS_10DISubrangeEPNS0_6LVTypeE+0x196): error: undefined reference to 'llvm::DISubrange::getLowerBound() const'
lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o:LVIRReader.cpp:function llvm::logicalview::LVIRReader::constructAggregate(llvm::logicalview::LVScopeAggregate*, llvm::DICompositeType const*) [clone .localalias]:(.text._ZN4llvm11logicalview10LVIRReader18constructAggregateEPNS0_16LVScopeAggregateEPKNS_15DICompositeTypeE+0x1a3): error: undefined reference to 'llvm::DINode::getTag() const'
lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o:LVIRReader.cpp:function llvm::logicalview::LVIRReader::constructArray(llvm::logicalview::LVScopeArray*, llvm::DICompositeType const*) [clone .localalias]:(.text._ZN4llvm11logicalview10LVIRReader14constructArrayEPNS0_12LVScopeArrayEPKNS_15DICompositeTypeE+0x18b): error: undefined reference to 'llvm::DINode::getTag() const'
lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o:LVIRReader.cpp:function llvm::logicalview::LVIRReader::constructArray(llvm::logicalview::LVScopeArray*, llvm::DICompositeType const*) [clone .localalias]:(.text._ZN4llvm11logicalview10LVIRReader14constructArrayEPNS0_12LVScopeArrayEPKNS_15DICompositeTypeE+0x199): error: undefined reference to 'llvm::DINode::getTag() const'

@llvm-ci

llvm-ci commented May 27, 2026

Copy link
Copy Markdown

LLVM Buildbot has detected a new failure on builder polly-x86_64-linux-shared running on polly-x86_64-gce2 while building llvm at step 3 "annotate".

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

Here is the relevant piece of the build log for the reference
Step 3 (annotate) failure: 'python ../llvm.src/polly/ci/polly-x86_64-linux-shared.py ...' (failure)
...
[ 70%/79.553s :: 893->2->2136 (of 3030)] Linking CXX shared library lib/libLLVMGlobalISel.so.23.0git
[ 70%/79.570s :: 892->2->2137 (of 3030)] Creating library symlink lib/libLLVMGlobalISel.so
[ 70%/79.628s :: 891->2->2138 (of 3030)] Linking CXX shared library lib/libLLVMDWARFLinker.so.23.0git
[ 70%/79.647s :: 890->2->2139 (of 3030)] Creating library symlink lib/libLLVMDWARFLinker.so
[ 70%/79.711s :: 889->2->2140 (of 3030)] Linking CXX shared library lib/libLLVMDWARFLinkerClassic.so.23.0git
[ 70%/79.727s :: 888->2->2141 (of 3030)] Creating library symlink lib/libLLVMDWARFLinkerClassic.so
[ 70%/79.794s :: 887->2->2142 (of 3030)] Linking CXX shared library lib/libLLVMDWARFLinkerParallel.so.23.0git
[ 70%/79.810s :: 886->2->2143 (of 3030)] Creating library symlink lib/libLLVMDWARFLinkerParallel.so
[ 70%/79.830s :: 885->2->2144 (of 3030)] Building X86GenSubtargetInfo.inc...
[ 70%/79.881s :: 884->2->2145 (of 3030)] Linking CXX shared library lib/libLLVMDebugInfoLogicalView.so.23.0git
FAILED: lib/libLLVMDebugInfoLogicalView.so.23.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-dangling-reference -Wno-redundant-move -Wno-pessimizing-move -Wno-array-bounds -Wno-stringop-overread -Wno-dangling-pointer -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 -fuse-ld=lld -Wl,--color-diagnostics   -Wl,--gc-sections -shared -Wl,-soname,libLLVMDebugInfoLogicalView.so.23.0git -o lib/libLLVMDebugInfoLogicalView.so.23.0git lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVCompare.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVElement.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVLine.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVLocation.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVObject.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVOptions.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVRange.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVReader.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVScope.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVSort.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVSourceLanguage.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVSupport.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVSymbol.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVType.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/LVReaderHandler.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVBinaryReader.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVCodeViewReader.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVCodeViewVisitor.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVDWARFReader.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o  -Wl,-rpath,"\$ORIGIN/../lib:/home/worker/workers/polly-x86_64-gce2/polly-x86_64-linux-shared/build/llvm.build/lib:"  lib/libLLVMAsmPrinter.so.23.0git  lib/libLLVMDebugInfoPDB.so.23.0git  lib/libLLVMDebugInfoCodeView.so.23.0git  lib/libLLVMDebugInfoDWARF.so.23.0git  lib/libLLVMObject.so.23.0git  lib/libLLVMMC.so.23.0git  lib/libLLVMDebugInfoDWARFLowLevel.so.23.0git  lib/libLLVMBinaryFormat.so.23.0git  lib/libLLVMTargetParser.so.23.0git  lib/libLLVMSupport.so.23.0git  lib/libLLVMDemangle.so.23.0git  -Wl,-rpath-link,/home/worker/workers/polly-x86_64-gce2/polly-x86_64-linux-shared/build/llvm.build/lib && :
ld.lld: error: undefined symbol: llvm::MDString::getString() const
>>> referenced by LVIRReader.cpp
>>>               lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o:(llvm::DINode::getStringOperand(unsigned int) const)
>>> referenced by LVIRReader.cpp
>>>               lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o:(llvm::DIMacroNode::getStringOperand(unsigned int) const)
>>> referenced by LVIRReader.cpp
>>>               lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o:(llvm::logicalview::LVIRReader::constructTemplateValueParameter(llvm::logicalview::LVElement*, llvm::DITemplateValueParameter const*) (.localalias))

ld.lld: error: undefined symbol: llvm::Metadata::dump(llvm::Module const*) const
>>> referenced by LVIRReader.cpp
>>>               lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o:(llvm::logicalview::LVIRReader::getMDFile(llvm::MDNode const*) const (.localalias))
>>> referenced by LVIRReader.cpp
>>>               lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o:(llvm::logicalview::LVIRReader::getMDName(llvm::DINode const*) const (.localalias))
>>> referenced by LVIRReader.cpp
>>>               lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o:(llvm::logicalview::LVIRReader::getMDScope(llvm::DINode const*) const (.localalias))
>>> referenced 48 more times

ld.lld: error: undefined symbol: llvm::DIScope::getName() const
>>> referenced by LVIRReader.cpp
>>>               lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o:(llvm::logicalview::LVIRReader::getMDName(llvm::DINode const*) const (.localalias))

ld.lld: error: undefined symbol: llvm::DIScope::getScope() const
>>> referenced by LVIRReader.cpp
>>>               lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o:(llvm::logicalview::LVIRReader::getMDScope(llvm::DINode const*) const (.localalias))

ld.lld: error: undefined symbol: llvm::Function::getSubprogram() const
>>> referenced by LVIRReader.cpp
>>>               lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o:(llvm::logicalview::LVIRReader::printAllInstructions(llvm::BasicBlock*) (.localalias))
>>> referenced by LVIRReader.cpp
>>>               lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o:(llvm::logicalview::LVIRReader::processBasicBlocks(llvm::Function&) (.localalias))
>>> referenced by LVIRReader.cpp
>>>               lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o:(llvm::logicalview::LVIRReader::createScopes() (.localalias))

ld.lld: error: undefined symbol: llvm::Value::print(llvm::raw_ostream&, bool) const
>>> referenced by LVIRReader.cpp
>>>               lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o:(llvm::logicalview::LVIRReader::printAllInstructions(llvm::BasicBlock*) (.localalias))
>>> referenced by LVIRReader.cpp
Step 7 (build-llvm) failure: build-llvm (failure)
...
[ 70%/79.553s :: 893->2->2136 (of 3030)] Linking CXX shared library lib/libLLVMGlobalISel.so.23.0git
[ 70%/79.570s :: 892->2->2137 (of 3030)] Creating library symlink lib/libLLVMGlobalISel.so
[ 70%/79.628s :: 891->2->2138 (of 3030)] Linking CXX shared library lib/libLLVMDWARFLinker.so.23.0git
[ 70%/79.647s :: 890->2->2139 (of 3030)] Creating library symlink lib/libLLVMDWARFLinker.so
[ 70%/79.711s :: 889->2->2140 (of 3030)] Linking CXX shared library lib/libLLVMDWARFLinkerClassic.so.23.0git
[ 70%/79.727s :: 888->2->2141 (of 3030)] Creating library symlink lib/libLLVMDWARFLinkerClassic.so
[ 70%/79.794s :: 887->2->2142 (of 3030)] Linking CXX shared library lib/libLLVMDWARFLinkerParallel.so.23.0git
[ 70%/79.810s :: 886->2->2143 (of 3030)] Creating library symlink lib/libLLVMDWARFLinkerParallel.so
[ 70%/79.830s :: 885->2->2144 (of 3030)] Building X86GenSubtargetInfo.inc...
[ 70%/79.881s :: 884->2->2145 (of 3030)] Linking CXX shared library lib/libLLVMDebugInfoLogicalView.so.23.0git
FAILED: lib/libLLVMDebugInfoLogicalView.so.23.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-dangling-reference -Wno-redundant-move -Wno-pessimizing-move -Wno-array-bounds -Wno-stringop-overread -Wno-dangling-pointer -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 -fuse-ld=lld -Wl,--color-diagnostics   -Wl,--gc-sections -shared -Wl,-soname,libLLVMDebugInfoLogicalView.so.23.0git -o lib/libLLVMDebugInfoLogicalView.so.23.0git lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVCompare.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVElement.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVLine.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVLocation.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVObject.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVOptions.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVRange.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVReader.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVScope.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVSort.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVSourceLanguage.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVSupport.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVSymbol.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVType.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/LVReaderHandler.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVBinaryReader.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVCodeViewReader.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVCodeViewVisitor.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVDWARFReader.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o  -Wl,-rpath,"\$ORIGIN/../lib:/home/worker/workers/polly-x86_64-gce2/polly-x86_64-linux-shared/build/llvm.build/lib:"  lib/libLLVMAsmPrinter.so.23.0git  lib/libLLVMDebugInfoPDB.so.23.0git  lib/libLLVMDebugInfoCodeView.so.23.0git  lib/libLLVMDebugInfoDWARF.so.23.0git  lib/libLLVMObject.so.23.0git  lib/libLLVMMC.so.23.0git  lib/libLLVMDebugInfoDWARFLowLevel.so.23.0git  lib/libLLVMBinaryFormat.so.23.0git  lib/libLLVMTargetParser.so.23.0git  lib/libLLVMSupport.so.23.0git  lib/libLLVMDemangle.so.23.0git  -Wl,-rpath-link,/home/worker/workers/polly-x86_64-gce2/polly-x86_64-linux-shared/build/llvm.build/lib && :
ld.lld: error: undefined symbol: llvm::MDString::getString() const
>>> referenced by LVIRReader.cpp
>>>               lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o:(llvm::DINode::getStringOperand(unsigned int) const)
>>> referenced by LVIRReader.cpp
>>>               lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o:(llvm::DIMacroNode::getStringOperand(unsigned int) const)
>>> referenced by LVIRReader.cpp
>>>               lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o:(llvm::logicalview::LVIRReader::constructTemplateValueParameter(llvm::logicalview::LVElement*, llvm::DITemplateValueParameter const*) (.localalias))

ld.lld: error: undefined symbol: llvm::Metadata::dump(llvm::Module const*) const
>>> referenced by LVIRReader.cpp
>>>               lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o:(llvm::logicalview::LVIRReader::getMDFile(llvm::MDNode const*) const (.localalias))
>>> referenced by LVIRReader.cpp
>>>               lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o:(llvm::logicalview::LVIRReader::getMDName(llvm::DINode const*) const (.localalias))
>>> referenced by LVIRReader.cpp
>>>               lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o:(llvm::logicalview::LVIRReader::getMDScope(llvm::DINode const*) const (.localalias))
>>> referenced 48 more times

ld.lld: error: undefined symbol: llvm::DIScope::getName() const
>>> referenced by LVIRReader.cpp
>>>               lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o:(llvm::logicalview::LVIRReader::getMDName(llvm::DINode const*) const (.localalias))

ld.lld: error: undefined symbol: llvm::DIScope::getScope() const
>>> referenced by LVIRReader.cpp
>>>               lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o:(llvm::logicalview::LVIRReader::getMDScope(llvm::DINode const*) const (.localalias))

ld.lld: error: undefined symbol: llvm::Function::getSubprogram() const
>>> referenced by LVIRReader.cpp
>>>               lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o:(llvm::logicalview::LVIRReader::printAllInstructions(llvm::BasicBlock*) (.localalias))
>>> referenced by LVIRReader.cpp
>>>               lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o:(llvm::logicalview::LVIRReader::processBasicBlocks(llvm::Function&) (.localalias))
>>> referenced by LVIRReader.cpp
>>>               lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o:(llvm::logicalview::LVIRReader::createScopes() (.localalias))

ld.lld: error: undefined symbol: llvm::Value::print(llvm::raw_ostream&, bool) const
>>> referenced by LVIRReader.cpp
>>>               lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o:(llvm::logicalview::LVIRReader::printAllInstructions(llvm::BasicBlock*) (.localalias))
>>> referenced by LVIRReader.cpp

@CarlosAlbertoEnciso

Copy link
Copy Markdown
Member Author

Due to link issues with some buildbots, reverting the change.
#199890

CarlosAlbertoEnciso added a commit that referenced this pull request May 27, 2026
…35440)" (#199890)

This reverts commit 6bbbf74.

There are link issues with some buildbots.
@llvm-ci

llvm-ci commented May 27, 2026

Copy link
Copy Markdown

LLVM Buildbot has detected a new failure on builder polly-arm-linux running on hexagon-build-02 while building llvm at step 5 "build".

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

Here is the relevant piece of the build log for the reference
Step 5 (build) failure: 'ninja -j16' (failure)
...
[1612/4644] Building CXX object lib/DebugInfo/CodeView/CMakeFiles/LLVMDebugInfoCodeView.dir/DebugFrameDataSubsection.cpp.o
[1613/4644] Building CXX object lib/DebugInfo/CodeView/CMakeFiles/LLVMDebugInfoCodeView.dir/DebugSubsection.cpp.o
[1614/4644] Building CXX object lib/DebugInfo/CodeView/CMakeFiles/LLVMDebugInfoCodeView.dir/DebugLinesSubsection.cpp.o
[1615/4644] Building CXX object lib/DebugInfo/CodeView/CMakeFiles/LLVMDebugInfoCodeView.dir/DebugSubsectionRecord.cpp.o
[1616/4644] Building CXX object lib/DebugInfo/CodeView/CMakeFiles/LLVMDebugInfoCodeView.dir/DebugStringTableSubsection.cpp.o
[1617/4644] Building CXX object lib/DebugInfo/CodeView/CMakeFiles/LLVMDebugInfoCodeView.dir/DebugSymbolRVASubsection.cpp.o
[1618/4644] Building CXX object lib/DebugInfo/CodeView/CMakeFiles/LLVMDebugInfoCodeView.dir/DebugSubsectionVisitor.cpp.o
[1619/4644] Building CXX object lib/DebugInfo/CodeView/CMakeFiles/LLVMDebugInfoCodeView.dir/Line.cpp.o
[1620/4644] Building CXX object lib/DebugInfo/CodeView/CMakeFiles/LLVMDebugInfoCodeView.dir/DebugSymbolsSubsection.cpp.o
[1621/4644] Building CXX object lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o
FAILED: lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o 
/local/clang+llvm-12.0.0-x86_64-linux-gnu-ubuntu-16.04/bin/clang++ -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/local/mnt/workspace/bots/hexagon-build-02/polly-arm-linux/llvm.obj/lib/DebugInfo/LogicalView -I/local/mnt/workspace/bots/hexagon-build-02/polly-arm-linux/llvm.src/llvm/lib/DebugInfo/LogicalView -I/local/mnt/workspace/bots/hexagon-build-02/polly-arm-linux/llvm.obj/include -I/local/mnt/workspace/bots/hexagon-build-02/polly-arm-linux/llvm.src/llvm/include -stdlib=libc++ -fPIC -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wno-pass-failed -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -UNDEBUG -fno-exceptions -funwind-tables -fno-rtti -std=c++17 -MD -MT lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o -MF lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o.d -o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o -c /local/mnt/workspace/bots/hexagon-build-02/polly-arm-linux/llvm.src/llvm/lib/DebugInfo/LogicalView/Readers/LVIRReader.cpp
In file included from /local/mnt/workspace/bots/hexagon-build-02/polly-arm-linux/llvm.src/llvm/lib/DebugInfo/LogicalView/Readers/LVIRReader.cpp:14:
/local/mnt/workspace/bots/hexagon-build-02/polly-arm-linux/llvm.src/llvm/include/llvm/DebugInfo/LogicalView/Readers/LVIRReader.h:73:29: error: no template named 'unordered_map' in namespace 'std'
  using LVIndexFiles = std::unordered_map<LVScopeCompileUnit *, size_t>;
                       ~~~~~^
/local/mnt/workspace/bots/hexagon-build-02/polly-arm-linux/llvm.src/llvm/include/llvm/DebugInfo/LogicalView/Readers/LVIRReader.h:74:3: error: unknown type name 'LVIndexFiles'
  LVIndexFiles IndexFiles;
  ^
/local/mnt/workspace/bots/hexagon-build-02/polly-arm-linux/llvm.src/llvm/include/llvm/DebugInfo/LogicalView/Readers/LVIRReader.h:77:35: error: no template named 'unordered_map' in namespace 'std'
  using LVCompileUnitFiles = std::unordered_map<const DIFile *, size_t>;
                             ~~~~~^
/local/mnt/workspace/bots/hexagon-build-02/polly-arm-linux/llvm.src/llvm/include/llvm/DebugInfo/LogicalView/Readers/LVIRReader.h:78:3: error: unknown type name 'LVCompileUnitFiles'; did you mean 'LVCompileUnits'?
  LVCompileUnitFiles CompileUnitFiles;
  ^~~~~~~~~~~~~~~~~~
  LVCompileUnits
/local/mnt/workspace/bots/hexagon-build-02/polly-arm-linux/llvm.src/llvm/include/llvm/DebugInfo/LogicalView/Core/LVReader.h:68:9: note: 'LVCompileUnits' declared here
  using LVCompileUnits = std::map<LVOffset, LVScopeCompileUnit *>;
        ^
In file included from /local/mnt/workspace/bots/hexagon-build-02/polly-arm-linux/llvm.src/llvm/lib/DebugInfo/LogicalView/Readers/LVIRReader.cpp:14:
/local/mnt/workspace/bots/hexagon-build-02/polly-arm-linux/llvm.src/llvm/include/llvm/DebugInfo/LogicalView/Readers/LVIRReader.h:78:3: error: 'LVCompileUnits' is a private member of 'llvm::logicalview::LVReader'
  LVCompileUnitFiles CompileUnitFiles;
  ^
/local/mnt/workspace/bots/hexagon-build-02/polly-arm-linux/llvm.src/llvm/include/llvm/DebugInfo/LogicalView/Core/LVReader.h:68:9: note: implicitly declared private here
  using LVCompileUnits = std::map<LVOffset, LVScopeCompileUnit *>;
        ^
In file included from /local/mnt/workspace/bots/hexagon-build-02/polly-arm-linux/llvm.src/llvm/lib/DebugInfo/LogicalView/Readers/LVIRReader.cpp:14:
/local/mnt/workspace/bots/hexagon-build-02/polly-arm-linux/llvm.src/llvm/include/llvm/DebugInfo/LogicalView/Readers/LVIRReader.h:81:28: error: no template named 'unordered_map' in namespace 'std'
  using LVMDObjects = std::unordered_map<const MDNode *, LVElement *>;
                      ~~~~~^
/local/mnt/workspace/bots/hexagon-build-02/polly-arm-linux/llvm.src/llvm/include/llvm/DebugInfo/LogicalView/Readers/LVIRReader.h:82:3: error: unknown type name 'LVMDObjects'; did you mean 'LVObject'?
  LVMDObjects MDObjects;
  ^~~~~~~~~~~
  LVObject
/local/mnt/workspace/bots/hexagon-build-02/polly-arm-linux/llvm.src/llvm/include/llvm/DebugInfo/LogicalView/Core/LVReader.h:32:7: note: 'LVObject' declared here
class LVObject;
      ^
In file included from /local/mnt/workspace/bots/hexagon-build-02/polly-arm-linux/llvm.src/llvm/lib/DebugInfo/LogicalView/Readers/LVIRReader.cpp:14:
/local/mnt/workspace/bots/hexagon-build-02/polly-arm-linux/llvm.src/llvm/include/llvm/DebugInfo/LogicalView/Readers/LVIRReader.h:108:5: error: use of undeclared identifier 'LVIndexFiles'

@llvm-ci

llvm-ci commented May 27, 2026

Copy link
Copy Markdown

LLVM Buildbot has detected a new failure on builder flang-aarch64-latest-gcc running on linaro-flang-aarch64-latest-gcc while building llvm at step 5 "build-unified-tree".

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

Here is the relevant piece of the build log for the reference
Step 5 (build-unified-tree) failure: build (failure)
...
441.655 [6003/2/2229] Creating library symlink lib/libLLVMMIRParser.so
442.120 [6003/1/2230] Linking CXX shared library lib/libLLVMGlobalISel.so.23.0git
442.186 [6002/1/2231] Creating library symlink lib/libLLVMGlobalISel.so
442.484 [6001/1/2232] Linking CXX shared library lib/libLLVMDWARFLinker.so.23.0git
442.514 [6000/1/2233] Creating library symlink lib/libLLVMDWARFLinker.so
442.813 [5999/1/2234] Linking CXX shared library lib/libLLVMDWARFLinkerClassic.so.23.0git
442.841 [5998/1/2235] Creating library symlink lib/libLLVMDWARFLinkerClassic.so
443.180 [5997/1/2236] Linking CXX shared library lib/libLLVMDWARFLinkerParallel.so.23.0git
443.213 [5996/1/2237] Creating library symlink lib/libLLVMDWARFLinkerParallel.so
444.179 [5995/1/2238] Linking CXX shared library lib/libLLVMDebugInfoLogicalView.so.23.0git
FAILED: lib/libLLVMDebugInfoLogicalView.so.23.0git 
: && /usr/local/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-maybe-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-dangling-reference -Wno-redundant-move -Wno-pessimizing-move -Wno-array-bounds -Wno-stringop-overread -Wno-dangling-pointer -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/tcwg-buildbot/worker/flang-aarch64-latest-gcc/build/./lib  -Wl,--gc-sections -shared -Wl,-soname,libLLVMDebugInfoLogicalView.so.23.0git -o lib/libLLVMDebugInfoLogicalView.so.23.0git lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVCompare.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVElement.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVLine.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVLocation.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVObject.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVOptions.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVRange.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVReader.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVScope.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVSort.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVSourceLanguage.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVSupport.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVSymbol.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVType.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/LVReaderHandler.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVBinaryReader.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVCodeViewReader.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVCodeViewVisitor.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVDWARFReader.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o  -Wl,-rpath,"\$ORIGIN/../lib:/home/tcwg-buildbot/worker/flang-aarch64-latest-gcc/build/lib:"  lib/libLLVMAsmPrinter.so.23.0git  lib/libLLVMDebugInfoPDB.so.23.0git  lib/libLLVMDebugInfoCodeView.so.23.0git  lib/libLLVMDebugInfoDWARF.so.23.0git  lib/libLLVMObject.so.23.0git  lib/libLLVMMC.so.23.0git  lib/libLLVMDebugInfoDWARFLowLevel.so.23.0git  lib/libLLVMBinaryFormat.so.23.0git  lib/libLLVMTargetParser.so.23.0git  lib/libLLVMSupport.so.23.0git  lib/libLLVMDemangle.so.23.0git  -Wl,-rpath-link,/home/tcwg-buildbot/worker/flang-aarch64-latest-gcc/build/lib && :
/usr/bin/ld: lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o: in function `llvm::DINode::getStringOperand(unsigned int) const':
LVIRReader.cpp:(.text._ZNK4llvm6DINode16getStringOperandEj[_ZNK4llvm6DINode16getStringOperandEj]+0x44): undefined reference to `llvm::MDString::getString() const'
/usr/bin/ld: lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o: in function `llvm::DIMacroNode::getStringOperand(unsigned int) const':
LVIRReader.cpp:(.text._ZNK4llvm11DIMacroNode16getStringOperandEj[_ZNK4llvm11DIMacroNode16getStringOperandEj]+0x44): undefined reference to `llvm::MDString::getString() const'
/usr/bin/ld: lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o: in function `llvm::logicalview::LVIRReader::getMDFile(llvm::MDNode const*) const [clone .localalias]':
LVIRReader.cpp:(.text._ZNK4llvm11logicalview10LVIRReader9getMDFileEPKNS_6MDNodeE+0x138): undefined reference to `llvm::Metadata::dump(llvm::Module const*) const'
/usr/bin/ld: lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o: in function `llvm::logicalview::LVIRReader::getMDName(llvm::DINode const*) const [clone .localalias]':
LVIRReader.cpp:(.text._ZNK4llvm11logicalview10LVIRReader9getMDNameEPKNS_6DINodeE+0x70): undefined reference to `llvm::DIScope::getName() const'
/usr/bin/ld: LVIRReader.cpp:(.text._ZNK4llvm11logicalview10LVIRReader9getMDNameEPKNS_6DINodeE+0xb8): undefined reference to `llvm::Metadata::dump(llvm::Module const*) const'
/usr/bin/ld: lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o: in function `llvm::logicalview::LVIRReader::getMDScope(llvm::DINode const*) const [clone .localalias]':
LVIRReader.cpp:(.text._ZNK4llvm11logicalview10LVIRReader10getMDScopeEPKNS_6DINodeE+0xe4): undefined reference to `llvm::Metadata::dump(llvm::Module const*) const'
/usr/bin/ld: LVIRReader.cpp:(.text._ZNK4llvm11logicalview10LVIRReader10getMDScopeEPKNS_6DINodeE+0x13c): undefined reference to `llvm::DIScope::getScope() const'
/usr/bin/ld: lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o: in function `llvm::logicalview::LVIRReader::constructGenericSubrange(llvm::logicalview::LVScopeArray*, llvm::DIGenericSubrange const*, llvm::logicalview::LVType*) [clone .localalias]':
LVIRReader.cpp:(.text._ZN4llvm11logicalview10LVIRReader24constructGenericSubrangeEPNS0_12LVScopeArrayEPKNS_17DIGenericSubrangeEPNS0_6LVTypeE+0xac): undefined reference to `llvm::Metadata::dump(llvm::Module const*) const'
/usr/bin/ld: lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o: in function `llvm::logicalview::LVIRReader::printAllInstructions(llvm::BasicBlock*) [clone .localalias]':
LVIRReader.cpp:(.text._ZN4llvm11logicalview10LVIRReader20printAllInstructionsEPNS_10BasicBlockE+0x3c): undefined reference to `llvm::Function::getSubprogram() const'
/usr/bin/ld: LVIRReader.cpp:(.text._ZN4llvm11logicalview10LVIRReader20printAllInstructionsEPNS_10BasicBlockE+0xfc): undefined reference to `llvm::DbgMarker::EmptyDbgMarker'
/usr/bin/ld: LVIRReader.cpp:(.text._ZN4llvm11logicalview10LVIRReader20printAllInstructionsEPNS_10BasicBlockE+0x100): undefined reference to `llvm::DbgMarker::EmptyDbgMarker'
/usr/bin/ld: LVIRReader.cpp:(.text._ZN4llvm11logicalview10LVIRReader20printAllInstructionsEPNS_10BasicBlockE+0x130): undefined reference to `llvm::Value::print(llvm::raw_ostream&, bool) const'
/usr/bin/ld: LVIRReader.cpp:(.text._ZN4llvm11logicalview10LVIRReader20printAllInstructionsEPNS_10BasicBlockE+0x14c): undefined reference to `llvm::DbgMarker::getDbgRecordRange()'
/usr/bin/ld: LVIRReader.cpp:(.text._ZN4llvm11logicalview10LVIRReader20printAllInstructionsEPNS_10BasicBlockE+0x200): undefined reference to `llvm::DbgRecordParamRef<llvm::DILocalVariable>::get() const'
/usr/bin/ld: LVIRReader.cpp:(.text._ZN4llvm11logicalview10LVIRReader20printAllInstructionsEPNS_10BasicBlockE+0x208): undefined reference to `llvm::Metadata::dump(llvm::Module const*) const'
/usr/bin/ld: LVIRReader.cpp:(.text._ZN4llvm11logicalview10LVIRReader20printAllInstructionsEPNS_10BasicBlockE+0x2a0): undefined reference to `llvm::Metadata::dump(llvm::Module const*) const'
/usr/bin/ld: lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o: in function `llvm::logicalview::LVIRReader::getOrCreateSourceID(llvm::DIFile const*) [clone .localalias]':
LVIRReader.cpp:(.text._ZN4llvm11logicalview10LVIRReader19getOrCreateSourceIDEPKNS_6DIFileE+0x3d8): undefined reference to `llvm::Metadata::dump(llvm::Module const*) const'
/usr/bin/ld: lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o: in function `llvm::logicalview::LVIRReader::addSourceLine(llvm::logicalview::LVElement*, unsigned int, llvm::DIFile const*) [clone .localalias]':
LVIRReader.cpp:(.text._ZN4llvm11logicalview10LVIRReader13addSourceLineEPNS0_9LVElementEjPKNS_6DIFileE+0xc0): undefined reference to `llvm::Metadata::dump(llvm::Module const*) const'
/usr/bin/ld: lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o: in function `llvm::logicalview::LVIRReader::constructElement(llvm::DINode const*) [clone .localalias]':
LVIRReader.cpp:(.text._ZN4llvm11logicalview10LVIRReader16constructElementEPKNS_6DINodeE+0x1c): undefined reference to `llvm::DINode::getTag() const'
/usr/bin/ld: lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o: in function `llvm::logicalview::LVIRReader::constructSubrange(llvm::logicalview::LVScopeArray*, llvm::DISubrange const*, llvm::logicalview::LVType*) [clone .localalias]':
LVIRReader.cpp:(.text._ZN4llvm11logicalview10LVIRReader17constructSubrangeEPNS0_12LVScopeArrayEPKNS_10DISubrangeEPNS0_6LVTypeE+0x8c): undefined reference to `llvm::DISubrange::getCount() const'
/usr/bin/ld: LVIRReader.cpp:(.text._ZN4llvm11logicalview10LVIRReader17constructSubrangeEPNS0_12LVScopeArrayEPKNS_10DISubrangeEPNS0_6LVTypeE+0xa0): undefined reference to `llvm::DISubrange::getUpperBound() const'
/usr/bin/ld: LVIRReader.cpp:(.text._ZN4llvm11logicalview10LVIRReader17constructSubrangeEPNS0_12LVScopeArrayEPKNS_10DISubrangeEPNS0_6LVTypeE+0xc0): undefined reference to `llvm::DISubrange::getLowerBound() const'
/usr/bin/ld: LVIRReader.cpp:(.text._ZN4llvm11logicalview10LVIRReader17constructSubrangeEPNS0_12LVScopeArrayEPKNS_10DISubrangeEPNS0_6LVTypeE+0x1e8): undefined reference to `llvm::Metadata::dump(llvm::Module const*) const'
/usr/bin/ld: lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o: in function `llvm::logicalview::LVIRReader::applySubprogramDefinitionAttributes(llvm::logicalview::LVScope*, llvm::DISubprogram const*, bool) [clone .localalias]':
LVIRReader.cpp:(.text._ZN4llvm11logicalview10LVIRReader35applySubprogramDefinitionAttributesEPNS0_7LVScopeEPKNS_12DISubprogramEb+0x1ac): undefined reference to `llvm::Metadata::dump(llvm::Module const*) const'
/usr/bin/ld: lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o: in function `llvm::logicalview::LVIRReader::applySubprogramAttributes(llvm::logicalview::LVScope*, llvm::DISubprogram const*, bool) [clone .localalias]':

@llvm-ci

llvm-ci commented May 27, 2026

Copy link
Copy Markdown

LLVM Buildbot has detected a new failure on builder sanitizer-aarch64-linux-bootstrap-asan running on sanitizer-buildbot8 while building llvm at step 2 "annotate".

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

Here is the relevant piece of the build log for the reference
Step 2 (annotate) failure: 'python ../sanitizer_buildbot/sanitizers/zorg/buildbot/builders/sanitizers/buildbot_selector.py' (failure)
...
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:569: note: using ld.lld: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/ld.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:569: note: using lld-link: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/lld-link
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:569: note: using ld64.lld: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:569: note: using wasm-ld: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:569: note: using ld.lld: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/ld.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:569: note: using lld-link: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/lld-link
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:569: note: using ld64.lld: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:569: note: using wasm-ld: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/wasm-ld
-- Testing: 97895 of 98533 tests, 72 workers --
Testing:  0.. 10.. 
FAIL: Clang :: Sema/warn-lifetime-safety.cpp (21012 of 97895)
******************** TEST 'Clang :: Sema/warn-lifetime-safety.cpp' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
/home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/lib/clang/23/include -nostdsysteminc -fsyntax-only -Wlifetime-safety -Wno-dangling -verify=expected,function /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/clang/test/Sema/warn-lifetime-safety.cpp
# executed command: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/lib/clang/23/include -nostdsysteminc -fsyntax-only -Wlifetime-safety -Wno-dangling -verify=expected,function /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/clang/test/Sema/warn-lifetime-safety.cpp
# .---command stderr------------
# | error: diagnostics with 'warning' severity expected but not seen: 
# |   File /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/clang/test/Sema/warn-lifetime-safety.cpp Line 3353 'expected-warning': address of stack memory is returned later
# |   File /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/clang/test/Sema/warn-lifetime-safety.cpp Line 3359 'expected-warning': address of stack memory is returned later
# |   File /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/clang/test/Sema/warn-lifetime-safety.cpp Line 3365 'expected-warning': address of stack memory is returned later
# | error: diagnostics with 'warning' severity seen but not expected: 
# |   File /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/clang/test/Sema/warn-lifetime-safety.cpp Line 3353: stack memory associated with local variable 'opt' is returned
# |   File /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/clang/test/Sema/warn-lifetime-safety.cpp Line 3359: stack memory associated with local variable 'opt' is returned
# |   File /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/clang/test/Sema/warn-lifetime-safety.cpp Line 3365: stack memory associated with local variable 'opt' is returned
# | 6 errors generated.
# `-----------------------------
# error: command failed with exit status: 1

--

********************
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90.. 
Slowest Tests:
--------------------------------------------------------------------------
130.26s: Clang :: Preprocessor/riscv-target-features.c
126.39s: Clang :: Driver/arm-cortex-cpus-2.c
126.26s: Clang :: Driver/arm-cortex-cpus-1.c
105.69s: Clang :: OpenMP/target_defaultmap_codegen_01.cpp
105.27s: Clang :: OpenMP/target_update_codegen.cpp
103.26s: Clang :: Preprocessor/aarch64-target-features.c
101.03s: LLVM :: CodeGen/AMDGPU/sched-group-barrier-pipeline-solver.mir
100.24s: Clang :: Preprocessor/arm-target-features.c
84.56s: LLVM :: tools/llvm-exegesis/AArch64/all-opcodes.test
84.55s: Clang :: Driver/linux-ld.c
83.59s: LLVM :: CodeGen/RISCV/attributes.ll
Step 11 (stage2/asan check) failure: stage2/asan check (failure)
...
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:569: note: using ld.lld: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/ld.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:569: note: using lld-link: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/lld-link
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:569: note: using ld64.lld: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:569: note: using wasm-ld: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:569: note: using ld.lld: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/ld.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:569: note: using lld-link: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/lld-link
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:569: note: using ld64.lld: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:569: note: using wasm-ld: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/wasm-ld
-- Testing: 97895 of 98533 tests, 72 workers --
Testing:  0.. 10.. 
FAIL: Clang :: Sema/warn-lifetime-safety.cpp (21012 of 97895)
******************** TEST 'Clang :: Sema/warn-lifetime-safety.cpp' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
/home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/lib/clang/23/include -nostdsysteminc -fsyntax-only -Wlifetime-safety -Wno-dangling -verify=expected,function /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/clang/test/Sema/warn-lifetime-safety.cpp
# executed command: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/lib/clang/23/include -nostdsysteminc -fsyntax-only -Wlifetime-safety -Wno-dangling -verify=expected,function /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/clang/test/Sema/warn-lifetime-safety.cpp
# .---command stderr------------
# | error: diagnostics with 'warning' severity expected but not seen: 
# |   File /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/clang/test/Sema/warn-lifetime-safety.cpp Line 3353 'expected-warning': address of stack memory is returned later
# |   File /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/clang/test/Sema/warn-lifetime-safety.cpp Line 3359 'expected-warning': address of stack memory is returned later
# |   File /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/clang/test/Sema/warn-lifetime-safety.cpp Line 3365 'expected-warning': address of stack memory is returned later
# | error: diagnostics with 'warning' severity seen but not expected: 
# |   File /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/clang/test/Sema/warn-lifetime-safety.cpp Line 3353: stack memory associated with local variable 'opt' is returned
# |   File /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/clang/test/Sema/warn-lifetime-safety.cpp Line 3359: stack memory associated with local variable 'opt' is returned
# |   File /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/clang/test/Sema/warn-lifetime-safety.cpp Line 3365: stack memory associated with local variable 'opt' is returned
# | 6 errors generated.
# `-----------------------------
# error: command failed with exit status: 1

--

********************
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90.. 
Slowest Tests:
--------------------------------------------------------------------------
130.26s: Clang :: Preprocessor/riscv-target-features.c
126.39s: Clang :: Driver/arm-cortex-cpus-2.c
126.26s: Clang :: Driver/arm-cortex-cpus-1.c
105.69s: Clang :: OpenMP/target_defaultmap_codegen_01.cpp
105.27s: Clang :: OpenMP/target_update_codegen.cpp
103.26s: Clang :: Preprocessor/aarch64-target-features.c
101.03s: LLVM :: CodeGen/AMDGPU/sched-group-barrier-pipeline-solver.mir
100.24s: Clang :: Preprocessor/arm-target-features.c
84.56s: LLVM :: tools/llvm-exegesis/AArch64/all-opcodes.test
84.55s: Clang :: Driver/linux-ld.c
83.59s: LLVM :: CodeGen/RISCV/attributes.ll
Step 13 (stage3/asan check) failure: stage3/asan check (failure)
...
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:569: note: using ld.lld: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build2_asan/bin/ld.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:569: note: using lld-link: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build2_asan/bin/lld-link
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:569: note: using ld64.lld: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build2_asan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:569: note: using wasm-ld: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build2_asan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:569: note: using ld.lld: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build2_asan/bin/ld.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:569: note: using lld-link: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build2_asan/bin/lld-link
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:569: note: using ld64.lld: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build2_asan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:569: note: using wasm-ld: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build2_asan/bin/wasm-ld
-- Testing: 94593 tests, 72 workers --
Testing:  0.. 10.. 20
FAIL: Clang :: Sema/warn-lifetime-safety.cpp (21074 of 94593)
******************** TEST 'Clang :: Sema/warn-lifetime-safety.cpp' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
/home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build2_asan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build2_asan/lib/clang/23/include -nostdsysteminc -fsyntax-only -Wlifetime-safety -Wno-dangling -verify=expected,function /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/clang/test/Sema/warn-lifetime-safety.cpp
# executed command: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build2_asan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build2_asan/lib/clang/23/include -nostdsysteminc -fsyntax-only -Wlifetime-safety -Wno-dangling -verify=expected,function /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/clang/test/Sema/warn-lifetime-safety.cpp
# .---command stderr------------
# | error: diagnostics with 'warning' severity expected but not seen: 
# |   File /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/clang/test/Sema/warn-lifetime-safety.cpp Line 3353 'expected-warning': address of stack memory is returned later
# |   File /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/clang/test/Sema/warn-lifetime-safety.cpp Line 3359 'expected-warning': address of stack memory is returned later
# |   File /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/clang/test/Sema/warn-lifetime-safety.cpp Line 3365 'expected-warning': address of stack memory is returned later
# | error: diagnostics with 'warning' severity seen but not expected: 
# |   File /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/clang/test/Sema/warn-lifetime-safety.cpp Line 3353: stack memory associated with local variable 'opt' is returned
# |   File /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/clang/test/Sema/warn-lifetime-safety.cpp Line 3359: stack memory associated with local variable 'opt' is returned
# |   File /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/clang/test/Sema/warn-lifetime-safety.cpp Line 3365: stack memory associated with local variable 'opt' is returned
# | 6 errors generated.
# `-----------------------------
# error: command failed with exit status: 1

--

********************
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90.. 
Slowest Tests:
--------------------------------------------------------------------------
23.36s: LLVM :: tools/llvm-reduce/parallel-workitem-kill.ll
15.74s: Clang :: ClangScanDeps/build-session-validation-outdated-module.c
13.64s: LLVM :: tools/llvm-exegesis/AArch64/all-opcodes.test
11.84s: lit :: shtest-define.py
11.76s: Clang :: CodeGen/X86/avx-builtins.c
11.44s: Clang :: Modules/fmodules-validate-once-per-build-session.c
10.89s: LLVM :: CodeGen/AMDGPU/amdgcn.bitcast.1024bit.ll
10.42s: Clang :: CodeGen/X86/sse2-builtins.c
10.02s: LLVM-Unit :: Support/./SupportTests/ProgramEnvTest/TestExecuteNoWaitDetached
9.84s: Clang :: CodeGen/X86/avx512f-builtins.c
9.61s: Clang :: CodeGen/X86/avx512vlbw-builtins.c

@llvm-ci

llvm-ci commented May 27, 2026

Copy link
Copy Markdown

LLVM Buildbot has detected a new failure on builder flang-aarch64-sharedlibs running on linaro-flang-aarch64-sharedlibs while building llvm at step 5 "build-unified-tree".

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

Here is the relevant piece of the build log for the reference
Step 5 (build-unified-tree) failure: build (failure)
...
541.841 [4477/31/3932] Building CXX object lib/Target/AArch64/CMakeFiles/LLVMAArch64CodeGen.dir/AArch64SRLTDefineSuperRegs.cpp.o
542.226 [4477/30/3933] Building CXX object lib/Target/AArch64/CMakeFiles/LLVMAArch64CodeGen.dir/SMEPeepholeOpt.cpp.o
542.459 [4477/29/3934] Building CXX object lib/Target/AArch64/CMakeFiles/LLVMAArch64CodeGen.dir/AArch64StackTagging.cpp.o
542.643 [4477/28/3935] Building CXX object lib/Target/AArch64/MCTargetDesc/CMakeFiles/LLVMAArch64Desc.dir/AArch64InstPrinter.cpp.o
542.682 [4477/27/3936] Building CXX object lib/Target/AArch64/MCTargetDesc/CMakeFiles/LLVMAArch64Desc.dir/AArch64MCExpr.cpp.o
542.690 [4477/26/3937] Building CXX object lib/Target/AArch64/CMakeFiles/LLVMAArch64CodeGen.dir/AArch64RegisterInfo.cpp.o
542.905 [4467/35/3938] Building CXX object lib/Target/AArch64/CMakeFiles/LLVMAArch64CodeGen.dir/AArch64SIMDInstrOpt.cpp.o
542.910 [4467/34/3939] Building CXX object lib/Target/AArch64/MCTargetDesc/CMakeFiles/LLVMAArch64Desc.dir/AArch64MCLFIRewriter.cpp.o
543.080 [4467/33/3940] Building CXX object lib/Target/AArch64/MCTargetDesc/CMakeFiles/LLVMAArch64Desc.dir/AArch64MCAsmInfo.cpp.o
543.087 [4467/32/3941] Linking CXX shared library lib/libLLVMDebugInfoLogicalView.so.23.0git
FAILED: lib/libLLVMDebugInfoLogicalView.so.23.0git 
: && /usr/local/bin/c++ -fPIC -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wno-pass-failed -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Xclang -fno-pch-timestamp -O3 -DNDEBUG  -Wl,-z,defs -Wl,-z,nodelete   -Wl,-rpath-link,/home/tcwg-buildbot/worker/flang-aarch64-sharedlibs/build/./lib  -Wl,--gc-sections -shared -Wl,-soname,libLLVMDebugInfoLogicalView.so.23.0git -o lib/libLLVMDebugInfoLogicalView.so.23.0git lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVCompare.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVElement.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVLine.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVLocation.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVObject.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVOptions.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVRange.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVReader.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVScope.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVSort.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVSourceLanguage.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVSupport.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVSymbol.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVType.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/LVReaderHandler.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVBinaryReader.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVCodeViewReader.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVCodeViewVisitor.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVDWARFReader.cpp.o lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o  -Wl,-rpath,"\$ORIGIN/../lib:/home/tcwg-buildbot/worker/flang-aarch64-sharedlibs/build/lib:"  lib/libLLVMAsmPrinter.so.23.0git  lib/libLLVMDebugInfoPDB.so.23.0git  lib/libLLVMDebugInfoCodeView.so.23.0git  lib/libLLVMDebugInfoDWARF.so.23.0git  lib/libLLVMObject.so.23.0git  lib/libLLVMMC.so.23.0git  lib/libLLVMDebugInfoDWARFLowLevel.so.23.0git  lib/libLLVMBinaryFormat.so.23.0git  lib/libLLVMTargetParser.so.23.0git  lib/libLLVMSupport.so.23.0git  lib/libLLVMDemangle.so.23.0git  -Wl,-rpath-link,/home/tcwg-buildbot/worker/flang-aarch64-sharedlibs/build/lib && :
/usr/bin/ld: lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o: in function `llvm::logicalview::LVIRReader::constructElement(llvm::DINode const*)':
LVIRReader.cpp:(.text._ZN4llvm11logicalview10LVIRReader16constructElementEPKNS_6DINodeE+0x20): undefined reference to `llvm::DINode::getTag() const'
/usr/bin/ld: lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o: in function `llvm::logicalview::LVIRReader::getMDName(llvm::DINode const*) const':
LVIRReader.cpp:(.text._ZNK4llvm11logicalview10LVIRReader9getMDNameEPKNS_6DINodeE+0xe4): undefined reference to `llvm::Metadata::dump(llvm::Module const*) const'
/usr/bin/ld: LVIRReader.cpp:(.text._ZNK4llvm11logicalview10LVIRReader9getMDNameEPKNS_6DINodeE+0x12c): undefined reference to `llvm::DIScope::getName() const'
/usr/bin/ld: LVIRReader.cpp:(.text._ZNK4llvm11logicalview10LVIRReader9getMDNameEPKNS_6DINodeE+0x18c): undefined reference to `llvm::DIScope::getName() const'
/usr/bin/ld: lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o: in function `llvm::logicalview::LVIRReader::getMDFile(llvm::MDNode const*) const':
LVIRReader.cpp:(.text._ZNK4llvm11logicalview10LVIRReader9getMDFileEPKNS_6MDNodeE+0xe4): undefined reference to `llvm::Metadata::dump(llvm::Module const*) const'
/usr/bin/ld: lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o: in function `llvm::logicalview::LVIRReader::getOrCreateSourceID(llvm::DIFile const*)':
LVIRReader.cpp:(.text._ZN4llvm11logicalview10LVIRReader19getOrCreateSourceIDEPKNS_6DIFileE+0x108): undefined reference to `llvm::Metadata::dump(llvm::Module const*) const'
/usr/bin/ld: lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o: in function `llvm::logicalview::LVIRReader::addSourceLine(llvm::logicalview::LVElement*, unsigned int, llvm::DIFile const*)':
LVIRReader.cpp:(.text._ZN4llvm11logicalview10LVIRReader13addSourceLineEPNS0_9LVElementEjPKNS_6DIFileE+0x104): undefined reference to `llvm::Metadata::dump(llvm::Module const*) const'
/usr/bin/ld: lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o: in function `llvm::logicalview::LVIRReader::addConstantValue(llvm::logicalview::LVElement*, llvm::DIExpression const*)':
LVIRReader.cpp:(.text._ZN4llvm11logicalview10LVIRReader16addConstantValueEPNS0_9LVElementEPKNS_12DIExpressionE+0x2c): undefined reference to `llvm::DIExpression::isConstant() const'
/usr/bin/ld: lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o: in function `llvm::logicalview::LVIRReader::getParentScopeImpl(llvm::DIScope const*)':
LVIRReader.cpp:(.text._ZN4llvm11logicalview10LVIRReader18getParentScopeImplEPKNS_7DIScopeE+0x100): undefined reference to `llvm::Metadata::dump(llvm::Module const*) const'
/usr/bin/ld: lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o: in function `llvm::logicalview::LVIRReader::traverseParentScope(llvm::DIScope const*)':
LVIRReader.cpp:(.text._ZN4llvm11logicalview10LVIRReader19traverseParentScopeEPKNS_7DIScopeE+0x108): undefined reference to `llvm::Metadata::dump(llvm::Module const*) const'
/usr/bin/ld: lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o: in function `llvm::logicalview::LVIRReader::getParentScope(llvm::DILocation const*)':
LVIRReader.cpp:(.text._ZN4llvm11logicalview10LVIRReader14getParentScopeEPKNS_10DILocationE+0xe4): undefined reference to `llvm::Metadata::dump(llvm::Module const*) const'
/usr/bin/ld: lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o: in function `llvm::logicalview::LVIRReader::getParentScope(llvm::DINode const*)':
LVIRReader.cpp:(.text._ZN4llvm11logicalview10LVIRReader14getParentScopeEPKNS_6DINodeE+0xe4): undefined reference to `llvm::Metadata::dump(llvm::Module const*) const'
/usr/bin/ld: lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o: in function `llvm::logicalview::LVIRReader::getMDScope(llvm::DINode const*) const':
LVIRReader.cpp:(.text._ZNK4llvm11logicalview10LVIRReader10getMDScopeEPKNS_6DINodeE+0xe4): undefined reference to `llvm::Metadata::dump(llvm::Module const*) const'
/usr/bin/ld: LVIRReader.cpp:(.text._ZNK4llvm11logicalview10LVIRReader10getMDScopeEPKNS_6DINodeE+0x1d4): undefined reference to `llvm::DIScope::getScope() const'
/usr/bin/ld: lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o: in function `llvm::logicalview::LVIRReader::constructScope(llvm::logicalview::LVElement*, llvm::DIScope const*)':
LVIRReader.cpp:(.text._ZN4llvm11logicalview10LVIRReader14constructScopeEPNS0_9LVElementEPKNS_7DIScopeE+0xfc): undefined reference to `llvm::Metadata::dump(llvm::Module const*) const'
/usr/bin/ld: lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o: in function `llvm::logicalview::LVIRReader::addTemplateParams(llvm::logicalview::LVElement*, llvm::MDTupleTypedArrayWrapper<llvm::DINode>)':
LVIRReader.cpp:(.text._ZN4llvm11logicalview10LVIRReader17addTemplateParamsEPNS0_9LVElementENS_24MDTupleTypedArrayWrapperINS_6DINodeEEE+0x11c): undefined reference to `llvm::Metadata::dump(llvm::Module const*) const'
/usr/bin/ld: LVIRReader.cpp:(.text._ZN4llvm11logicalview10LVIRReader17addTemplateParamsEPNS0_9LVElementENS_24MDTupleTypedArrayWrapperINS_6DINodeEEE+0x174): undefined reference to `llvm::Metadata::dump(llvm::Module const*) const'
/usr/bin/ld: lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o: in function `llvm::logicalview::LVIRReader::constructTemplateTypeParameter(llvm::logicalview::LVElement*, llvm::DITemplateTypeParameter const*)':
LVIRReader.cpp:(.text._ZN4llvm11logicalview10LVIRReader30constructTemplateTypeParameterEPNS0_9LVElementEPKNS_23DITemplateTypeParameterE+0xf8): undefined reference to `llvm::Metadata::dump(llvm::Module const*) const'
/usr/bin/ld: lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Readers/LVIRReader.cpp.o: in function `llvm::logicalview::LVIRReader::constructTemplateValueParameter(llvm::logicalview::LVElement*, llvm::DITemplateValueParameter const*)':
LVIRReader.cpp:(.text._ZN4llvm11logicalview10LVIRReader31constructTemplateValueParameterEPNS0_9LVElementEPKNS_24DITemplateValueParameterE+0x104): undefined reference to `llvm::Metadata::dump(llvm::Module const*) const'
/usr/bin/ld: LVIRReader.cpp:(.text._ZN4llvm11logicalview10LVIRReader31constructTemplateValueParameterEPNS0_9LVElementEPKNS_24DITemplateValueParameterE+0x144): undefined reference to `llvm::DINode::getTag() const'
/usr/bin/ld: LVIRReader.cpp:(.text._ZN4llvm11logicalview10LVIRReader31constructTemplateValueParameterEPNS0_9LVElementEPKNS_24DITemplateValueParameterE+0x2ec): undefined reference to `llvm::DINode::getTag() const'
/usr/bin/ld: LVIRReader.cpp:(.text._ZN4llvm11logicalview10LVIRReader31constructTemplateValueParameterEPNS0_9LVElementEPKNS_24DITemplateValueParameterE+0x308): undefined reference to `llvm::MDString::getString() const'

CarlosAlbertoEnciso added a commit that referenced this pull request Jun 2, 2026
llvm-debuginfo-analyzer is a command line tool that processes debug
info contained in a binary file and produces a debug information
format agnostic “Logical View”, which is a high-level semantic
representation of the debug info, independent of the low-level format.

Add support for the LLVM IR format and be able to generate logical
views. Both textual representation (.ll) and bitcode (.bc) formats
are supported.

This relands #135440, which was
reverted in #199890.
It includes the fixes for the buildbots problems.
llvm-sync Bot pushed a commit to arm/arm-toolchain that referenced this pull request Jun 2, 2026
…(#200603)

llvm-debuginfo-analyzer is a command line tool that processes debug
info contained in a binary file and produces a debug information
format agnostic “Logical View”, which is a high-level semantic
representation of the debug info, independent of the low-level format.

Add support for the LLVM IR format and be able to generate logical
views. Both textual representation (.ll) and bitcode (.bc) formats
are supported.

This relands llvm/llvm-project#135440, which was
reverted in llvm/llvm-project#199890.
It includes the fixes for the buildbots problems.
llvm-upstreamsync Bot pushed a commit to qualcomm/cpullvm-toolchain that referenced this pull request Jun 2, 2026
…(#200603)

llvm-debuginfo-analyzer is a command line tool that processes debug
info contained in a binary file and produces a debug information
format agnostic “Logical View”, which is a high-level semantic
representation of the debug info, independent of the low-level format.

Add support for the LLVM IR format and be able to generate logical
views. Both textual representation (.ll) and bitcode (.bc) formats
are supported.

This relands llvm/llvm-project#135440, which was
reverted in llvm/llvm-project#199890.
It includes the fixes for the buildbots problems.
yingopq pushed a commit to yingopq/llvm-project that referenced this pull request Jun 5, 2026
llvm-debuginfo-analyzer is a command line tool that processes debug
info contained in a binary file and produces a debug information
format agnostic “Logical View”, which is a high-level semantic
representation of the debug info, independent of the low-level format.

Add support for the LLVM IR format and be able to generate logical
views. Both textual representation (.ll) and bitcode (.bc) formats
are supported.

This relands llvm#135440, which was
reverted in llvm#199890.
It includes the fixes for the buildbots problems.
CarlosAlbertoEnciso added a commit that referenced this pull request Jul 1, 2026
llvm-debuginfo-analyzer is a command line tool that processes debug
info contained in a binary file and produces a debug information
format agnostic “Logical View”, which is a high-level semantic
representation of the debug info, independent of the low-level format.

Add support for the LLVM IR format and be able to generate logical
views. Both textual representation (.ll) and bitcode (.bc) formats
are supported.

This relands #135440,
which was:
reverted in: #199890
relanded in: #200603
reverted in: #201019

It includes the fixes for the buildbots problems.
llvm-sync Bot pushed a commit to arm/arm-toolchain that referenced this pull request Jul 1, 2026
…(#202120)

llvm-debuginfo-analyzer is a command line tool that processes debug
info contained in a binary file and produces a debug information
format agnostic “Logical View”, which is a high-level semantic
representation of the debug info, independent of the low-level format.

Add support for the LLVM IR format and be able to generate logical
views. Both textual representation (.ll) and bitcode (.bc) formats
are supported.

This relands llvm/llvm-project#135440,
which was:
reverted in: llvm/llvm-project#199890
relanded in: llvm/llvm-project#200603
reverted in: llvm/llvm-project#201019

It includes the fixes for the buildbots problems.
llvm-upstreamsync Bot pushed a commit to qualcomm/cpullvm-toolchain that referenced this pull request Jul 1, 2026
…(#202120)

llvm-debuginfo-analyzer is a command line tool that processes debug
info contained in a binary file and produces a debug information
format agnostic “Logical View”, which is a high-level semantic
representation of the debug info, independent of the low-level format.

Add support for the LLVM IR format and be able to generate logical
views. Both textual representation (.ll) and bitcode (.bc) formats
are supported.

This relands llvm/llvm-project#135440,
which was:
reverted in: llvm/llvm-project#199890
relanded in: llvm/llvm-project#200603
reverted in: llvm/llvm-project#201019

It includes the fixes for the buildbots problems.
llvm-upstream-sync Bot pushed a commit to sriyalamar/cpullvm-toolchain that referenced this pull request Jul 1, 2026
…(#202120)

llvm-debuginfo-analyzer is a command line tool that processes debug
info contained in a binary file and produces a debug information
format agnostic “Logical View”, which is a high-level semantic
representation of the debug info, independent of the low-level format.

Add support for the LLVM IR format and be able to generate logical
views. Both textual representation (.ll) and bitcode (.bc) formats
are supported.

This relands llvm/llvm-project#135440,
which was:
reverted in: llvm/llvm-project#199890
relanded in: llvm/llvm-project#200603
reverted in: llvm/llvm-project#201019

It includes the fixes for the buildbots problems.
maarcosrmz pushed a commit to maarcosrmz/llvm-project that referenced this pull request Jul 1, 2026
llvm-debuginfo-analyzer is a command line tool that processes debug
info contained in a binary file and produces a debug information
format agnostic “Logical View”, which is a high-level semantic
representation of the debug info, independent of the low-level format.

Add support for the LLVM IR format and be able to generate logical
views. Both textual representation (.ll) and bitcode (.bc) formats
are supported.

This relands llvm#135440,
which was:
reverted in: llvm#199890
relanded in: llvm#200603
reverted in: llvm#201019

It includes the fixes for the buildbots problems.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants