Skip to content

Add a pass to collect dropped var stats for MIR. #115566

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 1 commit into from
Nov 18, 2024

Conversation

rastogishubham
Copy link
Contributor

This patch uses the DroppedVariableStats class to add dropped variable
statistics for MIR passes.

@llvmbot llvmbot added the llvm:ir label Nov 8, 2024
@llvmbot
Copy link
Member

llvmbot commented Nov 8, 2024

@llvm/pr-subscribers-debuginfo

@llvm/pr-subscribers-llvm-ir

Author: Shubham Sandeep Rastogi (rastogishubham)

Changes

This patch uses the DroppedVariableStats class to add dropped variable
statistics for MIR passes.


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

11 Files Affected:

  • (added) llvm/include/llvm/CodeGen/DroppedVariableStats.h (+199)
  • (modified) llvm/include/llvm/CodeGen/MachineFunctionPass.h (+2)
  • (modified) llvm/include/llvm/Passes/StandardInstrumentations.h (+2-78)
  • (modified) llvm/lib/CodeGen/CMakeLists.txt (+1)
  • (added) llvm/lib/CodeGen/DroppedVariableStats.cpp (+222)
  • (modified) llvm/lib/CodeGen/MachineFunctionPass.cpp (+14-2)
  • (modified) llvm/lib/Passes/StandardInstrumentations.cpp (+2-178)
  • (modified) llvm/unittests/IR/CMakeLists.txt (+1-1)
  • (renamed) llvm/unittests/IR/DroppedVariableStatsIRTest.cpp (+28-42)
  • (modified) llvm/unittests/MIR/CMakeLists.txt (+1)
  • (added) llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp (+1067)
diff --git a/llvm/include/llvm/CodeGen/DroppedVariableStats.h b/llvm/include/llvm/CodeGen/DroppedVariableStats.h
new file mode 100644
index 00000000000000..8969105dcb08c2
--- /dev/null
+++ b/llvm/include/llvm/CodeGen/DroppedVariableStats.h
@@ -0,0 +1,199 @@
+///===- DroppedVariableStats.h - Opt Diagnostics -*- C++ -*----------------===//
+///
+/// Part of the LLVM Project, under the Apache License v2.0 with LLVM
+/// Exceptions. See https://llvm.org/LICENSE.txt for license information.
+/// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+///
+///===---------------------------------------------------------------------===//
+/// \file
+/// Dropped Variable Statistics for Debug Information. Reports any number
+/// of #dbg_values or DBG_VALUEs that get dropped due to an optimization pass.
+///
+///===---------------------------------------------------------------------===//
+
+#ifndef LLVM_CODEGEN_DROPPEDVARIABLESTATS_H
+#define LLVM_CODEGEN_DROPPEDVARIABLESTATS_H
+
+#include "llvm/CodeGen/MachinePassManager.h"
+#include "llvm/IR/DebugInfoMetadata.h"
+#include "llvm/IR/DiagnosticInfo.h"
+#include "llvm/IR/Function.h"
+#include "llvm/IR/Module.h"
+#include "llvm/IR/PassInstrumentation.h"
+
+namespace llvm {
+
+/// A unique key that represents a #dbg_value.
+using VarID =
+    std::tuple<const DIScope *, const DIScope *, const DILocalVariable *>;
+
+/// A base class to collect and print dropped debug information variable
+/// statistics.
+class DroppedVariableStats {
+public:
+  DroppedVariableStats(bool DroppedVarStatsEnabled)
+      : DroppedVariableStatsEnabled(DroppedVarStatsEnabled) {
+    if (DroppedVarStatsEnabled)
+      llvm::outs()
+          << "Pass Level, Pass Name, Num of Dropped Variables, Func or "
+             "Module Name\n";
+  };
+  // We intend this to be unique per-compilation, thus no copies.
+  DroppedVariableStats(const DroppedVariableStats &) = delete;
+  void operator=(const DroppedVariableStats &) = delete;
+
+  void setup() {
+    DebugVariablesStack.push_back(
+        {DenseMap<const Function *, DebugVariables>()});
+    InlinedAts.push_back(
+        {DenseMap<StringRef, DenseMap<VarID, DILocation *>>()});
+    return;
+  }
+
+  void cleanup() {
+    DebugVariablesStack.pop_back();
+    InlinedAts.pop_back();
+    return;
+  }
+
+  bool getPassDroppedVariables() { return PassDroppedVariables; }
+
+protected:
+  bool PassDroppedVariables = false;
+  bool DroppedVariableStatsEnabled = false;
+
+  struct DebugVariables {
+    /// DenseSet of VarIDs before an optimization pass has run.
+    DenseSet<VarID> DebugVariablesBefore;
+    /// DenseSet of VarIDs after an optimization pass has run.
+    DenseSet<VarID> DebugVariablesAfter;
+  };
+
+  /// A stack of a DenseMap, that maps DebugVariables for every pass to an
+  /// llvm::Function. A stack is used because an optimization pass can call
+  /// other passes.
+  SmallVector<DenseMap<const Function *, DebugVariables>> DebugVariablesStack;
+
+  /// A DenseSet tracking whether a scope was visited before.
+  DenseSet<const DIScope *> VisitedScope;
+  /// A stack of DenseMaps, which map the name of an llvm::Function to a
+  /// DenseMap of VarIDs and their inlinedAt locations before an optimization
+  /// pass has run.
+  SmallVector<DenseMap<StringRef, DenseMap<VarID, DILocation *>>> InlinedAts;
+  /// Remove a dropped #dbg_value VarID from all Sets in the
+  /// DroppedVariablesBefore stack.
+  void removeVarFromAllSets(VarID Var, const Function *F) {
+    // Do not remove Var from the last element, it will be popped from the
+    // stack.
+    for (auto &DebugVariablesMap : llvm::drop_end(DebugVariablesStack))
+      DebugVariablesMap[F].DebugVariablesBefore.erase(Var);
+  }
+  /// Return true if \p Scope is the same as \p DbgValScope or a child scope of
+  /// \p DbgValScope, return false otherwise.
+  bool isScopeChildOfOrEqualTo(DIScope *Scope, const DIScope *DbgValScope);
+  /// Return true if \p InlinedAt is the same as \p DbgValInlinedAt or part of
+  /// the InlinedAt chain, return false otherwise.
+  bool isInlinedAtChildOfOrEqualTo(const DILocation *InlinedAt,
+                                   const DILocation *DbgValInlinedAt);
+};
+
+/// A class to collect and print dropped debug information due to LLVM IR
+/// optimization passes. After every LLVM IR pass is run, it will print how many
+/// #dbg_values were dropped due to that pass.
+class DroppedVariableStatsIR : public DroppedVariableStats {
+public:
+  DroppedVariableStatsIR(bool DroppedVarStatsEnabled)
+      : llvm::DroppedVariableStats(DroppedVarStatsEnabled) {}
+
+  void runBeforePass(Any IR) {
+    setup();
+    if (const auto *M = unwrapIR<Module>(IR))
+      return this->runOnModule(M, true);
+    if (const auto *F = unwrapIR<Function>(IR))
+      return this->runOnFunction(F, true);
+  }
+
+  void runAfterPass(StringRef P, Any IR) {
+    if (const auto *M = unwrapIR<Module>(IR))
+      runAfterPassModule(P, M);
+    else if (const auto *F = unwrapIR<Function>(IR))
+      runAfterPassFunction(P, F);
+    return cleanup();
+  }
+
+  void registerCallbacks(PassInstrumentationCallbacks &PIC);
+
+private:
+  void runAfterPassFunction(StringRef PassID, const Function *F) {
+    runOnFunction(F, false);
+    calculateDroppedVarStatsOnFunction(F, PassID, F->getName().str(),
+                                       "Function");
+  }
+
+  void runAfterPassModule(StringRef PassID, const Module *M) {
+    runOnModule(M, false);
+    calculateDroppedVarStatsOnModule(M, PassID, M->getName().str(), "Module");
+  }
+  /// Populate DebugVariablesBefore, DebugVariablesAfter, InlinedAts before or
+  /// after a pass has run to facilitate dropped variable calculation for an
+  /// llvm::Function.
+  void runOnFunction(const Function *F, bool Before);
+  /// Iterate over all Instructions in a Function and report any dropped debug
+  /// information.
+  void calculateDroppedVarStatsOnFunction(const Function *F, StringRef PassID,
+                                          std::string FuncOrModName,
+                                          std::string PassLevel);
+  /// Populate DebugVariablesBefore, DebugVariablesAfter, InlinedAts before or
+  /// after a pass has run to facilitate dropped variable calculation for an
+  /// llvm::Module. Calls runOnFunction on every Function in the Module.
+  void runOnModule(const Module *M, bool Before);
+  /// Iterate over all Functions in a Module and report any dropped debug
+  /// information. Will call calculateDroppedVarStatsOnFunction on every
+  /// Function.
+  void calculateDroppedVarStatsOnModule(const Module *M, StringRef PassID,
+                                        std::string FuncOrModName,
+                                        std::string PassLevel);
+
+  template <typename IRUnitT> static const IRUnitT *unwrapIR(Any IR) {
+    const IRUnitT **IRPtr = llvm::any_cast<const IRUnitT *>(&IR);
+    return IRPtr ? *IRPtr : nullptr;
+  }
+};
+
+/// A class to collect and print dropped debug information due to MIR
+/// optimization passes. After every MIR pass is run, it will print how many
+/// #DBG_VALUEs were dropped due to that pass.
+class DroppedVariableStatsMIR : public DroppedVariableStats {
+public:
+  DroppedVariableStatsMIR() : llvm::DroppedVariableStats(false) {}
+
+  void runBeforePass(StringRef PassID, MachineFunction *MF) {
+    if (PassID == "Debug Variable Analysis")
+      return;
+    setup();
+    return runOnMachineFunction(MF, true);
+  }
+
+  void runAfterPass(StringRef PassID, MachineFunction *MF) {
+    if (PassID == "Debug Variable Analysis")
+      return;
+    runOnMachineFunction(MF, false);
+    calculateDroppedVarStatsOnMachineFunction(MF, PassID, MF->getName().str());
+    cleanup();
+  }
+
+private:
+  /// Populate DebugVariablesBefore, DebugVariablesAfter, InlinedAts before or
+  /// after a pass has run to facilitate dropped variable calculation for an
+  /// llvm::MachineFunction.
+  void runOnMachineFunction(const MachineFunction *MF, bool Before);
+  /// Iterate over all Instructions in a MachineFunction and report any dropped
+  /// debug information.
+  void calculateDroppedVarStatsOnMachineFunction(const MachineFunction *MF,
+                                                 StringRef PassID,
+                                                 std::string FuncOrModName);
+};
+
+} // namespace llvm
+
+#endif
diff --git a/llvm/include/llvm/CodeGen/MachineFunctionPass.h b/llvm/include/llvm/CodeGen/MachineFunctionPass.h
index caaf22c2139e31..2ab6fb203da874 100644
--- a/llvm/include/llvm/CodeGen/MachineFunctionPass.h
+++ b/llvm/include/llvm/CodeGen/MachineFunctionPass.h
@@ -18,6 +18,7 @@
 #ifndef LLVM_CODEGEN_MACHINEFUNCTIONPASS_H
 #define LLVM_CODEGEN_MACHINEFUNCTIONPASS_H
 
+#include "llvm/CodeGen/DroppedVariableStats.h"
 #include "llvm/CodeGen/MachineFunction.h"
 #include "llvm/Pass.h"
 
@@ -73,6 +74,7 @@ class MachineFunctionPass : public FunctionPass {
                           const std::string &Banner) const override;
 
   bool runOnFunction(Function &F) override;
+  DroppedVariableStatsMIR DroppedVarStatsMF;
 };
 
 } // End llvm namespace
diff --git a/llvm/include/llvm/Passes/StandardInstrumentations.h b/llvm/include/llvm/Passes/StandardInstrumentations.h
index 9301a12c740eec..12a34c099eaffe 100644
--- a/llvm/include/llvm/Passes/StandardInstrumentations.h
+++ b/llvm/include/llvm/Passes/StandardInstrumentations.h
@@ -19,6 +19,7 @@
 #include "llvm/ADT/SmallVector.h"
 #include "llvm/ADT/StringRef.h"
 #include "llvm/ADT/StringSet.h"
+#include "llvm/CodeGen/DroppedVariableStats.h"
 #include "llvm/CodeGen/MachineBasicBlock.h"
 #include "llvm/IR/BasicBlock.h"
 #include "llvm/IR/DebugInfoMetadata.h"
@@ -579,83 +580,6 @@ class PrintCrashIRInstrumentation {
   static void SignalHandler(void *);
 };
 
