Skip to content

[llvm-objdump] Add support for HIP offload bundles #114834

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 8, 2025

Conversation

david-salinas
Copy link
Contributor

Utilize the new extensions to the LLVM Offloading API to extend to llvm-objdump to handle dumping fatbin offload bundles generated by HIP. This extension to llvm-objdump adds the option --offload-fatbin. Specifying this option will take the input object/executable and extract all offload fatbin bundle entries into distinct code object files with names reflecting the source file name combined with the Bundle Entry ID. Users can also use the --arch-name option to filter offload fatbin bundle entries by their target triple.

Copy link

github-actions bot commented Nov 4, 2024

Thank you for submitting a Pull Request (PR) to the LLVM Project!

This PR will be automatically labeled and the relevant teams will be notified.

If you wish to, you can add reviewers by using the "Reviewers" section on this page.

If this is not working for you, it is probably because you do not have write permissions for the repository. In which case you can instead tag reviewers by name in a comment by using @ followed by their GitHub username.

If you have received no comments on your PR for a week, you can request a review by "ping"ing the PR by adding a comment “Ping”. The common courtesy "ping" rate is once a week. Please remember that you are asking for valuable time from other developers.

If you have further questions, they may be answered by the LLVM GitHub User Guide.

You can also ask questions in a comment on this PR, on the LLVM Discord or on the forums.

Copy link

github-actions bot commented Nov 4, 2024

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

@david-salinas david-salinas requested a review from lamb-j November 7, 2024 18:40
@david-salinas david-salinas force-pushed the extend-llvm-objdump-fatbin branch 3 times, most recently from 633c8af to b9297da Compare November 11, 2024 20:18
@david-salinas david-salinas marked this pull request as ready for review November 12, 2024 17:08
@llvmbot
Copy link
Member

llvmbot commented Nov 12, 2024

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

Author: David Salinas (david-salinas)

Changes

Utilize the new extensions to the LLVM Offloading API to extend to llvm-objdump to handle dumping fatbin offload bundles generated by HIP. This extension to llvm-objdump adds the option --offload-fatbin. Specifying this option will take the input object/executable and extract all offload fatbin bundle entries into distinct code object files with names reflecting the source file name combined with the Bundle Entry ID. Users can also use the --arch-name option to filter offload fatbin bundle entries by their target triple.


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

9 Files Affected:

  • (modified) llvm/include/llvm/Object/OffloadBinary.h (+169)
  • (modified) llvm/lib/Object/ObjectFile.cpp (-1)
  • (modified) llvm/lib/Object/OffloadBinary.cpp (+463)
  • (added) llvm/test/tools/llvm-objdump/Offloading/fatbin-offloading.test (+80)
  • (added) llvm/test/tools/llvm-objdump/Offloading/fatbin.test (+844)
  • (modified) llvm/tools/llvm-objdump/ObjdumpOpts.td (+3)
  • (modified) llvm/tools/llvm-objdump/OffloadDump.cpp (+52)
  • (modified) llvm/tools/llvm-objdump/OffloadDump.h (+2-1)
  • (modified) llvm/tools/llvm-objdump/llvm-objdump.cpp (+6-1)
diff --git a/llvm/include/llvm/Object/OffloadBinary.h b/llvm/include/llvm/Object/OffloadBinary.h
index c02aec8d956ed6..797dfc71e71c99 100644
--- a/llvm/include/llvm/Object/OffloadBinary.h
+++ b/llvm/include/llvm/Object/OffloadBinary.h
@@ -21,6 +21,8 @@
 #include "llvm/ADT/SmallString.h"
 #include "llvm/ADT/StringRef.h"
 #include "llvm/Object/Binary.h"
+#include "llvm/Object/ObjectFile.h"
+#include "llvm/Support/Compression.h"
 #include "llvm/Support/Error.h"
 #include "llvm/Support/MemoryBuffer.h"
 #include <memory>
@@ -49,6 +51,31 @@ enum ImageKind : uint16_t {
   IMG_LAST,
 };
 
+class CompressedOffloadBundle {
+private:
+  static inline const size_t MagicSize = 4;
+  static inline const size_t VersionFieldSize = sizeof(uint16_t);
+  static inline const size_t MethodFieldSize = sizeof(uint16_t);
+  static inline const size_t FileSizeFieldSize = sizeof(uint32_t);
+  static inline const size_t UncompressedSizeFieldSize = sizeof(uint32_t);
+  static inline const size_t HashFieldSize = sizeof(uint64_t);
+  static inline const size_t V1HeaderSize =
+      MagicSize + VersionFieldSize + MethodFieldSize +
+      UncompressedSizeFieldSize + HashFieldSize;
+  static inline const size_t V2HeaderSize =
+      MagicSize + VersionFieldSize + FileSizeFieldSize + MethodFieldSize +
+      UncompressedSizeFieldSize + HashFieldSize;
+  static inline const llvm::StringRef MagicNumber = "CCOB";
+  static inline const uint16_t Version = 2;
+
+public:
+  static llvm::Expected<std::unique_ptr<llvm::MemoryBuffer>>
+  compress(llvm::compression::Params P, const llvm::MemoryBuffer &Input,
+           bool Verbose = false);
+  static llvm::Expected<std::unique_ptr<llvm::MemoryBuffer>>
+  decompress(llvm::MemoryBufferRef &Input, bool Verbose = false);
+};
+
 /// A simple binary serialization of an offloading file. We use this format to
 /// embed the offloading image into the host executable so it can be extracted
 /// and used by the linker.
@@ -183,11 +210,153 @@ class OffloadFile : public OwningBinary<OffloadBinary> {
   }
 };
 
+struct BundleEntry {
+  uint64_t Offset = 0u;
+  uint64_t Size = 0u;
+  uint64_t IDLength = 0u;
+  StringRef ID;
+  BundleEntry(uint64_t O, uint64_t S, uint64_t I, StringRef T)
+      : Offset(O), Size(S), IDLength(I), ID(T) {}
+  void dumpInfo(raw_ostream &OS) {
+    OS << "Offset = " << Offset << ", Size = " << Size
+       << ", ID Length = " << IDLength << ", ID = " << ID;
+  }
+  void dumpURI(raw_ostream &OS, StringRef filePath) {
+    OS << ID.data() << "\tfile:\/\/" << filePath << "#offset=" << Offset
+       << "&size=" << Size << "\n";
+  }
+};
+
+class OffloadFatBinBundle {
+
+private:
+  uint64_t Size = 0u;
+  StringRef FileName;
+  int64_t NumberOfEntries;
+  SmallVector<BundleEntry> Entries;
+
+public:
+  SmallVector<BundleEntry> getEntries() { return Entries; }
+  uint64_t getSize() const { return Size; }
+  StringRef getFileName() const { return FileName; }
+  int64_t getNumEntries() const { return NumberOfEntries; }
+
+  static Expected<std::unique_ptr<OffloadFatBinBundle>>
+  create(MemoryBufferRef, uint64_t SectionOffset, StringRef fileName);
+  Error extractBundle(const ObjectFile &Source);
+
+  Error DumpEntryToCodeObject();
+
+  Error ReadEntries(StringRef Section, uint64_t SectionOffset);
+  void DumpEntries() {
+    SmallVectorImpl<BundleEntry>::iterator it = Entries.begin();
+    for (int64_t I = 0; I < Entries.size(); I++) {
+      it->dumpInfo(outs());
+      ++it;
+    }
+  }
+
+  void PrintEntriesAsURI() {
+    SmallVectorImpl<BundleEntry>::iterator it = Entries.begin();
+    for (int64_t I = 0; I < NumberOfEntries; I++) {
+      it->dumpURI(outs(), FileName);
+      ++it;
+    }
+  }
+
+  OffloadFatBinBundle(MemoryBufferRef Source, StringRef file) : FileName(file) {
+    NumberOfEntries = 0;
+    Entries = SmallVector<BundleEntry>();
+  }
+
+  SmallVector<BundleEntry> EntryIDContains(StringRef str) {
+    SmallVector<BundleEntry> found = SmallVector<BundleEntry>();
+    SmallVectorImpl<BundleEntry>::iterator it = Entries.begin();
+    for (int64_t I = 0; I < NumberOfEntries; I++) {
+      if (it->ID.contains(str)) {
+        found.push_back(*it);
+      }
+
+      ++it;
+    }
+    return found;
+  }
+};
+
+enum uri_type_t { FILE_URI, MEMORY_URI };
+
+struct OffloadBundleURI {
+  int64_t Offset = 0;
+  int64_t Size = 0;
+  uint64_t ProcessID = 0;
+  StringRef FileName;
+  uri_type_t URIType;
+
+  // Constructors
+  // TODO: add a Copy ctor ?
+  OffloadBundleURI(StringRef file, int64_t off, int64_t size)
+      : Offset(off), Size(size), ProcessID(0), FileName(file),
+        URIType(FILE_URI) {}
+
+  OffloadBundleURI(StringRef str, uri_type_t type) {
+    URIType = type;
+    switch (URIType) {
+    case FILE_URI:
+      parseFileName(str);
+      break;
+    case MEMORY_URI:
+      parseMemoryURI(str);
+      break;
+    default:
+      report_fatal_error("Unrecognized URI type.");
+    }
+  }
+
+  void parseFileName(StringRef str) {
+    ProcessID = 0;
+    URIType = FILE_URI;
+    if (str.consume_front("file://")) {
+      StringRef FilePathname =
+          str.take_until([](char c) { return (c == '#') || (c == '?'); });
+      FileName = FilePathname;
+      str = str.drop_front(FilePathname.size());
+
+      if (str.consume_front("#offset=")) {
+        StringRef OffsetStr = str.take_until([](char c) { return c == '&'; });
+        OffsetStr.getAsInteger(10, Offset);
+        str = str.drop_front(OffsetStr.size());
+
+        if (str.consume_front("&size=")) {
+          Size;
+          str.getAsInteger(10, Size);
+        } else
+          report_fatal_error("Reading 'size' in URI.");
+      } else
+        report_fatal_error("Reading 'offset' in URI.");
+    } else
+      report_fatal_error("Reading type of URI.");
+  }
+
+  void parseMemoryURI(StringRef str) {
+    // TODO: add parseMemoryURI type
+  }
+
+  StringRef getFileName() const { return FileName; }
+};
+
 /// Extracts embedded device offloading code from a memory \p Buffer to a list
 /// of \p Binaries.
 Error extractOffloadBinaries(MemoryBufferRef Buffer,
                              SmallVectorImpl<OffloadFile> &Binaries);
 
+Error extractFatBinaryFromObject(const ObjectFile &Obj,
+                                 SmallVectorImpl<OffloadFatBinBundle> &Bundles);
+
+Error extractCodeObject(const ObjectFile &Source, int64_t Offset, int64_t Size,
+                        StringRef OutputFileName);
+
+Error extractURI(StringRef URIstr);
+
 /// Convert a string \p Name to an image kind.
 ImageKind getImageKind(StringRef Name);
 