-/// A class to collect and print dropped debug information variable statistics.
-/// After every LLVM IR pass is run, it will print how many #dbg_values were
-/// dropped due to that pass.
-class DroppedVariableStats {
-public:
-  DroppedVariableStats(bool DroppedVarStatsEnabled) {
-    if (DroppedVarStatsEnabled)
-      llvm::outs()
-          << "Pass Level, Pass Name, Num of Dropped Variables, Func or "
-             "Module Name\n";
-  };
-  // We intend this to be unique per-compilation, thus no copies.
-  DroppedVariableStats(const DroppedVariableStats &) = delete;
-  void operator=(const DroppedVariableStats &) = delete;
-
-  void registerCallbacks(PassInstrumentationCallbacks &PIC);
-  void runBeforePass(StringRef PassID, Any IR);
-  void runAfterPass(StringRef PassID, Any IR, const PreservedAnalyses &PA);
-  void runAfterPassInvalidated(StringRef PassID, const PreservedAnalyses &PA);
-  bool getPassDroppedVariables() { return PassDroppedVariables; }
-
-private:
-  bool PassDroppedVariables = false;
-  /// A unique key that represents a #dbg_value.
-  using VarID =
-      std::tuple<const DIScope *, const DIScope *, const DILocalVariable *>;
-
-  struct DebugVariables {
-    /// DenseSet of VarIDs before an optimization pass has run.
-    DenseSet<VarID> DebugVariablesBefore;
-    /// DenseSet of VarIDs after an optimization pass has run.
-    DenseSet<VarID> DebugVariablesAfter;
-  };
-
-  /// A stack of a DenseMap, that maps DebugVariables for every pass to an
-  /// llvm::Function. A stack is used because an optimization pass can call
-  /// other passes.
-  SmallVector<DenseMap<const Function *, DebugVariables>> DebugVariablesStack;
-
-  /// A DenseSet tracking whether a scope was visited before.
-  DenseSet<const DIScope *> VisitedScope;
-  /// A stack of DenseMaps, which map the name of an llvm::Function to a
-  /// DenseMap of VarIDs and their inlinedAt locations before an optimization
-  /// pass has run.
-  SmallVector<DenseMap<StringRef, DenseMap<VarID, DILocation *>>> InlinedAts;
-
-  /// Iterate over all Functions in a Module and report any dropped debug
-  /// information. Will call calculateDroppedVarStatsOnFunction on every
-  /// Function.
-  void calculateDroppedVarStatsOnModule(const Module *M, StringRef PassID,
-                                        std::string FuncOrModName,
-                                        std::string PassLevel);
-  /// Iterate over all Instructions in a Function and report any dropped debug
-  /// information.
-  void calculateDroppedVarStatsOnFunction(const Function *F, StringRef PassID,
-                                          std::string FuncOrModName,
-                                          std::string PassLevel);
-  /// Populate DebugVariablesBefore, DebugVariablesAfter, InlinedAts before or
-  /// after a pass has run to facilitate dropped variable calculation for an
-  /// llvm::Function.
-  void runOnFunction(const Function *F, bool Before);
-  /// Populate DebugVariablesBefore, DebugVariablesAfter, InlinedAts before or
-  /// after a pass has run to facilitate dropped variable calculation for an
-  /// llvm::Module. Calls runOnFunction on every Function in the Module.
-  void runOnModule(const Module *M, bool Before);
-  /// Remove a dropped #dbg_value VarID from all Sets in the
-  /// DroppedVariablesBefore stack.
-  void removeVarFromAllSets(VarID Var, const Function *F);
-  /// Return true if \p Scope is the same as \p DbgValScope or a child scope of
-  /// \p DbgValScope, return false otherwise.
-  bool isScopeChildOfOrEqualTo(DIScope *Scope, const DIScope *DbgValScope);
-  /// Return true if \p InlinedAt is the same as \p DbgValInlinedAt or part of
-  /// the InlinedAt chain, return false otherwise.
-  bool isInlinedAtChildOfOrEqualTo(const DILocation *InlinedAt,
-                                   const DILocation *DbgValInlinedAt);
-};
-
 /// This class provides an interface to register all the standard pass
 /// instrumentations and manages their state (if any).
 class StandardInstrumentations {
@@ -673,7 +597,7 @@ class StandardInstrumentations {
   PrintCrashIRInstrumentation PrintCrashIR;
   IRChangedTester ChangeTester;
   VerifyInstrumentation Verify;
-  DroppedVariableStats DroppedStats;
+  DroppedVariableStatsIR DroppedStatsIR;
 
   bool VerifyEach;
 
diff --git a/llvm/lib/CodeGen/CMakeLists.txt b/llvm/lib/CodeGen/CMakeLists.txt
index 5a17944db0ae03..3eebeaaf04b3a2 100644
--- a/llvm/lib/CodeGen/CMakeLists.txt
+++ b/llvm/lib/CodeGen/CMakeLists.txt
@@ -50,6 +50,7 @@ add_llvm_component_library(LLVMCodeGen
   DeadMachineInstructionElim.cpp
   DetectDeadLanes.cpp
   DFAPacketizer.cpp
+  DroppedVariableStats.cpp
   DwarfEHPrepare.cpp
   EarlyIfConversion.cpp
   EdgeBundles.cpp
diff --git a/llvm/lib/CodeGen/DroppedVariableStats.cpp b/llvm/lib/CodeGen/DroppedVariableStats.cpp
new file mode 100644
index 00000000000000..b8130784d28874
--- /dev/null
+++ b/llvm/lib/CodeGen/DroppedVariableStats.cpp
@@ -0,0 +1,222 @@
+///===- DroppedVariableStats.cpp - Opt Diagnostic -*- C++ -*---------------===//
+///
+/// Part of the LLVM Project, under the Apache License v2.0 with LLVM
+/// Exceptions. See https://llvm.org/LICENSE.txt for license information.
+/// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+///
+///===---------------------------------------------------------------------===//
+/// \file
+/// Dropped Variable Statistics for Debug Information. Reports any number
+/// of #dbg_values or DBG_VALUEs that get dropped due to an optimization pass.
+///
+///===---------------------------------------------------------------------===//
+
+#include "llvm/CodeGen/DroppedVariableStats.h"
+#include "llvm/IR/DebugInfoMetadata.h"
+#include "llvm/IR/InstIterator.h"
+#include "llvm/IR/Module.h"
+
+using namespace llvm;
+
+bool DroppedVariableStats::isScopeChildOfOrEqualTo(DIScope *Scope,
+                                                   const DIScope *DbgValScope) {
+  while (Scope != nullptr) {
+    if (VisitedScope.find(Scope) == VisitedScope.end()) {
+      VisitedScope.insert(Scope);
+      if (Scope == DbgValScope) {
+        VisitedScope.clear();
+        return true;
+      }
+      Scope = Scope->getScope();
+    } else {
+      VisitedScope.clear();
+      return false;
+    }
+  }
+  return false;
+}
+
+bool DroppedVariableStats::isInlinedAtChildOfOrEqualTo(
+    const DILocation *InlinedAt, const DILocation *DbgValInlinedAt) {
+  if (DbgValInlinedAt == InlinedAt)
+    return true;
+  if (!DbgValInlinedAt)
+    return false;
+  if (!InlinedAt)
+    return false;
+  auto *IA = InlinedAt;
+  while (IA) {
+    if (IA == DbgValInlinedAt)
+      return true;
+    IA = IA->getInlinedAt();
+  }
+  return false;
+}
+
+void DroppedVariableStatsIR::runOnFunction(const Function *F, bool Before) {
+  auto &DebugVariables = DebugVariablesStack.back()[F];
+  auto &VarIDSet = (Before ? DebugVariables.DebugVariablesBefore
+                           : DebugVariables.DebugVariablesAfter);
+  auto &InlinedAtsMap = InlinedAts.back();
+  auto FuncName = F->getName();
+  if (Before)
+    InlinedAtsMap.try_emplace(FuncName, DenseMap<VarID, DILocation *>());
+  VarIDSet = DenseSet<VarID>();
+  for (const auto &I : instructions(F)) {
+    for (DbgRecord &DR : I.getDbgRecordRange()) {
+      if (auto *Dbg = dyn_cast<DbgVariableRecord>(&DR)) {
+        auto *DbgVar = Dbg->getVariable();
+        auto DbgLoc = DR.getDebugLoc();
+        VarID Key{DbgVar->getScope(), DbgLoc->getInlinedAtScope(), DbgVar};
+        VarIDSet.insert(Key);
+        if (Before)
+          InlinedAtsMap[FuncName].try_emplace(Key, DbgLoc.getInlinedAt());
+      }
+    }
+  }
+}
+
+void DroppedVariableStatsIR::calculateDroppedVarStatsOnFunction(
+    const Function *F, StringRef PassID, std::string FuncOrModName,
+    std::string PassLevel) {
+  unsigned DroppedCount = 0;
+  StringRef FuncName = F->getName();
+  DebugVariables &DbgVariables = DebugVariablesStack.back()[F];
+  DenseSet<VarID> &DebugVariablesBeforeSet = DbgVariables.DebugVariablesBefore;
+  DenseSet<VarID> &DebugVariablesAfterSet = DbgVariables.DebugVariablesAfter;
+  DenseMap<VarID, DILocation *> &InlinedAtsMap = InlinedAts.back()[FuncName];
+  // Find an Instruction that shares the same scope as the dropped #dbg_value or
+  // has a scope that is the child of the scope of the #dbg_value, and has an
+  // inlinedAt equal to the inlinedAt of the #dbg_value or it's inlinedAt chain
+  // contains the inlinedAt of the #dbg_value, if such an Instruction is found,
+  // debug information is dropped.
+  for (VarID Var : DebugVariablesBeforeSet) {
+    if (DebugVariablesAfterSet.contains(Var))
+      continue;
+    const DIScope *DbgValScope = std::get<0>(Var);
+    for (const auto &I : instructions(F)) {
+      auto *DbgLoc = I.getDebugLoc().get();
+      if (!DbgLoc)
+        continue;
+
+      auto *Scope = DbgLoc->getScope();
+      if (isScopeChildOfOrEqualTo(Scope, DbgValScope)) {
+        if (isInlinedAtChildOfOrEqualTo(DbgLoc->getInlinedAt(),
+                                        InlinedAtsMap[Var])) {
+          // Found another instruction in the variable's scope, so there exists
+          // a break point at which the variable could be observed. Count it as
+          // dropped.
+          DroppedCount++;
+          break;
+        }
+      }
+    }
+    removeVarFromAllSets(Var, F);
+  }
+  if (DroppedCount > 0) {
+    llvm::outs() << PassLevel << ", " << PassID << ", " << DroppedCount << ", "
+                 << FuncOrModName << "\n";
+    PassDroppedVariables = true;
+  } else
+    PassDroppedVariables = false;
+}
+
+void DroppedVariableStatsIR::runOnModule(const Module *M, bool Before) {
+  for (auto &F : *M)
+    runOnFunction(&F, Before);
+}
+
+void DroppedVariableStatsIR::calculateDroppedVarStatsOnModule(
+    const Module *M, StringRef PassID, std::string FuncOrModName,
+    std::string PassLevel) {
+  for (auto &F : *M) {
+    calculateDroppedVarStatsOnFunction(&F, PassID, FuncOrModName, PassLevel);
+  }
+}
+
+void DroppedVariableStatsIR::registerCallbacks(
+    PassInstrumentationCallbacks &PIC) {
+  if (!DroppedVariableStatsEnabled)
+    return;
+
+  PIC.registerBeforeNonSkippedPassCallback(
+      [this](StringRef P, Any IR) { return runBeforePass(IR); });
+  PIC.registerAfterPassCallback(
+      [this](StringRef P, Any IR, const PreservedAnalyses &PA) {
+        return runAfterPass(P, IR);
+      });
+  PIC.registerAfterPassInvalidatedCallback(
+      [this](StringRef P, const PreservedAnalyses &PA) { return cleanup(); });
+}
+
+void DroppedVariableStatsMIR::runOnMachineFunction(const MachineFunction *MF,
+                                                   boo...
[truncated]

@rastogishubham
Copy link
Contributor Author

rastogishubham commented Nov 8, 2024

This is a part of a stack of patches, with #115563 being the first one.

When I run the MIR stats on SemaExpr.cpp.o with the command line:

clang++ -g -O3 -mllvm -dropped-variable-stats-mir -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/Users/shubham/Development/llvm-project/build_ninja/tools/clang/lib/Sema -I/Users/shubham/Development/llvm-project/clang/lib/Sema -I/Users/shubham/Development/llvm-project/clang/include -I/Users/shubham/Development/llvm-project/build_ninja/tools/clang/include -I/Users/shubham/Development/llvm-project/build_ninja/include -I/Users/shubham/Development/llvm-project/llvm/include -fPIC -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -fno-common -Woverloaded-virtual -Wno-nested-anon-types -DNDEBUG -std=c++17 -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX15.0.sdk  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -MD -MT tools/clang/lib/Sema/CMakeFiles/obj.clangSema.dir/SemaExpr.cpp.o -MF tools/clang/lib/Sema/CMakeFiles/obj.clangSema.dir/SemaExpr.cpp.o.d -o tools/clang/lib/Sema/CMakeFiles/obj.clangSema.dir/SemaExpr.cpp.o -c /Users/shubham/Development/llvm-project/clang/lib/Sema/SemaExpr.cpp

I get the results:

'Early Tail Duplication': 12
'Branch Probability Basic Block Placement': 48
'Control Flow Optimizer': 152

Copy link
Contributor

@OCHyams OCHyams left a comment

Choose a reason for hiding this comment

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

What's actually different between the MIR and IR versions. Skimming the patch it looks like:

  • the types Function -> MachineFunction, Instruction -> MachineInstr for iterating
  • getting VarID from DbgVaraibleRecord -> MachineInstr

I feel like this could probably be re-structured so that most of the machinery between the IR and MIR versions is shared with some amount of templating or/or generic lambda usage, to reduce code duplication. Wdyt?

@rastogishubham
Copy link
Contributor Author

@OCHyams how does it look now?

Copy link
Contributor

@OCHyams OCHyams left a comment

Choose a reason for hiding this comment

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

Just reviewing the 3rd commit (other commit review comments over on #115563), LGTM (with one tiny inline nit to resolve).

@rastogishubham rastogishubham force-pushed the MIRStats branch 2 times, most recently from b0ed351 to 213a485 Compare November 18, 2024 20:42
This patch extends the DroppedVariableStats class to add dropped
variable statistics for MIR passes.
@rastogishubham rastogishubham merged commit 6e2b77d into llvm:main Nov 18, 2024
5 of 7 checks passed
@rastogishubham rastogishubham deleted the MIRStats branch November 18, 2024 23:56
@llvm-ci
Copy link
Collaborator

llvm-ci commented Nov 19, 2024

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

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

Here is the relevant piece of the build log for the reference
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
...
22.077 [9/22/1003] Building CXX object unittests/CodeGen/CMakeFiles/CodeGenTests.dir/MachineInstrTest.cpp.o
22.372 [9/21/1004] Linking CXX executable unittests/tools/llvm-mca/LLVMMCATests
22.391 [9/20/1005] Linking CXX executable unittests/Transforms/Scalar/ScalarTests
22.598 [9/19/1006] Building CXX object unittests/CodeGen/GlobalISel/CMakeFiles/GlobalISelTests.dir/PatternMatchTest.cpp.o
22.845 [9/18/1007] Building CXX object unittests/CodeGen/GlobalISel/CMakeFiles/GlobalISelTests.dir/GISelUtilsTest.cpp.o
22.868 [9/17/1008] Linking CXX executable unittests/Analysis/AnalysisTests
22.997 [9/16/1009] Building CXX object unittests/CodeGen/GlobalISel/CMakeFiles/GlobalISelTests.dir/KnownBitsVectorTest.cpp.o
23.498 [9/15/1010] Building CXX object unittests/CodeGen/GlobalISel/CMakeFiles/GlobalISelTests.dir/KnownBitsTest.cpp.o
24.032 [9/14/1011] Building CXX object unittests/IR/CMakeFiles/IRTests.dir/DroppedVariableStatsIRTest.cpp.o
24.918 [9/13/1012] Building CXX object unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o
FAILED: unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes /usr/bin/ccache /usr/bin/g++ -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/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/unittests/MIR -I/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/unittests/MIR -I/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/include -I/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/include -I/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/third-party/unittest/googletest/include -I/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/third-party/unittest/googlemock/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -fno-lifetime-dse -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG  -Wno-dangling-else -Wno-variadic-macros -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -Wno-suggest-override -std=c++17 -MD -MT unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o -MF unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o.d -o unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o -c /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp
/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:35:17: error: ‘LLVMTargetMachine’ was not declared in this scope
   35 | std::unique_ptr<LLVMTargetMachine>
      |                 ^~~~~~~~~~~~~~~~~
/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:35:34: error: template argument 1 is invalid
   35 | std::unique_ptr<LLVMTargetMachine>
      |                                  ^
/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:35:34: error: template argument 2 is invalid
/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp: In function ‘int {anonymous}::createTargetMachine(std::string, llvm::StringRef, llvm::StringRef)’:
/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:40:12: error: cannot convert ‘std::nullptr_t’ to ‘int’ in return
   40 |     return nullptr;
      |            ^~~~~~~
/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:42:26: error: ‘LLVMTargetMachine’ was not declared in this scope; did you mean ‘createTargetMachine’?
   42 |   return std::unique_ptr<LLVMTargetMachine>(
      |                          ^~~~~~~~~~~~~~~~~
      |                          createTargetMachine
/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:42:43: error: template argument 1 is invalid
   42 |   return std::unique_ptr<LLVMTargetMachine>(
      |                                           ^
/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:42:43: error: template argument 2 is invalid
/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:43:19: error: ‘LLVMTargetMachine’ does not name a type
   43 |       static_cast<LLVMTargetMachine *>(T->createTargetMachine(
      |                   ^~~~~~~~~~~~~~~~~
/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:43:37: error: expected ‘>’ before ‘*’ token
   43 |       static_cast<LLVMTargetMachine *>(T->createTargetMachine(
      |                                     ^
/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:43:37: error: expected ‘(’ before ‘*’ token
   43 |       static_cast<LLVMTargetMachine *>(T->createTargetMachine(
      |                                     ^
      |                                     (
/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:43:38: error: expected primary-expression before ‘>’ token
   43 |       static_cast<LLVMTargetMachine *>(T->createTargetMachine(
      |                                      ^
/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp: In member function ‘virtual void {anonymous}::DroppedVariableStatsMIR_BothDeleted_Test::TestBody()’:
/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:185:28: error: request for member ‘get’ in ‘TM’, which is of non-class type ‘int’
  185 |   MachineModuleInfo MMI(TM.get());
      |                            ^~~
/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:186:40: error: invalid type argument of unary ‘*’ (have ‘int’)

@llvm-ci
Copy link
Collaborator

llvm-ci commented Nov 19, 2024

LLVM Buildbot has detected a new failure on builder llvm-clang-aarch64-darwin running on doug-worker-5 while building llvm at step 5 "build-unified-tree".

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

Here is the relevant piece of the build log for the reference
Step 5 (build-unified-tree) failure: build (failure)
...
282.874 [150/8/5793] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/raw_sha1_ostream_test.cpp.o
282.886 [149/8/5794] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/raw_socket_stream_test.cpp.o
282.893 [148/8/5795] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/xxhashTest.cpp.o
282.904 [147/8/5796] Building CXX object unittests/Support/DynamicLibrary/CMakeFiles/DynamicLibraryLib.dir/ExportedFuncs.cpp.o
282.916 [146/8/5797] Linking CXX static library lib/libDynamicLibraryLib.a
282.939 [145/8/5798] Building CXX object unittests/Support/DynamicLibrary/CMakeFiles/DynamicLibraryTests.dir/DynamicLibraryTest.cpp.o
282.963 [144/8/5799] Building CXX object unittests/IR/CMakeFiles/IRTests.dir/DroppedVariableStatsIRTest.cpp.o
282.975 [143/8/5800] Building CXX object unittests/Support/DynamicLibrary/CMakeFiles/PipSqueak.dir/PipSqueak.cpp.o
282.988 [142/8/5801] Building CXX object unittests/Support/DynamicLibrary/CMakeFiles/SecondLib.dir/PipSqueak.cpp.o
283.006 [141/8/5802] Building CXX object unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o
FAILED: unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes /opt/homebrew/bin/ccache /usr/bin/clang++ -DGTEST_HAS_RTTI=0 -DLLVM_BUILD_STATIC -D_DEBUG -D_GLIBCXX_ASSERTIONS -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/Users/buildbot/buildbot-root/aarch64-darwin/build/unittests/MIR -I/Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/llvm/unittests/MIR -I/Users/buildbot/buildbot-root/aarch64-darwin/build/include -I/Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/llvm/include -I/Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/third-party/unittest/googletest/include -I/Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/third-party/unittest/googlemock/include -isystem /opt/homebrew/include -fPIC -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -O3 -DNDEBUG -std=c++17 -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk  -Wno-variadic-macros -Wno-gnu-zero-variadic-macro-arguments -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -Wno-suggest-override -MD -MT unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o -MF unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o.d -o unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o -c /Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp
/Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:35:17: error: unknown type name 'LLVMTargetMachine'; did you mean 'TargetMachine'?
std::unique_ptr<LLVMTargetMachine>
                ^~~~~~~~~~~~~~~~~
                TargetMachine
/Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/llvm/include/llvm/Target/TargetMachine.h:77:7: note: 'TargetMachine' declared here
class TargetMachine {
      ^
/Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:42:26: error: unknown type name 'LLVMTargetMachine'; did you mean 'TargetMachine'?
  return std::unique_ptr<LLVMTargetMachine>(
                         ^~~~~~~~~~~~~~~~~
                         TargetMachine
/Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/llvm/include/llvm/Target/TargetMachine.h:77:7: note: 'TargetMachine' declared here
class TargetMachine {
      ^
/Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:43:19: error: unknown type name 'LLVMTargetMachine'; did you mean 'TargetMachine'?
      static_cast<LLVMTargetMachine *>(T->createTargetMachine(
                  ^~~~~~~~~~~~~~~~~
                  TargetMachine
/Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/llvm/include/llvm/Target/TargetMachine.h:77:7: note: 'TargetMachine' declared here
class TargetMachine {
      ^
3 errors generated.
283.026 [141/7/5803] Linking CXX executable unittests/Support/SupportTests
283.046 [141/6/5804] Linking CXX shared module unittests/Support/DynamicLibrary/SecondLib.dylib
283.050 [141/5/5805] Linking CXX shared module unittests/Support/DynamicLibrary/PipSqueak.dylib
284.055 [141/4/5806] Building CXX object unittests/MIR/CMakeFiles/MIRTests.dir/MachineMetadata.cpp.o
284.515 [141/3/5807] Building CXX object unittests/MI/CMakeFiles/MITests.dir/LiveIntervalTest.cpp.o
284.577 [141/2/5808] Building CXX object unittests/IR/CMakeFiles/IRTests.dir/PassManagerTest.cpp.o
284.925 [141/1/5809] Building CXX object unittests/DebugInfo/DWARF/CMakeFiles/DebugInfoDWARFTests.dir/DWARFDebugInfoTest.cpp.o
ninja: build stopped: subcommand failed.

@llvm-ci
Copy link
Collaborator

llvm-ci commented Nov 19, 2024

LLVM Buildbot has detected a new failure on builder ml-opt-rel-x86-64 running on ml-opt-rel-x86-64-b1 while building llvm at step 6 "test-build-unified-tree-check-all".

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

Here is the relevant piece of the build log for the reference
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
...
34.381 [122/26/580] Building CXX object unittests/TargetParser/CMakeFiles/TargetParserTests.dir/TargetParserTest.cpp.o
34.400 [121/26/581] Building CXX object unittests/TargetParser/CMakeFiles/TargetParserTests.dir/TripleTest.cpp.o
34.543 [120/26/582] Building CXX object unittests/CodeGen/GlobalISel/CMakeFiles/GlobalISelTests.dir/InstructionSelectTest.cpp.o
34.585 [119/26/583] Building CXX object unittests/Testing/ADT/CMakeFiles/TestingADTTests.dir/StringMapEntryTest.cpp.o
34.625 [118/26/584] Building CXX object unittests/Testing/ADT/CMakeFiles/TestingADTTests.dir/StringMapTest.cpp.o
34.679 [117/26/585] Linking CXX executable unittests/TargetParser/TargetParserTests
34.735 [116/26/586] Building CXX object unittests/Testing/Annotations/CMakeFiles/TestingAnnotationTests.dir/AnnotationsTest.cpp.o
34.769 [115/26/587] Linking CXX executable unittests/Testing/ADT/TestingADTTests
34.812 [114/26/588] Building CXX object unittests/Testing/Support/CMakeFiles/TestingSupportTests.dir/TempPathTest.cpp.o
34.867 [113/26/589] Building CXX object unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o
FAILED: unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o 
ccache /usr/bin/c++ -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/b/ml-opt-rel-x86-64-b1/build/unittests/MIR -I/b/ml-opt-rel-x86-64-b1/llvm-project/llvm/unittests/MIR -I/var/lib/buildbot/.local/lib/python3.7/site-packages/tensorflow/include -I/b/ml-opt-rel-x86-64-b1/build/include -I/b/ml-opt-rel-x86-64-b1/llvm-project/llvm/include -I/b/ml-opt-rel-x86-64-b1/llvm-project/third-party/unittest/googletest/include -I/b/ml-opt-rel-x86-64-b1/llvm-project/third-party/unittest/googlemock/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -fno-lifetime-dse -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG  -Wno-dangling-else -Wno-variadic-macros -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -Wno-suggest-override -std=c++17 -MD -MT unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o -MF unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o.d -o unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o -c /b/ml-opt-rel-x86-64-b1/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp
/b/ml-opt-rel-x86-64-b1/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:35:17: error: ‘LLVMTargetMachine’ was not declared in this scope
   35 | std::unique_ptr<LLVMTargetMachine>
      |                 ^~~~~~~~~~~~~~~~~
/b/ml-opt-rel-x86-64-b1/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:35:34: error: template argument 1 is invalid
   35 | std::unique_ptr<LLVMTargetMachine>
      |                                  ^
/b/ml-opt-rel-x86-64-b1/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:35:34: error: template argument 2 is invalid
/b/ml-opt-rel-x86-64-b1/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp: In function ‘int {anonymous}::createTargetMachine(std::string, llvm::StringRef, llvm::StringRef)’:
/b/ml-opt-rel-x86-64-b1/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:40:12: error: cannot convert ‘std::nullptr_t’ to ‘int’ in return
   40 |     return nullptr;
      |            ^~~~~~~
/b/ml-opt-rel-x86-64-b1/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:42:26: error: ‘LLVMTargetMachine’ was not declared in this scope; did you mean ‘createTargetMachine’?
   42 |   return std::unique_ptr<LLVMTargetMachine>(
      |                          ^~~~~~~~~~~~~~~~~
      |                          createTargetMachine
/b/ml-opt-rel-x86-64-b1/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:42:43: error: template argument 1 is invalid
   42 |   return std::unique_ptr<LLVMTargetMachine>(
      |                                           ^
/b/ml-opt-rel-x86-64-b1/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:42:43: error: template argument 2 is invalid
/b/ml-opt-rel-x86-64-b1/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:43:19: error: ‘LLVMTargetMachine’ does not name a type; did you mean ‘createTargetMachine’?
   43 |       static_cast<LLVMTargetMachine *>(T->createTargetMachine(
      |                   ^~~~~~~~~~~~~~~~~
      |                   createTargetMachine
/b/ml-opt-rel-x86-64-b1/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:43:37: error: expected ‘>’ before ‘*’ token
   43 |       static_cast<LLVMTargetMachine *>(T->createTargetMachine(
      |                                     ^
/b/ml-opt-rel-x86-64-b1/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:43:37: error: expected ‘(’ before ‘*’ token
   43 |       static_cast<LLVMTargetMachine *>(T->createTargetMachine(
      |                                     ^
      |                                     (
/b/ml-opt-rel-x86-64-b1/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:43:38: error: expected primary-expression before ‘>’ token
   43 |       static_cast<LLVMTargetMachine *>(T->createTargetMachine(
      |                                      ^
/b/ml-opt-rel-x86-64-b1/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp: In member function ‘virtual void {anonymous}::DroppedVariableStatsMIR_BothDeleted_Test::TestBody()’:
/b/ml-opt-rel-x86-64-b1/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:185:28: error: request for member ‘get’ in ‘TM’, which is of non-class type ‘int’
  185 |   MachineModuleInfo MMI(TM.get());
      |                            ^~~

@llvm-ci
Copy link
Collaborator

llvm-ci commented Nov 19, 2024

LLVM Buildbot has detected a new failure on builder ml-opt-dev-x86-64 running on ml-opt-dev-x86-64-b1 while building llvm at step 6 "test-build-unified-tree-check-all".

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

Here is the relevant piece of the build log for the reference
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
...
31.107 [136/26/567] Linking CXX executable unittests/Target/TargetMachineCTests
31.164 [135/26/568] Building CXX object unittests/Target/PowerPC/CMakeFiles/PowerPCTests.dir/AIXRelocModelTest.cpp.o
31.426 [134/26/569] Building CXX object unittests/CodeGen/GlobalISel/CMakeFiles/GlobalISelTests.dir/LegalizerHelperTest.cpp.o
31.508 [133/26/570] Building CXX object unittests/Target/RISCV/CMakeFiles/RISCVTests.dir/MCInstrAnalysisTest.cpp.o
32.730 [132/26/571] Building CXX object unittests/DebugInfo/DWARF/CMakeFiles/DebugInfoDWARFTests.dir/DwarfGenerator.cpp.o
33.528 [131/26/572] Building CXX object unittests/CodeGen/GlobalISel/CMakeFiles/GlobalISelTests.dir/InstructionSelectTest.cpp.o
34.015 [130/26/573] Building CXX object unittests/IR/CMakeFiles/IRTests.dir/DroppedVariableStatsIRTest.cpp.o
34.219 [129/26/574] Linking CXX executable unittests/Target/PowerPC/PowerPCTests
34.276 [128/26/575] Building CXX object unittests/TargetParser/CMakeFiles/TargetParserTests.dir/RISCVISAInfoTest.cpp.o
35.094 [127/26/576] Building CXX object unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o
FAILED: unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o 
ccache /usr/bin/c++ -DCPUINFO_SUPPORTED_PLATFORM=1 -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/b/ml-opt-dev-x86-64-b1/build/unittests/MIR -I/b/ml-opt-dev-x86-64-b1/llvm-project/llvm/unittests/MIR -I/b/ml-opt-dev-x86-64-b1/build/include -I/b/ml-opt-dev-x86-64-b1/llvm-project/llvm/include -I/b/ml-opt-dev-x86-64-b1/llvm-project/third-party/unittest/googletest/include -I/b/ml-opt-dev-x86-64-b1/llvm-project/third-party/unittest/googlemock/include -isystem /tmp/tflitebuild/tensorflow/include -isystem /tmp/tflitebuild/eigen/include/eigen3 -isystem /tmp/tflitebuild/abseil-cpp/include -isystem /tmp/tflitebuild/flatbuffers/include -isystem /tmp/tflitebuild/gemmlowp/include/gemmlowp -isystem /tmp/tflitebuild/ml_dtypes/src/ml_dtypes -isystem /tmp/tflitebuild/ml_dtypes/src/ml_dtypes/ml_dtypes -isystem /tmp/tflitebuild/ruy/include -isystem /tmp/tflitebuild/cpuinfo/include -isystem /tmp/tflitebuild/ARM_NEON_2_x86_SSE/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -fno-lifetime-dse -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG  -Wno-dangling-else -Wno-variadic-macros -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -DEIGEN_NEON_GEBP_NR=4 -DTFL_STATIC_LIBRARY_BUILD -Wno-suggest-override -std=c++17 -MD -MT unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o -MF unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o.d -o unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o -c /b/ml-opt-dev-x86-64-b1/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp
/b/ml-opt-dev-x86-64-b1/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:35:17: error: ‘LLVMTargetMachine’ was not declared in this scope
   35 | std::unique_ptr<LLVMTargetMachine>
      |                 ^~~~~~~~~~~~~~~~~
/b/ml-opt-dev-x86-64-b1/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:35:34: error: template argument 1 is invalid
   35 | std::unique_ptr<LLVMTargetMachine>
      |                                  ^
/b/ml-opt-dev-x86-64-b1/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:35:34: error: template argument 2 is invalid
/b/ml-opt-dev-x86-64-b1/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp: In function ‘int {anonymous}::createTargetMachine(std::string, llvm::StringRef, llvm::StringRef)’:
/b/ml-opt-dev-x86-64-b1/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:40:12: error: cannot convert ‘std::nullptr_t’ to ‘int’ in return
   40 |     return nullptr;
      |            ^~~~~~~
/b/ml-opt-dev-x86-64-b1/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:42:26: error: ‘LLVMTargetMachine’ was not declared in this scope; did you mean ‘createTargetMachine’?
   42 |   return std::unique_ptr<LLVMTargetMachine>(
      |                          ^~~~~~~~~~~~~~~~~
      |                          createTargetMachine
/b/ml-opt-dev-x86-64-b1/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:42:43: error: template argument 1 is invalid
   42 |   return std::unique_ptr<LLVMTargetMachine>(
      |                                           ^
/b/ml-opt-dev-x86-64-b1/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:42:43: error: template argument 2 is invalid
/b/ml-opt-dev-x86-64-b1/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:43:19: error: ‘LLVMTargetMachine’ does not name a type; did you mean ‘createTargetMachine’?
   43 |       static_cast<LLVMTargetMachine *>(T->createTargetMachine(
      |                   ^~~~~~~~~~~~~~~~~
      |                   createTargetMachine
/b/ml-opt-dev-x86-64-b1/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:43:37: error: expected ‘>’ before ‘*’ token
   43 |       static_cast<LLVMTargetMachine *>(T->createTargetMachine(
      |                                     ^
/b/ml-opt-dev-x86-64-b1/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:43:37: error: expected ‘(’ before ‘*’ token
   43 |       static_cast<LLVMTargetMachine *>(T->createTargetMachine(
      |                                     ^
      |                                     (
/b/ml-opt-dev-x86-64-b1/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:43:38: error: expected primary-expression before ‘>’ token
   43 |       static_cast<LLVMTargetMachine *>(T->createTargetMachine(
      |                                      ^
/b/ml-opt-dev-x86-64-b1/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp: In member function ‘virtual void {anonymous}::DroppedVariableStatsMIR_BothDeleted_Test::TestBody()’:
/b/ml-opt-dev-x86-64-b1/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:185:28: error: request for member ‘get’ in ‘TM’, which is of non-class type ‘int’
  185 |   MachineModuleInfo MMI(TM.get());
      |                            ^~~

@llvm-ci
Copy link
Collaborator

llvm-ci commented Nov 19, 2024

LLVM Buildbot has detected a new failure on builder ml-opt-devrel-x86-64 running on ml-opt-devrel-x86-64-b1 while building llvm at step 6 "test-build-unified-tree-check-all".

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

Here is the relevant piece of the build log for the reference
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
...
33.228 [136/26/567] Linking CXX executable unittests/Target/TargetMachineCTests
33.347 [135/26/568] Building CXX object unittests/Target/RISCV/CMakeFiles/RISCVTests.dir/MCInstrAnalysisTest.cpp.o
34.845 [134/26/569] Building CXX object unittests/CodeGen/GlobalISel/CMakeFiles/GlobalISelTests.dir/GISelUtilsTest.cpp.o
34.898 [133/26/570] Building CXX object unittests/Target/PowerPC/CMakeFiles/PowerPCTests.dir/AIXRelocModelTest.cpp.o
35.336 [132/26/571] Building CXX object unittests/DebugInfo/DWARF/CMakeFiles/DebugInfoDWARFTests.dir/DwarfGenerator.cpp.o
35.401 [131/26/572] Building CXX object unittests/TargetParser/CMakeFiles/TargetParserTests.dir/RISCVISAInfoTest.cpp.o
35.952 [130/26/573] Building CXX object unittests/IR/CMakeFiles/IRTests.dir/DroppedVariableStatsIRTest.cpp.o
36.497 [129/26/574] Building CXX object unittests/CodeGen/GlobalISel/CMakeFiles/GlobalISelTests.dir/GISelAliasTest.cpp.o
36.541 [128/26/575] Building CXX object unittests/Target/X86/CMakeFiles/X86Tests.dir/TernlogTest.cpp.o
37.052 [127/26/576] Building CXX object unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o
FAILED: unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o 
ccache /usr/bin/c++ -DCPUINFO_SUPPORTED_PLATFORM=1 -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/b/ml-opt-devrel-x86-64-b1/build/unittests/MIR -I/b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/unittests/MIR -I/var/lib/buildbot/.local/lib/python3.7/site-packages/tensorflow/include -I/b/ml-opt-devrel-x86-64-b1/build/include -I/b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/include -I/b/ml-opt-devrel-x86-64-b1/llvm-project/third-party/unittest/googletest/include -I/b/ml-opt-devrel-x86-64-b1/llvm-project/third-party/unittest/googlemock/include -isystem /tmp/tflitebuild/tensorflow/include -isystem /tmp/tflitebuild/eigen/include/eigen3 -isystem /tmp/tflitebuild/abseil-cpp/include -isystem /tmp/tflitebuild/flatbuffers/include -isystem /tmp/tflitebuild/gemmlowp/include/gemmlowp -isystem /tmp/tflitebuild/ml_dtypes/src/ml_dtypes -isystem /tmp/tflitebuild/ml_dtypes/src/ml_dtypes/ml_dtypes -isystem /tmp/tflitebuild/ruy/include -isystem /tmp/tflitebuild/cpuinfo/include -isystem /tmp/tflitebuild/ARM_NEON_2_x86_SSE/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -fno-lifetime-dse -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG  -Wno-dangling-else -Wno-variadic-macros -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -DEIGEN_NEON_GEBP_NR=4 -DTFL_STATIC_LIBRARY_BUILD -Wno-suggest-override -std=c++17 -MD -MT unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o -MF unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o.d -o unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o -c /b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp
/b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:35:17: error: ‘LLVMTargetMachine’ was not declared in this scope
   35 | std::unique_ptr<LLVMTargetMachine>
      |                 ^~~~~~~~~~~~~~~~~
/b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:35:34: error: template argument 1 is invalid
   35 | std::unique_ptr<LLVMTargetMachine>
      |                                  ^
/b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:35:34: error: template argument 2 is invalid
/b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp: In function ‘int {anonymous}::createTargetMachine(std::string, llvm::StringRef, llvm::StringRef)’:
/b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:40:12: error: cannot convert ‘std::nullptr_t’ to ‘int’ in return
   40 |     return nullptr;
      |            ^~~~~~~
/b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:42:26: error: ‘LLVMTargetMachine’ was not declared in this scope; did you mean ‘createTargetMachine’?
   42 |   return std::unique_ptr<LLVMTargetMachine>(
      |                          ^~~~~~~~~~~~~~~~~
      |                          createTargetMachine
/b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:42:43: error: template argument 1 is invalid
   42 |   return std::unique_ptr<LLVMTargetMachine>(
      |                                           ^
/b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:42:43: error: template argument 2 is invalid
/b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:43:19: error: ‘LLVMTargetMachine’ does not name a type; did you mean ‘createTargetMachine’?
   43 |       static_cast<LLVMTargetMachine *>(T->createTargetMachine(
      |                   ^~~~~~~~~~~~~~~~~
      |                   createTargetMachine
/b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:43:37: error: expected ‘>’ before ‘*’ token
   43 |       static_cast<LLVMTargetMachine *>(T->createTargetMachine(
      |                                     ^
/b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:43:37: error: expected ‘(’ before ‘*’ token
   43 |       static_cast<LLVMTargetMachine *>(T->createTargetMachine(
      |                                     ^
      |                                     (
/b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:43:38: error: expected primary-expression before ‘>’ token
   43 |       static_cast<LLVMTargetMachine *>(T->createTargetMachine(
      |                                      ^
/b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp: In member function ‘virtual void {anonymous}::DroppedVariableStatsMIR_BothDeleted_Test::TestBody()’:
/b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:185:28: error: request for member ‘get’ in ‘TM’, which is of non-class type ‘int’
  185 |   MachineModuleInfo MMI(TM.get());
      |                            ^~~

@llvm-ci
Copy link
Collaborator

llvm-ci commented Nov 19, 2024

LLVM Buildbot has detected a new failure on builder llvm-clang-x86_64-gcc-ubuntu running on sie-linux-worker3 while building llvm at step 5 "build-unified-tree".

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

Here is the relevant piece of the build log for the reference
Step 5 (build-unified-tree) failure: build (failure)
...
444.035 [218/34/6704] Building CXX object unittests/DebugInfo/DWARF/CMakeFiles/DebugInfoDWARFTests.dir/DwarfGenerator.cpp.o
444.099 [217/34/6705] Building CXX object unittests/Target/LoongArch/CMakeFiles/LoongArchTests.dir/MCInstrAnalysisTest.cpp.o
444.208 [216/34/6706] Building CXX object unittests/Target/RISCV/CMakeFiles/RISCVTests.dir/MCInstrAnalysisTest.cpp.o
444.270 [215/34/6707] Linking CXX executable bin/llvm-jitlink
444.613 [214/34/6708] Building CXX object unittests/CodeGen/GlobalISel/CMakeFiles/GlobalISelTests.dir/InstructionSelectTest.cpp.o
444.739 [213/34/6709] Building CXX object unittests/IR/CMakeFiles/IRTests.dir/DroppedVariableStatsIRTest.cpp.o
444.849 [212/34/6710] Linking CXX static library lib/libclangCodeGen.a
444.943 [211/34/6711] Linking CXX static library lib/libclangFrontendTool.a
444.996 [210/34/6712] Linking CXX executable unittests/Frontend/LLVMFrontendTests
445.160 [209/34/6713] Building CXX object unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o
FAILED: unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o 
/opt/ccache/bin/g++ -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/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/unittests/MIR -I/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/unittests/MIR -I/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/include -I/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/include -I/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/third-party/unittest/googletest/include -I/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/third-party/unittest/googlemock/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -fno-lifetime-dse -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG  -Wno-dangling-else -Wno-variadic-macros -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -Wno-suggest-override -std=c++17 -MD -MT unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o -MF unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o.d -o unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o -c /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp
/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:35:17: error: ‘LLVMTargetMachine’ was not declared in this scope
   35 | std::unique_ptr<LLVMTargetMachine>
      |                 ^~~~~~~~~~~~~~~~~
/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:35:34: error: template argument 1 is invalid
   35 | std::unique_ptr<LLVMTargetMachine>
      |                                  ^
/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:35:34: error: template argument 2 is invalid
/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp: In function ‘int {anonymous}::createTargetMachine(std::string, llvm::StringRef, llvm::StringRef)’:
/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:40:12: error: cannot convert ‘std::nullptr_t’ to ‘int’ in return
   40 |     return nullptr;
      |            ^~~~~~~
/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:42:26: error: ‘LLVMTargetMachine’ was not declared in this scope; did you mean ‘createTargetMachine’?
   42 |   return std::unique_ptr<LLVMTargetMachine>(
      |                          ^~~~~~~~~~~~~~~~~
      |                          createTargetMachine
/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:42:43: error: template argument 1 is invalid
   42 |   return std::unique_ptr<LLVMTargetMachine>(
      |                                           ^
/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:42:43: error: template argument 2 is invalid
/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:43:19: error: ‘LLVMTargetMachine’ does not name a type; did you mean ‘createTargetMachine’?
   43 |       static_cast<LLVMTargetMachine *>(T->createTargetMachine(
      |                   ^~~~~~~~~~~~~~~~~
      |                   createTargetMachine
/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:43:37: error: expected ‘>’ before ‘*’ token
   43 |       static_cast<LLVMTargetMachine *>(T->createTargetMachine(
      |                                     ^
/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:43:37: error: expected ‘(’ before ‘*’ token
   43 |       static_cast<LLVMTargetMachine *>(T->createTargetMachine(
      |                                     ^
      |                                     (
/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:43:38: error: expected primary-expression before ‘>’ token
   43 |       static_cast<LLVMTargetMachine *>(T->createTargetMachine(
      |                                      ^
/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp: In member function ‘virtual void {anonymous}::DroppedVariableStatsMIR_BothDeleted_Test::TestBody()’:
/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:185:28: error: request for member ‘get’ in ‘TM’, which is of non-class type ‘int’
  185 |   MachineModuleInfo MMI(TM.get());
      |                            ^~~

@llvm-ci
Copy link
Collaborator

llvm-ci commented Nov 19, 2024

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

Here is the relevant piece of the build log for the reference
Step 5 (ninja check 1) failure: stage 1 checked (failure)
...
[992/1130] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/TarWriterTest.cpp.o
[993/1130] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/TypeSizeTest.cpp.o
[994/1130] Linking CXX executable unittests/Passes/PassBuilderBindings/PassesBindingsTests
[995/1130] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/TypeNameTest.cpp.o
[996/1130] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/TrailingObjectsTest.cpp.o
[997/1130] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/TypeTraitsTest.cpp.o
[998/1130] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/UnicodeTest.cpp.o
[999/1130] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/UTCTimeTest.cpp.o
[1000/1130] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/YAMLParserTest.cpp.o
[1001/1130] Building CXX object unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o
FAILED: unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o 
/usr/local/bin/c++ -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/tcwg-buildbot/worker/clang-aarch64-quick/stage1/unittests/MIR -I/home/tcwg-buildbot/worker/clang-aarch64-quick/llvm/llvm/unittests/MIR -I/home/tcwg-buildbot/worker/clang-aarch64-quick/stage1/include -I/home/tcwg-buildbot/worker/clang-aarch64-quick/llvm/llvm/include -I/home/tcwg-buildbot/worker/clang-aarch64-quick/llvm/third-party/unittest/googletest/include -I/home/tcwg-buildbot/worker/clang-aarch64-quick/llvm/third-party/unittest/googlemock/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=c++17  -Wno-variadic-macros -Wno-gnu-zero-variadic-macro-arguments -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -Wno-suggest-override -MD -MT unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o -MF unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o.d -o unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o -c /home/tcwg-buildbot/worker/clang-aarch64-quick/llvm/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp
../llvm/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:35:17: error: unknown type name 'LLVMTargetMachine'; did you mean 'TargetMachine'?
   35 | std::unique_ptr<LLVMTargetMachine>
      |                 ^~~~~~~~~~~~~~~~~
      |                 TargetMachine
../llvm/llvm/include/llvm/Target/TargetMachine.h:77:7: note: 'TargetMachine' declared here
   77 | class TargetMachine {
      |       ^
../llvm/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:42:26: error: unknown type name 'LLVMTargetMachine'; did you mean 'TargetMachine'?
   42 |   return std::unique_ptr<LLVMTargetMachine>(
      |                          ^~~~~~~~~~~~~~~~~
      |                          TargetMachine
../llvm/llvm/include/llvm/Target/TargetMachine.h:77:7: note: 'TargetMachine' declared here
   77 | class TargetMachine {
      |       ^
../llvm/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:43:19: error: unknown type name 'LLVMTargetMachine'; did you mean 'TargetMachine'?
   43 |       static_cast<LLVMTargetMachine *>(T->createTargetMachine(
      |                   ^~~~~~~~~~~~~~~~~
      |                   TargetMachine
../llvm/llvm/include/llvm/Target/TargetMachine.h:77:7: note: 'TargetMachine' declared here
   77 | class TargetMachine {
      |       ^
3 errors generated.
[1002/1130] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/WithColorTest.cpp.o
[1003/1130] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/VersionTupleTest.cpp.o
[1004/1130] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/raw_sha1_ostream_test.cpp.o
[1005/1130] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/VirtualFileSystemTest.cpp.o
[1006/1130] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/raw_fd_stream_test.cpp.o
[1007/1130] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/raw_ostream_test.cpp.o
[1008/1130] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/buffer_ostream_test.cpp.o
[1009/1130] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/formatted_raw_ostream_test.cpp.o
[1010/1130] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/raw_pwrite_stream_test.cpp.o
[1011/1130] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/YAMLIOTest.cpp.o
[1012/1130] Linking CXX executable unittests/Passes/Plugins/PluginsTests
[1013/1130] Linking CXX executable unittests/IR/IRTests
[1014/1130] Building CXX object unittests/MI/CMakeFiles/MITests.dir/LiveIntervalTest.cpp.o
ninja: build stopped: subcommand failed.

@llvm-ci
Copy link
Collaborator

llvm-ci commented Nov 19, 2024

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

Here is the relevant piece of the build log for the reference
Step 7 (ninja check 1) failure: stage 1 checked (failure)
...
[694/982] Building CXX object unittests/ProfileData/CMakeFiles/ProfileDataTests.dir/ItaniumManglingCanonicalizerTest.cpp.o
[695/982] Linking CXX executable unittests/ObjCopy/ObjCopyTests
[696/982] Building CXX object unittests/ObjectYAML/CMakeFiles/ObjectYAMLTests.dir/DXContainerYAMLTest.cpp.o
[697/982] Building CXX object unittests/ObjectYAML/CMakeFiles/ObjectYAMLTests.dir/DWARFYAMLTest.cpp.o
[698/982] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/BlockFrequencyTest.cpp.o
[699/982] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/AlignOfTest.cpp.o
[700/982] Building CXX object unittests/ObjectYAML/CMakeFiles/ObjectYAMLTests.dir/MinidumpYAMLTest.cpp.o
[701/982] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/BLAKE3Test.cpp.o
[702/982] Building CXX object unittests/IR/CMakeFiles/IRTests.dir/IRBuilderTest.cpp.o
[703/982] Building CXX object unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o
FAILED: unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o 
/usr/bin/c++ -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 -Iunittests/MIR -I/localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/llvm/unittests/MIR -Iinclude -I/localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/llvm/include -I/localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/third-party/unittest/googletest/include -I/localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/third-party/unittest/googlemock/include -march=cascadelake -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -fno-lifetime-dse -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG  -Wno-dangling-else -Wno-variadic-macros -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -Wno-suggest-override -std=c++17 -MD -MT unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o -MF unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o.d -o unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o -c /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp
/localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:35:17: error: ‘LLVMTargetMachine’ was not declared in this scope
   35 | std::unique_ptr<LLVMTargetMachine>
      |                 ^~~~~~~~~~~~~~~~~
/localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:35:34: error: template argument 1 is invalid
   35 | std::unique_ptr<LLVMTargetMachine>
      |                                  ^
/localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:35:34: error: template argument 2 is invalid
/localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp: In function ‘int {anonymous}::createTargetMachine(std::string, llvm::StringRef, llvm::StringRef)’:
/localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:40:12: error: cannot convert ‘std::nullptr_t’ to ‘int’ in return
   40 |     return nullptr;
      |            ^~~~~~~
/localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:42:26: error: ‘LLVMTargetMachine’ was not declared in this scope; did you mean ‘createTargetMachine’?
   42 |   return std::unique_ptr<LLVMTargetMachine>(
      |                          ^~~~~~~~~~~~~~~~~
      |                          createTargetMachine
/localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:42:43: error: template argument 1 is invalid
   42 |   return std::unique_ptr<LLVMTargetMachine>(
      |                                           ^
/localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:42:43: error: template argument 2 is invalid
/localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:43:19: error: ‘LLVMTargetMachine’ does not name a type
   43 |       static_cast<LLVMTargetMachine *>(T->createTargetMachine(
      |                   ^~~~~~~~~~~~~~~~~
/localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:43:37: error: expected ‘>’ before ‘*’ token
   43 |       static_cast<LLVMTargetMachine *>(T->createTargetMachine(
      |                                     ^
/localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:43:37: error: expected ‘(’ before ‘*’ token
   43 |       static_cast<LLVMTargetMachine *>(T->createTargetMachine(
      |                                     ^
      |                                     (
/localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:43:38: error: expected primary-expression before ‘>’ token
   43 |       static_cast<LLVMTargetMachine *>(T->createTargetMachine(
      |                                      ^
/localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp: In member function ‘virtual void {anonymous}::DroppedVariableStatsMIR_BothDeleted_Test::TestBody()’:
/localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:185:28: error: request for member ‘get’ in ‘TM’, which is of non-class type ‘int’
  185 |   MachineModuleInfo MMI(TM.get());
      |                            ^~~
/localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:186:40: error: invalid type argument of unary ‘*’ (have ‘int’)

@rastogishubham
Copy link
Contributor Author

Had to revert with 81924ac for the buildbot failures

@llvm-ci
Copy link
Collaborator

llvm-ci commented Nov 19, 2024

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

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)
...
clang++: warning: optimization flag '-ffat-lto-objects' is not supported [-Wignored-optimization-argument]
[1060/1348] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/AllocatorTest.cpp.o
clang++: warning: optimization flag '-ffat-lto-objects' is not supported [-Wignored-optimization-argument]
[1061/1348] Building CXX object unittests/IR/CMakeFiles/IRTests.dir/InstructionsTest.cpp.o
clang++: warning: optimization flag '-ffat-lto-objects' is not supported [-Wignored-optimization-argument]
[1062/1348] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/CompressionTest.cpp.o
clang++: warning: optimization flag '-ffat-lto-objects' is not supported [-Wignored-optimization-argument]
[1063/1348] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/AlignmentTest.cpp.o
clang++: warning: optimization flag '-ffat-lto-objects' is not supported [-Wignored-optimization-argument]
[1064/1348] Building CXX object unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o
FAILED: unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes /usr/bin/ccache /usr/bin/clang++ -DGTEST_HAS_RTTI=0 -DLLVM_BUILD_STATIC -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-hed5i68_/unittests/MIR -I/var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/unittests/MIR -I/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-hed5i68_/include -I/var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/include -I/var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/third-party/unittest/googletest/include -I/var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/third-party/unittest/googlemock/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -ffat-lto-objects -no-canonical-prefixes -O3 -DNDEBUG -std=c++17 -fvisibility=default  -Wno-variadic-macros -Wno-gnu-zero-variadic-macro-arguments -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-rtti -Wno-suggest-override -MD -MT unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o -MF unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o.d -o unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o -c /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp
clang++: warning: optimization flag '-ffat-lto-objects' is not supported [-Wignored-optimization-argument]
/var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:35:17: error: unknown type name 'LLVMTargetMachine'; did you mean 'TargetMachine'?
   35 | std::unique_ptr<LLVMTargetMachine>
      |                 ^~~~~~~~~~~~~~~~~
      |                 TargetMachine
/var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/include/llvm/Target/TargetMachine.h:77:7: note: 'TargetMachine' declared here
   77 | class TargetMachine {
      |       ^
/var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:42:26: error: unknown type name 'LLVMTargetMachine'; did you mean 'TargetMachine'?
   42 |   return std::unique_ptr<LLVMTargetMachine>(
      |                          ^~~~~~~~~~~~~~~~~
      |                          TargetMachine
/var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/include/llvm/Target/TargetMachine.h:77:7: note: 'TargetMachine' declared here
   77 | class TargetMachine {
      |       ^
/var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:43:19: error: unknown type name 'LLVMTargetMachine'; did you mean 'TargetMachine'?
   43 |       static_cast<LLVMTargetMachine *>(T->createTargetMachine(
      |                   ^~~~~~~~~~~~~~~~~
      |                   TargetMachine
/var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/include/llvm/Target/TargetMachine.h:77:7: note: 'TargetMachine' declared here
   77 | class TargetMachine {
      |       ^
3 errors generated.
[1065/1348] Building CXX object unittests/ObjectYAML/CMakeFiles/ObjectYAMLTests.dir/DXContainerYAMLTest.cpp.o
clang++: warning: optimization flag '-ffat-lto-objects' is not supported [-Wignored-optimization-argument]
[1066/1348] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/CachePruningTest.cpp.o
clang++: warning: optimization flag '-ffat-lto-objects' is not supported [-Wignored-optimization-argument]
[1067/1348] Building CXX object unittests/ProfileData/CMakeFiles/ProfileDataTests.dir/BPFunctionNodeTest.cpp.o
clang++: warning: optimization flag '-ffat-lto-objects' is not supported [-Wignored-optimization-argument]
[1068/1348] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/CheckedArithmeticTest.cpp.o
clang++: warning: optimization flag '-ffat-lto-objects' is not supported [-Wignored-optimization-argument]
[1069/1348] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/ARMAttributeParser.cpp.o
clang++: warning: optimization flag '-ffat-lto-objects' is not supported [-Wignored-optimization-argument]
[1070/1348] Building CXX object unittests/Object/CMakeFiles/ObjectTests.dir/XCOFFObjectFileTest.cpp.o
clang++: warning: optimization flag '-ffat-lto-objects' is not supported [-Wignored-optimization-argument]
[1071/1348] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/BranchProbabilityTest.cpp.o
clang++: warning: optimization flag '-ffat-lto-objects' is not supported [-Wignored-optimization-argument]
Step 7 (check) failure: check (failure)
...
clang++: warning: optimization flag '-ffat-lto-objects' is not supported [-Wignored-optimization-argument]
[1060/1348] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/AllocatorTest.cpp.o
clang++: warning: optimization flag '-ffat-lto-objects' is not supported [-Wignored-optimization-argument]
[1061/1348] Building CXX object unittests/IR/CMakeFiles/IRTests.dir/InstructionsTest.cpp.o
clang++: warning: optimization flag '-ffat-lto-objects' is not supported [-Wignored-optimization-argument]
[1062/1348] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/CompressionTest.cpp.o
clang++: warning: optimization flag '-ffat-lto-objects' is not supported [-Wignored-optimization-argument]
[1063/1348] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/AlignmentTest.cpp.o
clang++: warning: optimization flag '-ffat-lto-objects' is not supported [-Wignored-optimization-argument]
[1064/1348] Building CXX object unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o
FAILED: unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes /usr/bin/ccache /usr/bin/clang++ -DGTEST_HAS_RTTI=0 -DLLVM_BUILD_STATIC -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-hed5i68_/unittests/MIR -I/var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/unittests/MIR -I/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-hed5i68_/include -I/var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/include -I/var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/third-party/unittest/googletest/include -I/var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/third-party/unittest/googlemock/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -ffat-lto-objects -no-canonical-prefixes -O3 -DNDEBUG -std=c++17 -fvisibility=default  -Wno-variadic-macros -Wno-gnu-zero-variadic-macro-arguments -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-rtti -Wno-suggest-override -MD -MT unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o -MF unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o.d -o unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o -c /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp
clang++: warning: optimization flag '-ffat-lto-objects' is not supported [-Wignored-optimization-argument]
/var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:35:17: error: unknown type name 'LLVMTargetMachine'; did you mean 'TargetMachine'?
   35 | std::unique_ptr<LLVMTargetMachine>
      |                 ^~~~~~~~~~~~~~~~~
      |                 TargetMachine
/var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/include/llvm/Target/TargetMachine.h:77:7: note: 'TargetMachine' declared here
   77 | class TargetMachine {
      |       ^
/var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:42:26: error: unknown type name 'LLVMTargetMachine'; did you mean 'TargetMachine'?
   42 |   return std::unique_ptr<LLVMTargetMachine>(
      |                          ^~~~~~~~~~~~~~~~~
      |                          TargetMachine
/var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/include/llvm/Target/TargetMachine.h:77:7: note: 'TargetMachine' declared here
   77 | class TargetMachine {
      |       ^
/var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:43:19: error: unknown type name 'LLVMTargetMachine'; did you mean 'TargetMachine'?
   43 |       static_cast<LLVMTargetMachine *>(T->createTargetMachine(
      |                   ^~~~~~~~~~~~~~~~~
      |                   TargetMachine
/var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/include/llvm/Target/TargetMachine.h:77:7: note: 'TargetMachine' declared here
   77 | class TargetMachine {
      |       ^
3 errors generated.
[1065/1348] Building CXX object unittests/ObjectYAML/CMakeFiles/ObjectYAMLTests.dir/DXContainerYAMLTest.cpp.o
clang++: warning: optimization flag '-ffat-lto-objects' is not supported [-Wignored-optimization-argument]
[1066/1348] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/CachePruningTest.cpp.o
clang++: warning: optimization flag '-ffat-lto-objects' is not supported [-Wignored-optimization-argument]
[1067/1348] Building CXX object unittests/ProfileData/CMakeFiles/ProfileDataTests.dir/BPFunctionNodeTest.cpp.o
clang++: warning: optimization flag '-ffat-lto-objects' is not supported [-Wignored-optimization-argument]
[1068/1348] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/CheckedArithmeticTest.cpp.o
clang++: warning: optimization flag '-ffat-lto-objects' is not supported [-Wignored-optimization-argument]
[1069/1348] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/ARMAttributeParser.cpp.o
clang++: warning: optimization flag '-ffat-lto-objects' is not supported [-Wignored-optimization-argument]
[1070/1348] Building CXX object unittests/Object/CMakeFiles/ObjectTests.dir/XCOFFObjectFileTest.cpp.o
clang++: warning: optimization flag '-ffat-lto-objects' is not supported [-Wignored-optimization-argument]
[1071/1348] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/BranchProbabilityTest.cpp.o
clang++: warning: optimization flag '-ffat-lto-objects' is not supported [-Wignored-optimization-argument]

@llvm-ci
Copy link
Collaborator

llvm-ci commented Nov 19, 2024

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

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

Here is the relevant piece of the build log for the reference
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
...
366.504 [645/18/322] Linking CXX executable tools/clang/unittests/Support/ClangSupportTests
367.537 [644/18/323] Building CXX object unittests/CodeGen/GlobalISel/CMakeFiles/GlobalISelTests.dir/LegalizerInfoTest.cpp.o
367.732 [643/18/324] Building CXX object unittests/MIR/CMakeFiles/MIRTests.dir/MachineStableHashTest.cpp.o
368.190 [642/18/325] Building CXX object unittests/ADT/CMakeFiles/ADTTests.dir/APSIntTest.cpp.o
368.610 [641/18/326] Building CXX object unittests/CodeGen/GlobalISel/CMakeFiles/GlobalISelTests.dir/GISelMITest.cpp.o
368.846 [640/18/327] Building CXX object unittests/ADT/CMakeFiles/ADTTests.dir/BitFieldsTest.cpp.o
369.490 [639/18/328] Building CXX object unittests/ADT/CMakeFiles/ADTTests.dir/ArrayRefTest.cpp.o
369.580 [638/18/329] Building CXX object unittests/ADT/CMakeFiles/ADTTests.dir/CountCopyAndMove.cpp.o
369.593 [637/18/330] Building CXX object unittests/ADT/CMakeFiles/ADTTests.dir/BitmaskEnumTest.cpp.o
369.975 [636/18/331] Building CXX object unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o
FAILED: unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o 
/usr/bin/c++ -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 -Iunittests/MIR -I/buildbot/worker/arc-folder/llvm-project/llvm/unittests/MIR -Iinclude -I/buildbot/worker/arc-folder/llvm-project/llvm/include -I/buildbot/worker/arc-folder/llvm-project/third-party/unittest/googletest/include -I/buildbot/worker/arc-folder/llvm-project/third-party/unittest/googlemock/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -fno-lifetime-dse -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG  -Wno-dangling-else -Wno-variadic-macros -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -Wno-suggest-override -std=c++17 -MD -MT unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o -MF unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o.d -o unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o -c /buildbot/worker/arc-folder/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp
/buildbot/worker/arc-folder/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:35:17: error: 'LLVMTargetMachine' was not declared in this scope
   35 | std::unique_ptr<LLVMTargetMachine>
      |                 ^~~~~~~~~~~~~~~~~
/buildbot/worker/arc-folder/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:35:34: error: template argument 1 is invalid
   35 | std::unique_ptr<LLVMTargetMachine>
      |                                  ^
/buildbot/worker/arc-folder/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:35:34: error: template argument 2 is invalid
/buildbot/worker/arc-folder/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp: In function 'int {anonymous}::createTargetMachine(std::string, llvm::StringRef, llvm::StringRef)':
/buildbot/worker/arc-folder/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:40:12: error: cannot convert 'std::nullptr_t' to 'int' in return
   40 |     return nullptr;
      |            ^~~~~~~
/buildbot/worker/arc-folder/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:42:26: error: 'LLVMTargetMachine' was not declared in this scope; did you mean 'createTargetMachine'?
   42 |   return std::unique_ptr<LLVMTargetMachine>(
      |                          ^~~~~~~~~~~~~~~~~
      |                          createTargetMachine
/buildbot/worker/arc-folder/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:42:43: error: template argument 1 is invalid
   42 |   return std::unique_ptr<LLVMTargetMachine>(
      |                                           ^
/buildbot/worker/arc-folder/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:42:43: error: template argument 2 is invalid
/buildbot/worker/arc-folder/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:43:19: error: 'LLVMTargetMachine' does not name a type; did you mean 'createTargetMachine'?
   43 |       static_cast<LLVMTargetMachine *>(T->createTargetMachine(
      |                   ^~~~~~~~~~~~~~~~~
      |                   createTargetMachine
/buildbot/worker/arc-folder/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:43:37: error: expected '>' before '*' token
   43 |       static_cast<LLVMTargetMachine *>(T->createTargetMachine(
      |                                     ^
/buildbot/worker/arc-folder/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:43:37: error: expected '(' before '*' token
   43 |       static_cast<LLVMTargetMachine *>(T->createTargetMachine(
      |                                     ^
      |                                     (
/buildbot/worker/arc-folder/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:43:38: error: expected primary-expression before '>' token
   43 |       static_cast<LLVMTargetMachine *>(T->createTargetMachine(
      |                                      ^
/buildbot/worker/arc-folder/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp: In member function 'virtual void {anonymous}::DroppedVariableStatsMIR_BothDeleted_Test::TestBody()':
/buildbot/worker/arc-folder/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:185:28: error: request for member 'get' in 'TM', which is of non-class type 'int'
  185 |   MachineModuleInfo MMI(TM.get());
      |                            ^~~

@llvm-ci
Copy link
Collaborator

llvm-ci commented Nov 19, 2024

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

Here is the relevant piece of the build log for the reference
Step 5 (ninja check 1) failure: stage 1 checked (failure)
...
[773/1138] Building CXX object unittests/Object/CMakeFiles/ObjectTests.dir/OffloadingTest.cpp.o
[774/1138] Building CXX object unittests/IR/CMakeFiles/IRTests.dir/PassManagerTest.cpp.o
[775/1138] Building CXX object unittests/Option/CMakeFiles/OptionTests.dir/OptionMarshallingTest.cpp.o
[776/1138] Building CXX object unittests/ObjCopy/CMakeFiles/ObjCopyTests.dir/ObjCopyTest.cpp.o
[777/1138] Building CXX object unittests/IR/CMakeFiles/IRTests.dir/InstructionsTest.cpp.o
[778/1138] Building CXX object unittests/ObjectYAML/CMakeFiles/ObjectYAMLTests.dir/YAMLTest.cpp.o
[779/1138] Building CXX object unittests/Object/CMakeFiles/ObjectTests.dir/ELFTypesTest.cpp.o
[780/1138] Building CXX object unittests/Object/CMakeFiles/ObjectTests.dir/ELFTest.cpp.o
[781/1138] Building CXX object unittests/Object/CMakeFiles/ObjectTests.dir/GOFFObjectFileTest.cpp.o
[782/1138] Building CXX object unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o
FAILED: unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o 
/usr/bin/c++ -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/var/lib/buildbot/workers/suse-gary-m68k-cross/clang-m68k-linux-cross/stage1/unittests/MIR -I/var/lib/buildbot/workers/suse-gary-m68k-cross/clang-m68k-linux-cross/llvm/llvm/unittests/MIR -I/var/lib/buildbot/workers/suse-gary-m68k-cross/clang-m68k-linux-cross/stage1/include -I/var/lib/buildbot/workers/suse-gary-m68k-cross/clang-m68k-linux-cross/llvm/llvm/include -I/var/lib/buildbot/workers/suse-gary-m68k-cross/clang-m68k-linux-cross/llvm/third-party/unittest/googletest/include -I/var/lib/buildbot/workers/suse-gary-m68k-cross/clang-m68k-linux-cross/llvm/third-party/unittest/googlemock/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -fno-lifetime-dse -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-maybe-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=c++17  -Wno-dangling-else -Wno-variadic-macros -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -Wno-suggest-override -MD -MT unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o -MF unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o.d -o unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o -c /var/lib/buildbot/workers/suse-gary-m68k-cross/clang-m68k-linux-cross/llvm/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp
/var/lib/buildbot/workers/suse-gary-m68k-cross/clang-m68k-linux-cross/llvm/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:35:17: error: ‘LLVMTargetMachine’ was not declared in this scope
   35 | std::unique_ptr<LLVMTargetMachine>
      |                 ^~~~~~~~~~~~~~~~~
/var/lib/buildbot/workers/suse-gary-m68k-cross/clang-m68k-linux-cross/llvm/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:35:34: error: template argument 1 is invalid
   35 | std::unique_ptr<LLVMTargetMachine>
      |                                  ^
/var/lib/buildbot/workers/suse-gary-m68k-cross/clang-m68k-linux-cross/llvm/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:35:34: error: template argument 2 is invalid
/var/lib/buildbot/workers/suse-gary-m68k-cross/clang-m68k-linux-cross/llvm/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp: In function ‘int {anonymous}::createTargetMachine(std::string, llvm::StringRef, llvm::StringRef)’:
/var/lib/buildbot/workers/suse-gary-m68k-cross/clang-m68k-linux-cross/llvm/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:40:12: error: cannot convert ‘std::nullptr_t’ to ‘int’ in return
   40 |     return nullptr;
      |            ^~~~~~~
/var/lib/buildbot/workers/suse-gary-m68k-cross/clang-m68k-linux-cross/llvm/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:42:26: error: ‘LLVMTargetMachine’ was not declared in this scope; did you mean ‘createTargetMachine’?
   42 |   return std::unique_ptr<LLVMTargetMachine>(
      |                          ^~~~~~~~~~~~~~~~~
      |                          createTargetMachine
/var/lib/buildbot/workers/suse-gary-m68k-cross/clang-m68k-linux-cross/llvm/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:42:43: error: template argument 1 is invalid
   42 |   return std::unique_ptr<LLVMTargetMachine>(
      |                                           ^
/var/lib/buildbot/workers/suse-gary-m68k-cross/clang-m68k-linux-cross/llvm/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:42:43: error: template argument 2 is invalid
/var/lib/buildbot/workers/suse-gary-m68k-cross/clang-m68k-linux-cross/llvm/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:43:19: error: ‘LLVMTargetMachine’ does not name a type
   43 |       static_cast<LLVMTargetMachine *>(T->createTargetMachine(
      |                   ^~~~~~~~~~~~~~~~~
/var/lib/buildbot/workers/suse-gary-m68k-cross/clang-m68k-linux-cross/llvm/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:43:37: error: expected ‘>’ before ‘*’ token
   43 |       static_cast<LLVMTargetMachine *>(T->createTargetMachine(
      |                                     ^
/var/lib/buildbot/workers/suse-gary-m68k-cross/clang-m68k-linux-cross/llvm/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:43:37: error: expected ‘(’ before ‘*’ token
   43 |       static_cast<LLVMTargetMachine *>(T->createTargetMachine(
      |                                     ^
      |                                     (
/var/lib/buildbot/workers/suse-gary-m68k-cross/clang-m68k-linux-cross/llvm/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:43:38: error: expected primary-expression before ‘>’ token
   43 |       static_cast<LLVMTargetMachine *>(T->createTargetMachine(
      |                                      ^
/var/lib/buildbot/workers/suse-gary-m68k-cross/clang-m68k-linux-cross/llvm/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp: In member function ‘virtual void {anonymous}::DroppedVariableStatsMIR_BothDeleted_Test::TestBody()’:
/var/lib/buildbot/workers/suse-gary-m68k-cross/clang-m68k-linux-cross/llvm/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:185:28: error: request for member ‘get’ in ‘TM’, which is of non-class type ‘int’
  185 |   MachineModuleInfo MMI(TM.get());
      |                            ^~~
/var/lib/buildbot/workers/suse-gary-m68k-cross/clang-m68k-linux-cross/llvm/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:186:40: error: invalid type argument of unary ‘*’ (have ‘int’)

@llvm-ci
Copy link
Collaborator

llvm-ci commented Nov 19, 2024

LLVM Buildbot has detected a new failure on builder premerge-monolithic-linux running on premerge-linux-1 while building llvm at step 7 "test-build-unified-tree-check-all".

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

Here is the relevant piece of the build log for the reference
Step 7 (test-build-unified-tree-check-all) failure: test (failure)
...
-- Configuring done
-- Generating done
-- Build files have been written to: /build/buildbot/premerge-monolithic-linux/build/runtimes/runtimes-bins
8.107 [363/58/987] cd /build/buildbot/premerge-monolithic-linux/llvm-project/clang/bindings/python && /etc/cmake/bin/cmake -E env CLANG_NO_DEFAULT_CONFIG=1 CLANG_LIBRARY_PATH=/build/buildbot/premerge-monolithic-linux/build/lib /usr/bin/python3.10 -m unittest discover
......................................................................................................................................................
----------------------------------------------------------------------
Ran 150 tests in 2.484s

OK
18.036 [41/58/1309] Building CXX object unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o
FAILED: unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes /usr/bin/ccache /usr/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/build/buildbot/premerge-monolithic-linux/build/unittests/MIR -I/build/buildbot/premerge-monolithic-linux/llvm-project/llvm/unittests/MIR -I/build/buildbot/premerge-monolithic-linux/build/include -I/build/buildbot/premerge-monolithic-linux/llvm-project/llvm/include -I/build/buildbot/premerge-monolithic-linux/llvm-project/third-party/unittest/googletest/include -I/build/buildbot/premerge-monolithic-linux/llvm-project/third-party/unittest/googlemock/include -gmlt -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG  -Wno-variadic-macros -Wno-gnu-zero-variadic-macro-arguments -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -Wno-suggest-override -std=c++17 -MD -MT unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o -MF unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o.d -o unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o -c /build/buildbot/premerge-monolithic-linux/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp
/build/buildbot/premerge-monolithic-linux/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:35:17: error: unknown type name 'LLVMTargetMachine'; did you mean 'TargetMachine'?
std::unique_ptr<LLVMTargetMachine>
                ^~~~~~~~~~~~~~~~~
                TargetMachine
/build/buildbot/premerge-monolithic-linux/llvm-project/llvm/include/llvm/Target/TargetMachine.h:77:7: note: 'TargetMachine' declared here
class TargetMachine {
      ^
/build/buildbot/premerge-monolithic-linux/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:42:26: error: unknown type name 'LLVMTargetMachine'; did you mean 'TargetMachine'?
  return std::unique_ptr<LLVMTargetMachine>(
                         ^~~~~~~~~~~~~~~~~
                         TargetMachine
/build/buildbot/premerge-monolithic-linux/llvm-project/llvm/include/llvm/Target/TargetMachine.h:77:7: note: 'TargetMachine' declared here
class TargetMachine {
      ^
/build/buildbot/premerge-monolithic-linux/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:43:19: error: unknown type name 'LLVMTargetMachine'; did you mean 'TargetMachine'?
      static_cast<LLVMTargetMachine *>(T->createTargetMachine(
                  ^~~~~~~~~~~~~~~~~
                  TargetMachine
/build/buildbot/premerge-monolithic-linux/llvm-project/llvm/include/llvm/Target/TargetMachine.h:77:7: note: 'TargetMachine' declared here
class TargetMachine {
      ^
3 errors generated.
30.963 [41/2/1365] Building CXX object unittests/tools/llvm-exegesis/CMakeFiles/LLVMExegesisTests.dir/X86/SnippetGeneratorTest.cpp.o
ninja: build stopped: subcommand failed.

@llvm-ci
Copy link
Collaborator

llvm-ci commented Nov 19, 2024

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

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

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)
...
[134/221] Linking CXX executable unittests/Transforms/Scalar/ScalarTests
[135/221] Linking CXX executable unittests/tools/llvm-mca/LLVMMCATests
[136/221] Linking CXX executable tools/clang/unittests/Frontend/FrontendTests
[137/221] Linking CXX executable tools/clang/tools/extra/clangd/unittests/ClangdTests
[138/221] Linking CXX executable unittests/Target/TargetMachineCTests
[139/221] Linking CXX executable tools/clang/unittests/Tooling/ToolingTests
[140/221] Linking CXX executable tools/clang/unittests/Interpreter/ExceptionTests/ClangReplInterpreterExceptionTests
[141/221] Building CXX object unittests/CodeGen/CMakeFiles/CodeGenTests.dir/TypeTraitsTest.cpp.o
[142/221] Linking CXX executable tools/clang/unittests/Interpreter/ClangReplInterpreterTests
[143/221] Building CXX object unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o
FAILED: unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes /usr/bin/ccache /home/b/sanitizer-x86_64-linux-fast/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/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/unittests/MIR -I/home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/unittests/MIR -I/home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/include -I/home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/include -I/home/b/sanitizer-x86_64-linux-fast/build/llvm-project/third-party/unittest/googletest/include -I/home/b/sanitizer-x86_64-linux-fast/build/llvm-project/third-party/unittest/googlemock/include -nostdinc++ -isystem /home/b/sanitizer-x86_64-linux-fast/build/libcxx_install_asan_ubsan/include -isystem /home/b/sanitizer-x86_64-linux-fast/build/libcxx_install_asan_ubsan/include/c++/v1 -fsanitize=address,undefined -Wl,--rpath=/home/b/sanitizer-x86_64-linux-fast/build/libcxx_install_asan_ubsan/lib -L/home/b/sanitizer-x86_64-linux-fast/build/libcxx_install_asan_ubsan/lib -w -stdlib=libc++ -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fno-omit-frame-pointer -gline-tables-only -fsanitize=address -fsanitize=undefined -fno-sanitize=vptr,function -fno-sanitize-recover=all -fsanitize-blacklist=/home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/sanitizers/ubsan_ignorelist.txt -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=c++17  -Wno-variadic-macros -Wno-gnu-zero-variadic-macro-arguments -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -Wno-suggest-override -MD -MT unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o -MF unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o.d -o unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o -c /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp
/home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:35:17: error: unknown type name 'LLVMTargetMachine'; did you mean 'TargetMachine'?
   35 | std::unique_ptr<LLVMTargetMachine>
      |                 ^~~~~~~~~~~~~~~~~
      |                 TargetMachine
/home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/include/llvm/Target/TargetMachine.h:77:7: note: 'TargetMachine' declared here
   77 | class TargetMachine {
      |       ^
/home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:42:26: error: unknown type name 'LLVMTargetMachine'; did you mean 'TargetMachine'?
   42 |   return std::unique_ptr<LLVMTargetMachine>(
      |                          ^~~~~~~~~~~~~~~~~
      |                          TargetMachine
/home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/include/llvm/Target/TargetMachine.h:77:7: note: 'TargetMachine' declared here
   77 | class TargetMachine {
      |       ^
/home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:43:19: error: unknown type name 'LLVMTargetMachine'; did you mean 'TargetMachine'?
   43 |       static_cast<LLVMTargetMachine *>(T->createTargetMachine(
      |                   ^~~~~~~~~~~~~~~~~
      |                   TargetMachine
/home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/include/llvm/Target/TargetMachine.h:77:7: note: 'TargetMachine' declared here
   77 | class TargetMachine {
      |       ^
3 errors generated.
[144/221] Building CXX object unittests/Target/WebAssembly/CMakeFiles/WebAssemblyTests.dir/WebAssemblyExceptionInfoTest.cpp.o
[145/221] Building CXX object unittests/Target/X86/CMakeFiles/X86Tests.dir/MachineSizeOptsTest.cpp.o
[146/221] Building CXX object unittests/Target/AArch64/CMakeFiles/AArch64Tests.dir/DecomposeStackOffsetTest.cpp.o
[147/221] Building CXX object unittests/Target/VE/CMakeFiles/VETests.dir/MachineInstrTest.cpp.o
[148/221] Building CXX object unittests/Target/AArch64/CMakeFiles/AArch64Tests.dir/Immediates.cpp.o
[149/221] Building CXX object unittests/Target/ARM/CMakeFiles/ARMTests.dir/InstSizes.cpp.o
[150/221] Building CXX object unittests/IR/CMakeFiles/IRTests.dir/DroppedVariableStatsIRTest.cpp.o
[151/221] Building CXX object unittests/Target/AArch64/CMakeFiles/AArch64Tests.dir/AddressingModes.cpp.o
[152/221] Building CXX object unittests/Target/AArch64/CMakeFiles/AArch64Tests.dir/AArch64RegisterInfoTest.cpp.o
[153/221] Building CXX object unittests/CodeGen/CMakeFiles/CodeGenTests.dir/SchedBoundary.cpp.o
[154/221] Building CXX object unittests/Target/AArch64/CMakeFiles/AArch64Tests.dir/MatrixRegisterAliasing.cpp.o
[155/221] Building CXX object unittests/CodeGen/GlobalISel/CMakeFiles/GlobalISelTests.dir/GISelMITest.cpp.o
[156/221] Building CXX object unittests/CodeGen/GlobalISel/CMakeFiles/GlobalISelTests.dir/InstructionSelectTest.cpp.o
[157/221] Building CXX object unittests/DebugInfo/DWARF/CMakeFiles/DebugInfoDWARFTests.dir/DwarfGenerator.cpp.o
[158/221] Building CXX object unittests/CodeGen/GlobalISel/CMakeFiles/GlobalISelTests.dir/GISelAliasTest.cpp.o
Step 10 (stage2/asan_ubsan check) failure: stage2/asan_ubsan check (failure)
...
[134/221] Linking CXX executable unittests/Transforms/Scalar/ScalarTests
[135/221] Linking CXX executable unittests/tools/llvm-mca/LLVMMCATests
[136/221] Linking CXX executable tools/clang/unittests/Frontend/FrontendTests
[137/221] Linking CXX executable tools/clang/tools/extra/clangd/unittests/ClangdTests
[138/221] Linking CXX executable unittests/Target/TargetMachineCTests
[139/221] Linking CXX executable tools/clang/unittests/Tooling/ToolingTests
[140/221] Linking CXX executable tools/clang/unittests/Interpreter/ExceptionTests/ClangReplInterpreterExceptionTests
[141/221] Building CXX object unittests/CodeGen/CMakeFiles/CodeGenTests.dir/TypeTraitsTest.cpp.o
[142/221] Linking CXX executable tools/clang/unittests/Interpreter/ClangReplInterpreterTests
[143/221] Building CXX object unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o
FAILED: unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes /usr/bin/ccache /home/b/sanitizer-x86_64-linux-fast/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/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/unittests/MIR -I/home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/unittests/MIR -I/home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/include -I/home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/include -I/home/b/sanitizer-x86_64-linux-fast/build/llvm-project/third-party/unittest/googletest/include -I/home/b/sanitizer-x86_64-linux-fast/build/llvm-project/third-party/unittest/googlemock/include -nostdinc++ -isystem /home/b/sanitizer-x86_64-linux-fast/build/libcxx_install_asan_ubsan/include -isystem /home/b/sanitizer-x86_64-linux-fast/build/libcxx_install_asan_ubsan/include/c++/v1 -fsanitize=address,undefined -Wl,--rpath=/home/b/sanitizer-x86_64-linux-fast/build/libcxx_install_asan_ubsan/lib -L/home/b/sanitizer-x86_64-linux-fast/build/libcxx_install_asan_ubsan/lib -w -stdlib=libc++ -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fno-omit-frame-pointer -gline-tables-only -fsanitize=address -fsanitize=undefined -fno-sanitize=vptr,function -fno-sanitize-recover=all -fsanitize-blacklist=/home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/sanitizers/ubsan_ignorelist.txt -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=c++17  -Wno-variadic-macros -Wno-gnu-zero-variadic-macro-arguments -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -Wno-suggest-override -MD -MT unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o -MF unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o.d -o unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o -c /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp
/home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:35:17: error: unknown type name 'LLVMTargetMachine'; did you mean 'TargetMachine'?
   35 | std::unique_ptr<LLVMTargetMachine>
      |                 ^~~~~~~~~~~~~~~~~
      |                 TargetMachine
/home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/include/llvm/Target/TargetMachine.h:77:7: note: 'TargetMachine' declared here
   77 | class TargetMachine {
      |       ^
/home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:42:26: error: unknown type name 'LLVMTargetMachine'; did you mean 'TargetMachine'?
   42 |   return std::unique_ptr<LLVMTargetMachine>(
      |                          ^~~~~~~~~~~~~~~~~
      |                          TargetMachine
/home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/include/llvm/Target/TargetMachine.h:77:7: note: 'TargetMachine' declared here
   77 | class TargetMachine {
      |       ^
/home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:43:19: error: unknown type name 'LLVMTargetMachine'; did you mean 'TargetMachine'?
   43 |       static_cast<LLVMTargetMachine *>(T->createTargetMachine(
      |                   ^~~~~~~~~~~~~~~~~
      |                   TargetMachine
/home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/include/llvm/Target/TargetMachine.h:77:7: note: 'TargetMachine' declared here
   77 | class TargetMachine {
      |       ^
3 errors generated.
[144/221] Building CXX object unittests/Target/WebAssembly/CMakeFiles/WebAssemblyTests.dir/WebAssemblyExceptionInfoTest.cpp.o
[145/221] Building CXX object unittests/Target/X86/CMakeFiles/X86Tests.dir/MachineSizeOptsTest.cpp.o
[146/221] Building CXX object unittests/Target/AArch64/CMakeFiles/AArch64Tests.dir/DecomposeStackOffsetTest.cpp.o
[147/221] Building CXX object unittests/Target/VE/CMakeFiles/VETests.dir/MachineInstrTest.cpp.o
[148/221] Building CXX object unittests/Target/AArch64/CMakeFiles/AArch64Tests.dir/Immediates.cpp.o
[149/221] Building CXX object unittests/Target/ARM/CMakeFiles/ARMTests.dir/InstSizes.cpp.o
[150/221] Building CXX object unittests/IR/CMakeFiles/IRTests.dir/DroppedVariableStatsIRTest.cpp.o
[151/221] Building CXX object unittests/Target/AArch64/CMakeFiles/AArch64Tests.dir/AddressingModes.cpp.o
[152/221] Building CXX object unittests/Target/AArch64/CMakeFiles/AArch64Tests.dir/AArch64RegisterInfoTest.cpp.o
[153/221] Building CXX object unittests/CodeGen/CMakeFiles/CodeGenTests.dir/SchedBoundary.cpp.o
[154/221] Building CXX object unittests/Target/AArch64/CMakeFiles/AArch64Tests.dir/MatrixRegisterAliasing.cpp.o
[155/221] Building CXX object unittests/CodeGen/GlobalISel/CMakeFiles/GlobalISelTests.dir/GISelMITest.cpp.o
[156/221] Building CXX object unittests/CodeGen/GlobalISel/CMakeFiles/GlobalISelTests.dir/InstructionSelectTest.cpp.o
[157/221] Building CXX object unittests/DebugInfo/DWARF/CMakeFiles/DebugInfoDWARFTests.dir/DwarfGenerator.cpp.o
[158/221] Building CXX object unittests/CodeGen/GlobalISel/CMakeFiles/GlobalISelTests.dir/GISelAliasTest.cpp.o
Step 13 (stage2/msan check) failure: stage2/msan check (failure)
...
[110/221] Linking CXX executable unittests/TextAPI/TextAPITests
[111/221] Linking CXX executable unittests/XRay/XRayTests
[112/221] Linking CXX executable unittests/Transforms/Vectorize/VectorizeTests
[113/221] Linking CXX executable unittests/Transforms/Vectorize/SandboxVectorizer/SandboxVectorizerTests
[114/221] Linking CXX executable unittests/Transforms/IPO/IPOTests
[115/221] Linking CXX executable unittests/MC/MCTests
[116/221] Linking CXX executable unittests/tools/llvm-profgen/LLVMProfgenTests
[117/221] Building CXX object unittests/CodeGen/CMakeFiles/CodeGenTests.dir/TypeTraitsTest.cpp.o
[118/221] Building CXX object unittests/Target/AArch64/CMakeFiles/AArch64Tests.dir/DecomposeStackOffsetTest.cpp.o
[119/221] Building CXX object unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o
FAILED: unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes /usr/bin/ccache /home/b/sanitizer-x86_64-linux-fast/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/b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/unittests/MIR -I/home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/unittests/MIR -I/home/b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/include -I/home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/include -I/home/b/sanitizer-x86_64-linux-fast/build/llvm-project/third-party/unittest/googletest/include -I/home/b/sanitizer-x86_64-linux-fast/build/llvm-project/third-party/unittest/googlemock/include -nostdinc++ -isystem /home/b/sanitizer-x86_64-linux-fast/build/libcxx_install_msan/include -isystem /home/b/sanitizer-x86_64-linux-fast/build/libcxx_install_msan/include/c++/v1 -fsanitize=memory -Wl,--rpath=/home/b/sanitizer-x86_64-linux-fast/build/libcxx_install_msan/lib -L/home/b/sanitizer-x86_64-linux-fast/build/libcxx_install_msan/lib -w -stdlib=libc++ -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fno-omit-frame-pointer -gline-tables-only -fsanitize=memory -fdiagnostics-color -ffunction-sections -fdata-sections -Oz -std=c++17  -Wno-variadic-macros -Wno-gnu-zero-variadic-macro-arguments -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -Wno-suggest-override -MD -MT unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o -MF unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o.d -o unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o -c /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp
/home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:35:17: error: unknown type name 'LLVMTargetMachine'; did you mean 'TargetMachine'?
   35 | std::unique_ptr<LLVMTargetMachine>
      |                 ^~~~~~~~~~~~~~~~~
      |                 TargetMachine
/home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/include/llvm/Target/TargetMachine.h:77:7: note: 'TargetMachine' declared here
   77 | class TargetMachine {
      |       ^
/home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:42:26: error: unknown type name 'LLVMTargetMachine'; did you mean 'TargetMachine'?
   42 |   return std::unique_ptr<LLVMTargetMachine>(
      |                          ^~~~~~~~~~~~~~~~~
      |                          TargetMachine
/home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/include/llvm/Target/TargetMachine.h:77:7: note: 'TargetMachine' declared here
   77 | class TargetMachine {
      |       ^
/home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:43:19: error: unknown type name 'LLVMTargetMachine'; did you mean 'TargetMachine'?
   43 |       static_cast<LLVMTargetMachine *>(T->createTargetMachine(
      |                   ^~~~~~~~~~~~~~~~~
      |                   TargetMachine
/home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/include/llvm/Target/TargetMachine.h:77:7: note: 'TargetMachine' declared here
   77 | class TargetMachine {
      |       ^
3 errors generated.
[120/221] Building CXX object unittests/CodeGen/GlobalISel/CMakeFiles/GlobalISelTests.dir/GISelMITest.cpp.o
[121/221] Building CXX object unittests/IR/CMakeFiles/IRTests.dir/DroppedVariableStatsIRTest.cpp.o
[122/221] Building CXX object unittests/Target/VE/CMakeFiles/VETests.dir/MachineInstrTest.cpp.o
[123/221] Building CXX object unittests/Target/X86/CMakeFiles/X86Tests.dir/MachineSizeOptsTest.cpp.o
[124/221] Building CXX object unittests/CodeGen/GlobalISel/CMakeFiles/GlobalISelTests.dir/GISelAliasTest.cpp.o
[125/221] Building CXX object unittests/Target/AArch64/CMakeFiles/AArch64Tests.dir/AArch64RegisterInfoTest.cpp.o
[126/221] Building CXX object unittests/Target/AArch64/CMakeFiles/AArch64Tests.dir/Immediates.cpp.o
[127/221] Building CXX object unittests/Target/AArch64/CMakeFiles/AArch64Tests.dir/AddressingModes.cpp.o
[128/221] Building CXX object unittests/Target/AMDGPU/CMakeFiles/AMDGPUTests.dir/DwarfRegMappings.cpp.o
[129/221] Building CXX object unittests/Target/ARM/CMakeFiles/ARMTests.dir/InstSizes.cpp.o
[130/221] Building CXX object unittests/Target/AArch64/CMakeFiles/AArch64Tests.dir/MatrixRegisterAliasing.cpp.o
[131/221] Building CXX object unittests/Target/AMDGPU/CMakeFiles/AMDGPUTests.dir/CSETest.cpp.o
[132/221] Building CXX object unittests/Target/AMDGPU/CMakeFiles/AMDGPUTests.dir/ExecMayBeModifiedBeforeAnyUse.cpp.o
[133/221] Building CXX object unittests/Target/AArch64/CMakeFiles/AArch64Tests.dir/AArch64SVESchedPseudoTest.cpp.o
[134/221] Building CXX object unittests/CodeGen/GlobalISel/CMakeFiles/GlobalISelTests.dir/InstructionSelectTest.cpp.o

@llvm-ci
Copy link
Collaborator

llvm-ci commented Nov 19, 2024

LLVM Buildbot has detected a new failure on builder lld-x86_64-ubuntu-fast running on as-builder-4 while building llvm at step 6 "test-build-unified-tree-check-all".

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

Here is the relevant piece of the build log for the reference
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
...
11.051 [42/66/625] Building CXX object unittests/tools/llvm-exegesis/CMakeFiles/LLVMExegesisTests.dir/RegisterValueTest.cpp.o
11.121 [41/66/626] Building CXX object unittests/tools/llvm-exegesis/CMakeFiles/LLVMExegesisTests.dir/ClusteringTest.cpp.o
11.293 [40/66/627] Linking CXX executable unittests/Transforms/IPO/IPOTests
11.410 [39/66/628] Linking CXX executable unittests/XRay/XRayTests
11.501 [38/66/629] Building CXX object unittests/CodeGen/CMakeFiles/CodeGenTests.dir/TypeTraitsTest.cpp.o
11.569 [37/66/630] Building CXX object unittests/tools/llvm-exegesis/CMakeFiles/LLVMExegesisTests.dir/X86/SchedClassResolutionTest.cpp.o
11.942 [36/66/631] Linking CXX executable unittests/Transforms/Vectorize/VectorizeTests
12.088 [35/66/632] Linking CXX executable unittests/Transforms/Vectorize/SandboxVectorizer/SandboxVectorizerTests
12.497 [34/66/633] Linking CXX executable unittests/Transforms/Coroutines/CoroTests
12.569 [33/66/634] Building CXX object unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o
FAILED: unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes /usr/bin/ccache /usr/bin/c++ -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/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/build/unittests/MIR -I/home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/unittests/MIR -I/home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/build/include -I/home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/include -I/home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/third-party/unittest/googletest/include -I/home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/third-party/unittest/googlemock/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -fno-lifetime-dse -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG  -Wno-dangling-else -Wno-variadic-macros -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -Wno-suggest-override -std=c++17 -MD -MT unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o -MF unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o.d -o unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o -c /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp
/home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:35:17: error: ‘LLVMTargetMachine’ was not declared in this scope
   35 | std::unique_ptr<LLVMTargetMachine>
      |                 ^~~~~~~~~~~~~~~~~
/home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:35:34: error: template argument 1 is invalid
   35 | std::unique_ptr<LLVMTargetMachine>
      |                                  ^
/home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:35:34: error: template argument 2 is invalid
/home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp: In function ‘int {anonymous}::createTargetMachine(std::string, llvm::StringRef, llvm::StringRef)’:
/home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:40:12: error: cannot convert ‘std::nullptr_t’ to ‘int’ in return
   40 |     return nullptr;
      |            ^~~~~~~
/home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:42:26: error: ‘LLVMTargetMachine’ was not declared in this scope; did you mean ‘createTargetMachine’?
   42 |   return std::unique_ptr<LLVMTargetMachine>(
      |                          ^~~~~~~~~~~~~~~~~
      |                          createTargetMachine
/home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:42:43: error: template argument 1 is invalid
   42 |   return std::unique_ptr<LLVMTargetMachine>(
      |                                           ^
/home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:42:43: error: template argument 2 is invalid
/home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:43:19: error: ‘LLVMTargetMachine’ does not name a type
   43 |       static_cast<LLVMTargetMachine *>(T->createTargetMachine(
      |                   ^~~~~~~~~~~~~~~~~
/home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:43:37: error: expected ‘>’ before ‘*’ token
   43 |       static_cast<LLVMTargetMachine *>(T->createTargetMachine(
      |                                     ^
/home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:43:37: error: expected ‘(’ before ‘*’ token
   43 |       static_cast<LLVMTargetMachine *>(T->createTargetMachine(
      |                                     ^
      |                                     (
/home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:43:38: error: expected primary-expression before ‘>’ token
   43 |       static_cast<LLVMTargetMachine *>(T->createTargetMachine(
      |                                      ^
/home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp: In member function ‘virtual void {anonymous}::DroppedVariableStatsMIR_BothDeleted_Test::TestBody()’:
/home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:185:28: error: request for member ‘get’ in ‘TM’, which is of non-class type ‘int’
  185 |   MachineModuleInfo MMI(TM.get());
      |                            ^~~
/home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:186:40: error: invalid type argument of unary ‘*’ (have ‘int’)

@llvm-ci
Copy link
Collaborator

llvm-ci commented Nov 19, 2024

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

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

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)
...
[868/1322] Building CXX object unittests/Remarks/CMakeFiles/RemarksTests.dir/RemarksAPITest.cpp.o
[869/1322] Building CXX object unittests/IR/CMakeFiles/IRTests.dir/DataLayoutTest.cpp.o
[870/1322] Building CXX object unittests/IR/CMakeFiles/IRTests.dir/DebugInfoTest.cpp.o
[871/1322] Building CXX object unittests/DebugInfo/DWARF/CMakeFiles/DebugInfoDWARFTests.dir/DWARFDebugLineTest.cpp.o
[872/1322] Building CXX object unittests/Remarks/CMakeFiles/RemarksTests.dir/BitstreamRemarksSerializerTest.cpp.o
[873/1322] Building CXX object unittests/Remarks/CMakeFiles/RemarksTests.dir/RemarksLinkingTest.cpp.o
[874/1322] Building CXX object unittests/MI/CMakeFiles/MITests.dir/LiveIntervalTest.cpp.o
[875/1322] Building CXX object unittests/IR/CMakeFiles/IRTests.dir/ValueMapTest.cpp.o
[876/1322] Building CXX object unittests/ObjectYAML/CMakeFiles/ObjectYAMLTests.dir/ELFYAMLTest.cpp.o
[877/1322] Building CXX object unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o
FAILED: unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes /usr/bin/ccache /home/b/sanitizer-x86_64-linux-bootstrap-msan/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/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/unittests/MIR -I/home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/unittests/MIR -I/home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/include -I/home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/include -I/home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/third-party/unittest/googletest/include -I/home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/third-party/unittest/googlemock/include -nostdinc++ -isystem /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/libcxx_install_msan/include -isystem /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/libcxx_install_msan/include/c++/v1 -fsanitize=memory -Wl,--rpath=/home/b/sanitizer-x86_64-linux-bootstrap-msan/build/libcxx_install_msan/lib -L/home/b/sanitizer-x86_64-linux-bootstrap-msan/build/libcxx_install_msan/lib -w -stdlib=libc++ -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fno-omit-frame-pointer -gline-tables-only -fsanitize=memory -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=c++17  -Wno-variadic-macros -Wno-gnu-zero-variadic-macro-arguments -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -Wno-suggest-override -MD -MT unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o -MF unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o.d -o unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o -c /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp
/home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:35:17: error: unknown type name 'LLVMTargetMachine'; did you mean 'TargetMachine'?
   35 | std::unique_ptr<LLVMTargetMachine>
      |                 ^~~~~~~~~~~~~~~~~
      |                 TargetMachine
/home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/include/llvm/Target/TargetMachine.h:77:7: note: 'TargetMachine' declared here
   77 | class TargetMachine {
      |       ^
/home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:42:26: error: unknown type name 'LLVMTargetMachine'; did you mean 'TargetMachine'?
   42 |   return std::unique_ptr<LLVMTargetMachine>(
      |                          ^~~~~~~~~~~~~~~~~
      |                          TargetMachine
/home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/include/llvm/Target/TargetMachine.h:77:7: note: 'TargetMachine' declared here
   77 | class TargetMachine {
      |       ^
/home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:43:19: error: unknown type name 'LLVMTargetMachine'; did you mean 'TargetMachine'?
   43 |       static_cast<LLVMTargetMachine *>(T->createTargetMachine(
      |                   ^~~~~~~~~~~~~~~~~
      |                   TargetMachine
/home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/include/llvm/Target/TargetMachine.h:77:7: note: 'TargetMachine' declared here
   77 | class TargetMachine {
      |       ^
3 errors generated.
[878/1322] Building CXX object unittests/IR/CMakeFiles/IRTests.dir/DominatorTreeBatchUpdatesTest.cpp.o
[879/1322] Building CXX object unittests/Remarks/CMakeFiles/RemarksTests.dir/RemarksStrTabParsingTest.cpp.o
[880/1322] Building CXX object unittests/ObjectYAML/CMakeFiles/ObjectYAMLTests.dir/DXContainerYAMLTest.cpp.o
[881/1322] Building CXX object unittests/Object/CMakeFiles/ObjectTests.dir/GOFFObjectFileTest.cpp.o
[882/1322] Building CXX object unittests/ObjectYAML/CMakeFiles/ObjectYAMLTests.dir/DWARFYAMLTest.cpp.o
[883/1322] Building CXX object unittests/Object/CMakeFiles/ObjectTests.dir/DXContainerTest.cpp.o
[884/1322] Building CXX object unittests/Object/CMakeFiles/ObjectTests.dir/ELFTypesTest.cpp.o
[885/1322] Building CXX object unittests/IR/CMakeFiles/IRTests.dir/DominatorTreeTest.cpp.o
[886/1322] Building CXX object unittests/Object/CMakeFiles/ObjectTests.dir/ELFTest.cpp.o
[887/1322] Building CXX object unittests/ProfileData/CMakeFiles/ProfileDataTests.dir/InstrProfDataTest.cpp.o
[888/1322] Building CXX object unittests/ProfileData/CMakeFiles/ProfileDataTests.dir/SymbolRemappingReaderTest.cpp.o
[889/1322] Building CXX object unittests/CodeGen/CMakeFiles/CodeGenTests.dir/InstrRefLDVTest.cpp.o
[890/1322] Building CXX object unittests/IR/CMakeFiles/IRTests.dir/VFABIDemanglerTest.cpp.o
[891/1322] Building CXX object unittests/ObjectYAML/CMakeFiles/ObjectYAMLTests.dir/MinidumpYAMLTest.cpp.o
[892/1322] Building CXX object unittests/Remarks/CMakeFiles/RemarksTests.dir/BitstreamRemarksParsingTest.cpp.o
Step 10 (stage2/msan check) failure: stage2/msan check (failure)
...
[868/1322] Building CXX object unittests/Remarks/CMakeFiles/RemarksTests.dir/RemarksAPITest.cpp.o
[869/1322] Building CXX object unittests/IR/CMakeFiles/IRTests.dir/DataLayoutTest.cpp.o
[870/1322] Building CXX object unittests/IR/CMakeFiles/IRTests.dir/DebugInfoTest.cpp.o
[871/1322] Building CXX object unittests/DebugInfo/DWARF/CMakeFiles/DebugInfoDWARFTests.dir/DWARFDebugLineTest.cpp.o
[872/1322] Building CXX object unittests/Remarks/CMakeFiles/RemarksTests.dir/BitstreamRemarksSerializerTest.cpp.o
[873/1322] Building CXX object unittests/Remarks/CMakeFiles/RemarksTests.dir/RemarksLinkingTest.cpp.o
[874/1322] Building CXX object unittests/MI/CMakeFiles/MITests.dir/LiveIntervalTest.cpp.o
[875/1322] Building CXX object unittests/IR/CMakeFiles/IRTests.dir/ValueMapTest.cpp.o
[876/1322] Building CXX object unittests/ObjectYAML/CMakeFiles/ObjectYAMLTests.dir/ELFYAMLTest.cpp.o
[877/1322] Building CXX object unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o
FAILED: unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes /usr/bin/ccache /home/b/sanitizer-x86_64-linux-bootstrap-msan/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/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/unittests/MIR -I/home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/unittests/MIR -I/home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/include -I/home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/include -I/home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/third-party/unittest/googletest/include -I/home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/third-party/unittest/googlemock/include -nostdinc++ -isystem /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/libcxx_install_msan/include -isystem /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/libcxx_install_msan/include/c++/v1 -fsanitize=memory -Wl,--rpath=/home/b/sanitizer-x86_64-linux-bootstrap-msan/build/libcxx_install_msan/lib -L/home/b/sanitizer-x86_64-linux-bootstrap-msan/build/libcxx_install_msan/lib -w -stdlib=libc++ -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fno-omit-frame-pointer -gline-tables-only -fsanitize=memory -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=c++17  -Wno-variadic-macros -Wno-gnu-zero-variadic-macro-arguments -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -Wno-suggest-override -MD -MT unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o -MF unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o.d -o unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o -c /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp
/home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:35:17: error: unknown type name 'LLVMTargetMachine'; did you mean 'TargetMachine'?
   35 | std::unique_ptr<LLVMTargetMachine>
      |                 ^~~~~~~~~~~~~~~~~
      |                 TargetMachine
/home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/include/llvm/Target/TargetMachine.h:77:7: note: 'TargetMachine' declared here
   77 | class TargetMachine {
      |       ^
/home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:42:26: error: unknown type name 'LLVMTargetMachine'; did you mean 'TargetMachine'?
   42 |   return std::unique_ptr<LLVMTargetMachine>(
      |                          ^~~~~~~~~~~~~~~~~
      |                          TargetMachine
/home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/include/llvm/Target/TargetMachine.h:77:7: note: 'TargetMachine' declared here
   77 | class TargetMachine {
      |       ^
/home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:43:19: error: unknown type name 'LLVMTargetMachine'; did you mean 'TargetMachine'?
   43 |       static_cast<LLVMTargetMachine *>(T->createTargetMachine(
      |                   ^~~~~~~~~~~~~~~~~
      |                   TargetMachine
/home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/include/llvm/Target/TargetMachine.h:77:7: note: 'TargetMachine' declared here
   77 | class TargetMachine {
      |       ^
3 errors generated.
[878/1322] Building CXX object unittests/IR/CMakeFiles/IRTests.dir/DominatorTreeBatchUpdatesTest.cpp.o
[879/1322] Building CXX object unittests/Remarks/CMakeFiles/RemarksTests.dir/RemarksStrTabParsingTest.cpp.o
[880/1322] Building CXX object unittests/ObjectYAML/CMakeFiles/ObjectYAMLTests.dir/DXContainerYAMLTest.cpp.o
[881/1322] Building CXX object unittests/Object/CMakeFiles/ObjectTests.dir/GOFFObjectFileTest.cpp.o
[882/1322] Building CXX object unittests/ObjectYAML/CMakeFiles/ObjectYAMLTests.dir/DWARFYAMLTest.cpp.o
[883/1322] Building CXX object unittests/Object/CMakeFiles/ObjectTests.dir/DXContainerTest.cpp.o
[884/1322] Building CXX object unittests/Object/CMakeFiles/ObjectTests.dir/ELFTypesTest.cpp.o
[885/1322] Building CXX object unittests/IR/CMakeFiles/IRTests.dir/DominatorTreeTest.cpp.o
[886/1322] Building CXX object unittests/Object/CMakeFiles/ObjectTests.dir/ELFTest.cpp.o
[887/1322] Building CXX object unittests/ProfileData/CMakeFiles/ProfileDataTests.dir/InstrProfDataTest.cpp.o
[888/1322] Building CXX object unittests/ProfileData/CMakeFiles/ProfileDataTests.dir/SymbolRemappingReaderTest.cpp.o
[889/1322] Building CXX object unittests/CodeGen/CMakeFiles/CodeGenTests.dir/InstrRefLDVTest.cpp.o
[890/1322] Building CXX object unittests/IR/CMakeFiles/IRTests.dir/VFABIDemanglerTest.cpp.o
[891/1322] Building CXX object unittests/ObjectYAML/CMakeFiles/ObjectYAMLTests.dir/MinidumpYAMLTest.cpp.o
[892/1322] Building CXX object unittests/Remarks/CMakeFiles/RemarksTests.dir/BitstreamRemarksParsingTest.cpp.o
Step 13 (stage3/msan check) failure: stage3/msan check (failure)
...
[828/1187] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/AddressRangeTest.cpp.o
[829/1187] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/ExtensibleRTTITest.cpp.o
[830/1187] Building CXX object unittests/ObjectYAML/CMakeFiles/ObjectYAMLTests.dir/MinidumpYAMLTest.cpp.o
[831/1187] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/ErrorOrTest.cpp.o
[832/1187] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/FSUniqueIDTest.cpp.o
[833/1187] Building CXX object unittests/Object/CMakeFiles/ObjectTests.dir/XCOFFObjectFileTest.cpp.o
[834/1187] Building CXX object unittests/ObjectYAML/CMakeFiles/ObjectYAMLTests.dir/ELFYAMLTest.cpp.o
[835/1187] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/ExponentialBackoffTest.cpp.o
[836/1187] Building CXX object unittests/IR/CMakeFiles/IRTests.dir/InstructionsTest.cpp.o
[837/1187] Building CXX object unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o
FAILED: unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o 
/home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/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/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build2_msan/unittests/MIR -I/home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/unittests/MIR -I/home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build2_msan/include -I/home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/include -I/home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/third-party/unittest/googletest/include -I/home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/third-party/unittest/googlemock/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=c++17  -Wno-variadic-macros -Wno-gnu-zero-variadic-macro-arguments -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -Wno-suggest-override -MD -MT unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o -MF unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o.d -o unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o -c /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp
/home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:35:17: error: unknown type name 'LLVMTargetMachine'; did you mean 'TargetMachine'?
   35 | std::unique_ptr<LLVMTargetMachine>
      |                 ^~~~~~~~~~~~~~~~~
      |                 TargetMachine
/home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/include/llvm/Target/TargetMachine.h:77:7: note: 'TargetMachine' declared here
   77 | class TargetMachine {
      |       ^
/home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:42:26: error: unknown type name 'LLVMTargetMachine'; did you mean 'TargetMachine'?
   42 |   return std::unique_ptr<LLVMTargetMachine>(
      |                          ^~~~~~~~~~~~~~~~~
      |                          TargetMachine
/home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/include/llvm/Target/TargetMachine.h:77:7: note: 'TargetMachine' declared here
   77 | class TargetMachine {
      |       ^
/home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:43:19: error: unknown type name 'LLVMTargetMachine'; did you mean 'TargetMachine'?
   43 |       static_cast<LLVMTargetMachine *>(T->createTargetMachine(
      |                   ^~~~~~~~~~~~~~~~~
      |                   TargetMachine
/home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/include/llvm/Target/TargetMachine.h:77:7: note: 'TargetMachine' declared here
   77 | class TargetMachine {
      |       ^
3 errors generated.
[838/1187] Building CXX object unittests/IR/CMakeFiles/IRTests.dir/VPIntrinsicTest.cpp.o
[839/1187] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/InstructionCostTest.cpp.o
[840/1187] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/GenericDomTreeTest.cpp.o
[841/1187] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/FileOutputBufferTest.cpp.o
[842/1187] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/IndexedAccessorTest.cpp.o
[843/1187] Building CXX object unittests/ProfileData/CMakeFiles/ProfileDataTests.dir/PGOCtxProfReaderWriterTest.cpp.o
[844/1187] Building CXX object unittests/SandboxIR/CMakeFiles/SandboxIRTests.dir/IntrinsicInstTest.cpp.o
[845/1187] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/ManagedStatic.cpp.o
[846/1187] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/MD5Test.cpp.o
[847/1187] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/ModRefTest.cpp.o
[848/1187] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/ConvertUTFTest.cpp.o
[849/1187] Building CXX object unittests/SandboxIR/CMakeFiles/SandboxIRTests.dir/TypesTest.cpp.o
[850/1187] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/MemoryBufferRefTest.cpp.o
[851/1187] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/BalancedPartitioningTest.cpp.o
[852/1187] Building CXX object unittests/Object/CMakeFiles/ObjectTests.dir/MinidumpTest.cpp.o

@llvm-ci
Copy link
Collaborator

llvm-ci commented Nov 19, 2024

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

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

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)
...
[866/1322] Building CXX object unittests/ObjCopy/CMakeFiles/ObjCopyTests.dir/ObjCopyTest.cpp.o
[867/1322] Building CXX object unittests/IR/CMakeFiles/IRTests.dir/VFABIDemanglerTest.cpp.o
[868/1322] Building CXX object unittests/Remarks/CMakeFiles/RemarksTests.dir/RemarksAPITest.cpp.o
[869/1322] Building CXX object unittests/MIR/CMakeFiles/MIRTests.dir/MachineStableHashTest.cpp.o
[870/1322] Building CXX object unittests/ObjectYAML/CMakeFiles/ObjectYAMLTests.dir/YAML2ObjTest.cpp.o
[871/1322] Building CXX object unittests/ObjectYAML/CMakeFiles/ObjectYAMLTests.dir/YAMLTest.cpp.o
[872/1322] Building CXX object unittests/Passes/PassBuilderBindings/CMakeFiles/PassesBindingsTests.dir/PassBuilderBindingsTest.cpp.o
[873/1322] Building CXX object unittests/FuzzMutate/CMakeFiles/FuzzMutateTests.dir/OperationsTest.cpp.o
[874/1322] Building CXX object unittests/Object/CMakeFiles/ObjectTests.dir/DXContainerTest.cpp.o
[875/1322] Building CXX object unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o
FAILED: unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes /usr/bin/ccache /home/b/sanitizer-x86_64-linux-bootstrap-asan/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/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/unittests/MIR -I/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/llvm/unittests/MIR -I/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/include -I/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/llvm/include -I/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/third-party/unittest/googletest/include -I/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/third-party/unittest/googlemock/include -nostdinc++ -isystem /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/libcxx_install_asan/include -isystem /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/libcxx_install_asan/include/c++/v1 -fsanitize=address -Wl,--rpath=/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/libcxx_install_asan/lib -L/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/libcxx_install_asan/lib -w -stdlib=libc++ -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fno-omit-frame-pointer -gline-tables-only -fsanitize=address -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=c++17  -Wno-variadic-macros -Wno-gnu-zero-variadic-macro-arguments -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -Wno-suggest-override -MD -MT unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o -MF unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o.d -o unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o -c /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp
/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:35:17: error: unknown type name 'LLVMTargetMachine'; did you mean 'TargetMachine'?
   35 | std::unique_ptr<LLVMTargetMachine>
      |                 ^~~~~~~~~~~~~~~~~
      |                 TargetMachine
/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/llvm/include/llvm/Target/TargetMachine.h:77:7: note: 'TargetMachine' declared here
   77 | class TargetMachine {
      |       ^
/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:42:26: error: unknown type name 'LLVMTargetMachine'; did you mean 'TargetMachine'?
   42 |   return std::unique_ptr<LLVMTargetMachine>(
      |                          ^~~~~~~~~~~~~~~~~
      |                          TargetMachine
/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/llvm/include/llvm/Target/TargetMachine.h:77:7: note: 'TargetMachine' declared here
   77 | class TargetMachine {
      |       ^
/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:43:19: error: unknown type name 'LLVMTargetMachine'; did you mean 'TargetMachine'?
   43 |       static_cast<LLVMTargetMachine *>(T->createTargetMachine(
      |                   ^~~~~~~~~~~~~~~~~
      |                   TargetMachine
/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/llvm/include/llvm/Target/TargetMachine.h:77:7: note: 'TargetMachine' declared here
   77 | class TargetMachine {
      |       ^
3 errors generated.
[876/1322] Building CXX object unittests/MC/SystemZ/CMakeFiles/SystemZAsmLexerTests.dir/SystemZAsmLexerTest.cpp.o
[877/1322] Building CXX object unittests/IR/CMakeFiles/IRTests.dir/DroppedVariableStatsIRTest.cpp.o
[878/1322] Building CXX object unittests/Remarks/CMakeFiles/RemarksTests.dir/BitstreamRemarksSerializerTest.cpp.o
[879/1322] Building CXX object unittests/ProfileData/CMakeFiles/ProfileDataTests.dir/SymbolRemappingReaderTest.cpp.o
[880/1322] Building CXX object unittests/ObjectYAML/CMakeFiles/ObjectYAMLTests.dir/DXContainerYAMLTest.cpp.o
[881/1322] Building CXX object unittests/IR/CMakeFiles/IRTests.dir/DebugInfoTest.cpp.o
[882/1322] Building CXX object unittests/Remarks/CMakeFiles/RemarksTests.dir/RemarksStrTabParsingTest.cpp.o
[883/1322] Building CXX object unittests/ProfileData/CMakeFiles/ProfileDataTests.dir/ItaniumManglingCanonicalizerTest.cpp.o
[884/1322] Building CXX object unittests/ProfileData/CMakeFiles/ProfileDataTests.dir/InstrProfDataTest.cpp.o
[885/1322] Building CXX object unittests/IR/CMakeFiles/IRTests.dir/IRBuilderTest.cpp.o
[886/1322] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/ArrayRecyclerTest.cpp.o
[887/1322] Building CXX object unittests/Remarks/CMakeFiles/RemarksTests.dir/RemarksLinkingTest.cpp.o
[888/1322] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/AllocatorTest.cpp.o
[889/1322] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/BLAKE3Test.cpp.o
[890/1322] Building CXX object unittests/Object/CMakeFiles/ObjectTests.dir/ELFTest.cpp.o
Step 10 (stage2/asan check) failure: stage2/asan check (failure)
...
[866/1322] Building CXX object unittests/ObjCopy/CMakeFiles/ObjCopyTests.dir/ObjCopyTest.cpp.o
[867/1322] Building CXX object unittests/IR/CMakeFiles/IRTests.dir/VFABIDemanglerTest.cpp.o
[868/1322] Building CXX object unittests/Remarks/CMakeFiles/RemarksTests.dir/RemarksAPITest.cpp.o
[869/1322] Building CXX object unittests/MIR/CMakeFiles/MIRTests.dir/MachineStableHashTest.cpp.o
[870/1322] Building CXX object unittests/ObjectYAML/CMakeFiles/ObjectYAMLTests.dir/YAML2ObjTest.cpp.o
[871/1322] Building CXX object unittests/ObjectYAML/CMakeFiles/ObjectYAMLTests.dir/YAMLTest.cpp.o
[872/1322] Building CXX object unittests/Passes/PassBuilderBindings/CMakeFiles/PassesBindingsTests.dir/PassBuilderBindingsTest.cpp.o
[873/1322] Building CXX object unittests/FuzzMutate/CMakeFiles/FuzzMutateTests.dir/OperationsTest.cpp.o
[874/1322] Building CXX object unittests/Object/CMakeFiles/ObjectTests.dir/DXContainerTest.cpp.o
[875/1322] Building CXX object unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o
FAILED: unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes /usr/bin/ccache /home/b/sanitizer-x86_64-linux-bootstrap-asan/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/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/unittests/MIR -I/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/llvm/unittests/MIR -I/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/include -I/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/llvm/include -I/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/third-party/unittest/googletest/include -I/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/third-party/unittest/googlemock/include -nostdinc++ -isystem /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/libcxx_install_asan/include -isystem /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/libcxx_install_asan/include/c++/v1 -fsanitize=address -Wl,--rpath=/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/libcxx_install_asan/lib -L/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/libcxx_install_asan/lib -w -stdlib=libc++ -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fno-omit-frame-pointer -gline-tables-only -fsanitize=address -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=c++17  -Wno-variadic-macros -Wno-gnu-zero-variadic-macro-arguments -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -Wno-suggest-override -MD -MT unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o -MF unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o.d -o unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o -c /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp
/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:35:17: error: unknown type name 'LLVMTargetMachine'; did you mean 'TargetMachine'?
   35 | std::unique_ptr<LLVMTargetMachine>
      |                 ^~~~~~~~~~~~~~~~~
      |                 TargetMachine
/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/llvm/include/llvm/Target/TargetMachine.h:77:7: note: 'TargetMachine' declared here
   77 | class TargetMachine {
      |       ^
/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:42:26: error: unknown type name 'LLVMTargetMachine'; did you mean 'TargetMachine'?
   42 |   return std::unique_ptr<LLVMTargetMachine>(
      |                          ^~~~~~~~~~~~~~~~~
      |                          TargetMachine
/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/llvm/include/llvm/Target/TargetMachine.h:77:7: note: 'TargetMachine' declared here
   77 | class TargetMachine {
      |       ^
/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:43:19: error: unknown type name 'LLVMTargetMachine'; did you mean 'TargetMachine'?
   43 |       static_cast<LLVMTargetMachine *>(T->createTargetMachine(
      |                   ^~~~~~~~~~~~~~~~~
      |                   TargetMachine
/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/llvm/include/llvm/Target/TargetMachine.h:77:7: note: 'TargetMachine' declared here
   77 | class TargetMachine {
      |       ^
3 errors generated.
[876/1322] Building CXX object unittests/MC/SystemZ/CMakeFiles/SystemZAsmLexerTests.dir/SystemZAsmLexerTest.cpp.o
[877/1322] Building CXX object unittests/IR/CMakeFiles/IRTests.dir/DroppedVariableStatsIRTest.cpp.o
[878/1322] Building CXX object unittests/Remarks/CMakeFiles/RemarksTests.dir/BitstreamRemarksSerializerTest.cpp.o
[879/1322] Building CXX object unittests/ProfileData/CMakeFiles/ProfileDataTests.dir/SymbolRemappingReaderTest.cpp.o
[880/1322] Building CXX object unittests/ObjectYAML/CMakeFiles/ObjectYAMLTests.dir/DXContainerYAMLTest.cpp.o
[881/1322] Building CXX object unittests/IR/CMakeFiles/IRTests.dir/DebugInfoTest.cpp.o
[882/1322] Building CXX object unittests/Remarks/CMakeFiles/RemarksTests.dir/RemarksStrTabParsingTest.cpp.o
[883/1322] Building CXX object unittests/ProfileData/CMakeFiles/ProfileDataTests.dir/ItaniumManglingCanonicalizerTest.cpp.o
[884/1322] Building CXX object unittests/ProfileData/CMakeFiles/ProfileDataTests.dir/InstrProfDataTest.cpp.o
[885/1322] Building CXX object unittests/IR/CMakeFiles/IRTests.dir/IRBuilderTest.cpp.o
[886/1322] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/ArrayRecyclerTest.cpp.o
[887/1322] Building CXX object unittests/Remarks/CMakeFiles/RemarksTests.dir/RemarksLinkingTest.cpp.o
[888/1322] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/AllocatorTest.cpp.o
[889/1322] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/BLAKE3Test.cpp.o
[890/1322] Building CXX object unittests/Object/CMakeFiles/ObjectTests.dir/ELFTest.cpp.o
Step 13 (stage3/asan check) failure: stage3/asan check (failure)
...
[832/1187] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/FSUniqueIDTest.cpp.o
[833/1187] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/ExponentialBackoffTest.cpp.o
[834/1187] Building CXX object unittests/Object/CMakeFiles/ObjectTests.dir/XCOFFObjectFileTest.cpp.o
[835/1187] Building CXX object unittests/ObjectYAML/CMakeFiles/ObjectYAMLTests.dir/ELFYAMLTest.cpp.o
[836/1187] Building CXX object unittests/IR/CMakeFiles/IRTests.dir/VPIntrinsicTest.cpp.o
[837/1187] Building CXX object unittests/IR/CMakeFiles/IRTests.dir/InstructionsTest.cpp.o
[838/1187] Building CXX object unittests/SandboxIR/CMakeFiles/SandboxIRTests.dir/IntrinsicInstTest.cpp.o
[839/1187] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/InstructionCostTest.cpp.o
[840/1187] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/FileOutputBufferTest.cpp.o
[841/1187] Building CXX object unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o
FAILED: unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o 
/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/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/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build2_asan/unittests/MIR -I/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/llvm/unittests/MIR -I/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build2_asan/include -I/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/llvm/include -I/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/third-party/unittest/googletest/include -I/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/third-party/unittest/googlemock/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=c++17  -Wno-variadic-macros -Wno-gnu-zero-variadic-macro-arguments -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -Wno-suggest-override -MD -MT unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o -MF unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o.d -o unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o -c /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp
/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:35:17: error: unknown type name 'LLVMTargetMachine'; did you mean 'TargetMachine'?
   35 | std::unique_ptr<LLVMTargetMachine>
      |                 ^~~~~~~~~~~~~~~~~
      |                 TargetMachine
/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/llvm/include/llvm/Target/TargetMachine.h:77:7: note: 'TargetMachine' declared here
   77 | class TargetMachine {
      |       ^
/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:42:26: error: unknown type name 'LLVMTargetMachine'; did you mean 'TargetMachine'?
   42 |   return std::unique_ptr<LLVMTargetMachine>(
      |                          ^~~~~~~~~~~~~~~~~
      |                          TargetMachine
/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/llvm/include/llvm/Target/TargetMachine.h:77:7: note: 'TargetMachine' declared here
   77 | class TargetMachine {
      |       ^
/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:43:19: error: unknown type name 'LLVMTargetMachine'; did you mean 'TargetMachine'?
   43 |       static_cast<LLVMTargetMachine *>(T->createTargetMachine(
      |                   ^~~~~~~~~~~~~~~~~
      |                   TargetMachine
/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/llvm/include/llvm/Target/TargetMachine.h:77:7: note: 'TargetMachine' declared here
   77 | class TargetMachine {
      |       ^
3 errors generated.
[842/1187] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/GenericDomTreeTest.cpp.o
[843/1187] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/ConvertUTFTest.cpp.o
[844/1187] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/IndexedAccessorTest.cpp.o
[845/1187] Building CXX object unittests/ProfileData/CMakeFiles/ProfileDataTests.dir/PGOCtxProfReaderWriterTest.cpp.o
[846/1187] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/ManagedStatic.cpp.o
[847/1187] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/MD5Test.cpp.o
[848/1187] Building CXX object unittests/Object/CMakeFiles/ObjectTests.dir/MinidumpTest.cpp.o
[849/1187] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/ModRefTest.cpp.o
[850/1187] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/BalancedPartitioningTest.cpp.o
[851/1187] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/MemoryBufferRefTest.cpp.o
[852/1187] Building CXX object unittests/SandboxIR/CMakeFiles/SandboxIRTests.dir/TypesTest.cpp.o
[853/1187] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/OptimizedStructLayoutTest.cpp.o
[854/1187] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/LineIteratorTest.cpp.o
[855/1187] Building CXX object unittests/SandboxIR/CMakeFiles/SandboxIRTests.dir/OperatorTest.cpp.o
[856/1187] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/NativeFormatTests.cpp.o

@llvm-ci
Copy link
Collaborator

llvm-ci commented Nov 19, 2024

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

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

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)
...
[871/1322] Building CXX object unittests/ObjectYAML/CMakeFiles/ObjectYAMLTests.dir/YAML2ObjTest.cpp.o
[872/1322] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/ArrayRecyclerTest.cpp.o
[873/1322] Building CXX object unittests/Object/CMakeFiles/ObjectTests.dir/ArchiveTest.cpp.o
[874/1322] Building CXX object unittests/ProfileData/CMakeFiles/ProfileDataTests.dir/BPFunctionNodeTest.cpp.o
[875/1322] Building CXX object unittests/IR/CMakeFiles/IRTests.dir/IRBuilderTest.cpp.o
[876/1322] Building CXX object tools/clang/unittests/Format/CMakeFiles/FormatTests.dir/TokenAnnotatorTest.cpp.o
[877/1322] Building CXX object unittests/Object/CMakeFiles/ObjectTests.dir/GOFFObjectFileTest.cpp.o
[878/1322] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/AlignOfTest.cpp.o
[879/1322] Building CXX object unittests/SandboxIR/CMakeFiles/SandboxIRTests.dir/IntrinsicInstTest.cpp.o
[880/1322] Building CXX object unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o
FAILED: unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes /usr/bin/ccache /home/b/sanitizer-x86_64-linux-bootstrap-ubsan/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/b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm_build_ubsan/unittests/MIR -I/home/b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm-project/llvm/unittests/MIR -I/home/b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm_build_ubsan/include -I/home/b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm-project/llvm/include -I/home/b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm-project/third-party/unittest/googletest/include -I/home/b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm-project/third-party/unittest/googlemock/include -nostdinc++ -isystem /home/b/sanitizer-x86_64-linux-bootstrap-ubsan/build/libcxx_install_ubsan/include -isystem /home/b/sanitizer-x86_64-linux-bootstrap-ubsan/build/libcxx_install_ubsan/include/c++/v1 -fsanitize=undefined -Wl,--rpath=/home/b/sanitizer-x86_64-linux-bootstrap-ubsan/build/libcxx_install_ubsan/lib -L/home/b/sanitizer-x86_64-linux-bootstrap-ubsan/build/libcxx_install_ubsan/lib -w -stdlib=libc++ -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fno-omit-frame-pointer -gline-tables-only -fsanitize=undefined -fno-sanitize=vptr,function -fno-sanitize-recover=all -fsanitize-blacklist=/home/b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm-project/llvm/utils/sanitizers/ubsan_ignorelist.txt -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=c++17  -Wno-variadic-macros -Wno-gnu-zero-variadic-macro-arguments -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -Wno-suggest-override -MD -MT unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o -MF unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o.d -o unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o -c /home/b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp
/home/b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:35:17: error: unknown type name 'LLVMTargetMachine'; did you mean 'TargetMachine'?
   35 | std::unique_ptr<LLVMTargetMachine>
      |                 ^~~~~~~~~~~~~~~~~
      |                 TargetMachine
/home/b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm-project/llvm/include/llvm/Target/TargetMachine.h:77:7: note: 'TargetMachine' declared here
   77 | class TargetMachine {
      |       ^
/home/b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:42:26: error: unknown type name 'LLVMTargetMachine'; did you mean 'TargetMachine'?
   42 |   return std::unique_ptr<LLVMTargetMachine>(
      |                          ^~~~~~~~~~~~~~~~~
      |                          TargetMachine
/home/b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm-project/llvm/include/llvm/Target/TargetMachine.h:77:7: note: 'TargetMachine' declared here
   77 | class TargetMachine {
      |       ^
/home/b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:43:19: error: unknown type name 'LLVMTargetMachine'; did you mean 'TargetMachine'?
   43 |       static_cast<LLVMTargetMachine *>(T->createTargetMachine(
      |                   ^~~~~~~~~~~~~~~~~
      |                   TargetMachine
/home/b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm-project/llvm/include/llvm/Target/TargetMachine.h:77:7: note: 'TargetMachine' declared here
   77 | class TargetMachine {
      |       ^
3 errors generated.
[881/1322] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/ConvertEBCDICTest.cpp.o
[882/1322] Building CXX object unittests/Remarks/CMakeFiles/RemarksTests.dir/BitstreamRemarksParsingTest.cpp.o
[883/1322] Building CXX object unittests/IR/CMakeFiles/IRTests.dir/VPIntrinsicTest.cpp.o
[884/1322] Building CXX object unittests/ProfileData/CMakeFiles/ProfileDataTests.dir/ItaniumManglingCanonicalizerTest.cpp.o
[885/1322] Building CXX object unittests/Remarks/CMakeFiles/RemarksTests.dir/BitstreamRemarksSerializerTest.cpp.o
[886/1322] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/AllocatorTest.cpp.o
[887/1322] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/BlockFrequencyTest.cpp.o
[888/1322] Building CXX object unittests/Object/CMakeFiles/ObjectTests.dir/ELFTypesTest.cpp.o
[889/1322] Building CXX object unittests/DebugInfo/DWARF/CMakeFiles/DebugInfoDWARFTests.dir/DWARFDebugLineTest.cpp.o
[890/1322] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/CheckedArithmeticTest.cpp.o
[891/1322] Building CXX object unittests/DebugInfo/DWARF/CMakeFiles/DebugInfoDWARFTests.dir/DWARFDebugInfoTest.cpp.o
[892/1322] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/BranchProbabilityTest.cpp.o
[893/1322] Building CXX object tools/clang/unittests/Format/CMakeFiles/FormatTests.dir/FormatTest.cpp.o
[894/1322] Building CXX object unittests/IR/CMakeFiles/IRTests.dir/DebugInfoTest.cpp.o
[895/1322] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/AlignmentTest.cpp.o
Step 10 (stage2/ubsan check) failure: stage2/ubsan check (failure)
...
[871/1322] Building CXX object unittests/ObjectYAML/CMakeFiles/ObjectYAMLTests.dir/YAML2ObjTest.cpp.o
[872/1322] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/ArrayRecyclerTest.cpp.o
[873/1322] Building CXX object unittests/Object/CMakeFiles/ObjectTests.dir/ArchiveTest.cpp.o
[874/1322] Building CXX object unittests/ProfileData/CMakeFiles/ProfileDataTests.dir/BPFunctionNodeTest.cpp.o
[875/1322] Building CXX object unittests/IR/CMakeFiles/IRTests.dir/IRBuilderTest.cpp.o
[876/1322] Building CXX object tools/clang/unittests/Format/CMakeFiles/FormatTests.dir/TokenAnnotatorTest.cpp.o
[877/1322] Building CXX object unittests/Object/CMakeFiles/ObjectTests.dir/GOFFObjectFileTest.cpp.o
[878/1322] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/AlignOfTest.cpp.o
[879/1322] Building CXX object unittests/SandboxIR/CMakeFiles/SandboxIRTests.dir/IntrinsicInstTest.cpp.o
[880/1322] Building CXX object unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o
FAILED: unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes /usr/bin/ccache /home/b/sanitizer-x86_64-linux-bootstrap-ubsan/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/b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm_build_ubsan/unittests/MIR -I/home/b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm-project/llvm/unittests/MIR -I/home/b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm_build_ubsan/include -I/home/b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm-project/llvm/include -I/home/b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm-project/third-party/unittest/googletest/include -I/home/b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm-project/third-party/unittest/googlemock/include -nostdinc++ -isystem /home/b/sanitizer-x86_64-linux-bootstrap-ubsan/build/libcxx_install_ubsan/include -isystem /home/b/sanitizer-x86_64-linux-bootstrap-ubsan/build/libcxx_install_ubsan/include/c++/v1 -fsanitize=undefined -Wl,--rpath=/home/b/sanitizer-x86_64-linux-bootstrap-ubsan/build/libcxx_install_ubsan/lib -L/home/b/sanitizer-x86_64-linux-bootstrap-ubsan/build/libcxx_install_ubsan/lib -w -stdlib=libc++ -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fno-omit-frame-pointer -gline-tables-only -fsanitize=undefined -fno-sanitize=vptr,function -fno-sanitize-recover=all -fsanitize-blacklist=/home/b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm-project/llvm/utils/sanitizers/ubsan_ignorelist.txt -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=c++17  -Wno-variadic-macros -Wno-gnu-zero-variadic-macro-arguments -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -Wno-suggest-override -MD -MT unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o -MF unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o.d -o unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o -c /home/b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp
/home/b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:35:17: error: unknown type name 'LLVMTargetMachine'; did you mean 'TargetMachine'?
   35 | std::unique_ptr<LLVMTargetMachine>
      |                 ^~~~~~~~~~~~~~~~~
      |                 TargetMachine
/home/b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm-project/llvm/include/llvm/Target/TargetMachine.h:77:7: note: 'TargetMachine' declared here
   77 | class TargetMachine {
      |       ^
/home/b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:42:26: error: unknown type name 'LLVMTargetMachine'; did you mean 'TargetMachine'?
   42 |   return std::unique_ptr<LLVMTargetMachine>(
      |                          ^~~~~~~~~~~~~~~~~
      |                          TargetMachine
/home/b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm-project/llvm/include/llvm/Target/TargetMachine.h:77:7: note: 'TargetMachine' declared here
   77 | class TargetMachine {
      |       ^
/home/b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:43:19: error: unknown type name 'LLVMTargetMachine'; did you mean 'TargetMachine'?
   43 |       static_cast<LLVMTargetMachine *>(T->createTargetMachine(
      |                   ^~~~~~~~~~~~~~~~~
      |                   TargetMachine
/home/b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm-project/llvm/include/llvm/Target/TargetMachine.h:77:7: note: 'TargetMachine' declared here
   77 | class TargetMachine {
      |       ^
3 errors generated.
[881/1322] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/ConvertEBCDICTest.cpp.o
[882/1322] Building CXX object unittests/Remarks/CMakeFiles/RemarksTests.dir/BitstreamRemarksParsingTest.cpp.o
[883/1322] Building CXX object unittests/IR/CMakeFiles/IRTests.dir/VPIntrinsicTest.cpp.o
[884/1322] Building CXX object unittests/ProfileData/CMakeFiles/ProfileDataTests.dir/ItaniumManglingCanonicalizerTest.cpp.o
[885/1322] Building CXX object unittests/Remarks/CMakeFiles/RemarksTests.dir/BitstreamRemarksSerializerTest.cpp.o
[886/1322] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/AllocatorTest.cpp.o
[887/1322] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/BlockFrequencyTest.cpp.o
[888/1322] Building CXX object unittests/Object/CMakeFiles/ObjectTests.dir/ELFTypesTest.cpp.o
[889/1322] Building CXX object unittests/DebugInfo/DWARF/CMakeFiles/DebugInfoDWARFTests.dir/DWARFDebugLineTest.cpp.o
[890/1322] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/CheckedArithmeticTest.cpp.o
[891/1322] Building CXX object unittests/DebugInfo/DWARF/CMakeFiles/DebugInfoDWARFTests.dir/DWARFDebugInfoTest.cpp.o
[892/1322] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/BranchProbabilityTest.cpp.o
[893/1322] Building CXX object tools/clang/unittests/Format/CMakeFiles/FormatTests.dir/FormatTest.cpp.o
[894/1322] Building CXX object unittests/IR/CMakeFiles/IRTests.dir/DebugInfoTest.cpp.o
[895/1322] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/AlignmentTest.cpp.o
Step 13 (stage3/ubsan check) failure: stage3/ubsan check (failure)
...
[804/1187] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/DebugCounterTest.cpp.o
[805/1187] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/CheckedArithmeticTest.cpp.o
[806/1187] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/ErrnoTest.cpp.o
[807/1187] Building CXX object unittests/Object/CMakeFiles/ObjectTests.dir/GOFFObjectFileTest.cpp.o
[808/1187] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/DJBTest.cpp.o
[809/1187] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/CrashRecoveryTest.cpp.o
[810/1187] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/CachePruningTest.cpp.o
[811/1187] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/CSKYAttributeParserTest.cpp.o
[812/1187] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/DivisionByConstantTest.cpp.o
[813/1187] Building CXX object unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o
FAILED: unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o 
/home/b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm_build_ubsan/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/b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm_build2_ubsan/unittests/MIR -I/home/b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm-project/llvm/unittests/MIR -I/home/b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm_build2_ubsan/include -I/home/b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm-project/llvm/include -I/home/b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm-project/third-party/unittest/googletest/include -I/home/b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm-project/third-party/unittest/googlemock/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=c++17  -Wno-variadic-macros -Wno-gnu-zero-variadic-macro-arguments -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -Wno-suggest-override -MD -MT unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o -MF unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o.d -o unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o -c /home/b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp
/home/b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:35:17: error: unknown type name 'LLVMTargetMachine'; did you mean 'TargetMachine'?
   35 | std::unique_ptr<LLVMTargetMachine>
      |                 ^~~~~~~~~~~~~~~~~
      |                 TargetMachine
/home/b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm-project/llvm/include/llvm/Target/TargetMachine.h:77:7: note: 'TargetMachine' declared here
   77 | class TargetMachine {
      |       ^
/home/b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:42:26: error: unknown type name 'LLVMTargetMachine'; did you mean 'TargetMachine'?
   42 |   return std::unique_ptr<LLVMTargetMachine>(
      |                          ^~~~~~~~~~~~~~~~~
      |                          TargetMachine
/home/b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm-project/llvm/include/llvm/Target/TargetMachine.h:77:7: note: 'TargetMachine' declared here
   77 | class TargetMachine {
      |       ^
/home/b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:43:19: error: unknown type name 'LLVMTargetMachine'; did you mean 'TargetMachine'?
   43 |       static_cast<LLVMTargetMachine *>(T->createTargetMachine(
      |                   ^~~~~~~~~~~~~~~~~
      |                   TargetMachine
/home/b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm-project/llvm/include/llvm/Target/TargetMachine.h:77:7: note: 'TargetMachine' declared here
   77 | class TargetMachine {
      |       ^
3 errors generated.
[814/1187] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/ELFAttributeParserTest.cpp.o
[815/1187] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/ARMAttributeParser.cpp.o
[816/1187] Building CXX object unittests/ProfileData/CMakeFiles/ProfileDataTests.dir/BPFunctionNodeTest.cpp.o
[817/1187] Building CXX object unittests/Remarks/CMakeFiles/RemarksTests.dir/YAMLRemarksParsingTest.cpp.o
[818/1187] Building CXX object unittests/FileCheck/CMakeFiles/FileCheckTests.dir/FileCheckTest.cpp.o
[819/1187] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/EndianStreamTest.cpp.o
[820/1187] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/EndianTest.cpp.o
[821/1187] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/ExtensibleRTTITest.cpp.o
[822/1187] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/ErrorOrTest.cpp.o
[823/1187] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/AddressRangeTest.cpp.o
[824/1187] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/Base64Test.cpp.o
[825/1187] Building CXX object unittests/ObjectYAML/CMakeFiles/ObjectYAMLTests.dir/MinidumpYAMLTest.cpp.o
[826/1187] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/ExponentialBackoffTest.cpp.o
[827/1187] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/Casting.cpp.o
[828/1187] Building CXX object unittests/SandboxIR/CMakeFiles/SandboxIRTests.dir/IntrinsicInstTest.cpp.o

@llvm-ci
Copy link
Collaborator

llvm-ci commented Nov 19, 2024

LLVM Buildbot has detected a new failure on builder llvm-clang-x86_64-expensive-checks-debian running on gribozavr4 while building llvm at step 6 "test-build-unified-tree-check-all".

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

Here is the relevant piece of the build log for the reference
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
...
10.004 [17/70/658] Linking CXX executable unittests/Transforms/Coroutines/CoroTests
10.171 [17/69/659] Linking CXX executable unittests/tools/llvm-cfi-verify/CFIVerifyTests
10.395 [17/68/660] Linking CXX executable tools/lld/unittests/AsLibAll/LLDAsLibAllTests
10.454 [17/67/661] Linking CXX executable unittests/Transforms/Scalar/ScalarTests
10.821 [17/66/662] Linking CXX executable unittests/Transforms/Utils/UtilsTests
11.216 [17/65/663] Linking CXX executable unittests/tools/llvm-mca/LLVMMCATests
13.405 [17/64/664] Linking CXX executable unittests/Target/TargetMachineCTests
16.392 [17/63/665] Building CXX object unittests/CodeGen/CMakeFiles/CodeGenTests.dir/TypeTraitsTest.cpp.o
21.562 [17/62/666] Building CXX object unittests/MI/CMakeFiles/MITests.dir/LiveIntervalTest.cpp.o
21.579 [16/62/667] Building CXX object unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o
FAILED: unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes /usr/bin/ccache /usr/bin/clang++ -DEXPENSIVE_CHECKS -DGTEST_HAS_RTTI=0 -DLLVM_BUILD_STATIC -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GLIBCXX_DEBUG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/b/1/llvm-clang-x86_64-expensive-checks-debian/build/unittests/MIR -I/b/1/llvm-clang-x86_64-expensive-checks-debian/llvm-project/llvm/unittests/MIR -I/b/1/llvm-clang-x86_64-expensive-checks-debian/build/include -I/b/1/llvm-clang-x86_64-expensive-checks-debian/llvm-project/llvm/include -I/b/1/llvm-clang-x86_64-expensive-checks-debian/llvm-project/third-party/unittest/googletest/include -I/b/1/llvm-clang-x86_64-expensive-checks-debian/llvm-project/third-party/unittest/googlemock/include -U_GLIBCXX_DEBUG -fPIC -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG  -Wno-variadic-macros -Wno-gnu-zero-variadic-macro-arguments -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -Wno-suggest-override -std=c++17 -MD -MT unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o -MF unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o.d -o unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o -c /b/1/llvm-clang-x86_64-expensive-checks-debian/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp
/b/1/llvm-clang-x86_64-expensive-checks-debian/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:35:17: error: unknown type name 'LLVMTargetMachine'; did you mean 'TargetMachine'?
std::unique_ptr<LLVMTargetMachine>
                ^~~~~~~~~~~~~~~~~
                TargetMachine
/b/1/llvm-clang-x86_64-expensive-checks-debian/llvm-project/llvm/include/llvm/Target/TargetMachine.h:77:7: note: 'TargetMachine' declared here
class TargetMachine {
      ^
/b/1/llvm-clang-x86_64-expensive-checks-debian/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:42:26: error: unknown type name 'LLVMTargetMachine'; did you mean 'TargetMachine'?
  return std::unique_ptr<LLVMTargetMachine>(
                         ^~~~~~~~~~~~~~~~~
                         TargetMachine
/b/1/llvm-clang-x86_64-expensive-checks-debian/llvm-project/llvm/include/llvm/Target/TargetMachine.h:77:7: note: 'TargetMachine' declared here
class TargetMachine {
      ^
/b/1/llvm-clang-x86_64-expensive-checks-debian/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:43:19: error: unknown type name 'LLVMTargetMachine'; did you mean 'TargetMachine'?
      static_cast<LLVMTargetMachine *>(T->createTargetMachine(
                  ^~~~~~~~~~~~~~~~~
                  TargetMachine
/b/1/llvm-clang-x86_64-expensive-checks-debian/llvm-project/llvm/include/llvm/Target/TargetMachine.h:77:7: note: 'TargetMachine' declared here
class TargetMachine {
      ^
3 errors generated.
21.735 [16/61/668] Building CXX object unittests/CodeGen/GlobalISel/CMakeFiles/GlobalISelTests.dir/GISelMITest.cpp.o
21.762 [16/60/669] Building CXX object unittests/DebugInfo/DWARF/CMakeFiles/DebugInfoDWARFTests.dir/DwarfGenerator.cpp.o
22.451 [16/59/670] Building CXX object unittests/CodeGen/CMakeFiles/CodeGenTests.dir/RegAllocScoreTest.cpp.o
22.700 [16/58/671] Building CXX object unittests/IR/CMakeFiles/IRTests.dir/DroppedVariableStatsIRTest.cpp.o
23.126 [16/57/672] Building CXX object unittests/CodeGen/GlobalISel/CMakeFiles/GlobalISelTests.dir/GISelAliasTest.cpp.o
23.136 [16/56/673] Building CXX object unittests/CodeGen/GlobalISel/CMakeFiles/GlobalISelTests.dir/ConstantFoldingTest.cpp.o
23.150 [16/55/674] Building CXX object unittests/CodeGen/CMakeFiles/CodeGenTests.dir/CCStateTest.cpp.o
23.158 [16/54/675] Building CXX object unittests/CodeGen/GlobalISel/CMakeFiles/GlobalISelTests.dir/InstructionSelectTest.cpp.o
23.446 [16/53/676] Building CXX object unittests/CodeGen/CMakeFiles/CodeGenTests.dir/SchedBoundary.cpp.o
23.476 [16/52/677] Building CXX object unittests/CodeGen/CMakeFiles/CodeGenTests.dir/MachineOperandTest.cpp.o
23.522 [16/51/678] Building CXX object unittests/CodeGen/GlobalISel/CMakeFiles/GlobalISelTests.dir/MachineIRBuilderTest.cpp.o
23.641 [16/50/679] Building CXX object unittests/CodeGen/GlobalISel/CMakeFiles/GlobalISelTests.dir/LegalizerInfoTest.cpp.o
23.729 [16/49/680] Building CXX object unittests/CodeGen/CMakeFiles/CodeGenTests.dir/MachineBasicBlockTest.cpp.o
23.804 [16/48/681] Building CXX object unittests/CodeGen/GlobalISel/CMakeFiles/GlobalISelTests.dir/LegalizerTest.cpp.o
24.147 [16/47/682] Building CXX object unittests/Target/AArch64/CMakeFiles/AArch64Tests.dir/DecomposeStackOffsetTest.cpp.o

@llvm-ci
Copy link
Collaborator

llvm-ci commented Nov 19, 2024

LLVM Buildbot has detected a new failure on builder clang-x86_64-debian-fast running on gribozavr4 while building llvm at step 6 "test-build-unified-tree-check-all".

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

Here is the relevant piece of the build log for the reference
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
...
In file included from /b/1/clang-x86_64-debian-fast/llvm.src/llvm/include/llvm/Target/TargetMachine.h:19:
/b/1/clang-x86_64-debian-fast/llvm.src/llvm/include/llvm/MC/MCStreamer.h:614:14: warning: parameter 'Sym' not found in the function declaration [-Wdocumentation]
  /// \param Sym - The symbol on the .ref directive.
             ^~~
/b/1/clang-x86_64-debian-fast/llvm.src/llvm/include/llvm/MC/MCStreamer.h:614:14: note: did you mean 'Symbol'?
  /// \param Sym - The symbol on the .ref directive.
             ^~~
             Symbol
2 warnings generated.
13.328 [17/63/1118] Building CXX object unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o
FAILED: unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes /usr/bin/ccache /usr/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/b/1/clang-x86_64-debian-fast/llvm.obj/unittests/MIR -I/b/1/clang-x86_64-debian-fast/llvm.src/llvm/unittests/MIR -I/b/1/clang-x86_64-debian-fast/llvm.obj/include -I/b/1/clang-x86_64-debian-fast/llvm.src/llvm/include -I/b/1/clang-x86_64-debian-fast/llvm.src/third-party/unittest/googletest/include -I/b/1/clang-x86_64-debian-fast/llvm.src/third-party/unittest/googlemock/include -std=c++11 -Wdocumentation -Wno-documentation-deprecated-sync -fPIC -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG  -Wno-variadic-macros -Wno-gnu-zero-variadic-macro-arguments -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -Wno-suggest-override -std=c++17 -MD -MT unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o -MF unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o.d -o unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o -c /b/1/clang-x86_64-debian-fast/llvm.src/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp
In file included from /b/1/clang-x86_64-debian-fast/llvm.src/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:16:
/b/1/clang-x86_64-debian-fast/llvm.src/llvm/include/llvm/MC/TargetRegistry.h:85:12: warning: parameter 'ShowInst' not found in the function declaration [-Wdocumentation]
/// \param ShowInst - Whether to show the MCInst representation inline with
           ^~~~~~~~
In file included from /b/1/clang-x86_64-debian-fast/llvm.src/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:18:
In file included from /b/1/clang-x86_64-debian-fast/llvm.src/llvm/include/llvm/Passes/StandardInstrumentations.h:31:
In file included from /b/1/clang-x86_64-debian-fast/llvm.src/llvm/include/llvm/Transforms/IPO/SampleProfileProbe.h:21:
In file included from /b/1/clang-x86_64-debian-fast/llvm.src/llvm/include/llvm/ProfileData/SampleProf.h:28:
/b/1/clang-x86_64-debian-fast/llvm.src/llvm/include/llvm/ProfileData/HashKeyMap.h:43:6: warning: '\param' command used in a comment that is not attached to a function declaration [-Wdocumentation]
/// \param MapT The underlying associative container type.
     ^~~~~
/b/1/clang-x86_64-debian-fast/llvm.src/llvm/include/llvm/ProfileData/HashKeyMap.h:44:6: warning: '\param' command used in a comment that is not attached to a function declaration [-Wdocumentation]
/// \param KeyT The original key type, which requires the implementation of
     ^~~~~
/b/1/clang-x86_64-debian-fast/llvm.src/llvm/include/llvm/ProfileData/HashKeyMap.h:46:6: warning: '\param' command used in a comment that is not attached to a function declaration [-Wdocumentation]
/// \param ValueT The original mapped type, which has the same requirement as
     ^~~~~
/b/1/clang-x86_64-debian-fast/llvm.src/llvm/include/llvm/ProfileData/HashKeyMap.h:48:6: warning: '\param' command used in a comment that is not attached to a function declaration [-Wdocumentation]
/// \param MapTArgs Additional template parameters passed to the underlying
     ^~~~~
In file included from /b/1/clang-x86_64-debian-fast/llvm.src/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:20:
In file included from /b/1/clang-x86_64-debian-fast/llvm.src/llvm/include/llvm/Target/TargetMachine.h:19:
In file included from /b/1/clang-x86_64-debian-fast/llvm.src/llvm/include/llvm/MC/MCStreamer.h:30:
/b/1/clang-x86_64-debian-fast/llvm.src/llvm/include/llvm/TargetParser/ARMTargetParser.h:267:12: warning: parameter 'Arch' not found in the function declaration [-Wdocumentation]
/// \param Arch the architecture name (e.g., "armv7s"). If it is an empty
           ^~~~
/b/1/clang-x86_64-debian-fast/llvm.src/llvm/include/llvm/TargetParser/ARMTargetParser.h:267:12: note: did you mean 'MArch'?
/// \param Arch the architecture name (e.g., "armv7s"). If it is an empty
           ^~~~
           MArch
In file included from /b/1/clang-x86_64-debian-fast/llvm.src/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:20:
In file included from /b/1/clang-x86_64-debian-fast/llvm.src/llvm/include/llvm/Target/TargetMachine.h:19:
/b/1/clang-x86_64-debian-fast/llvm.src/llvm/include/llvm/MC/MCStreamer.h:614:14: warning: parameter 'Sym' not found in the function declaration [-Wdocumentation]
  /// \param Sym - The symbol on the .ref directive.
             ^~~
/b/1/clang-x86_64-debian-fast/llvm.src/llvm/include/llvm/MC/MCStreamer.h:614:14: note: did you mean 'Symbol'?
  /// \param Sym - The symbol on the .ref directive.

@llvm-ci
Copy link
Collaborator

llvm-ci commented Nov 19, 2024

LLVM Buildbot has detected a new failure on builder llvm-x86_64-debian-dylib running on gribozavr4 while building llvm at step 7 "test-build-unified-tree-check-llvm".

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

Here is the relevant piece of the build log for the reference
Step 7 (test-build-unified-tree-check-llvm) failure: test (failure)
...
0.714 [17/70/630] Linking CXX executable unittests/tools/llvm-profdata/LLVMProfdataTests
0.727 [17/69/631] Linking CXX executable unittests/XRay/XRayTests
0.732 [17/68/632] Linking CXX executable unittests/tools/llvm-profgen/LLVMProfgenTests
0.732 [17/67/633] Linking CXX executable unittests/Transforms/Utils/UtilsTests
0.758 [17/66/634] Linking CXX executable unittests/tools/llvm-cfi-verify/CFIVerifyTests
0.861 [17/65/635] Linking CXX executable unittests/Support/SupportTests
2.519 [17/64/636] Linking CXX executable unittests/tools/llvm-mca/LLVMMCATests
7.172 [17/63/637] Building CXX object unittests/Target/X86/CMakeFiles/X86Tests.dir/MachineSizeOptsTest.cpp.o
7.316 [16/63/638] Linking CXX executable unittests/Target/X86/X86Tests
7.392 [16/62/639] Building CXX object unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o
FAILED: unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes /usr/bin/ccache /usr/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/b/1/llvm-x86_64-debian-dylib/build/unittests/MIR -I/b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/unittests/MIR -I/b/1/llvm-x86_64-debian-dylib/build/include -I/b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/include -I/b/1/llvm-x86_64-debian-dylib/llvm-project/third-party/unittest/googletest/include -I/b/1/llvm-x86_64-debian-dylib/llvm-project/third-party/unittest/googlemock/include -fPIC -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG  -Wno-variadic-macros -Wno-gnu-zero-variadic-macro-arguments -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -Wno-suggest-override -std=c++17 -MD -MT unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o -MF unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o.d -o unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o -c /b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp
/b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:35:17: error: unknown type name 'LLVMTargetMachine'; did you mean 'TargetMachine'?
std::unique_ptr<LLVMTargetMachine>
                ^~~~~~~~~~~~~~~~~
                TargetMachine
/b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/include/llvm/Target/TargetMachine.h:77:7: note: 'TargetMachine' declared here
class TargetMachine {
      ^
/b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:42:26: error: unknown type name 'LLVMTargetMachine'; did you mean 'TargetMachine'?
  return std::unique_ptr<LLVMTargetMachine>(
                         ^~~~~~~~~~~~~~~~~
                         TargetMachine
/b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/include/llvm/Target/TargetMachine.h:77:7: note: 'TargetMachine' declared here
class TargetMachine {
      ^
/b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:43:19: error: unknown type name 'LLVMTargetMachine'; did you mean 'TargetMachine'?
      static_cast<LLVMTargetMachine *>(T->createTargetMachine(
                  ^~~~~~~~~~~~~~~~~
                  TargetMachine
/b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/include/llvm/Target/TargetMachine.h:77:7: note: 'TargetMachine' declared here
class TargetMachine {
      ^
3 errors generated.
7.528 [16/61/640] Building CXX object unittests/Target/VE/CMakeFiles/VETests.dir/MachineInstrTest.cpp.o
7.729 [16/60/641] Building CXX object unittests/Target/LoongArch/CMakeFiles/LoongArchTests.dir/InstSizes.cpp.o
8.055 [16/59/642] Building CXX object unittests/Target/WebAssembly/CMakeFiles/WebAssemblyTests.dir/WebAssemblyExceptionInfoTest.cpp.o
8.171 [16/58/643] Building CXX object unittests/CodeGen/CMakeFiles/CodeGenTests.dir/MachineOperandTest.cpp.o
8.337 [16/57/644] Building CXX object unittests/Target/AArch64/CMakeFiles/AArch64Tests.dir/Immediates.cpp.o
8.348 [16/56/645] Building CXX object unittests/CodeGen/GlobalISel/CMakeFiles/GlobalISelTests.dir/GISelMITest.cpp.o
8.427 [16/55/646] Building CXX object unittests/CodeGen/GlobalISel/CMakeFiles/GlobalISelTests.dir/GISelUtilsTest.cpp.o
8.466 [16/54/647] Building CXX object unittests/MIR/CMakeFiles/MIRTests.dir/MachineMetadata.cpp.o
8.561 [16/53/648] Building CXX object unittests/CodeGen/GlobalISel/CMakeFiles/GlobalISelTests.dir/InstructionSelectTest.cpp.o
8.594 [16/52/649] Building CXX object unittests/CodeGen/GlobalISel/CMakeFiles/GlobalISelTests.dir/MachineIRBuilderTest.cpp.o
8.626 [16/51/650] Building CXX object unittests/CodeGen/CMakeFiles/CodeGenTests.dir/TypeTraitsTest.cpp.o
8.730 [16/50/651] Building CXX object unittests/Target/AArch64/CMakeFiles/AArch64Tests.dir/AArch64SVESchedPseudoTest.cpp.o
8.871 [16/49/652] Building CXX object unittests/CodeGen/GlobalISel/CMakeFiles/GlobalISelTests.dir/LegalizerInfoTest.cpp.o
8.924 [16/48/653] Building CXX object unittests/Target/ARM/CMakeFiles/ARMTests.dir/MachineInstrTest.cpp.o
8.991 [16/47/654] Building CXX object unittests/CodeGen/CMakeFiles/CodeGenTests.dir/CCStateTest.cpp.o

@@ -18,6 +18,7 @@
#ifndef LLVM_CODEGEN_MACHINEFUNCTIONPASS_H
#define LLVM_CODEGEN_MACHINEFUNCTIONPASS_H

#include "llvm/CodeGen/DroppedVariableStats.h"
Copy link
Contributor

Choose a reason for hiding this comment

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

This include is mindbogglingly expensive (2% on a single-backend build). Please change your design in a way that avoids pulling in the whole kitchen sink into MachineFunctionPass.h...

rastogishubham added a commit that referenced this pull request Dec 3, 2024
Moved the MIR Test to the unittests/CodeGen folder

This is patch is part of a stack of patches, and follows
#117042

I moved the MIR test to the unittests/CodeGen folder 

I am trying to reland #115566
rastogishubham added a commit to rastogishubham/llvm-project that referenced this pull request Dec 19, 2024
I am trying to reland llvm#115566

I also moved the DroppedVariableStats code to the Analysis lib
rastogishubham added a commit to rastogishubham/llvm-project that referenced this pull request Dec 19, 2024
I am trying to reland llvm#115566

I also moved the DroppedVariableStats code to the Analysis lib
rastogishubham added a commit that referenced this pull request Dec 19, 2024
Reland "Add a pass to collect dropped var stats for MIR" (#117044)

I am trying to reland #115566

I also moved the DroppedVariableStats code to the Analysis lib

This is part of a stack of patches with
#120502 being the first one in
the stack
github-actions bot pushed a commit to arm/arm-toolchain that referenced this pull request Jan 10, 2025
Reland "Add a pass to collect dropped var stats for MIR" (#117044)

I am trying to reland llvm/llvm-project#115566

I also moved the DroppedVariableStats code to the Analysis lib

This is part of a stack of patches with
llvm/llvm-project#120502 being the first one in
the stack
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.

7 participants