diff --git a/llvm/lib/Object/ObjectFile.cpp b/llvm/lib/Object/ObjectFile.cpp
index 6a226a3bbdbca3..636e3e2423d53f 100644
--- a/llvm/lib/Object/ObjectFile.cpp
+++ b/llvm/lib/Object/ObjectFile.cpp
@@ -212,7 +212,6 @@ ObjectFile::createObjectFile(StringRef ObjectPath) {
   if (std::error_code EC = FileOrErr.getError())
     return errorCodeToError(EC);
   std::unique_ptr<MemoryBuffer> Buffer = std::move(FileOrErr.get());
-
   Expected<std::unique_ptr<ObjectFile>> ObjOrErr =
       createObjectFile(Buffer->getMemBufferRef());
   if (Error Err = ObjOrErr.takeError())
diff --git a/llvm/lib/Object/OffloadBinary.cpp b/llvm/lib/Object/OffloadBinary.cpp
index 89dc12551494fd..a6ff0795671add 100644
--- a/llvm/lib/Object/OffloadBinary.cpp
+++ b/llvm/lib/Object/OffloadBinary.cpp
@@ -9,6 +9,7 @@
 #include "llvm/Object/OffloadBinary.h"
 
 #include "llvm/ADT/StringSwitch.h"
+#include "llvm/BinaryFormat/COFF.h"
 #include "llvm/BinaryFormat/Magic.h"
 #include "llvm/IR/Constants.h"
 #include "llvm/IR/Module.h"
@@ -23,14 +24,20 @@
 #include "llvm/Object/IRObjectFile.h"
 #include "llvm/Object/ObjectFile.h"
 #include "llvm/Support/Alignment.h"
+#include "llvm/Support/BinaryStreamReader.h"
 #include "llvm/Support/FileOutputBuffer.h"
 #include "llvm/Support/SourceMgr.h"
+#include "llvm/Support/Timer.h"
 
 using namespace llvm;
 using namespace llvm::object;
 
 namespace {
 
+static llvm::TimerGroup
+    ClangOffloadBundlerTimerGroup("Clang Offload Bundler Timer Group",
+                                  "Timer group for clang offload bundler");
+
 /// Attempts to extract all the embedded device images contained inside the
 /// buffer \p Contents. The buffer is expected to contain a valid offloading
 /// binary format.
@@ -99,6 +106,48 @@ Error extractFromObject(const ObjectFile &Obj,
   return Error::success();
 }
 
+// Extract an Offload bundle (usually a Clang Offload Bundle) from a fat_bin
+// section
+Error extractOffloadBundle(MemoryBufferRef Contents, uint64_t SectionOffset,
+                           StringRef fileName,
+                           SmallVectorImpl<OffloadFatBinBundle> &Bundles) {
+
+  uint64_t Offset = 0;
+  int64_t nextbundleStart = 0;
+
+  // There could be multiple offloading bundles stored at this section.
+  while (nextbundleStart >= 0) {
+
+    std::unique_ptr<MemoryBuffer> Buffer =
+        MemoryBuffer::getMemBuffer(Contents.getBuffer().drop_front(Offset), "",
+                                   /*RequiresNullTerminator*/ false);
+
+    // Create the FatBinBindle object. This will also create the Bundle Entry
+    // list info.
+    auto FatBundleOrErr =
+        OffloadFatBinBundle::create(*Buffer, SectionOffset + Offset, fileName);
+    if (!FatBundleOrErr)
+      return FatBundleOrErr.takeError();
+    OffloadFatBinBundle &Bundle = **FatBundleOrErr;
+
+    // add current Bundle to list.
+    Bundles.emplace_back(std::move(**FatBundleOrErr));
+
+    // find the next bundle by searching for the magic string
+    StringRef str = Buffer->getBuffer();
+    nextbundleStart =
+        (int64_t)str.find(StringRef("__CLANG_OFFLOAD_BUNDLE__"), 24);
+
+    if (nextbundleStart >= 0)
+      Offset += nextbundleStart;
+    else {
+      return Error::success();
+    }
+  } // end of while loop
+
+  return Error::success();
+}
+
 Error extractFromBitcode(MemoryBufferRef Buffer,
                          SmallVectorImpl<OffloadFile> &Binaries) {
   LLVMContext Context;
@@ -170,6 +219,102 @@ Error extractFromArchive(const Archive &Library,
 
 } // namespace
 
+Error OffloadFatBinBundle::ReadEntries(StringRef Buffer,
+                                       uint64_t SectionOffset) {
+  uint64_t BundleNumber = 0;
+  uint64_t NumOfEntries = 0;
+
+  // get Reader
+  BinaryStreamReader Reader(Buffer, llvm::endianness::little);
+
+  // Read the Magic String first.
+  StringRef Magic;
+  if (auto EC = Reader.readFixedString(Magic, 24)) {
+    return errorCodeToError(object_error::parse_failed);
+  }
+
+  // read the number of Code Objects (Entries) in the current Bundle.
+  if (auto EC = Reader.readInteger(NumOfEntries)) {
+    printf("OffloadFatBinBundle::ReadEntries .... failed to read number of "
+           "Entries\n");
+    return errorCodeToError(object_error::parse_failed);
+  }
+  NumberOfEntries = NumOfEntries;
+
+  // For each Bundle Entry (code object)
+  for (uint64_t I = 0; I < NumOfEntries; I++) {
+    uint64_t EntrySize;
+    uint64_t EntryOffset;
+    uint64_t EntryIDSize;
+    StringRef EntryID;
+    uint64_t absOffset;
+
+    if (auto EC = Reader.readInteger(EntryOffset)) {
+      return errorCodeToError(object_error::parse_failed);
+    }
+
+    if (auto EC = Reader.readInteger(EntrySize)) {
+      return errorCodeToError(object_error::parse_failed);
+    }
+
+    if (auto EC = Reader.readInteger(EntryIDSize)) {
+      return errorCodeToError(object_error::parse_failed);
+    }
+
+    if (auto EC = Reader.readFixedString(EntryID, EntryIDSize)) {
+      return errorCodeToError(object_error::parse_failed);
+    }
+
+    // create a Bundle Entry object:
+    auto entry = new BundleEntry(EntryOffset + SectionOffset, EntrySize,
+                                 EntryIDSize, EntryID);
+
+    Entries.push_back(*entry);
+  } // end of for loop
+
+  return Error::success();
+}
+
+Expected<std::unique_ptr<OffloadFatBinBundle>>
+OffloadFatBinBundle::create(MemoryBufferRef Buf, uint64_t SectionOffset,
+                            StringRef fileName) {
+  if (Buf.getBufferSize() < 24)
+    return errorCodeToError(object_error::parse_failed);
+
+  // Check for magic bytes.
+  if (identify_magic(Buf.getBuffer()) != file_magic::offload_bundle)
+    return errorCodeToError(object_error::parse_failed);
+
+  OffloadFatBinBundle *TheBundle = new OffloadFatBinBundle(Buf, fileName);
+
+  // Read the Bundle Entries
+  Error Err = TheBundle->ReadEntries(Buf.getBuffer(), SectionOffset);
+  if (Err)
+    return errorCodeToError(object_error::parse_failed);
+
+  return std::unique_ptr<OffloadFatBinBundle>(TheBundle);
+}
+
+Error OffloadFatBinBundle::extractBundle(const ObjectFile &Source) {
+  // This will extract all entries in the Bundle
+  SmallVectorImpl<BundleEntry>::iterator it = Entries.begin();
+  for (int64_t I = 0; I < getNumEntries(); I++) {
+
+    if (it->Size > 0) {
+      // create output file name. Which should be
+      // <fileName>-offset<Offset>-size<Size>.co"
+      std::string str = getFileName().str() + "-offset" + itostr(it->Offset) +
+                        "-size" + itostr(it->Size) + ".co";
+      if (Error Err = object::extractCodeObject(Source, it->Offset, it->Size,
+                                                StringRef(str)))
+        return Err;
+    }
+    ++it;
+  }
+
+  return Error::success();
+}
+
 Expected<std::unique_ptr<OffloadBinary>>
 OffloadBinary::create(MemoryBufferRef Buf) {
   if (Buf.getBufferSize() < sizeof(Header) + sizeof(Entry))
@@ -299,6 +444,104 @@ Error object::extractOffloadBinaries(MemoryBufferRef Buffer,
   }
 }
 
+Error object::extractFatBinaryFromObject(
+    const ObjectFile &Obj, SmallVectorImpl<OffloadFatBinBundle> &Bundles) {
+  assert((Obj.isELF() || Obj.isCOFF()) && "Invalid file type");
+
+  // iterate through Sections until we find an offload_bundle section.
+  for (SectionRef Sec : Obj.sections()) {
+    Expected<StringRef> Buffer = Sec.getContents();
+    if (!Buffer)
+      return Buffer.takeError();
+
+    // If it does not start with the reserved suffix, just skip this section.
+    if ((llvm::identify_magic(*Buffer) == llvm::file_magic::offload_bundle) ||
+        (llvm::identify_magic(*Buffer) ==
+         llvm::file_magic::offload_bundle_compressed)) {
+
+      uint64_t SectionOffset = 0;
+      if (Obj.isELF()) {
+        SectionOffset = ELFSectionRef(Sec).getOffset();
+      } else if (Obj.isCOFF()) {
+        if (const COFFObjectFile *COFFObj = dyn_cast<COFFObjectFile>(&Obj)) {
+          const coff_section *CoffSection = COFFObj->getCOFFSection(Sec);
+        }
+      }
+
+      MemoryBufferRef Contents(*Buffer, Obj.getFileName());
+
+      if (llvm::identify_magic(*Buffer) ==
+          llvm::file_magic::offload_bundle_compressed) {
+        // Decompress the input if necessary.
+        Expected<std::unique_ptr<MemoryBuffer>> DecompressedBufferOrErr =
+            CompressedOffloadBundle::decompress(Contents, false);
+
+        if (!DecompressedBufferOrErr)
+          return createStringError(
+              inconvertibleErrorCode(),
+              "Failed to decompress input: " +
+                  llvm::toString(DecompressedBufferOrErr.takeError()));
+
+        MemoryBuffer &DecompressedInput = **DecompressedBufferOrErr;
+        if (Error Err = extractOffloadBundle(DecompressedInput, SectionOffset,
+                                             Obj.getFileName(), Bundles))
+          return Err;
+      } else {
+        if (Error Err = extractOffloadBundle(Contents, SectionOffset,
+                                             Obj.getFileName(), Bundles))
+          return Err;
+      }
+    }
+  }
+  return Error::success();
+}
+
+Error object::extractCodeObject(const ObjectFile &Source, int64_t Offset,
+                                int64_t Size, StringRef OutputFileName) {
+  Expected<std::unique_ptr<FileOutputBuffer>> BufferOrErr =
+      FileOutputBuffer::create(OutputFileName, Size);
+
+  if (!BufferOrErr)
+    return BufferOrErr.takeError();
+
+  Expected<MemoryBufferRef> InputBuffOrErr = Source.getMemoryBufferRef();
+  if (Error Err = InputBuffOrErr.takeError())
+    return Err;
+
+  std::unique_ptr<FileOutputBuffer> Buf = std::move(*BufferOrErr);
+  std::copy(InputBuffOrErr->getBufferStart() + Offset,
+            InputBuffOrErr->getBufferStart() + Offset + Size,
+            Buf->getBufferStart());
+  if (Error E = Buf->commit())
+    return E;
+
+  return Error::success();
+}
+
+// given a file name, offset, and size, extract data into a code object file,
+// into file <SourceFile>-offset<Offset>-size<Size>.co
+Error object::extractURI(StringRef URIstr) {
+  // create a URI object
+  object::OffloadBundleURI *uri =
+      new object::OffloadBundleURI(URIstr, FILE_URI);
+
+  std::string OutputFile = uri->FileName.str();
+  OutputFile +=
+      "-offset" + itostr(uri->Offset) + "-size" + itostr(uri->Size) + ".co";
+
+  // Create an ObjectFile object from uri.file_uri
+  auto ObjOrErr = ObjectFile::createObjectFile(uri->FileName);
+  if (!ObjOrErr)
+    return ObjOrErr.takeError();
+
+  auto Obj = ObjOrErr->getBinary();
+  if (Error Err =
+          object::extractCodeObject(*Obj, uri->Offset, uri->Size, OutputFile))
+    return Err;
+
+  return Error::success();
+}
+
 OffloadKind object::getOffloadKind(StringRef Name) {
   return llvm::StringSwitch<OffloadKind>(Name)
       .Case("openmp", OFK_OpenMP)
@@ -382,3 +625,223 @@ bool object::areTargetsCompatible(const OffloadFile::TargetID &LHS,
     return false;
   return true;
 }
+
+// Utility function to format numbers with commas
+static std::string formatWithCommas(unsigned long long Value) {
+  std::string Num = std::to_string(Value);
+  int InsertPosition = Num.length() - 3;
+  while (InsertPosition > 0) {
+    Num.insert(InsertPosition, ",");
+    InsertPosition -= 3;
+  }
+  return Num;
+}
+
+llvm::Expected<std::unique_ptr<llvm::MemoryBuffer>>
+CompressedOffloadBundle::decompress(llvm::MemoryBufferRef &Input,
+
+                                    bool Verbose) {
+  StringRef Blob = Input.getBuffer();
+
+  if (Blob.size() < V1HeaderSize)
+    return llvm::MemoryBuffer::getMemBufferCopy(Blob);
+
+  if (llvm::identify_magic(Blob) !=
+      llvm::file_magic::offload_bundle_compressed) {
+    if (Verbose)
+      llvm::errs() << "Uncompressed bundle.\n";
+    return llvm::MemoryBuffer::getMemBufferCopy(Blob);
+  }
+
+  size_t CurrentOffset = MagicSize;
+
+  uint16_t ThisVersion;
+  memcpy(&ThisVersion, Blob.data() + CurrentOffset, sizeof(uint16_t));
+  CurrentOffset += VersionFieldSize;
+
+  uint16_t CompressionMethod;
+  memcpy(&CompressionMethod, Blob.data() + CurrentOffset, sizeof(uint16_t));
+  CurrentOffset += MethodFieldSize;
+
+  uint32_t TotalFileSize;
+  if (ThisVersion >= 2) {
+    if (Blob.size() < V2HeaderSize)
+      return createStringError(inconvertibleErrorCode(),
+                               "Compressed bundle header size too small");
+    memcpy(&TotalFileSize, Blob.data() + CurrentOffset, sizeof(uint32_t));
+    CurrentOffset += FileSizeFieldSize;
+  }
+
+  uint32_t UncompressedSize;
+  memcpy(&UncompressedSize, Blob.data() + CurrentOffset, sizeof(uint32_t));
+  CurrentOffset += UncompressedSizeFieldSize;
+
+  uint64_t StoredHash;
+  memcpy(&StoredHash, Blob.data() + CurrentOffset, sizeof(uint64_t));
+  CurrentOffset += HashFieldSize;
+
+  llvm::compression::Format CompressionFormat;
+  if (CompressionMethod ==
+      static_cast<uint16_t>(llvm::compression::Format::Zlib))
+    CompressionFormat = llvm::compression::Format::Zlib;
+  else if (CompressionMethod ==
+           static_cast<uint16_t>(llvm::compression::Format::Zstd))
+    CompressionFormat = llvm::compression::Format::Zstd;
+  else
+    return createStringError(inconvertibleErrorCode(),
+                             "Unknown compressing method");
+
+  llvm::Timer DecompressTimer("Decompression Timer", "Decompression time",
+                              ClangOffloadBundlerTimerGroup);
+  if (Verbose)
+    DecompressTimer.startTimer();
+
+  SmallVector<uint8_t, 0> DecompressedData;
+  StringRef CompressedData = Blob.substr(CurrentOffset);
+  if (llvm::Error DecompressionError = llvm::compression::decompress(
+          CompressionFormat, llvm::arrayRefFromStringRef(CompressedData),
+          DecompressedData, UncompressedSize))
+    return createStringError(inconvertibleErrorCode(),
+                             "Could not decompress embedded file contents: " +
+                                 llvm::toString(std::move(DecompressionError)));
+
+  if (Verbo...
[truncated]

@david-salinas david-salinas force-pushed the extend-llvm-objdump-fatbin branch 3 times, most recently from bf32c0c to 27f2e97 Compare November 19, 2024 20:24
@jplehr jplehr self-requested a review December 9, 2024 16:09
@david-salinas david-salinas requested a review from jh7370 December 12, 2024 18:41
@jplehr
Copy link
Contributor

jplehr commented Jan 17, 2025

I wanted to run this through some testing but it seems that the current version does not build.

@david-salinas david-salinas force-pushed the extend-llvm-objdump-fatbin branch from 548e7de to bdc532d Compare January 17, 2025 19:10
@david-salinas
Copy link
Contributor Author

I wanted to run this through some testing but it seems that the current version does not build.

@jplehr i've pushed a new patch that resolves the build issue.

Copy link
Contributor

@jplehr jplehr left a comment

Choose a reason for hiding this comment

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

I left a few minor comments and ran my local testing via the buildbot configs I have. That all seems to work. Thanks.

@david-salinas david-salinas force-pushed the extend-llvm-objdump-fatbin branch from bdc532d to 4742936 Compare January 22, 2025 21:55
Copy link
Collaborator

@jh7370 jh7370 left a comment

Choose a reason for hiding this comment

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

Please remember to update the llvm-objdump command guide when functionality (especially a new option) is added/changed.

  extend option --offloading

Change-Id: Ibc865f80e30aa1a6e5495ecfe617be68a5e15fcf
@david-salinas david-salinas force-pushed the extend-llvm-objdump-fatbin branch from 6fa91a9 to 8b238c2 Compare March 25, 2025 15:50
Copy link
Contributor

@jhuber6 jhuber6 left a comment

Choose a reason for hiding this comment

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

Seems fine for now.

Comment on lines +109 to +112
// Create a Bundle Entry object:
// auto Entry = new OffloadBundleEntry(EntryOffset + SectionOffset,
// EntrySize,
// EntryIDSize, EntryID);
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
// Create a Bundle Entry object:
// auto Entry = new OffloadBundleEntry(EntryOffset + SectionOffset,
// EntrySize,
// EntryIDSize, EntryID);

Nit

@david-salinas
Copy link
Contributor Author

I've verified this patch with Top of Tree in branch "main".

@david-salinas david-salinas merged commit 06d6623 into llvm:main May 8, 2025
12 checks passed
Copy link

github-actions bot commented May 8, 2025

@david-salinas Congratulations on having your first Pull Request (PR) merged into the LLVM Project!

Your changes will be combined with recent changes from other authors, then tested by our build bots. If there is a problem with a build, you may receive a report in an email or a comment on this PR.

Please check whether problems have been caused by your change specifically, as the builds can include changes from many authors. It is not uncommon for your change to be included in a build that fails due to someone else's changes, or infrastructure issues.

How to do this, and the rest of the post-merge process, is covered in detail here.

If your change does cause a problem, it may be reverted, or you can revert it yourself. This is a normal part of LLVM development. You can fix your changes and open a new PR to merge them again.

If you don't get any reports, no action is required from you. Your changes are working as expected, well done!

@llvm-ci
Copy link
Collaborator

llvm-ci commented May 8, 2025

LLVM Buildbot has detected a new failure on builder openmp-offload-amdgpu-runtime-2 running on rocm-worker-hw-02 while building llvm at step 5 "compile-openmp".

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

Here is the relevant piece of the build log for the reference
Step 5 (compile-openmp) failure: build (failure)
...
0.142 [395/130/172] Building CXX object libc/src/string/CMakeFiles/libc.src.string.strspn.dir/strspn.cpp.o
0.143 [394/130/173] Building CXX object libc/src/strings/CMakeFiles/libc.src.strings.strcasecmp.dir/strcasecmp.cpp.o
0.143 [393/130/174] Generating /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.build/include/amdgcn-amd-amdhsa/llvm-libc-decls/wchar.h
0.143 [392/130/175] Generating header wchar.h from /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/runtimes/../libc/include/wchar.yaml
0.144 [391/130/176] Generating /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.build/include/amdgcn-amd-amdhsa/llvm-libc-decls/stdlib.h
0.144 [390/130/177] Generating /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.build/include/amdgcn-amd-amdhsa/llvm-libc-decls/locale.h
0.145 [389/130/178] Generating /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.build/include/amdgcn-amd-amdhsa/llvm-libc-decls/uchar.h
0.145 [389/129/179] Building CXX object libc/src/math/amdgpu/CMakeFiles/libc.src.math.amdgpu.lgamma.dir/lgamma.cpp.o
0.145 [389/128/180] Generating /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.build/include/amdgcn-amd-amdhsa/llvm-libc-decls/string.h
0.146 [386/130/181] Building CXX object libc/src/stdlib/CMakeFiles/libc.src.stdlib.memalignment.dir/memalignment.cpp.o
FAILED: libc/src/stdlib/CMakeFiles/libc.src.stdlib.memalignment.dir/memalignment.cpp.o 
/home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.build/./bin/clang++ --target=amdgcn-amd-amdhsa -DLIBC_NAMESPACE=__llvm_libc_21_0_0_git -D__LIBC_USE_FLOAT16_CONVERSION -I/home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/libc -isystem /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.build/include/amdgcn-amd-amdhsa -O3 -DNDEBUG --target=amdgcn-amd-amdhsa -DLIBC_QSORT_IMPL=LIBC_QSORT_QUICK_SORT -DLIBC_ADD_NULL_CHECKS "-DLIBC_MATH=(LIBC_MATH_SKIP_ACCURATE_PASS | LIBC_MATH_SMALL_TABLES | LIBC_MATH_NO_ERRNO | LIBC_MATH_NO_EXCEPT)" -fpie -DLIBC_FULL_BUILD -nostdlibinc -ffixed-point -fno-exceptions -fno-lax-vector-conversions -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-rtti -ftrivial-auto-var-init=pattern -fno-omit-frame-pointer -Wall -Wextra -Werror -Wconversion -Wno-sign-conversion -Wdeprecated -Wno-c99-extensions -Wno-gnu-imaginary-constant -Wno-pedantic -Wimplicit-fallthrough -Wwrite-strings -Wextra-semi -Wnewline-eof -Wnonportable-system-include-path -Wstrict-prototypes -Wthread-safety -Wglobal-constructors -nogpulib -fvisibility=hidden -fconvergent-functions -flto -Wno-multi-gpu -Xclang -mcode-object-version=none -DLIBC_COPT_PUBLIC_PACKAGING -UNDEBUG -MD -MT libc/src/stdlib/CMakeFiles/libc.src.stdlib.memalignment.dir/memalignment.cpp.o -MF libc/src/stdlib/CMakeFiles/libc.src.stdlib.memalignment.dir/memalignment.cpp.o.d -o libc/src/stdlib/CMakeFiles/libc.src.stdlib.memalignment.dir/memalignment.cpp.o -c /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/libc/src/stdlib/memalignment.cpp
/home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/libc/src/stdlib/memalignment.cpp:20:3: error: unknown type name 'uintptr_t'
   20 |   uintptr_t addr = reinterpret_cast<uintptr_t>(p);
      |   ^
/home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/libc/src/stdlib/memalignment.cpp:20:37: error: unknown type name 'uintptr_t'
   20 |   uintptr_t addr = reinterpret_cast<uintptr_t>(p);
      |                                     ^
2 errors generated.
0.146 [386/129/182] Building CXX object libc/src/strings/CMakeFiles/libc.src.strings.strncasecmp.dir/strncasecmp.cpp.o
0.146 [386/128/183] Generating header ctype.h from /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/runtimes/../libc/include/ctype.yaml
0.146 [386/127/184] Generating /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.build/include/amdgcn-amd-amdhsa/llvm-libc-decls/ctype.h
0.146 [386/126/185] Generating header locale.h from /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/runtimes/../libc/include/locale.yaml
0.146 [386/125/186] Generating header uchar.h from /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/runtimes/../libc/include/uchar.yaml
0.146 [386/124/187] Generating /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.build/include/amdgcn-amd-amdhsa/llvm-libc-decls/time.h
0.147 [386/123/188] Generating /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.build/include/amdgcn-amd-amdhsa/llvm-libc-decls/stdio.h
0.153 [386/122/189] Generating header stdio.h from /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/runtimes/../libc/include/stdio.yaml
0.156 [386/121/190] Generating header stdlib.h from /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/runtimes/../libc/include/stdlib.yaml
0.157 [386/120/191] Generating header time.h from /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/runtimes/../libc/include/time.yaml
0.159 [386/119/192] Building CXX object libc/src/strings/CMakeFiles/libc.src.strings.bcopy.dir/bcopy.cpp.o
0.172 [386/118/193] Generating /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.build/include/amdgcn-amd-amdhsa/llvm-libc-decls/signal.h
0.172 [386/117/194] Generating header signal.h from /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/runtimes/../libc/include/signal.yaml
0.186 [386/116/195] Building CXX object libc/src/string/CMakeFiles/libc.src.string.strstr.dir/strstr.cpp.o
0.193 [386/115/196] Building CXX object libc/src/__support/GPU/CMakeFiles/libc.src.__support.GPU.allocator.dir/allocator.cpp.o
0.194 [386/114/197] Building CXX object libc/src/string/CMakeFiles/libc.src.string.strcasestr.dir/strcasestr.cpp.o
0.196 [386/113/198] Building CXX object libc/src/math/generic/CMakeFiles/libc.src.math.generic.common_constants.dir/common_constants.cpp.o
0.197 [386/112/199] Building CXX object libc/src/stdbit/CMakeFiles/libc.src.stdbit.stdc_leading_zeros_ul.dir/stdc_leading_zeros_ul.cpp.o
0.201 [386/111/200] Building CXX object libc/src/stdbit/CMakeFiles/libc.src.stdbit.stdc_leading_zeros_uc.dir/stdc_leading_zeros_uc.cpp.o
0.201 [386/110/201] Building CXX object libc/src/stdbit/CMakeFiles/libc.src.stdbit.stdc_trailing_ones_ui.dir/stdc_trailing_ones_ui.cpp.o
0.203 [386/109/202] Building CXX object libc/src/errno/CMakeFiles/libc.src.errno.errno.dir/libc_errno.cpp.o
0.214 [386/108/203] Building CXX object libc/src/stdbit/CMakeFiles/libc.src.stdbit.stdc_bit_floor_ul.dir/stdc_bit_floor_ul.cpp.o
0.215 [386/107/204] Building CXX object libc/src/stdbit/CMakeFiles/libc.src.stdbit.stdc_trailing_ones_uc.dir/stdc_trailing_ones_uc.cpp.o
0.215 [386/106/205] Building CXX object libc/src/stdbit/CMakeFiles/libc.src.stdbit.stdc_leading_ones_ul.dir/stdc_leading_ones_ul.cpp.o
0.216 [386/105/206] Building CXX object libc/src/stdbit/CMakeFiles/libc.src.stdbit.stdc_trailing_zeros_ull.dir/stdc_trailing_zeros_ull.cpp.o
0.217 [386/104/207] Building CXX object libc/src/stdbit/CMakeFiles/libc.src.stdbit.stdc_leading_zeros_ull.dir/stdc_leading_zeros_ull.cpp.o
0.217 [386/103/208] Building CXX object libc/src/stdbit/CMakeFiles/libc.src.stdbit.stdc_leading_zeros_ui.dir/stdc_leading_zeros_ui.cpp.o
0.218 [386/102/209] Building CXX object libc/src/stdbit/CMakeFiles/libc.src.stdbit.stdc_trailing_ones_ull.dir/stdc_trailing_ones_ull.cpp.o
0.218 [386/101/210] Building CXX object libc/src/stdbit/CMakeFiles/libc.src.stdbit.stdc_leading_zeros_us.dir/stdc_leading_zeros_us.cpp.o
0.219 [386/100/211] Building CXX object libc/src/stdbit/CMakeFiles/libc.src.stdbit.stdc_count_ones_ui.dir/stdc_count_ones_ui.cpp.o

@llvm-ci
Copy link
Collaborator

llvm-ci commented May 8, 2025

LLVM Buildbot has detected a new failure on builder mlir-nvidia-gcc7 running on mlir-nvidia while building llvm at step 6 "build-check-mlir-build-only".

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

Here is the relevant piece of the build log for the reference
Step 6 (build-check-mlir-build-only) failure: build (failure)
...
16.319 [1577/16/3188] Building CXX object tools/mlir/lib/Conversion/SCFToControlFlow/CMakeFiles/obj.MLIRSCFToControlFlow.dir/SCFToControlFlow.cpp.o
/vol/worker/mlir-nvidia/mlir-nvidia-gcc7/llvm.src/mlir/lib/Conversion/SCFToControlFlow/SCFToControlFlow.cpp: In member function ‘virtual llvm::LogicalResult {anonymous}::ParallelLowering::matchAndRewrite(mlir::scf::ParallelOp, mlir::PatternRewriter&) const’:
/vol/worker/mlir-nvidia/mlir-nvidia-gcc7/llvm.src/mlir/lib/Conversion/SCFToControlFlow/SCFToControlFlow.cpp:500:36: warning: unused variable ‘iv’ [-Wunused-variable]
   for (auto [iv, lower, upper, step] :
                                    ^
At global scope:
cc1plus: warning: unrecognized command line option ‘-Wno-deprecated-copy’
cc1plus: warning: unrecognized command line option ‘-Wno-unnecessary-virtual-specifier’
16.322 [1576/16/3189] Building CXX object tools/mlir/lib/Transforms/Utils/CMakeFiles/obj.MLIRTransformUtils.dir/DialectConversion.cpp.o
16.326 [1575/16/3190] Building CXX object lib/Object/CMakeFiles/LLVMObject.dir/OffloadBundle.cpp.o
FAILED: lib/Object/CMakeFiles/LLVMObject.dir/OffloadBundle.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes CCACHE_SLOPPINESS=pch_defines,time_macros /usr/bin/ccache /usr/bin/g++-7 -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/vol/worker/mlir-nvidia/mlir-nvidia-gcc7/llvm.obj/lib/Object -I/vol/worker/mlir-nvidia/mlir-nvidia-gcc7/llvm.src/llvm/lib/Object -I/vol/worker/mlir-nvidia/mlir-nvidia-gcc7/llvm.obj/include -I/vol/worker/mlir-nvidia/mlir-nvidia-gcc7/llvm.src/llvm/include -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-noexcept-type -Wno-unnecessary-virtual-specifier -Wdelete-non-virtual-dtor -Wno-comment -Wno-misleading-indentation -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -std=c++1z -MD -MT lib/Object/CMakeFiles/LLVMObject.dir/OffloadBundle.cpp.o -MF lib/Object/CMakeFiles/LLVMObject.dir/OffloadBundle.cpp.o.d -o lib/Object/CMakeFiles/LLVMObject.dir/OffloadBundle.cpp.o -c /vol/worker/mlir-nvidia/mlir-nvidia-gcc7/llvm.src/llvm/lib/Object/OffloadBundle.cpp
In file included from /vol/worker/mlir-nvidia/mlir-nvidia-gcc7/llvm.src/llvm/lib/Object/OffloadBundle.cpp:9:0:
/vol/worker/mlir-nvidia/mlir-nvidia-gcc7/llvm.src/llvm/include/llvm/Object/OffloadBundle.h: In static member function ‘static llvm::Expected<std::unique_ptr<llvm::object::OffloadBundleURI> > llvm::object::OffloadBundleURI::createFileURI(llvm::StringRef)’:
/vol/worker/mlir-nvidia/mlir-nvidia-gcc7/llvm.src/llvm/include/llvm/Object/OffloadBundle.h:182:12: error: could not convert ‘OffloadingURI’ from ‘std::unique_ptr<llvm::object::OffloadBundleURI>’ to ‘llvm::Expected<std::unique_ptr<llvm::object::OffloadBundleURI> >’
     return OffloadingURI;
            ^~~~~~~~~~~~~
/vol/worker/mlir-nvidia/mlir-nvidia-gcc7/llvm.src/llvm/lib/Object/OffloadBundle.cpp: In function ‘llvm::Error llvm::object::extractOffloadBundleFatBinary(const llvm::object::ObjectFile&, llvm::SmallVectorImpl<llvm::object::OffloadBundleFatBin>&)’:
/vol/worker/mlir-nvidia/mlir-nvidia-gcc7/llvm.src/llvm/lib/Object/OffloadBundle.cpp:181:31: warning: unused variable ‘CoffSection’ [-Wunused-variable]
           const coff_section *CoffSection = COFFObj->getCOFFSection(Sec);
                               ^~~~~~~~~~~
At global scope:
cc1plus: warning: unrecognized command line option ‘-Wno-unnecessary-virtual-specifier’
16.328 [1575/15/3191] Building CXX object tools/mlir/lib/Dialect/GPU/CMakeFiles/obj.MLIRGPUTransforms.dir/Transforms/AllReduceLowering.cpp.o
16.333 [1575/14/3192] Building CXX object tools/mlir/lib/Dialect/IRDL/CMakeFiles/obj.MLIRIRDL.dir/IRDLSymbols.cpp.o
16.334 [1575/13/3193] Building CXX object tools/mlir/lib/Dialect/IRDL/CMakeFiles/obj.MLIRIRDL.dir/IRDLVerifiers.cpp.o
16.335 [1575/12/3194] Building CXX object tools/mlir/lib/Dialect/Linalg/TransformOps/CMakeFiles/obj.MLIRLinalgTransformOps.dir/Syntax.cpp.o
16.337 [1575/11/3195] Building CXX object tools/mlir/lib/Dialect/Index/IR/CMakeFiles/obj.MLIRIndexDialect.dir/InferIntRangeInterfaceImpls.cpp.o
16.345 [1575/10/3196] Building CXX object tools/mlir/lib/Conversion/SPIRVToLLVM/CMakeFiles/obj.MLIRSPIRVToLLVM.dir/ConvertLaunchFuncToLLVMCalls.cpp.o
16.346 [1575/9/3197] Building CXX object tools/mlir/lib/Conversion/SPIRVToLLVM/CMakeFiles/obj.MLIRSPIRVToLLVM.dir/SPIRVToLLVM.cpp.o
16.350 [1575/8/3198] Building CXX object tools/mlir/lib/Conversion/TensorToLinalg/CMakeFiles/obj.MLIRTensorToLinalg.dir/TensorToLinalgPass.cpp.o
16.351 [1575/7/3199] Building CXX object tools/mlir/lib/Dialect/Linalg/Transforms/CMakeFiles/obj.MLIRLinalgTransforms.dir/BufferizableOpInterfaceImpl.cpp.o
16.353 [1575/6/3200] Building CXX object tools/mlir/lib/Conversion/TensorToSPIRV/CMakeFiles/obj.MLIRTensorToSPIRV.dir/TensorToSPIRV.cpp.o
16.374 [1575/5/3201] Linking CXX static library lib/libMLIRSPIRVAttrToLLVMConversion.a
19.453 [1575/4/3202] Building X86GenInstrInfo.inc...
20.232 [1575/3/3203] Building X86GenSubtargetInfo.inc...
20.384 [1575/2/3204] Building CXX object lib/MC/MCParser/CMakeFiles/LLVMMCParser.dir/AsmParser.cpp.o
29.431 [1575/1/3205] Building CXX object lib/CodeGen/AsmPrinter/CMakeFiles/LLVMAsmPrinter.dir/AsmPrinter.cpp.o
ninja: build stopped: subcommand failed.

@jhuber6
Copy link
Contributor

jhuber6 commented May 8, 2025

FAILED: libc/src/stdlib/CMakeFiles/libc.src.stdlib.memalignment.dir/memalignment.cpp.o 
/home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.build/./bin/clang++ --target=amdgcn-amd-amdhsa -DLIBC_NAMESPACE=__llvm_libc_21_0_0_git -D__LIBC_USE_FLOAT16_CONVERSION -I/home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/libc -isystem /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.build/include/amdgcn-amd-amdhsa -O3 -DNDEBUG --target=amdgcn-amd-amdhsa -DLIBC_QSORT_IMPL=LIBC_QSORT_QUICK_SORT -DLIBC_ADD_NULL_CHECKS "-DLIBC_MATH=(LIBC_MATH_SKIP_ACCURATE_PASS | LIBC_MATH_SMALL_TABLES | LIBC_MATH_NO_ERRNO | LIBC_MATH_NO_EXCEPT)" -fpie -DLIBC_FULL_BUILD -nostdlibinc -ffixed-point -fno-exceptions -fno-lax-vector-conversions -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-rtti -ftrivial-auto-var-init=pattern -fno-omit-frame-pointer -Wall -Wextra -Werror -Wconversion -Wno-sign-conversion -Wdeprecated -Wno-c99-extensions -Wno-gnu-imaginary-constant -Wno-pedantic -Wimplicit-fallthrough -Wwrite-strings -Wextra-semi -Wnewline-eof -Wnonportable-system-include-path -Wstrict-prototypes -Wthread-safety -Wglobal-constructors -nogpulib -fvisibility=hidden -fconvergent-functions -flto -Wno-multi-gpu -Xclang -mcode-object-version=none -DLIBC_COPT_PUBLIC_PACKAGING -UNDEBUG -MD -MT libc/src/stdlib/CMakeFiles/libc.src.stdlib.memalignment.dir/memalignment.cpp.o -MF libc/src/stdlib/CMakeFiles/libc.src.stdlib.memalignment.dir/memalignment.cpp.o.d -o libc/src/stdlib/CMakeFiles/libc.src.stdlib.memalignment.dir/memalignment.cpp.o -c /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/libc/src/stdlib/memalignment.cpp
/home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/libc/src/stdlib/memalignment.cpp:20:3: error: unknown type name 'uintptr_t'
   20 |   uintptr_t addr = reinterpret_cast<uintptr_t>(p);
      |   ^
/home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/libc/src/stdlib/memalignment.cpp:20:37: error: unknown type name 'uintptr_t'
   20 |   uintptr_t addr = reinterpret_cast<uintptr_t>(p);
      |                                     ^
2 errors generated.

Looks unrelated, no clue why this is erroring. I'll look into it.

@llvm-ci
Copy link
Collaborator

llvm-ci commented May 8, 2025

LLVM Buildbot has detected a new failure on builder openmp-offload-sles-build-only running on rocm-worker-hw-04-sles while building llvm at step 5 "compile-openmp".

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

Here is the relevant piece of the build log for the reference
Step 5 (compile-openmp) failure: build (failure)
...
6.747 [3803/32/3342] Building CXX object tools/mlir/lib/Interfaces/CMakeFiles/obj.MLIRLoopLikeInterface.dir/LoopLikeInterface.cpp.o
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/mlir/lib/Interfaces/LoopLikeInterface.cpp: In static member function ‘static bool mlir::LoopLikeOpInterface::blockIsInLoop(mlir::Block*)’:
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/mlir/lib/Interfaces/LoopLikeInterface.cpp:41:23: warning: unused variable ‘it’ [-Wunused-variable]
     auto [it, inserted] = visited.insert(current);
                       ^
At global scope:
cc1plus: warning: unrecognized command line option ‘-Wno-deprecated-copy’
cc1plus: warning: unrecognized command line option ‘-Wno-unnecessary-virtual-specifier’
6.750 [3802/32/3343] Building CXX object tools/mlir/lib/Interfaces/CMakeFiles/obj.MLIRDataLayoutInterfaces.dir/DataLayoutInterfaces.cpp.o
6.754 [3801/32/3344] Building CXX object lib/Object/CMakeFiles/LLVMObject.dir/OffloadBundle.cpp.o
FAILED: lib/Object/CMakeFiles/LLVMObject.dir/OffloadBundle.cpp.o 
ccache /usr/bin/c++ -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Ilib/Object -I/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/llvm/lib/Object -Iinclude -I/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/llvm/include -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-noexcept-type -Wno-unnecessary-virtual-specifier -Wdelete-non-virtual-dtor -Wno-comment -Wno-misleading-indentation -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -std=c++1z -MD -MT lib/Object/CMakeFiles/LLVMObject.dir/OffloadBundle.cpp.o -MF lib/Object/CMakeFiles/LLVMObject.dir/OffloadBundle.cpp.o.d -o lib/Object/CMakeFiles/LLVMObject.dir/OffloadBundle.cpp.o -c /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/llvm/lib/Object/OffloadBundle.cpp
In file included from /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/llvm/lib/Object/OffloadBundle.cpp:9:0:
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/llvm/include/llvm/Object/OffloadBundle.h: In static member function ‘static llvm::Expected<std::unique_ptr<llvm::object::OffloadBundleURI> > llvm::object::OffloadBundleURI::createFileURI(llvm::StringRef)’:
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/llvm/include/llvm/Object/OffloadBundle.h:182:12: error: could not convert ‘OffloadingURI’ from ‘std::unique_ptr<llvm::object::OffloadBundleURI>’ to ‘llvm::Expected<std::unique_ptr<llvm::object::OffloadBundleURI> >’
     return OffloadingURI;
            ^~~~~~~~~~~~~
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/llvm/lib/Object/OffloadBundle.cpp: In function ‘llvm::Error llvm::object::extractOffloadBundleFatBinary(const llvm::object::ObjectFile&, llvm::SmallVectorImpl<llvm::object::OffloadBundleFatBin>&)’:
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/llvm/lib/Object/OffloadBundle.cpp:181:31: warning: unused variable ‘CoffSection’ [-Wunused-variable]
           const coff_section *CoffSection = COFFObj->getCOFFSection(Sec);
                               ^~~~~~~~~~~
At global scope:
cc1plus: warning: unrecognized command line option ‘-Wno-unnecessary-virtual-specifier’
6.758 [3801/31/3345] Building CXX object tools/mlir/lib/Interfaces/CMakeFiles/obj.MLIRCopyOpInterface.dir/CopyOpInterface.cpp.o
6.758 [3801/30/3346] Building CXX object tools/mlir/lib/Interfaces/CMakeFiles/obj.MLIRDestinationStyleOpInterface.dir/DestinationStyleOpInterface.cpp.o
6.759 [3801/29/3347] Building CXX object tools/mlir/lib/Interfaces/CMakeFiles/obj.MLIRShapedOpInterfaces.dir/ShapedOpInterfaces.cpp.o
6.761 [3801/28/3348] Building CXX object tools/mlir/lib/Interfaces/CMakeFiles/obj.MLIRDerivedAttributeOpInterface.dir/DerivedAttributeOpInterface.cpp.o
6.763 [3801/27/3349] Building CXX object tools/mlir/lib/Query/Matcher/CMakeFiles/obj.MLIRQueryMatcher.dir/Diagnostics.cpp.o
6.764 [3801/26/3350] Building CXX object tools/mlir/lib/Interfaces/CMakeFiles/obj.MLIRParallelCombiningOpInterface.dir/ParallelCombiningOpInterface.cpp.o
6.765 [3801/25/3351] Building CXX object tools/mlir/lib/Interfaces/CMakeFiles/obj.MLIRMemorySlotInterfaces.dir/MemorySlotInterfaces.cpp.o
6.765 [3801/24/3352] Building CXX object tools/mlir/lib/Query/Matcher/CMakeFiles/obj.MLIRQueryMatcher.dir/ErrorBuilder.cpp.o
6.765 [3801/23/3353] Building CXX object tools/mlir/lib/Interfaces/CMakeFiles/obj.MLIRInferTypeOpInterface.dir/InferTypeOpInterface.cpp.o
6.766 [3801/22/3354] Building CXX object tools/mlir/lib/Query/Matcher/CMakeFiles/obj.MLIRQueryMatcher.dir/RegistryManager.cpp.o
6.766 [3801/21/3355] Building CXX object tools/mlir/lib/Query/Matcher/CMakeFiles/obj.MLIRQueryMatcher.dir/Parser.cpp.o
6.766 [3801/20/3356] Building CXX object tools/mlir/lib/Query/Matcher/CMakeFiles/obj.MLIRQueryMatcher.dir/VariantValue.cpp.o
8.836 [3801/19/3357] Building CXX object lib/MC/MCParser/CMakeFiles/LLVMMCParser.dir/AsmParser.cpp.o
9.345 [3801/18/3358] Building AMDGPUGenMCPseudoLowering.inc...
9.619 [3801/17/3359] Building AMDGPUGenPostLegalizeGICombiner.inc...
10.260 [3801/16/3360] Building AMDGPUGenRegBankGICombiner.inc...
10.394 [3801/15/3361] Building AMDGPUGenSubtargetInfo.inc...
10.399 [3801/14/3362] Building AMDGPUGenDisassemblerTables.inc...
10.454 [3801/13/3363] Building AMDGPUGenPreLegalizeGICombiner.inc...
10.867 [3801/12/3364] Building AMDGPUGenMCCodeEmitter.inc...
11.166 [3801/11/3365] Building AMDGPUGenCallingConv.inc...
12.592 [3801/10/3366] Building AMDGPUGenAsmWriter.inc...
13.041 [3801/9/3367] Building CXX object lib/CodeGen/AsmPrinter/CMakeFiles/LLVMAsmPrinter.dir/AsmPrinter.cpp.o
13.633 [3801/8/3368] Building AMDGPUGenAsmMatcher.inc...
13.798 [3801/7/3369] Building AMDGPUGenGlobalISel.inc...
13.996 [3801/6/3370] Building AMDGPUGenDAGISel.inc...

@llvm-ci
Copy link
Collaborator

llvm-ci commented May 8, 2025

LLVM Buildbot has detected a new failure on builder clang-aarch64-quick running on linaro-clang-aarch64-quick while building llvm at step 5 "ninja check 1".

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

Here is the relevant piece of the build log for the reference
Step 5 (ninja check 1) failure: stage 1 checked (failure)
******************** TEST 'LLVM :: tools/llvm-objdump/Offloading/fatbin.test' FAILED ********************
Exit Code: 1

Command Output (stdout):
--

/home/tcwg-buildbot/worker/clang-aarch64-quick/stage1/test/tools/llvm-objdump/Offloading/Output/fatbin.test.tmp.elf:	file format elf64-x86-64

--
Command Output (stderr):
--
/home/tcwg-buildbot/worker/clang-aarch64-quick/stage1/bin/yaml2obj /home/tcwg-buildbot/worker/clang-aarch64-quick/llvm/llvm/test/tools/llvm-objdump/Offloading/fatbin.test -o /home/tcwg-buildbot/worker/clang-aarch64-quick/stage1/test/tools/llvm-objdump/Offloading/Output/fatbin.test.tmp.elf # RUN: at line 4
+ /home/tcwg-buildbot/worker/clang-aarch64-quick/stage1/bin/yaml2obj /home/tcwg-buildbot/worker/clang-aarch64-quick/llvm/llvm/test/tools/llvm-objdump/Offloading/fatbin.test -o /home/tcwg-buildbot/worker/clang-aarch64-quick/stage1/test/tools/llvm-objdump/Offloading/Output/fatbin.test.tmp.elf
/home/tcwg-buildbot/worker/clang-aarch64-quick/stage1/bin/llvm-objdump --offloading /home/tcwg-buildbot/worker/clang-aarch64-quick/stage1/test/tools/llvm-objdump/Offloading/Output/fatbin.test.tmp.elf # RUN: at line 5
+ /home/tcwg-buildbot/worker/clang-aarch64-quick/stage1/bin/llvm-objdump --offloading /home/tcwg-buildbot/worker/clang-aarch64-quick/stage1/test/tools/llvm-objdump/Offloading/Output/fatbin.test.tmp.elf
/home/tcwg-buildbot/worker/clang-aarch64-quick/stage1/bin/llvm-objdump -d /home/tcwg-buildbot/worker/clang-aarch64-quick/stage1/test/tools/llvm-objdump/Offloading/Output/fatbin.test.tmp.elf:0.hipv4-amdgcn-amd-amdhsa--gfx908 | /home/tcwg-buildbot/worker/clang-aarch64-quick/stage1/bin/FileCheck /home/tcwg-buildbot/worker/clang-aarch64-quick/llvm/llvm/test/tools/llvm-objdump/Offloading/fatbin.test # RUN: at line 6
+ /home/tcwg-buildbot/worker/clang-aarch64-quick/stage1/bin/llvm-objdump -d /home/tcwg-buildbot/worker/clang-aarch64-quick/stage1/test/tools/llvm-objdump/Offloading/Output/fatbin.test.tmp.elf:0.hipv4-amdgcn-amd-amdhsa--gfx908
+ /home/tcwg-buildbot/worker/clang-aarch64-quick/stage1/bin/FileCheck /home/tcwg-buildbot/worker/clang-aarch64-quick/llvm/llvm/test/tools/llvm-objdump/Offloading/fatbin.test
/home/tcwg-buildbot/worker/clang-aarch64-quick/stage1/bin/llvm-objdump: error: '/home/tcwg-buildbot/worker/clang-aarch64-quick/stage1/test/tools/llvm-objdump/Offloading/Output/fatbin.test.tmp.elf:0.hipv4-amdgcn-amd-amdhsa--gfx908': can't find target: unable to get target for 'amdgcn-amd-amdhsa', see --version and --triple.
/home/tcwg-buildbot/worker/clang-aarch64-quick/llvm/llvm/test/tools/llvm-objdump/Offloading/fatbin.test:9:10: error: CHECK: expected string not found in input
# CHECK: s_load_dword s7, s[4:5], 0x24
         ^
<stdin>:1:1: note: scanning from here

^
<stdin>:2:12: note: possible intended match here
/home/tcwg-buildbot/worker/clang-aarch64-quick/stage1/test/tools/llvm-objdump/Offloading/Output/fatbin.test.tmp.elf:0.hipv4-amdgcn-amd-amdhsa--gfx908: file format elf64-amdgpu
           ^

Input file: <stdin>
Check file: /home/tcwg-buildbot/worker/clang-aarch64-quick/llvm/llvm/test/tools/llvm-objdump/Offloading/fatbin.test

-dump-input=help explains the following input dump.

Input was:
<<<<<<
           1:  
check:9'0     X error: no match found
           2: /home/tcwg-buildbot/worker/clang-aarch64-quick/stage1/test/tools/llvm-objdump/Offloading/Output/fatbin.test.tmp.elf:0.hipv4-amdgcn-amd-amdhsa--gfx908: file format elf64-amdgpu 
check:9'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
check:9'1                ?                                                                                                                                                                     possible intended match
>>>>>>

--

********************


@llvm-ci
Copy link
Collaborator

llvm-ci commented May 8, 2025

LLVM Buildbot has detected a new failure on builder fuchsia-x86_64-linux running on fuchsia-debian-64-us-central1-a-1 while building llvm at step 4 "annotate".

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

Here is the relevant piece of the build log for the reference
Step 4 (annotate) failure: 'python ../llvm-zorg/zorg/buildbot/builders/annotated/fuchsia-linux.py ...' (failure)
...
      |           ^
6 warnings generated.
[1365/1367] Linking CXX executable unittests/Transforms/Scalar/ScalarTests
[1366/1367] Running the LLVM regression tests
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:520: note: using ld.lld: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-bdshlo41/bin/ld.lld
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:520: note: using lld-link: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-bdshlo41/bin/lld-link
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:520: note: using ld64.lld: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-bdshlo41/bin/ld64.lld
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:520: note: using wasm-ld: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-bdshlo41/bin/wasm-ld
-- Testing: 59071 tests, 60 workers --
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90
FAIL: LLVM :: tools/llvm-objdump/Offloading/fatbin.test (55054 of 59071)
******************** TEST 'LLVM :: tools/llvm-objdump/Offloading/fatbin.test' FAILED ********************
Exit Code: 1

Command Output (stdout):
--

/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-bdshlo41/test/tools/llvm-objdump/Offloading/Output/fatbin.test.tmp.elf:	file format elf64-x86-64

--
Command Output (stderr):
--
/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-bdshlo41/bin/yaml2obj /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/test/tools/llvm-objdump/Offloading/fatbin.test -o /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-bdshlo41/test/tools/llvm-objdump/Offloading/Output/fatbin.test.tmp.elf # RUN: at line 4
+ /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-bdshlo41/bin/yaml2obj /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/test/tools/llvm-objdump/Offloading/fatbin.test -o /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-bdshlo41/test/tools/llvm-objdump/Offloading/Output/fatbin.test.tmp.elf
/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-bdshlo41/bin/llvm-objdump --offloading /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-bdshlo41/test/tools/llvm-objdump/Offloading/Output/fatbin.test.tmp.elf # RUN: at line 5
+ /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-bdshlo41/bin/llvm-objdump --offloading /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-bdshlo41/test/tools/llvm-objdump/Offloading/Output/fatbin.test.tmp.elf
/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-bdshlo41/bin/llvm-objdump -d /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-bdshlo41/test/tools/llvm-objdump/Offloading/Output/fatbin.test.tmp.elf:0.hipv4-amdgcn-amd-amdhsa--gfx908 | /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-bdshlo41/bin/FileCheck /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/test/tools/llvm-objdump/Offloading/fatbin.test # RUN: at line 6
+ /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-bdshlo41/bin/FileCheck /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/test/tools/llvm-objdump/Offloading/fatbin.test
+ /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-bdshlo41/bin/llvm-objdump -d /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-bdshlo41/test/tools/llvm-objdump/Offloading/Output/fatbin.test.tmp.elf:0.hipv4-amdgcn-amd-amdhsa--gfx908
/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-bdshlo41/bin/llvm-objdump: error: '/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-bdshlo41/test/tools/llvm-objdump/Offloading/Output/fatbin.test.tmp.elf:0.hipv4-amdgcn-amd-amdhsa--gfx908': can't find target: unable to get target for 'amdgcn-amd-amdhsa', see --version and --triple.
/var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/test/tools/llvm-objdump/Offloading/fatbin.test:9:10: error: CHECK: expected string not found in input
# CHECK: s_load_dword s7, s[4:5], 0x24
         ^
<stdin>:1:1: note: scanning from here

^
<stdin>:2:91: note: possible intended match here
/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-bdshlo41/test/tools/llvm-objdump/Offloading/Output/fatbin.test.tmp.elf:0.hipv4-amdgcn-amd-amdhsa--gfx908: file format elf64-amdgpu
                                                                                          ^

Input file: <stdin>
Check file: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/test/tools/llvm-objdump/Offloading/fatbin.test

-dump-input=help explains the following input dump.

Input was:
<<<<<<
           1:  
check:9'0     X error: no match found
Step 7 (check) failure: check (failure)
...
      |           ^
6 warnings generated.
[1365/1367] Linking CXX executable unittests/Transforms/Scalar/ScalarTests
[1366/1367] Running the LLVM regression tests
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:520: note: using ld.lld: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-bdshlo41/bin/ld.lld
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:520: note: using lld-link: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-bdshlo41/bin/lld-link
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:520: note: using ld64.lld: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-bdshlo41/bin/ld64.lld
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:520: note: using wasm-ld: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-bdshlo41/bin/wasm-ld
-- Testing: 59071 tests, 60 workers --
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90
FAIL: LLVM :: tools/llvm-objdump/Offloading/fatbin.test (55054 of 59071)
******************** TEST 'LLVM :: tools/llvm-objdump/Offloading/fatbin.test' FAILED ********************
Exit Code: 1

Command Output (stdout):
--

/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-bdshlo41/test/tools/llvm-objdump/Offloading/Output/fatbin.test.tmp.elf:	file format elf64-x86-64

--
Command Output (stderr):
--
/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-bdshlo41/bin/yaml2obj /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/test/tools/llvm-objdump/Offloading/fatbin.test -o /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-bdshlo41/test/tools/llvm-objdump/Offloading/Output/fatbin.test.tmp.elf # RUN: at line 4
+ /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-bdshlo41/bin/yaml2obj /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/test/tools/llvm-objdump/Offloading/fatbin.test -o /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-bdshlo41/test/tools/llvm-objdump/Offloading/Output/fatbin.test.tmp.elf
/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-bdshlo41/bin/llvm-objdump --offloading /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-bdshlo41/test/tools/llvm-objdump/Offloading/Output/fatbin.test.tmp.elf # RUN: at line 5
+ /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-bdshlo41/bin/llvm-objdump --offloading /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-bdshlo41/test/tools/llvm-objdump/Offloading/Output/fatbin.test.tmp.elf
/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-bdshlo41/bin/llvm-objdump -d /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-bdshlo41/test/tools/llvm-objdump/Offloading/Output/fatbin.test.tmp.elf:0.hipv4-amdgcn-amd-amdhsa--gfx908 | /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-bdshlo41/bin/FileCheck /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/test/tools/llvm-objdump/Offloading/fatbin.test # RUN: at line 6
+ /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-bdshlo41/bin/FileCheck /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/test/tools/llvm-objdump/Offloading/fatbin.test
+ /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-bdshlo41/bin/llvm-objdump -d /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-bdshlo41/test/tools/llvm-objdump/Offloading/Output/fatbin.test.tmp.elf:0.hipv4-amdgcn-amd-amdhsa--gfx908
/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-bdshlo41/bin/llvm-objdump: error: '/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-bdshlo41/test/tools/llvm-objdump/Offloading/Output/fatbin.test.tmp.elf:0.hipv4-amdgcn-amd-amdhsa--gfx908': can't find target: unable to get target for 'amdgcn-amd-amdhsa', see --version and --triple.
/var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/test/tools/llvm-objdump/Offloading/fatbin.test:9:10: error: CHECK: expected string not found in input
# CHECK: s_load_dword s7, s[4:5], 0x24
         ^
<stdin>:1:1: note: scanning from here

^
<stdin>:2:91: note: possible intended match here
/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-bdshlo41/test/tools/llvm-objdump/Offloading/Output/fatbin.test.tmp.elf:0.hipv4-amdgcn-amd-amdhsa--gfx908: file format elf64-amdgpu
                                                                                          ^

Input file: <stdin>
Check file: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/test/tools/llvm-objdump/Offloading/fatbin.test

-dump-input=help explains the following input dump.

Input was:
<<<<<<
           1:  
check:9'0     X error: no match found

@llvm-ci
Copy link
Collaborator

llvm-ci commented May 8, 2025

LLVM Buildbot has detected a new failure on builder clang-armv8-quick running on linaro-clang-armv8-quick while building llvm at step 5 "ninja check 1".

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

Here is the relevant piece of the build log for the reference
Step 5 (ninja check 1) failure: stage 1 checked (failure)
******************** TEST 'LLVM :: tools/llvm-objdump/Offloading/fatbin.test' FAILED ********************
Exit Code: 134

Command Output (stderr):
--
/home/tcwg-buildbot/worker/clang-armv8-quick/stage1/bin/yaml2obj /home/tcwg-buildbot/worker/clang-armv8-quick/llvm/llvm/test/tools/llvm-objdump/Offloading/fatbin.test -o /home/tcwg-buildbot/worker/clang-armv8-quick/stage1/test/tools/llvm-objdump/Offloading/Output/fatbin.test.tmp.elf # RUN: at line 4
+ /home/tcwg-buildbot/worker/clang-armv8-quick/stage1/bin/yaml2obj /home/tcwg-buildbot/worker/clang-armv8-quick/llvm/llvm/test/tools/llvm-objdump/Offloading/fatbin.test -o /home/tcwg-buildbot/worker/clang-armv8-quick/stage1/test/tools/llvm-objdump/Offloading/Output/fatbin.test.tmp.elf
/home/tcwg-buildbot/worker/clang-armv8-quick/stage1/bin/llvm-objdump --offloading /home/tcwg-buildbot/worker/clang-armv8-quick/stage1/test/tools/llvm-objdump/Offloading/Output/fatbin.test.tmp.elf # RUN: at line 5
+ /home/tcwg-buildbot/worker/clang-armv8-quick/stage1/bin/llvm-objdump --offloading /home/tcwg-buildbot/worker/clang-armv8-quick/stage1/test/tools/llvm-objdump/Offloading/Output/fatbin.test.tmp.elf
llvm-objdump: ../llvm/llvm/include/llvm/ADT/StringRef.h:610: StringRef llvm::StringRef::drop_front(size_t) const: Assertion `size() >= N && "Dropping more elements than exist"' failed.
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
Stack dump:
0.	Program arguments: /home/tcwg-buildbot/worker/clang-armv8-quick/stage1/bin/llvm-objdump --offloading /home/tcwg-buildbot/worker/clang-armv8-quick/stage1/test/tools/llvm-objdump/Offloading/Output/fatbin.test.tmp.elf
#0 0x03caeca8 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/home/tcwg-buildbot/worker/clang-armv8-quick/stage1/bin/llvm-objdump+0x3eeca8)
#1 0x03cac6a8 llvm::sys::RunSignalHandlers() (/home/tcwg-buildbot/worker/clang-armv8-quick/stage1/bin/llvm-objdump+0x3ec6a8)
#2 0x03caf728 SignalHandler(int, siginfo_t*, void*) Signals.cpp:0:0
#3 0xf401d6f0 __default_rt_sa_restorer ./signal/../sysdeps/unix/sysv/linux/arm/sigrestorer.S:80:0
#4 0xf400db06 ./csu/../sysdeps/unix/sysv/linux/arm/libc-do-syscall.S:47:0
#5 0xf404d292 __pthread_kill_implementation ./nptl/pthread_kill.c:44:76
#6 0xf401c840 gsignal ./signal/../sysdeps/posix/raise.c:27:6
/home/tcwg-buildbot/worker/clang-armv8-quick/stage1/test/tools/llvm-objdump/Offloading/Output/fatbin.test.script: line 3: 1631810 Aborted                 /home/tcwg-buildbot/worker/clang-armv8-quick/stage1/bin/llvm-objdump --offloading /home/tcwg-buildbot/worker/clang-armv8-quick/stage1/test/tools/llvm-objdump/Offloading/Output/fatbin.test.tmp.elf

--

********************


@llvm-ci
Copy link
Collaborator

llvm-ci commented May 8, 2025

LLVM Buildbot has detected a new failure on builder clang-cmake-x86_64-avx512-linux running on avx512-intel64 while building llvm at step 7 "ninja check 1".

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

Here is the relevant piece of the build log for the reference
Step 7 (ninja check 1) failure: stage 1 checked (failure)
******************** TEST 'LLVM :: tools/llvm-objdump/Offloading/fatbin.test' FAILED ********************
Exit Code: 1

Command Output (stdout):
--

/localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/stage1/test/tools/llvm-objdump/Offloading/Output/fatbin.test.tmp.elf:	file format elf64-x86-64

--
Command Output (stderr):
--
/localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/stage1/bin/yaml2obj /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/llvm/test/tools/llvm-objdump/Offloading/fatbin.test -o /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/stage1/test/tools/llvm-objdump/Offloading/Output/fatbin.test.tmp.elf # RUN: at line 4
+ /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/stage1/bin/yaml2obj /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/llvm/test/tools/llvm-objdump/Offloading/fatbin.test -o /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/stage1/test/tools/llvm-objdump/Offloading/Output/fatbin.test.tmp.elf
/localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/stage1/bin/llvm-objdump --offloading /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/stage1/test/tools/llvm-objdump/Offloading/Output/fatbin.test.tmp.elf # RUN: at line 5
+ /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/stage1/bin/llvm-objdump --offloading /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/stage1/test/tools/llvm-objdump/Offloading/Output/fatbin.test.tmp.elf
/localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/stage1/bin/llvm-objdump -d /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/stage1/test/tools/llvm-objdump/Offloading/Output/fatbin.test.tmp.elf:0.hipv4-amdgcn-amd-amdhsa--gfx908 | /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/stage1/bin/FileCheck /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/llvm/test/tools/llvm-objdump/Offloading/fatbin.test # RUN: at line 6
+ /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/stage1/bin/FileCheck /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/llvm/test/tools/llvm-objdump/Offloading/fatbin.test
+ /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/stage1/bin/llvm-objdump -d /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/stage1/test/tools/llvm-objdump/Offloading/Output/fatbin.test.tmp.elf:0.hipv4-amdgcn-amd-amdhsa--gfx908
/localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/stage1/bin/llvm-objdump: error: '/localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/stage1/test/tools/llvm-objdump/Offloading/Output/fatbin.test.tmp.elf:0.hipv4-amdgcn-amd-amdhsa--gfx908': can't find target: unable to get target for 'amdgcn-amd-amdhsa', see --version and --triple.
/localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/llvm/test/tools/llvm-objdump/Offloading/fatbin.test:9:10: error: CHECK: expected string not found in input
# CHECK: s_load_dword s7, s[4:5], 0x24
         ^
<stdin>:1:1: note: scanning from here

^
<stdin>:2:20: note: possible intended match here
/localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/stage1/test/tools/llvm-objdump/Offloading/Output/fatbin.test.tmp.elf:0.hipv4-amdgcn-amd-amdhsa--gfx908: file format elf64-amdgpu
                   ^

Input file: <stdin>
Check file: /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/llvm/test/tools/llvm-objdump/Offloading/fatbin.test

-dump-input=help explains the following input dump.

Input was:
<<<<<<
           1:  
check:9'0     X error: no match found
           2: /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/stage1/test/tools/llvm-objdump/Offloading/Output/fatbin.test.tmp.elf:0.hipv4-amdgcn-amd-amdhsa--gfx908: file format elf64-amdgpu 
check:9'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
check:9'1                        ?                                                                                                                                                                               possible intended match
>>>>>>

--

********************


@llvm-ci
Copy link
Collaborator

llvm-ci commented May 8, 2025

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

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

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)
...
[3842/4209] Linking CXX static library lib/libLLVMCFGuard.a
[3843/4209] Linking CXX static library lib/libLLVMMCA.a
[3844/4209] Linking CXX static library lib/libLLVMIRReader.a
[3845/4209] Linking CXX static library lib/libLLVMPowerPCDesc.a
[3846/4209] Linking CXX static library lib/libLLVMPowerPCDisassembler.a
[3847/4209] Linking CXX executable bin/llvm-stress
[3848/4209] Linking CXX executable bin/llvm-dis
[3849/4209] Linking CXX executable bin/llvm-bcanalyzer
[3850/4209] Linking CXX executable bin/llvm-diff
[3851/4209] Building CXX object lib/Object/CMakeFiles/LLVMObject.dir/OffloadBundle.cpp.o
FAILED: lib/Object/CMakeFiles/LLVMObject.dir/OffloadBundle.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes CCACHE_SLOPPINESS=pch_defines,time_macros /usr/bin/ccache /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm_build0/bin/clang++ -DGTEST_HAS_RTTI=0 -DLLVM_EXPORTS -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_default/lib/Object -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/lib/Object -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_default/include -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -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 -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=c++17  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -MD -MT lib/Object/CMakeFiles/LLVMObject.dir/OffloadBundle.cpp.o -MF lib/Object/CMakeFiles/LLVMObject.dir/OffloadBundle.cpp.o.d -o lib/Object/CMakeFiles/LLVMObject.dir/OffloadBundle.cpp.o -c /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/lib/Object/OffloadBundle.cpp
In file included from /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/lib/Object/OffloadBundle.cpp:9:
/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/include/llvm/Object/OffloadBundle.h:148:5: error: default label in switch which covers all enumeration values [-Werror,-Wcovered-switch-default]
  148 |     default:
      |     ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/lib/Object/OffloadBundle.cpp:181:31: error: unused variable 'CoffSection' [-Werror,-Wunused-variable]
  181 |           const coff_section *CoffSection = COFFObj->getCOFFSection(Sec);
      |                               ^~~~~~~~~~~
In file included from /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/lib/Object/OffloadBundle.cpp:9:
/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/include/llvm/Object/OffloadBundle.h:118:5: error: non-void lambda does not return a value in all control paths [-Werror,-Wreturn-type]
  118 |     });
      |     ^
/usr/lib/gcc/ppc64le-redhat-linux/8/../../../../include/c++/8/bits/stl_algo.h:4304:14: note: in instantiation of function template specialization 'llvm::object::OffloadBundleFatBin::entryIDContains(StringRef)::(anonymous class)::operator()<llvm::object::OffloadBundleEntry>' requested here
 4304 |         *__result = __unary_op(*__first);
      |                     ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/include/llvm/ADT/STLExtras.h:1958:15: note: in instantiation of function template specialization 'std::transform<llvm::object::OffloadBundleEntry *, std::back_insert_iterator<llvm::SmallVector<llvm::object::OffloadBundleEntry>>, (lambda at /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/include/llvm/Object/OffloadBundle.h:115:57)>' requested here
 1958 |   return std::transform(adl_begin(Range), adl_end(Range), d_first, F);
      |               ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/include/llvm/Object/OffloadBundle.h:115:11: note: in instantiation of function template specialization 'llvm::transform<llvm::SmallVector<llvm::object::OffloadBundleEntry> &, std::back_insert_iterator<llvm::SmallVector<llvm::object::OffloadBundleEntry>>, (lambda at /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/include/llvm/Object/OffloadBundle.h:115:57)>' requested here
  115 |     llvm::transform(Entries, std::back_inserter(Found), [Str](auto &X) {
      |           ^
3 errors generated.
[3852/4209] Building CXX object tools/llvm-objdump/CMakeFiles/llvm-objdump.dir/OffloadDump.cpp.o
FAILED: tools/llvm-objdump/CMakeFiles/llvm-objdump.dir/OffloadDump.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes CCACHE_SLOPPINESS=pch_defines,time_macros /usr/bin/ccache /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm_build0/bin/clang++ -DGTEST_HAS_RTTI=0 -DLLVM_BUILD_STATIC -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_default/tools/llvm-objdump -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/tools/llvm-objdump -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_default/include -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -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 -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=c++17  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -MD -MT tools/llvm-objdump/CMakeFiles/llvm-objdump.dir/OffloadDump.cpp.o -MF tools/llvm-objdump/CMakeFiles/llvm-objdump.dir/OffloadDump.cpp.o.d -o tools/llvm-objdump/CMakeFiles/llvm-objdump.dir/OffloadDump.cpp.o -c /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/tools/llvm-objdump/OffloadDump.cpp
In file included from /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/tools/llvm-objdump/OffloadDump.cpp:14:
In file included from /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/tools/llvm-objdump/OffloadDump.h:14:
/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/include/llvm/Object/OffloadBundle.h:148:5: error: default label in switch which covers all enumeration values [-Werror,-Wcovered-switch-default]
  148 |     default:
      |     ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/include/llvm/Object/OffloadBundle.h:118:5: error: non-void lambda does not return a value in all control paths [-Werror,-Wreturn-type]
  118 |     });
      |     ^
/usr/lib/gcc/ppc64le-redhat-linux/8/../../../../include/c++/8/bits/stl_algo.h:4304:14: note: in instantiation of function template specialization 'llvm::object::OffloadBundleFatBin::entryIDContains(StringRef)::(anonymous class)::operator()<llvm::object::OffloadBundleEntry>' requested here
 4304 |         *__result = __unary_op(*__first);
      |                     ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/include/llvm/ADT/STLExtras.h:1958:15: note: in instantiation of function template specialization 'std::transform<llvm::object::OffloadBundleEntry *, std::back_insert_iterator<llvm::SmallVector<llvm::object::OffloadBundleEntry>>, (lambda at /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/include/llvm/Object/OffloadBundle.h:115:57)>' requested here
 1958 |   return std::transform(adl_begin(Range), adl_end(Range), d_first, F);
Step 8 (build compiler-rt debug) failure: build compiler-rt debug (failure)
...
[3842/4209] Linking CXX static library lib/libLLVMCFGuard.a
[3843/4209] Linking CXX static library lib/libLLVMMCA.a
[3844/4209] Linking CXX static library lib/libLLVMIRReader.a
[3845/4209] Linking CXX static library lib/libLLVMPowerPCDesc.a
[3846/4209] Linking CXX static library lib/libLLVMPowerPCDisassembler.a
[3847/4209] Linking CXX executable bin/llvm-stress
[3848/4209] Linking CXX executable bin/llvm-dis
[3849/4209] Linking CXX executable bin/llvm-bcanalyzer
[3850/4209] Linking CXX executable bin/llvm-diff
[3851/4209] Building CXX object lib/Object/CMakeFiles/LLVMObject.dir/OffloadBundle.cpp.o
FAILED: lib/Object/CMakeFiles/LLVMObject.dir/OffloadBundle.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes CCACHE_SLOPPINESS=pch_defines,time_macros /usr/bin/ccache /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm_build0/bin/clang++ -DGTEST_HAS_RTTI=0 -DLLVM_EXPORTS -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_default/lib/Object -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/lib/Object -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_default/include -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -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 -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=c++17  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -MD -MT lib/Object/CMakeFiles/LLVMObject.dir/OffloadBundle.cpp.o -MF lib/Object/CMakeFiles/LLVMObject.dir/OffloadBundle.cpp.o.d -o lib/Object/CMakeFiles/LLVMObject.dir/OffloadBundle.cpp.o -c /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/lib/Object/OffloadBundle.cpp
In file included from /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/lib/Object/OffloadBundle.cpp:9:
/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/include/llvm/Object/OffloadBundle.h:148:5: error: default label in switch which covers all enumeration values [-Werror,-Wcovered-switch-default]
  148 |     default:
      |     ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/lib/Object/OffloadBundle.cpp:181:31: error: unused variable 'CoffSection' [-Werror,-Wunused-variable]
  181 |           const coff_section *CoffSection = COFFObj->getCOFFSection(Sec);
      |                               ^~~~~~~~~~~
In file included from /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/lib/Object/OffloadBundle.cpp:9:
/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/include/llvm/Object/OffloadBundle.h:118:5: error: non-void lambda does not return a value in all control paths [-Werror,-Wreturn-type]
  118 |     });
      |     ^
/usr/lib/gcc/ppc64le-redhat-linux/8/../../../../include/c++/8/bits/stl_algo.h:4304:14: note: in instantiation of function template specialization 'llvm::object::OffloadBundleFatBin::entryIDContains(StringRef)::(anonymous class)::operator()<llvm::object::OffloadBundleEntry>' requested here
 4304 |         *__result = __unary_op(*__first);
      |                     ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/include/llvm/ADT/STLExtras.h:1958:15: note: in instantiation of function template specialization 'std::transform<llvm::object::OffloadBundleEntry *, std::back_insert_iterator<llvm::SmallVector<llvm::object::OffloadBundleEntry>>, (lambda at /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/include/llvm/Object/OffloadBundle.h:115:57)>' requested here
 1958 |   return std::transform(adl_begin(Range), adl_end(Range), d_first, F);
      |               ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/include/llvm/Object/OffloadBundle.h:115:11: note: in instantiation of function template specialization 'llvm::transform<llvm::SmallVector<llvm::object::OffloadBundleEntry> &, std::back_insert_iterator<llvm::SmallVector<llvm::object::OffloadBundleEntry>>, (lambda at /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/include/llvm/Object/OffloadBundle.h:115:57)>' requested here
  115 |     llvm::transform(Entries, std::back_inserter(Found), [Str](auto &X) {
      |           ^
3 errors generated.
[3852/4209] Building CXX object tools/llvm-objdump/CMakeFiles/llvm-objdump.dir/OffloadDump.cpp.o
FAILED: tools/llvm-objdump/CMakeFiles/llvm-objdump.dir/OffloadDump.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes CCACHE_SLOPPINESS=pch_defines,time_macros /usr/bin/ccache /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm_build0/bin/clang++ -DGTEST_HAS_RTTI=0 -DLLVM_BUILD_STATIC -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_default/tools/llvm-objdump -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/tools/llvm-objdump -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_default/include -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -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 -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=c++17  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -MD -MT tools/llvm-objdump/CMakeFiles/llvm-objdump.dir/OffloadDump.cpp.o -MF tools/llvm-objdump/CMakeFiles/llvm-objdump.dir/OffloadDump.cpp.o.d -o tools/llvm-objdump/CMakeFiles/llvm-objdump.dir/OffloadDump.cpp.o -c /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/tools/llvm-objdump/OffloadDump.cpp
In file included from /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/tools/llvm-objdump/OffloadDump.cpp:14:
In file included from /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/tools/llvm-objdump/OffloadDump.h:14:
/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/include/llvm/Object/OffloadBundle.h:148:5: error: default label in switch which covers all enumeration values [-Werror,-Wcovered-switch-default]
  148 |     default:
      |     ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/include/llvm/Object/OffloadBundle.h:118:5: error: non-void lambda does not return a value in all control paths [-Werror,-Wreturn-type]
  118 |     });
      |     ^
/usr/lib/gcc/ppc64le-redhat-linux/8/../../../../include/c++/8/bits/stl_algo.h:4304:14: note: in instantiation of function template specialization 'llvm::object::OffloadBundleFatBin::entryIDContains(StringRef)::(anonymous class)::operator()<llvm::object::OffloadBundleEntry>' requested here
 4304 |         *__result = __unary_op(*__first);
      |                     ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/include/llvm/ADT/STLExtras.h:1958:15: note: in instantiation of function template specialization 'std::transform<llvm::object::OffloadBundleEntry *, std::back_insert_iterator<llvm::SmallVector<llvm::object::OffloadBundleEntry>>, (lambda at /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/include/llvm/Object/OffloadBundle.h:115:57)>' requested here
 1958 |   return std::transform(adl_begin(Range), adl_end(Range), d_first, F);
Step 9 (test compiler-rt debug) failure: test compiler-rt debug (failure)
@@@BUILD_STEP test compiler-rt debug@@@
ninja: Entering directory `build_default'
[1/244] Linking CXX static library lib/libLLVMMCParser.a
[2/244] Linking CXX static library lib/libLLVMPowerPCAsmParser.a
[3/244] Building CXX object tools/llvm-objdump/CMakeFiles/llvm-objdump.dir/OffloadDump.cpp.o
FAILED: tools/llvm-objdump/CMakeFiles/llvm-objdump.dir/OffloadDump.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes CCACHE_SLOPPINESS=pch_defines,time_macros /usr/bin/ccache /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm_build0/bin/clang++ -DGTEST_HAS_RTTI=0 -DLLVM_BUILD_STATIC -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_default/tools/llvm-objdump -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/tools/llvm-objdump -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_default/include -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -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 -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=c++17  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -MD -MT tools/llvm-objdump/CMakeFiles/llvm-objdump.dir/OffloadDump.cpp.o -MF tools/llvm-objdump/CMakeFiles/llvm-objdump.dir/OffloadDump.cpp.o.d -o tools/llvm-objdump/CMakeFiles/llvm-objdump.dir/OffloadDump.cpp.o -c /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/tools/llvm-objdump/OffloadDump.cpp
In file included from /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/tools/llvm-objdump/OffloadDump.cpp:14:
In file included from /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/tools/llvm-objdump/OffloadDump.h:14:
/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/include/llvm/Object/OffloadBundle.h:148:5: error: default label in switch which covers all enumeration values [-Werror,-Wcovered-switch-default]
  148 |     default:
      |     ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/include/llvm/Object/OffloadBundle.h:118:5: error: non-void lambda does not return a value in all control paths [-Werror,-Wreturn-type]
  118 |     });
      |     ^
/usr/lib/gcc/ppc64le-redhat-linux/8/../../../../include/c++/8/bits/stl_algo.h:4304:14: note: in instantiation of function template specialization 'llvm::object::OffloadBundleFatBin::entryIDContains(StringRef)::(anonymous class)::operator()<llvm::object::OffloadBundleEntry>' requested here
 4304 |         *__result = __unary_op(*__first);
      |                     ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/include/llvm/ADT/STLExtras.h:1958:15: note: in instantiation of function template specialization 'std::transform<llvm::object::OffloadBundleEntry *, std::back_insert_iterator<llvm::SmallVector<llvm::object::OffloadBundleEntry>>, (lambda at /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/include/llvm/Object/OffloadBundle.h:115:57)>' requested here
 1958 |   return std::transform(adl_begin(Range), adl_end(Range), d_first, F);
      |               ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/include/llvm/Object/OffloadBundle.h:115:11: note: in instantiation of function template specialization 'llvm::transform<llvm::SmallVector<llvm::object::OffloadBundleEntry> &, std::back_insert_iterator<llvm::SmallVector<llvm::object::OffloadBundleEntry>>, (lambda at /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/include/llvm/Object/OffloadBundle.h:115:57)>' requested here
  115 |     llvm::transform(Entries, std::back_inserter(Found), [Str](auto &X) {
      |           ^
2 errors generated.
[4/244] Building CXX object lib/Object/CMakeFiles/LLVMObject.dir/OffloadBundle.cpp.o
FAILED: lib/Object/CMakeFiles/LLVMObject.dir/OffloadBundle.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes CCACHE_SLOPPINESS=pch_defines,time_macros /usr/bin/ccache /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm_build0/bin/clang++ -DGTEST_HAS_RTTI=0 -DLLVM_EXPORTS -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_default/lib/Object -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/lib/Object -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_default/include -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -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 -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=c++17  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -MD -MT lib/Object/CMakeFiles/LLVMObject.dir/OffloadBundle.cpp.o -MF lib/Object/CMakeFiles/LLVMObject.dir/OffloadBundle.cpp.o.d -o lib/Object/CMakeFiles/LLVMObject.dir/OffloadBundle.cpp.o -c /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/lib/Object/OffloadBundle.cpp
In file included from /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/lib/Object/OffloadBundle.cpp:9:
/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/include/llvm/Object/OffloadBundle.h:148:5: error: default label in switch which covers all enumeration values [-Werror,-Wcovered-switch-default]
  148 |     default:
      |     ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/lib/Object/OffloadBundle.cpp:181:31: error: unused variable 'CoffSection' [-Werror,-Wunused-variable]
  181 |           const coff_section *CoffSection = COFFObj->getCOFFSection(Sec);
      |                               ^~~~~~~~~~~
In file included from /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/lib/Object/OffloadBundle.cpp:9:
/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/include/llvm/Object/OffloadBundle.h:118:5: error: non-void lambda does not return a value in all control paths [-Werror,-Wreturn-type]
  118 |     });
      |     ^
/usr/lib/gcc/ppc64le-redhat-linux/8/../../../../include/c++/8/bits/stl_algo.h:4304:14: note: in instantiation of function template specialization 'llvm::object::OffloadBundleFatBin::entryIDContains(StringRef)::(anonymous class)::operator()<llvm::object::OffloadBundleEntry>' requested here
 4304 |         *__result = __unary_op(*__first);
      |                     ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/include/llvm/ADT/STLExtras.h:1958:15: note: in instantiation of function template specialization 'std::transform<llvm::object::OffloadBundleEntry *, std::back_insert_iterator<llvm::SmallVector<llvm::object::OffloadBundleEntry>>, (lambda at /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/include/llvm/Object/OffloadBundle.h:115:57)>' requested here
 1958 |   return std::transform(adl_begin(Range), adl_end(Range), d_first, F);
      |               ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/include/llvm/Object/OffloadBundle.h:115:11: note: in instantiation of function template specialization 'llvm::transform<llvm::SmallVector<llvm::object::OffloadBundleEntry> &, std::back_insert_iterator<llvm::SmallVector<llvm::object::OffloadBundleEntry>>, (lambda at /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/include/llvm/Object/OffloadBundle.h:115:57)>' requested here
  115 |     llvm::transform(Entries, std::back_inserter(Found), [Str](auto &X) {
      |           ^
3 errors generated.
[5/244] Building CXX object tools/llvm-objdump/CMakeFiles/llvm-objdump.dir/llvm-objdump.cpp.o
Step 10 (build compiler-rt tsan_debug) failure: build compiler-rt tsan_debug (failure)
...
[3823/4190] Linking CXX executable bin/llvm-itanium-demangle-fuzzer
[3824/4190] Linking CXX static library lib/libLLVMPowerPCDisassembler.a
[3825/4190] Linking CXX static library lib/libLLVMPowerPCDesc.a
[3826/4190] Linking CXX static library lib/libLLVMIRReader.a
[3827/4190] Linking CXX executable bin/llvm-jitlink-executor
[3828/4190] Linking CXX executable bin/llvm-bcanalyzer
[3829/4190] Linking CXX executable bin/llvm-stress
[3830/4190] Linking CXX executable bin/llvm-dis
[3831/4190] Linking CXX executable bin/llvm-diff
[3832/4190] Building CXX object tools/llvm-objdump/CMakeFiles/llvm-objdump.dir/OffloadDump.cpp.o
FAILED: tools/llvm-objdump/CMakeFiles/llvm-objdump.dir/OffloadDump.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes CCACHE_SLOPPINESS=pch_defines,time_macros /usr/bin/ccache /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm_build0/bin/clang++ -DGTEST_HAS_RTTI=0 -DLLVM_BUILD_STATIC -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_default/tools/llvm-objdump -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/tools/llvm-objdump -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_default/include -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -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 -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=c++17  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -MD -MT tools/llvm-objdump/CMakeFiles/llvm-objdump.dir/OffloadDump.cpp.o -MF tools/llvm-objdump/CMakeFiles/llvm-objdump.dir/OffloadDump.cpp.o.d -o tools/llvm-objdump/CMakeFiles/llvm-objdump.dir/OffloadDump.cpp.o -c /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/tools/llvm-objdump/OffloadDump.cpp
In file included from /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/tools/llvm-objdump/OffloadDump.cpp:14:
In file included from /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/tools/llvm-objdump/OffloadDump.h:14:
/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/include/llvm/Object/OffloadBundle.h:148:5: error: default label in switch which covers all enumeration values [-Werror,-Wcovered-switch-default]
  148 |     default:
      |     ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/include/llvm/Object/OffloadBundle.h:118:5: error: non-void lambda does not return a value in all control paths [-Werror,-Wreturn-type]
  118 |     });
      |     ^
/usr/lib/gcc/ppc64le-redhat-linux/8/../../../../include/c++/8/bits/stl_algo.h:4304:14: note: in instantiation of function template specialization 'llvm::object::OffloadBundleFatBin::entryIDContains(StringRef)::(anonymous class)::operator()<llvm::object::OffloadBundleEntry>' requested here
 4304 |         *__result = __unary_op(*__first);
      |                     ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/include/llvm/ADT/STLExtras.h:1958:15: note: in instantiation of function template specialization 'std::transform<llvm::object::OffloadBundleEntry *, std::back_insert_iterator<llvm::SmallVector<llvm::object::OffloadBundleEntry>>, (lambda at /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/include/llvm/Object/OffloadBundle.h:115:57)>' requested here
 1958 |   return std::transform(adl_begin(Range), adl_end(Range), d_first, F);
      |               ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/include/llvm/Object/OffloadBundle.h:115:11: note: in instantiation of function template specialization 'llvm::transform<llvm::SmallVector<llvm::object::OffloadBundleEntry> &, std::back_insert_iterator<llvm::SmallVector<llvm::object::OffloadBundleEntry>>, (lambda at /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/include/llvm/Object/OffloadBundle.h:115:57)>' requested here
  115 |     llvm::transform(Entries, std::back_inserter(Found), [Str](auto &X) {
      |           ^
2 errors generated.
[3833/4190] Building CXX object lib/Object/CMakeFiles/LLVMObject.dir/OffloadBundle.cpp.o
FAILED: lib/Object/CMakeFiles/LLVMObject.dir/OffloadBundle.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes CCACHE_SLOPPINESS=pch_defines,time_macros /usr/bin/ccache /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm_build0/bin/clang++ -DGTEST_HAS_RTTI=0 -DLLVM_EXPORTS -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_default/lib/Object -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/lib/Object -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_default/include -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -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 -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=c++17  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -MD -MT lib/Object/CMakeFiles/LLVMObject.dir/OffloadBundle.cpp.o -MF lib/Object/CMakeFiles/LLVMObject.dir/OffloadBundle.cpp.o.d -o lib/Object/CMakeFiles/LLVMObject.dir/OffloadBundle.cpp.o -c /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/lib/Object/OffloadBundle.cpp
In file included from /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/lib/Object/OffloadBundle.cpp:9:
/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/include/llvm/Object/OffloadBundle.h:148:5: error: default label in switch which covers all enumeration values [-Werror,-Wcovered-switch-default]
  148 |     default:
      |     ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/lib/Object/OffloadBundle.cpp:181:31: error: unused variable 'CoffSection' [-Werror,-Wunused-variable]
  181 |           const coff_section *CoffSection = COFFObj->getCOFFSection(Sec);
      |                               ^~~~~~~~~~~
In file included from /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/lib/Object/OffloadBundle.cpp:9:
/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/include/llvm/Object/OffloadBundle.h:118:5: error: non-void lambda does not return a value in all control paths [-Werror,-Wreturn-type]
  118 |     });
      |     ^
/usr/lib/gcc/ppc64le-redhat-linux/8/../../../../include/c++/8/bits/stl_algo.h:4304:14: note: in instantiation of function template specialization 'llvm::object::OffloadBundleFatBin::entryIDContains(StringRef)::(anonymous class)::operator()<llvm::object::OffloadBundleEntry>' requested here
 4304 |         *__result = __unary_op(*__first);
      |                     ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/include/llvm/ADT/STLExtras.h:1958:15: note: in instantiation of function template specialization 'std::transform<llvm::object::OffloadBundleEntry *, std::back_insert_iterator<llvm::SmallVector<llvm::object::OffloadBundleEntry>>, (lambda at /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/include/llvm/Object/OffloadBundle.h:115:57)>' requested here
 1958 |   return std::transform(adl_begin(Range), adl_end(Range), d_first, F);
Step 11 (build compiler-rt default) failure: build compiler-rt default (failure)
...
[3842/4209] Linking CXX executable bin/llvm-microsoft-demangle-fuzzer
[3843/4209] Linking CXX executable bin/llvm-yaml-numeric-parser-fuzzer
[3844/4209] Linking CXX executable bin/llvm-itanium-demangle-fuzzer
[3845/4209] Linking CXX static library lib/libLLVMIRReader.a
[3846/4209] Linking CXX executable bin/llvm-jitlink-executor
[3847/4209] Linking CXX executable bin/llvm-bcanalyzer
[3848/4209] Linking CXX executable bin/llvm-dis
[3849/4209] Linking CXX executable bin/llvm-stress
[3850/4209] Linking CXX executable bin/llvm-diff
[3851/4209] Building CXX object tools/llvm-objdump/CMakeFiles/llvm-objdump.dir/OffloadDump.cpp.o
FAILED: tools/llvm-objdump/CMakeFiles/llvm-objdump.dir/OffloadDump.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes CCACHE_SLOPPINESS=pch_defines,time_macros /usr/bin/ccache /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm_build0/bin/clang++ -DGTEST_HAS_RTTI=0 -DLLVM_BUILD_STATIC -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_default/tools/llvm-objdump -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/tools/llvm-objdump -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_default/include -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -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 -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=c++17  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -MD -MT tools/llvm-objdump/CMakeFiles/llvm-objdump.dir/OffloadDump.cpp.o -MF tools/llvm-objdump/CMakeFiles/llvm-objdump.dir/OffloadDump.cpp.o.d -o tools/llvm-objdump/CMakeFiles/llvm-objdump.dir/OffloadDump.cpp.o -c /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/tools/llvm-objdump/OffloadDump.cpp
In file included from /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/tools/llvm-objdump/OffloadDump.cpp:14:
In file included from /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/tools/llvm-objdump/OffloadDump.h:14:
/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/include/llvm/Object/OffloadBundle.h:148:5: error: default label in switch which covers all enumeration values [-Werror,-Wcovered-switch-default]
  148 |     default:
      |     ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/include/llvm/Object/OffloadBundle.h:118:5: error: non-void lambda does not return a value in all control paths [-Werror,-Wreturn-type]
  118 |     });
      |     ^
/usr/lib/gcc/ppc64le-redhat-linux/8/../../../../include/c++/8/bits/stl_algo.h:4304:14: note: in instantiation of function template specialization 'llvm::object::OffloadBundleFatBin::entryIDContains(StringRef)::(anonymous class)::operator()<llvm::object::OffloadBundleEntry>' requested here
 4304 |         *__result = __unary_op(*__first);
      |                     ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/include/llvm/ADT/STLExtras.h:1958:15: note: in instantiation of function template specialization 'std::transform<llvm::object::OffloadBundleEntry *, std::back_insert_iterator<llvm::SmallVector<llvm::object::OffloadBundleEntry>>, (lambda at /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/include/llvm/Object/OffloadBundle.h:115:57)>' requested here
 1958 |   return std::transform(adl_begin(Range), adl_end(Range), d_first, F);
      |               ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/include/llvm/Object/OffloadBundle.h:115:11: note: in instantiation of function template specialization 'llvm::transform<llvm::SmallVector<llvm::object::OffloadBundleEntry> &, std::back_insert_iterator<llvm::SmallVector<llvm::object::OffloadBundleEntry>>, (lambda at /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/include/llvm/Object/OffloadBundle.h:115:57)>' requested here
  115 |     llvm::transform(Entries, std::back_inserter(Found), [Str](auto &X) {
      |           ^
2 errors generated.
[3852/4209] Building CXX object lib/Object/CMakeFiles/LLVMObject.dir/OffloadBundle.cpp.o
FAILED: lib/Object/CMakeFiles/LLVMObject.dir/OffloadBundle.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes CCACHE_SLOPPINESS=pch_defines,time_macros /usr/bin/ccache /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm_build0/bin/clang++ -DGTEST_HAS_RTTI=0 -DLLVM_EXPORTS -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_default/lib/Object -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/lib/Object -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_default/include -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -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 -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=c++17  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -MD -MT lib/Object/CMakeFiles/LLVMObject.dir/OffloadBundle.cpp.o -MF lib/Object/CMakeFiles/LLVMObject.dir/OffloadBundle.cpp.o.d -o lib/Object/CMakeFiles/LLVMObject.dir/OffloadBundle.cpp.o -c /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/lib/Object/OffloadBundle.cpp
In file included from /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/lib/Object/OffloadBundle.cpp:9:
/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/include/llvm/Object/OffloadBundle.h:148:5: error: default label in switch which covers all enumeration values [-Werror,-Wcovered-switch-default]
  148 |     default:
      |     ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/lib/Object/OffloadBundle.cpp:181:31: error: unused variable 'CoffSection' [-Werror,-Wunused-variable]
  181 |           const coff_section *CoffSection = COFFObj->getCOFFSection(Sec);
      |                               ^~~~~~~~~~~
In file included from /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/lib/Object/OffloadBundle.cpp:9:
/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/include/llvm/Object/OffloadBundle.h:118:5: error: non-void lambda does not return a value in all control paths [-Werror,-Wreturn-type]
  118 |     });
      |     ^
/usr/lib/gcc/ppc64le-redhat-linux/8/../../../../include/c++/8/bits/stl_algo.h:4304:14: note: in instantiation of function template specialization 'llvm::object::OffloadBundleFatBin::entryIDContains(StringRef)::(anonymous class)::operator()<llvm::object::OffloadBundleEntry>' requested here
 4304 |         *__result = __unary_op(*__first);
      |                     ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/include/llvm/ADT/STLExtras.h:1958:15: note: in instantiation of function template specialization 'std::transform<llvm::object::OffloadBundleEntry *, std::back_insert_iterator<llvm::SmallVector<llvm::object::OffloadBundleEntry>>, (lambda at /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/include/llvm/Object/OffloadBundle.h:115:57)>' requested here
 1958 |   return std::transform(adl_begin(Range), adl_end(Range), d_first, F);
Step 12 (test compiler-rt default) failure: test compiler-rt default (failure)
@@@BUILD_STEP test compiler-rt default@@@
ninja: Entering directory `build_default'
[1/244] Linking CXX static library lib/libLLVMMCParser.a
[2/244] Linking CXX static library lib/libLLVMPowerPCAsmParser.a
[3/244] Building CXX object tools/llvm-objdump/CMakeFiles/llvm-objdump.dir/OffloadDump.cpp.o
FAILED: tools/llvm-objdump/CMakeFiles/llvm-objdump.dir/OffloadDump.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes CCACHE_SLOPPINESS=pch_defines,time_macros /usr/bin/ccache /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm_build0/bin/clang++ -DGTEST_HAS_RTTI=0 -DLLVM_BUILD_STATIC -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_default/tools/llvm-objdump -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/tools/llvm-objdump -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_default/include -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -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 -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=c++17  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -MD -MT tools/llvm-objdump/CMakeFiles/llvm-objdump.dir/OffloadDump.cpp.o -MF tools/llvm-objdump/CMakeFiles/llvm-objdump.dir/OffloadDump.cpp.o.d -o tools/llvm-objdump/CMakeFiles/llvm-objdump.dir/OffloadDump.cpp.o -c /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/tools/llvm-objdump/OffloadDump.cpp
In file included from /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/tools/llvm-objdump/OffloadDump.cpp:14:
In file included from /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/tools/llvm-objdump/OffloadDump.h:14:
/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/include/llvm/Object/OffloadBundle.h:148:5: error: default label in switch which covers all enumeration values [-Werror,-Wcovered-switch-default]
  148 |     default:
      |     ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/include/llvm/Object/OffloadBundle.h:118:5: error: non-void lambda does not return a value in all control paths [-Werror,-Wreturn-type]
  118 |     });
      |     ^
/usr/lib/gcc/ppc64le-redhat-linux/8/../../../../include/c++/8/bits/stl_algo.h:4304:14: note: in instantiation of function template specialization 'llvm::object::OffloadBundleFatBin::entryIDContains(StringRef)::(anonymous class)::operator()<llvm::object::OffloadBundleEntry>' requested here
 4304 |         *__result = __unary_op(*__first);
      |                     ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/include/llvm/ADT/STLExtras.h:1958:15: note: in instantiation of function template specialization 'std::transform<llvm::object::OffloadBundleEntry *, std::back_insert_iterator<llvm::SmallVector<llvm::object::OffloadBundleEntry>>, (lambda at /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/include/llvm/Object/OffloadBundle.h:115:57)>' requested here
 1958 |   return std::transform(adl_begin(Range), adl_end(Range), d_first, F);
      |               ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/include/llvm/Object/OffloadBundle.h:115:11: note: in instantiation of function template specialization 'llvm::transform<llvm::SmallVector<llvm::object::OffloadBundleEntry> &, std::back_insert_iterator<llvm::SmallVector<llvm::object::OffloadBundleEntry>>, (lambda at /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/include/llvm/Object/OffloadBundle.h:115:57)>' requested here
  115 |     llvm::transform(Entries, std::back_inserter(Found), [Str](auto &X) {
      |           ^
2 errors generated.
[4/244] Building CXX object lib/Object/CMakeFiles/LLVMObject.dir/OffloadBundle.cpp.o
FAILED: lib/Object/CMakeFiles/LLVMObject.dir/OffloadBundle.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes CCACHE_SLOPPINESS=pch_defines,time_macros /usr/bin/ccache /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm_build0/bin/clang++ -DGTEST_HAS_RTTI=0 -DLLVM_EXPORTS -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_default/lib/Object -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/lib/Object -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_default/include -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -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 -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=c++17  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -MD -MT lib/Object/CMakeFiles/LLVMObject.dir/OffloadBundle.cpp.o -MF lib/Object/CMakeFiles/LLVMObject.dir/OffloadBundle.cpp.o.d -o lib/Object/CMakeFiles/LLVMObject.dir/OffloadBundle.cpp.o -c /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/lib/Object/OffloadBundle.cpp
In file included from /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/lib/Object/OffloadBundle.cpp:9:
/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/include/llvm/Object/OffloadBundle.h:148:5: error: default label in switch which covers all enumeration values [-Werror,-Wcovered-switch-default]
  148 |     default:
      |     ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/lib/Object/OffloadBundle.cpp:181:31: error: unused variable 'CoffSection' [-Werror,-Wunused-variable]
  181 |           const coff_section *CoffSection = COFFObj->getCOFFSection(Sec);
      |                               ^~~~~~~~~~~
In file included from /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/lib/Object/OffloadBundle.cpp:9:
/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/include/llvm/Object/OffloadBundle.h:118:5: error: non-void lambda does not return a value in all control paths [-Werror,-Wreturn-type]
  118 |     });
      |     ^
/usr/lib/gcc/ppc64le-redhat-linux/8/../../../../include/c++/8/bits/stl_algo.h:4304:14: note: in instantiation of function template specialization 'llvm::object::OffloadBundleFatBin::entryIDContains(StringRef)::(anonymous class)::operator()<llvm::object::OffloadBundleEntry>' requested here
 4304 |         *__result = __unary_op(*__first);
      |                     ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/include/llvm/ADT/STLExtras.h:1958:15: note: in instantiation of function template specialization 'std::transform<llvm::object::OffloadBundleEntry *, std::back_insert_iterator<llvm::SmallVector<llvm::object::OffloadBundleEntry>>, (lambda at /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/include/llvm/Object/OffloadBundle.h:115:57)>' requested here
 1958 |   return std::transform(adl_begin(Range), adl_end(Range), d_first, F);
      |               ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/include/llvm/Object/OffloadBundle.h:115:11: note: in instantiation of function template specialization 'llvm::transform<llvm::SmallVector<llvm::object::OffloadBundleEntry> &, std::back_insert_iterator<llvm::SmallVector<llvm::object::OffloadBundleEntry>>, (lambda at /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/include/llvm/Object/OffloadBundle.h:115:57)>' requested here
  115 |     llvm::transform(Entries, std::back_inserter(Found), [Str](auto &X) {
      |           ^
3 errors generated.
[5/244] Building CXX object tools/llvm-objdump/CMakeFiles/llvm-objdump.dir/llvm-objdump.cpp.o
Step 13 (build standalone compiler-rt) failure: build standalone compiler-rt (failure)
...
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
-- The ASM compiler identification is unknown
-- Didn't find assembler
CMake Error at CMakeLists.txt:22 (project):
  The CMAKE_C_COMPILER:

    /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_default/bin/clang

  is not a full path to an existing compiler tool.

  Tell CMake where to find the compiler by setting either the environment
  variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
  the compiler, or to the compiler name if it is in the PATH.


CMake Error at CMakeLists.txt:22 (project):
  The CMAKE_CXX_COMPILER:

    /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_default/bin/clang++

  is not a full path to an existing compiler tool.

  Tell CMake where to find the compiler by setting either the environment
  variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
  to the compiler, or to the compiler name if it is in the PATH.


CMake Error at CMakeLists.txt:22 (project):
  No CMAKE_ASM_COMPILER could be found.

  Tell CMake where to find the compiler by setting either the environment
  variable "ASM" or the CMake cache entry CMAKE_ASM_COMPILER to the full path
  to the compiler, or to the compiler name if it is in the PATH.
-- Warning: Did not find file Compiler/-ASM
-- Configuring incomplete, errors occurred!

How to reproduce locally: https://github.com/google/sanitizers/wiki/SanitizerBotReproduceBuild




ninja: Entering directory `compiler_rt_build'

How to reproduce locally: https://github.com/google/sanitizers/wiki/SanitizerBotReproduceBuild


ninja: error: loading 'build.ninja': No such file or directory


Step 14 (test standalone compiler-rt) failure: test standalone compiler-rt (failure)
@@@BUILD_STEP test standalone compiler-rt@@@
ninja: Entering directory `compiler_rt_build'
ninja: error: loading 'build.ninja': No such file or directory

How to reproduce locally: https://github.com/google/sanitizers/wiki/SanitizerBotReproduceBuild





@llvm-ci
Copy link
Collaborator

llvm-ci commented May 8, 2025

LLVM Buildbot has detected a new failure on builder ppc64le-lld-multistage-test running on ppc64le-lld-multistage-test while building llvm at step 12 "build-stage2-unified-tree".

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

Here is the relevant piece of the build log for the reference
Step 12 (build-stage2-unified-tree) failure: build (failure)
...
30.360 [1/8/16] Building CXX object tools/clang/utils/TableGen/CMakeFiles/clang-tblgen.dir/ClangOpenCLBuiltinEmitter.cpp.o
40.524 [1/7/17] Building CXX object tools/clang/utils/TableGen/CMakeFiles/clang-tblgen.dir/RISCVVEmitter.cpp.o
42.547 [1/6/18] Building CXX object tools/clang/utils/TableGen/CMakeFiles/clang-tblgen.dir/ClangASTPropertiesEmitter.cpp.o
44.292 [1/5/19] Building CXX object tools/clang/utils/TableGen/CMakeFiles/clang-tblgen.dir/ClangDiagnosticsEmitter.cpp.o
44.623 [1/4/20] Building CXX object tools/clang/utils/TableGen/CMakeFiles/clang-tblgen.dir/SveEmitter.cpp.o
54.291 [1/3/21] Building CXX object tools/clang/utils/TableGen/CMakeFiles/clang-tblgen.dir/MveEmitter.cpp.o
59.534 [1/2/22] Building CXX object tools/clang/utils/TableGen/CMakeFiles/clang-tblgen.dir/NeonEmitter.cpp.o
73.726 [1/1/23] Building CXX object tools/clang/utils/TableGen/CMakeFiles/clang-tblgen.dir/ClangAttrEmitter.cpp.o
73.788 [0/1/24] Linking CXX executable bin/clang-tblgen
209.555 [4421/1154/972] Building CXX object lib/Object/CMakeFiles/LLVMObject.dir/OffloadBundle.cpp.o
FAILED: lib/Object/CMakeFiles/LLVMObject.dir/OffloadBundle.cpp.o 
ccache /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/install/stage1/bin/clang++ -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/build/stage2/lib/Object -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/llvm/lib/Object -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/build/stage2/include -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -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 -Wno-unnecessary-virtual-specifier -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=c++17  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -MD -MT lib/Object/CMakeFiles/LLVMObject.dir/OffloadBundle.cpp.o -MF lib/Object/CMakeFiles/LLVMObject.dir/OffloadBundle.cpp.o.d -o lib/Object/CMakeFiles/LLVMObject.dir/OffloadBundle.cpp.o -c /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/llvm/lib/Object/OffloadBundle.cpp
In file included from /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/llvm/lib/Object/OffloadBundle.cpp:9:
/home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/llvm/include/llvm/Object/OffloadBundle.h:148:5: error: default label in switch which covers all enumeration values [-Werror,-Wcovered-switch-default]
  148 |     default:
      |     ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/llvm/lib/Object/OffloadBundle.cpp:181:31: error: unused variable 'CoffSection' [-Werror,-Wunused-variable]
  181 |           const coff_section *CoffSection = COFFObj->getCOFFSection(Sec);
      |                               ^~~~~~~~~~~
In file included from /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/llvm/lib/Object/OffloadBundle.cpp:9:
/home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/llvm/include/llvm/Object/OffloadBundle.h:118:5: error: non-void lambda does not return a value in all control paths [-Werror,-Wreturn-type]
  118 |     });
      |     ^
/usr/lib/gcc/ppc64le-redhat-linux/8/../../../../include/c++/8/bits/stl_algo.h:4304:14: note: in instantiation of function template specialization 'llvm::object::OffloadBundleFatBin::entryIDContains(StringRef)::(anonymous class)::operator()<llvm::object::OffloadBundleEntry>' requested here
 4304 |         *__result = __unary_op(*__first);
      |                     ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/llvm/include/llvm/ADT/STLExtras.h:1958:15: note: in instantiation of function template specialization 'std::transform<llvm::object::OffloadBundleEntry *, std::back_insert_iterator<llvm::SmallVector<llvm::object::OffloadBundleEntry>>, (lambda at /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/llvm/include/llvm/Object/OffloadBundle.h:115:57)>' requested here
 1958 |   return std::transform(adl_begin(Range), adl_end(Range), d_first, F);
      |               ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/llvm/include/llvm/Object/OffloadBundle.h:115:11: note: in instantiation of function template specialization 'llvm::transform<llvm::SmallVector<llvm::object::OffloadBundleEntry> &, std::back_insert_iterator<llvm::SmallVector<llvm::object::OffloadBundleEntry>>, (lambda at /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/llvm/include/llvm/Object/OffloadBundle.h:115:57)>' requested here
  115 |     llvm::transform(Entries, std::back_inserter(Found), [Str](auto &X) {
      |           ^
3 errors generated.
243.772 [4421/37/2089] Building CXX object lib/Transforms/Scalar/CMakeFiles/LLVMScalarOpts.dir/NewGVN.cpp.o
243.956 [4421/35/2091] Building CXX object lib/CodeGen/AsmPrinter/CMakeFiles/LLVMAsmPrinter.dir/CodeViewDebug.cpp.o
244.166 [4421/34/2092] Building CXX object lib/CodeGen/GlobalISel/CMakeFiles/LLVMGlobalISel.dir/LegalizerHelper.cpp.o
244.424 [4421/33/2093] Building CXX object lib/CodeGen/GlobalISel/CMakeFiles/LLVMGlobalISel.dir/CombinerHelper.cpp.o
244.613 [4421/32/2094] Building CXX object lib/ObjCopy/CMakeFiles/LLVMObjCopy.dir/ELF/ELFObject.cpp.o
244.832 [4421/31/2095] Building CXX object lib/CodeGen/AsmPrinter/CMakeFiles/LLVMAsmPrinter.dir/AsmPrinter.cpp.o
245.240 [4421/30/2096] Building CXX object lib/CodeGen/SelectionDAG/CMakeFiles/LLVMSelectionDAG.dir/TargetLowering.cpp.o
245.299 [4421/29/2097] Building CXX object lib/Bitcode/Reader/CMakeFiles/LLVMBitReader.dir/BitcodeReader.cpp.o
245.318 [4421/28/2098] Building CXX object lib/Transforms/Scalar/CMakeFiles/LLVMScalarOpts.dir/SimpleLoopUnswitch.cpp.o
245.433 [4421/27/2099] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/MachinePipeliner.cpp.o
245.507 [4421/26/2100] Building CXX object lib/Transforms/IPO/CMakeFiles/LLVMipo.dir/SampleProfile.cpp.o
245.712 [4421/25/2101] Building CXX object lib/Transforms/Scalar/CMakeFiles/LLVMScalarOpts.dir/LoopStrengthReduce.cpp.o
245.723 [4421/24/2102] Building CXX object lib/Transforms/IPO/CMakeFiles/LLVMipo.dir/Attributor.cpp.o
245.981 [4421/23/2103] Building CXX object lib/LTO/CMakeFiles/LLVMLTO.dir/LTO.cpp.o
247.090 [4421/22/2104] Building CXX object lib/Analysis/CMakeFiles/LLVMAnalysis.dir/TargetLibraryInfo.cpp.o
247.221 [4421/21/2105] Building CXX object unittests/ADT/CMakeFiles/ADTTests.dir/APFloatTest.cpp.o

@llvm-ci
Copy link
Collaborator

llvm-ci commented May 8, 2025

LLVM Buildbot has detected a new failure on builder llvm-clang-x86_64-darwin running on doug-worker-3 while building llvm at step 6 "test-build-unified-tree-check-all".

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

Here is the relevant piece of the build log for the reference
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'Clang-Unit :: ./AllClangUnitTests/13/48' FAILED ********************
Script(shard):
--
GTEST_OUTPUT=json:/Volumes/RAMDisk/buildbot-root/x86_64-darwin/build/tools/clang/unittests/./AllClangUnitTests-Clang-Unit-97099-13-48.json GTEST_SHUFFLE=0 GTEST_TOTAL_SHARDS=48 GTEST_SHARD_INDEX=13 /Volumes/RAMDisk/buildbot-root/x86_64-darwin/build/tools/clang/unittests/./AllClangUnitTests
--

Note: This is test shard 14 of 48.
[==========] Running 510 tests from 106 test suites.
[----------] Global test environment set-up.
[----------] 1 test from MinimizeSourceToDependencyDirectivesTest
[ RUN      ] MinimizeSourceToDependencyDirectivesTest.DefineMultilineArgsCarriageReturn
[       OK ] MinimizeSourceToDependencyDirectivesTest.DefineMultilineArgsCarriageReturn (3 ms)
[----------] 1 test from MinimizeSourceToDependencyDirectivesTest (3 ms total)

[----------] 1 test from HeaderSearchTest
[ RUN      ] HeaderSearchTest.ShortenWithWorkingDir
[       OK ] HeaderSearchTest.ShortenWithWorkingDir (4 ms)
[----------] 1 test from HeaderSearchTest (4 ms total)

[----------] 1 test from ModuleDeclStateTest
[ RUN      ] ModuleDeclStateTest.ModuleNameWithDot
[       OK ] ModuleDeclStateTest.ModuleNameWithDot (7 ms)
[----------] 1 test from ModuleDeclStateTest (7 ms total)

[----------] 1 test from DxcModeTest
[ RUN      ] DxcModeTest.DefaultEntry
warning: argument unused during compilation: '-S'
warning: argument unused during compilation: '-S'
[       OK ] DxcModeTest.DefaultEntry (27 ms)
[----------] 1 test from DxcModeTest (27 ms total)

[----------] 1 test from MultilibTest
[ RUN      ] MultilibTest.SelectMultiple
[       OK ] MultilibTest.SelectMultiple (0 ms)
[----------] 1 test from MultilibTest (0 ms total)

[----------] 2 tests from ExprMutationAnalyzerTest
[ RUN      ] ExprMutationAnalyzerTest.ReturnAsNonConstRef
input.cc:1:26: warning: reference to stack memory associated with local variable 'x' returned [-Wreturn-stack-address]
    1 | int& f() { int x; return x; }
      |                          ^
[       OK ] ExprMutationAnalyzerTest.ReturnAsNonConstRef (67 ms)
[ RUN      ] ExprMutationAnalyzerTest.NotUnevaluatedExpressions
input.cc:1:19: warning: expression result unused [-Wunused-value]
    1 | void f() { int x; sizeof(int[x++]); }
      |                   ^~~~~~~~~~~~~~~~
input.cc:1:126: warning: expression with side effects will be evaluated despite being used as an operand to 'typeid' [-Wpotentially-evaluated-expression]
    1 | namespace std { class type_info; }struct A { virtual ~A(); }; struct B : A {};struct X { A& f(); }; void f() { X x; typeid(x.f()); }
      |                                                                                                                              ^
input.cc:1:117: warning: expression result unused [-Wunused-value]
...

@llvm-ci
Copy link
Collaborator

llvm-ci commented May 8, 2025

LLVM Buildbot has detected a new failure on builder clang-m68k-linux-cross running on suse-gary-m68k-cross while building llvm at step 5 "ninja check 1".

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

Here is the relevant piece of the build log for the reference
Step 5 (ninja check 1) failure: stage 1 checked (failure)
******************** TEST 'LLVM :: tools/llvm-objdump/Offloading/fatbin.test' FAILED ********************
Exit Code: 1

Command Output (stdout):
--

/var/lib/buildbot/workers/suse-gary-m68k-cross/clang-m68k-linux-cross/stage1/test/tools/llvm-objdump/Offloading/Output/fatbin.test.tmp.elf:	file format elf64-x86-64

--
Command Output (stderr):
--
/var/lib/buildbot/workers/suse-gary-m68k-cross/clang-m68k-linux-cross/stage1/bin/yaml2obj /var/lib/buildbot/workers/suse-gary-m68k-cross/clang-m68k-linux-cross/llvm/llvm/test/tools/llvm-objdump/Offloading/fatbin.test -o /var/lib/buildbot/workers/suse-gary-m68k-cross/clang-m68k-linux-cross/stage1/test/tools/llvm-objdump/Offloading/Output/fatbin.test.tmp.elf # RUN: at line 4
+ /var/lib/buildbot/workers/suse-gary-m68k-cross/clang-m68k-linux-cross/stage1/bin/yaml2obj /var/lib/buildbot/workers/suse-gary-m68k-cross/clang-m68k-linux-cross/llvm/llvm/test/tools/llvm-objdump/Offloading/fatbin.test -o /var/lib/buildbot/workers/suse-gary-m68k-cross/clang-m68k-linux-cross/stage1/test/tools/llvm-objdump/Offloading/Output/fatbin.test.tmp.elf
/var/lib/buildbot/workers/suse-gary-m68k-cross/clang-m68k-linux-cross/stage1/bin/llvm-objdump --offloading /var/lib/buildbot/workers/suse-gary-m68k-cross/clang-m68k-linux-cross/stage1/test/tools/llvm-objdump/Offloading/Output/fatbin.test.tmp.elf # RUN: at line 5
+ /var/lib/buildbot/workers/suse-gary-m68k-cross/clang-m68k-linux-cross/stage1/bin/llvm-objdump --offloading /var/lib/buildbot/workers/suse-gary-m68k-cross/clang-m68k-linux-cross/stage1/test/tools/llvm-objdump/Offloading/Output/fatbin.test.tmp.elf
/var/lib/buildbot/workers/suse-gary-m68k-cross/clang-m68k-linux-cross/stage1/bin/llvm-objdump -d /var/lib/buildbot/workers/suse-gary-m68k-cross/clang-m68k-linux-cross/stage1/test/tools/llvm-objdump/Offloading/Output/fatbin.test.tmp.elf:0.hipv4-amdgcn-amd-amdhsa--gfx908 | /var/lib/buildbot/workers/suse-gary-m68k-cross/clang-m68k-linux-cross/stage1/bin/FileCheck /var/lib/buildbot/workers/suse-gary-m68k-cross/clang-m68k-linux-cross/llvm/llvm/test/tools/llvm-objdump/Offloading/fatbin.test # RUN: at line 6
+ /var/lib/buildbot/workers/suse-gary-m68k-cross/clang-m68k-linux-cross/stage1/bin/llvm-objdump -d /var/lib/buildbot/workers/suse-gary-m68k-cross/clang-m68k-linux-cross/stage1/test/tools/llvm-objdump/Offloading/Output/fatbin.test.tmp.elf:0.hipv4-amdgcn-amd-amdhsa--gfx908
+ /var/lib/buildbot/workers/suse-gary-m68k-cross/clang-m68k-linux-cross/stage1/bin/FileCheck /var/lib/buildbot/workers/suse-gary-m68k-cross/clang-m68k-linux-cross/llvm/llvm/test/tools/llvm-objdump/Offloading/fatbin.test
/var/lib/buildbot/workers/suse-gary-m68k-cross/clang-m68k-linux-cross/stage1/bin/llvm-objdump: error: '/var/lib/buildbot/workers/suse-gary-m68k-cross/clang-m68k-linux-cross/stage1/test/tools/llvm-objdump/Offloading/Output/fatbin.test.tmp.elf:0.hipv4-amdgcn-amd-amdhsa--gfx908': can't find target: unable to get target for 'amdgcn-amd-amdhsa', see --version and --triple.
/var/lib/buildbot/workers/suse-gary-m68k-cross/clang-m68k-linux-cross/llvm/llvm/test/tools/llvm-objdump/Offloading/fatbin.test:9:10: error: CHECK: expected string not found in input
# CHECK: s_load_dword s7, s[4:5], 0x24
         ^
<stdin>:1:1: note: scanning from here

^
<stdin>:2:11: note: possible intended match here
/var/lib/buildbot/workers/suse-gary-m68k-cross/clang-m68k-linux-cross/stage1/test/tools/llvm-objdump/Offloading/Output/fatbin.test.tmp.elf:0.hipv4-amdgcn-amd-amdhsa--gfx908: file format elf64-amdgpu
          ^

Input file: <stdin>
Check file: /var/lib/buildbot/workers/suse-gary-m68k-cross/clang-m68k-linux-cross/llvm/llvm/test/tools/llvm-objdump/Offloading/fatbin.test

-dump-input=help explains the following input dump.

Input was:
<<<<<<
           1:  
check:9'0     X error: no match found
           2: /var/lib/buildbot/workers/suse-gary-m68k-cross/clang-m68k-linux-cross/stage1/test/tools/llvm-objdump/Offloading/Output/fatbin.test.tmp.elf:0.hipv4-amdgcn-amd-amdhsa--gfx908: file format elf64-amdgpu 
check:9'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
check:9'1               ?                                                                                                                                                                                             possible intended match
>>>>>>

--

********************


@llvm-ci
Copy link
Collaborator

llvm-ci commented May 8, 2025

LLVM Buildbot has detected a new failure on builder arc-builder running on arc-worker while building llvm at step 3 "clean-build-dir".

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

Here is the relevant piece of the build log for the reference
Step 3 (clean-build-dir) failure: Delete failed. (failure)
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'LLVM :: tools/llvm-objdump/Offloading/fatbin.test' FAILED ********************
Exit Code: 1

Command Output (stdout):
--

/buildbot/worker/arc-folder/build/test/tools/llvm-objdump/Offloading/Output/fatbin.test.tmp.elf:	file format elf64-x86-64

--
Command Output (stderr):
--
/buildbot/worker/arc-folder/build/bin/yaml2obj /buildbot/worker/arc-folder/llvm-project/llvm/test/tools/llvm-objdump/Offloading/fatbin.test -o /buildbot/worker/arc-folder/build/test/tools/llvm-objdump/Offloading/Output/fatbin.test.tmp.elf # RUN: at line 4
+ /buildbot/worker/arc-folder/build/bin/yaml2obj /buildbot/worker/arc-folder/llvm-project/llvm/test/tools/llvm-objdump/Offloading/fatbin.test -o /buildbot/worker/arc-folder/build/test/tools/llvm-objdump/Offloading/Output/fatbin.test.tmp.elf
/buildbot/worker/arc-folder/build/bin/llvm-objdump --offloading /buildbot/worker/arc-folder/build/test/tools/llvm-objdump/Offloading/Output/fatbin.test.tmp.elf # RUN: at line 5
+ /buildbot/worker/arc-folder/build/bin/llvm-objdump --offloading /buildbot/worker/arc-folder/build/test/tools/llvm-objdump/Offloading/Output/fatbin.test.tmp.elf
/buildbot/worker/arc-folder/build/bin/llvm-objdump -d /buildbot/worker/arc-folder/build/test/tools/llvm-objdump/Offloading/Output/fatbin.test.tmp.elf:0.hipv4-amdgcn-amd-amdhsa--gfx908 | /buildbot/worker/arc-folder/build/bin/FileCheck /buildbot/worker/arc-folder/llvm-project/llvm/test/tools/llvm-objdump/Offloading/fatbin.test # RUN: at line 6
+ /buildbot/worker/arc-folder/build/bin/llvm-objdump -d /buildbot/worker/arc-folder/build/test/tools/llvm-objdump/Offloading/Output/fatbin.test.tmp.elf:0.hipv4-amdgcn-amd-amdhsa--gfx908
+ /buildbot/worker/arc-folder/build/bin/FileCheck /buildbot/worker/arc-folder/llvm-project/llvm/test/tools/llvm-objdump/Offloading/fatbin.test
/buildbot/worker/arc-folder/build/bin/llvm-objdump: error: '/buildbot/worker/arc-folder/build/test/tools/llvm-objdump/Offloading/Output/fatbin.test.tmp.elf:0.hipv4-amdgcn-amd-amdhsa--gfx908': can't find target: unable to get target for 'amdgcn-amd-amdhsa', see --version and --triple.
/buildbot/worker/arc-folder/llvm-project/llvm/test/tools/llvm-objdump/Offloading/fatbin.test:9:10: error: CHECK: expected string not found in input
# CHECK: s_load_dword s7, s[4:5], 0x24
         ^
<stdin>:1:1: note: scanning from here

^
<stdin>:2:3: note: possible intended match here
/buildbot/worker/arc-folder/build/test/tools/llvm-objdump/Offloading/Output/fatbin.test.tmp.elf:0.hipv4-amdgcn-amd-amdhsa--gfx908: file format elf64-amdgpu
  ^

Input file: <stdin>
Check file: /buildbot/worker/arc-folder/llvm-project/llvm/test/tools/llvm-objdump/Offloading/fatbin.test

-dump-input=help explains the following input dump.

Input was:
<<<<<<
           1:  
check:9'0     X error: no match found
           2: /buildbot/worker/arc-folder/build/test/tools/llvm-objdump/Offloading/Output/fatbin.test.tmp.elf:0.hipv4-amdgcn-amd-amdhsa--gfx908: file format elf64-amdgpu 
check:9'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
check:9'1       ?                                                                                                                                                          possible intended match
>>>>>>

--

********************


@llvm-ci
Copy link
Collaborator

llvm-ci commented May 8, 2025

LLVM Buildbot has detected a new failure on builder clang-ppc64le-rhel running on ppc64le-clang-rhel-test while building llvm at step 5 "build-unified-tree".

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

Here is the relevant piece of the build log for the reference
Step 5 (build-unified-tree) failure: build (failure)
...
35.659 [2445/192/3887] Building CXX object tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/Targets/PPC.cpp.o
35.667 [2444/192/3888] Building CXX object tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/Targets/WebAssembly.cpp.o
35.681 [2443/192/3889] Building CXX object tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/Targets/X86.cpp.o
35.685 [2442/192/3890] Building CXX object tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/Action.cpp.o
35.690 [2441/192/3891] Building CXX object tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/Distro.cpp.o
35.696 [2440/192/3892] Building CXX object tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/OptionUtils.cpp.o
35.700 [2439/192/3893] Building CXX object tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/Phases.cpp.o
35.706 [2438/192/3894] Building CXX object tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/Tool.cpp.o
35.712 [2437/192/3895] Building X86GenDAGISel.inc...
35.729 [2436/192/3896] Building CXX object lib/Object/CMakeFiles/LLVMObject.dir/OffloadBundle.cpp.o
FAILED: lib/Object/CMakeFiles/LLVMObject.dir/OffloadBundle.cpp.o 
ccache /home/buildbots/llvm-external-buildbots/clang.19.1.7/bin/clang++ --gcc-toolchain=/gcc-toolchain/usr -DGTEST_HAS_RTTI=0 -DLLVM_EXPORTS -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-rhel-test/clang-ppc64le-rhel/build/lib/Object -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-rhel-test/clang-ppc64le-rhel/llvm-project/llvm/lib/Object -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-rhel-test/clang-ppc64le-rhel/build/include -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-rhel-test/clang-ppc64le-rhel/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -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 -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=c++17 -fPIC  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -MD -MT lib/Object/CMakeFiles/LLVMObject.dir/OffloadBundle.cpp.o -MF lib/Object/CMakeFiles/LLVMObject.dir/OffloadBundle.cpp.o.d -o lib/Object/CMakeFiles/LLVMObject.dir/OffloadBundle.cpp.o -c /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-rhel-test/clang-ppc64le-rhel/llvm-project/llvm/lib/Object/OffloadBundle.cpp
In file included from /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-rhel-test/clang-ppc64le-rhel/llvm-project/llvm/lib/Object/OffloadBundle.cpp:9:
/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-rhel-test/clang-ppc64le-rhel/llvm-project/llvm/include/llvm/Object/OffloadBundle.h:148:5: error: default label in switch which covers all enumeration values [-Werror,-Wcovered-switch-default]
  148 |     default:
      |     ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-rhel-test/clang-ppc64le-rhel/llvm-project/llvm/lib/Object/OffloadBundle.cpp:181:31: error: unused variable 'CoffSection' [-Werror,-Wunused-variable]
  181 |           const coff_section *CoffSection = COFFObj->getCOFFSection(Sec);
      |                               ^~~~~~~~~~~
In file included from /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-rhel-test/clang-ppc64le-rhel/llvm-project/llvm/lib/Object/OffloadBundle.cpp:9:
/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-rhel-test/clang-ppc64le-rhel/llvm-project/llvm/include/llvm/Object/OffloadBundle.h:118:5: error: non-void lambda does not return a value in all control paths [-Werror,-Wreturn-type]
  118 |     });
      |     ^
/gcc-toolchain/usr/lib/gcc/ppc64le-redhat-linux/8/../../../../include/c++/8/bits/stl_algo.h:4304:14: note: in instantiation of function template specialization 'llvm::object::OffloadBundleFatBin::entryIDContains(StringRef)::(anonymous class)::operator()<llvm::object::OffloadBundleEntry>' requested here
 4304 |         *__result = __unary_op(*__first);
      |                     ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-rhel-test/clang-ppc64le-rhel/llvm-project/llvm/include/llvm/ADT/STLExtras.h:1958:15: note: in instantiation of function template specialization 'std::transform<llvm::object::OffloadBundleEntry *, std::back_insert_iterator<llvm::SmallVector<llvm::object::OffloadBundleEntry>>, (lambda at /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-rhel-test/clang-ppc64le-rhel/llvm-project/llvm/include/llvm/Object/OffloadBundle.h:115:57)>' requested here
 1958 |   return std::transform(adl_begin(Range), adl_end(Range), d_first, F);
      |               ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-rhel-test/clang-ppc64le-rhel/llvm-project/llvm/include/llvm/Object/OffloadBundle.h:115:11: note: in instantiation of function template specialization 'llvm::transform<llvm::SmallVector<llvm::object::OffloadBundleEntry> &, std::back_insert_iterator<llvm::SmallVector<llvm::object::OffloadBundleEntry>>, (lambda at /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-rhel-test/clang-ppc64le-rhel/llvm-project/llvm/include/llvm/Object/OffloadBundle.h:115:57)>' requested here
  115 |     llvm::transform(Entries, std::back_inserter(Found), [Str](auto &X) {
      |           ^
3 errors generated.
35.734 [2436/191/3897] Building CXX object tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/ItaniumCXXABI.cpp.o
35.741 [2436/190/3898] Building CXX object tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/ModuleBuilder.cpp.o
35.746 [2436/189/3899] Building CXX object tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/TargetBuiltins/ARM.cpp.o
35.752 [2436/188/3900] Building CXX object tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/TargetBuiltins/AMDGPU.cpp.o
35.759 [2436/187/3901] Building CXX object tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/TargetBuiltins/DirectX.cpp.o
35.764 [2436/186/3902] Building CXX object tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/TargetBuiltins/SystemZ.cpp.o
35.771 [2436/185/3903] Building CXX object tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/TargetBuiltins/X86.cpp.o
35.778 [2436/184/3904] Building CXX object tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/TargetInfo.cpp.o
35.782 [2436/183/3905] Building CXX object tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/Targets/AMDGPU.cpp.o
35.788 [2436/182/3906] Building CXX object tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/Targets/ARM.cpp.o
35.793 [2436/181/3907] Building CXX object tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/Targets/AVR.cpp.o
35.800 [2436/180/3908] Building CXX object tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/Targets/Hexagon.cpp.o
35.806 [2436/179/3909] Building CXX object tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/Targets/Lanai.cpp.o
35.812 [2436/178/3910] Building CXX object tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/Targets/M68k.cpp.o
35.817 [2436/177/3911] Building CXX object tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/Targets/NVPTX.cpp.o
35.821 [2436/176/3912] Building CXX object tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/Targets/RISCV.cpp.o

SectionOffset = ELFSectionRef(Sec).getOffset();
} else if (Obj.isCOFF()) {
if (const COFFObjectFile *COFFObj = dyn_cast<COFFObjectFile>(&Obj))
const coff_section *CoffSection = COFFObj->getCOFFSection(Sec);
Copy link
Contributor

Choose a reason for hiding this comment

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

This is unused, and is triggering "error: unused variable 'CoffSection' [-Werror,-Wunused-variable]".
If the plan is to extend this soon, please use:

(void) CoffSection

Otherwise, please remove branch and re-add when adding functionality.

@Kewen12
Copy link

Kewen12 commented May 9, 2025

Hi David, could you please revert the PR while investigating? It breaks our buildbot and blocks downstream merge. Thanks!

@kazutakahirata
Copy link
Contributor

@david-salinas @Kewen12 I've reverted the PR.

@kazutakahirata
Copy link
Contributor

@david-salinas If you happen to have clang available as the host compiler, you can run cmake with:

-DLLVM_ENABLE_WERROR=On \
-DCMAKE_C_COMPILER=clang \
-DCMAKE_CXX_COMPILER=clang++ \

This way, you can easily catch warnings without relying on build bots. The LLVM project usually builds without warnings as long as you use clang as the host compiler.

@llvm-ci
Copy link
Collaborator

llvm-ci commented May 9, 2025

LLVM Buildbot has detected a new failure on builder llvm-clang-win-x-aarch64 running on as-builder-2 while building llvm at step 9 "test-check-llvm".

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

Here is the relevant piece of the build log for the reference
Step 9 (test-check-llvm) failure: Test just built components: check-llvm completed (failure)
******************** TEST 'LLVM :: tools/llvm-objdump/Offloading/fatbin.test' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 4
c:\buildbot\as-builder-2\x-aarch64\build\bin\yaml2obj.exe C:\buildbot\as-builder-2\x-aarch64\llvm-project\llvm\test\tools\llvm-objdump\Offloading\fatbin.test -o C:\buildbot\as-builder-2\x-aarch64\build\test\tools\llvm-objdump\Offloading\Output\fatbin.test.tmp.elf
# executed command: 'c:\buildbot\as-builder-2\x-aarch64\build\bin\yaml2obj.exe' 'C:\buildbot\as-builder-2\x-aarch64\llvm-project\llvm\test\tools\llvm-objdump\Offloading\fatbin.test' -o 'C:\buildbot\as-builder-2\x-aarch64\build\test\tools\llvm-objdump\Offloading\Output\fatbin.test.tmp.elf'
# RUN: at line 5
c:\buildbot\as-builder-2\x-aarch64\build\bin\llvm-objdump.exe --offloading C:\buildbot\as-builder-2\x-aarch64\build\test\tools\llvm-objdump\Offloading\Output\fatbin.test.tmp.elf
# executed command: 'c:\buildbot\as-builder-2\x-aarch64\build\bin\llvm-objdump.exe' --offloading 'C:\buildbot\as-builder-2\x-aarch64\build\test\tools\llvm-objdump\Offloading\Output\fatbin.test.tmp.elf'
# .---command stdout------------
# | 
# | C:\buildbot\as-builder-2\x-aarch64\build\test\tools\llvm-objdump\Offloading\Output\fatbin.test.tmp.elf:	file format elf64-x86-64
# `-----------------------------
# .---command stderr------------
# | c:\buildbot\as-builder-2\x-aarch64\build\bin\llvm-objdump.exe: error: 'C:\buildbot\as-builder-2\x-aarch64\build\test\tools\llvm-objdump\Offloading\Output\fatbin.test.tmp.elf': while extracting offload Bundle Entries: invalid argument
# `-----------------------------
# error: command failed with exit status: 1

--

********************


@llvm-ci
Copy link
Collaborator

llvm-ci commented May 9, 2025

LLVM Buildbot has detected a new failure on builder llvm-clang-win-x-armv7l running on as-builder-1 while building llvm at step 9 "test-check-llvm".

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

Here is the relevant piece of the build log for the reference
Step 9 (test-check-llvm) failure: Test just built components: check-llvm completed (failure)
******************** TEST 'LLVM :: tools/llvm-objdump/Offloading/fatbin.test' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 4
c:\buildbot\as-builder-1\x-armv7l\build\bin\yaml2obj.exe C:\buildbot\as-builder-1\x-armv7l\llvm-project\llvm\test\tools\llvm-objdump\Offloading\fatbin.test -o C:\buildbot\as-builder-1\x-armv7l\build\test\tools\llvm-objdump\Offloading\Output\fatbin.test.tmp.elf
# executed command: 'c:\buildbot\as-builder-1\x-armv7l\build\bin\yaml2obj.exe' 'C:\buildbot\as-builder-1\x-armv7l\llvm-project\llvm\test\tools\llvm-objdump\Offloading\fatbin.test' -o 'C:\buildbot\as-builder-1\x-armv7l\build\test\tools\llvm-objdump\Offloading\Output\fatbin.test.tmp.elf'
# RUN: at line 5
c:\buildbot\as-builder-1\x-armv7l\build\bin\llvm-objdump.exe --offloading C:\buildbot\as-builder-1\x-armv7l\build\test\tools\llvm-objdump\Offloading\Output\fatbin.test.tmp.elf
# executed command: 'c:\buildbot\as-builder-1\x-armv7l\build\bin\llvm-objdump.exe' --offloading 'C:\buildbot\as-builder-1\x-armv7l\build\test\tools\llvm-objdump\Offloading\Output\fatbin.test.tmp.elf'
# .---command stdout------------
# | 
# | C:\buildbot\as-builder-1\x-armv7l\build\test\tools\llvm-objdump\Offloading\Output\fatbin.test.tmp.elf:	file format elf64-x86-64
# `-----------------------------
# .---command stderr------------
# | c:\buildbot\as-builder-1\x-armv7l\build\bin\llvm-objdump.exe: error: 'C:\buildbot\as-builder-1\x-armv7l\build\test\tools\llvm-objdump\Offloading\Output\fatbin.test.tmp.elf': while extracting offload Bundle Entries: invalid argument
# `-----------------------------
# error: command failed with exit status: 1

--

********************


@llvm-ci
Copy link
Collaborator

llvm-ci commented May 9, 2025

LLVM Buildbot has detected a new failure on builder clang-armv7-global-isel running on linaro-clang-armv7-global-isel while building llvm at step 7 "ninja check 1".

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

Here is the relevant piece of the build log for the reference
Step 7 (ninja check 1) failure: stage 1 checked (failure)
******************** TEST 'LLVM :: tools/llvm-objdump/Offloading/fatbin.test' FAILED ********************
Exit Code: 134

Command Output (stderr):
--
/home/tcwg-buildbot/worker/clang-armv7-global-isel/stage1/bin/yaml2obj /home/tcwg-buildbot/worker/clang-armv7-global-isel/llvm/llvm/test/tools/llvm-objdump/Offloading/fatbin.test -o /home/tcwg-buildbot/worker/clang-armv7-global-isel/stage1/test/tools/llvm-objdump/Offloading/Output/fatbin.test.tmp.elf # RUN: at line 4
+ /home/tcwg-buildbot/worker/clang-armv7-global-isel/stage1/bin/yaml2obj /home/tcwg-buildbot/worker/clang-armv7-global-isel/llvm/llvm/test/tools/llvm-objdump/Offloading/fatbin.test -o /home/tcwg-buildbot/worker/clang-armv7-global-isel/stage1/test/tools/llvm-objdump/Offloading/Output/fatbin.test.tmp.elf
/home/tcwg-buildbot/worker/clang-armv7-global-isel/stage1/bin/llvm-objdump --offloading /home/tcwg-buildbot/worker/clang-armv7-global-isel/stage1/test/tools/llvm-objdump/Offloading/Output/fatbin.test.tmp.elf # RUN: at line 5
+ /home/tcwg-buildbot/worker/clang-armv7-global-isel/stage1/bin/llvm-objdump --offloading /home/tcwg-buildbot/worker/clang-armv7-global-isel/stage1/test/tools/llvm-objdump/Offloading/Output/fatbin.test.tmp.elf
llvm-objdump: ../llvm/llvm/include/llvm/ADT/StringRef.h:610: StringRef llvm::StringRef::drop_front(size_t) const: Assertion `size() >= N && "Dropping more elements than exist"' failed.
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
Stack dump:
0.	Program arguments: /home/tcwg-buildbot/worker/clang-armv7-global-isel/stage1/bin/llvm-objdump --offloading /home/tcwg-buildbot/worker/clang-armv7-global-isel/stage1/test/tools/llvm-objdump/Offloading/Output/fatbin.test.tmp.elf
#0 0x0867fc44 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/home/tcwg-buildbot/worker/clang-armv7-global-isel/stage1/bin/llvm-objdump+0x9cfc44)
#1 0x0867d6d8 llvm::sys::RunSignalHandlers() (/home/tcwg-buildbot/worker/clang-armv7-global-isel/stage1/bin/llvm-objdump+0x9cd6d8)
#2 0x086806c4 SignalHandler(int, siginfo_t*, void*) Signals.cpp:0:0
#3 0xec87d6f0 __default_rt_sa_restorer ./signal/../sysdeps/unix/sysv/linux/arm/sigrestorer.S:80:0
#4 0xec86db06 ./csu/../sysdeps/unix/sysv/linux/arm/libc-do-syscall.S:47:0
#5 0xec8ad292 __pthread_kill_implementation ./nptl/pthread_kill.c:44:76
#6 0xec87c840 gsignal ./signal/../sysdeps/posix/raise.c:27:6
/home/tcwg-buildbot/worker/clang-armv7-global-isel/stage1/test/tools/llvm-objdump/Offloading/Output/fatbin.test.script: line 3: 4017609 Aborted                 /home/tcwg-buildbot/worker/clang-armv7-global-isel/stage1/bin/llvm-objdump --offloading /home/tcwg-buildbot/worker/clang-armv7-global-isel/stage1/test/tools/llvm-objdump/Offloading/Output/fatbin.test.tmp.elf

--

********************


@llvm-ci
Copy link
Collaborator

llvm-ci commented May 9, 2025

LLVM Buildbot has detected a new failure on builder lld-x86_64-win running on as-worker-93 while building llvm at step 7 "test-build-unified-tree-check-all".

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

Here is the relevant piece of the build log for the reference
Step 7 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'LLVM-Unit :: Support/./SupportTests.exe/90/95' FAILED ********************
Script(shard):
--
GTEST_OUTPUT=json:C:\a\lld-x86_64-win\build\unittests\Support\.\SupportTests.exe-LLVM-Unit-8616-90-95.json GTEST_SHUFFLE=0 GTEST_TOTAL_SHARDS=95 GTEST_SHARD_INDEX=90 C:\a\lld-x86_64-win\build\unittests\Support\.\SupportTests.exe
--

Script:
--
C:\a\lld-x86_64-win\build\unittests\Support\.\SupportTests.exe --gtest_filter=ProgramEnvTest.CreateProcessLongPath
--
C:\a\lld-x86_64-win\llvm-project\llvm\unittests\Support\ProgramTest.cpp(160): error: Expected equality of these values:
  0
  RC
    Which is: -2

C:\a\lld-x86_64-win\llvm-project\llvm\unittests\Support\ProgramTest.cpp(163): error: fs::remove(Twine(LongPath)): did not return errc::success.
error number: 13
error message: permission denied



C:\a\lld-x86_64-win\llvm-project\llvm\unittests\Support\ProgramTest.cpp:160
Expected equality of these values:
  0
  RC
    Which is: -2

C:\a\lld-x86_64-win\llvm-project\llvm\unittests\Support\ProgramTest.cpp:163
fs::remove(Twine(LongPath)): did not return errc::success.
error number: 13
error message: permission denied




********************


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.