Skip to content

Conversation

@arsenm
Copy link
Contributor

@arsenm arsenm commented Nov 14, 2025

This fixes the -fveclib flag getting lost on its way to the backend.

Previously this was its own cl::opt with a random boolean. Move the
flag handling into CommandFlags with other backend ABI-ish options,
and have clang directly set it, rather than forcing it to go through
command line parsing.

Prior to de68181, codegen used TargetLibraryInfo to find the vector
function. Clang has special handling for TargetLibraryInfo, where it would
directly construct one with the vector library in the pass pipeline.
RuntimeLibcallsInfo currently is not used as an analysis in codegen, and
needs to know the vector library when constructed.

RuntimeLibraryAnalysis could follow the same trick that TargetLibraryInfo is
using in the future, but a lot more boilerplate changes are needed to thread
that analysis through codegen. Ideally this would come from an IR module flag,
and nothing would be in TargetOptions. For now, it's better for all of these
sorts of controls to be consistent.

Also add boilerplate to have a live instance when running
opt configured from CommandFlags / TargetOptions.
Really this belongs in an IR module flag.
This fixes the -fveclib flag getting lost on its way to the backend.

Previously this was its own cl::opt with a random boolean. Move the
flag handling into CommandFlags with other backend ABI-ish options,
and have clang directly set it, rather than forcing it to go through
command line parsing.

Prior to de68181, codegen used TargetLibraryInfo to find the vector
function. Clang has special handling for TargetLibraryInfo, where it would
directly construct one with the vector library in the pass pipeline.
RuntimeLibcallsInfo currently is not used as an analysis in codegen, and
needs to know the vector library when constructed.

RuntimeLibraryAnalysis could follow the same trick that TargetLibraryInfo is
using in the future, but a lot more boilerplate changes are needed to thread
that analysis through codegen. Ideally this would come from an IR module flag,
and nothing would be in TargetOptions. For now, it's better for all of these
sorts of controls to be consistent.
Copy link
Contributor Author

arsenm commented Nov 14, 2025

@arsenm arsenm marked this pull request as ready for review November 14, 2025 01:28
@llvmbot llvmbot added clang Clang issues not falling into any other category clang:codegen IR generation bugs: mangling, exceptions, etc. llvm:codegen llvm:ir llvm:analysis Includes value tracking, cost tables and constant folding labels Nov 14, 2025
@arsenm arsenm changed the title clang: Pass -vector-library flag when using -fveclib RuntimeLibcalls: Move VectorLibrary handling into TargetOptions Nov 14, 2025
@llvmbot
Copy link
Member

llvmbot commented Nov 14, 2025

@llvm/pr-subscribers-llvm-ir

Author: Matt Arsenault (arsenm)

Changes

clang: Pass -vector-library flag when using -fveclib

Really this belongs in an IR module flag.

RuntimeLibcalls: Move VectorLibrary handling into TargetOptions

This fixes the -fveclib flag getting lost on its way to the backend.

Previously this was its own cl::opt with a random boolean. Move the
flag handling into CommandFlags with other backend ABI-ish options,
and have clang directly set it, rather than forcing it to go through
command line parsing.

Prior to de68181, codegen used TargetLibraryInfo to find the vector
function. Clang has special handling for TargetLibraryInfo, where it would
directly construct one with the vector library in the pass pipeline.
RuntimeLibcallsInfo currently is not used as an analysis in codegen, and
needs to know the vector library when constructed.

RuntimeLibraryAnalysis could follow the same trick that TargetLibraryInfo is
using in the future, but a lot more boilerplate changes are needed to thread
that analysis through codegen. Ideally this would come from an IR module flag,
and nothing would be in TargetOptions. For now, it's better for all of these
sorts of controls to be consistent.


Full diff: https://github.com/llvm/llvm-project/pull/167996.diff

18 Files Affected:

  • (modified) clang/lib/CodeGen/BackendUtil.cpp (+31)
  • (modified) cross-project-tests/CMakeLists.txt (+7)
  • (added) cross-project-tests/veclib/lit.local.cfg (+2)
  • (added) cross-project-tests/veclib/veclib-sincos.c (+21)
  • (modified) llvm/include/llvm/Analysis/TargetLibraryInfo.h (+3-2)
  • (modified) llvm/include/llvm/CodeGen/CommandFlags.h (+2)
  • (modified) llvm/include/llvm/IR/RuntimeLibcalls.h (+3-1)
  • (modified) llvm/include/llvm/IR/SystemLibraries.h (-5)
  • (modified) llvm/include/llvm/Target/TargetOptions.h (+4)
  • (modified) llvm/lib/Analysis/TargetLibraryInfo.cpp (+9-6)
  • (modified) llvm/lib/CodeGen/CommandFlags.cpp (+24)
  • (modified) llvm/lib/CodeGen/TargetLoweringBase.cpp (+2-1)
  • (modified) llvm/lib/IR/CMakeLists.txt (-1)
  • (modified) llvm/lib/IR/RuntimeLibcalls.cpp (+3-2)
  • (removed) llvm/lib/IR/SystemLibraries.cpp (-34)
  • (modified) llvm/tools/llc/llc.cpp (+2-1)
  • (modified) llvm/tools/opt/optdriver.cpp (+5-3)
  • (modified) llvm/utils/gn/secondary/llvm/lib/IR/BUILD.gn (-1)
diff --git a/clang/lib/CodeGen/BackendUtil.cpp b/clang/lib/CodeGen/BackendUtil.cpp
index b967a26dd19d7..f1e20403ad668 100644
--- a/clang/lib/CodeGen/BackendUtil.cpp
+++ b/clang/lib/CodeGen/BackendUtil.cpp
@@ -481,6 +481,36 @@ static bool initTargetOptions(const CompilerInstance &CI,
   Options.JMCInstrument = CodeGenOpts.JMCInstrument;
   Options.XCOFFReadOnlyPointers = CodeGenOpts.XCOFFReadOnlyPointers;
 
+  switch (CodeGenOpts.getVecLib()) {
+  case llvm::driver::VectorLibrary::NoLibrary:
+    Options.VectorLibrary = llvm::VectorLibrary::NoLibrary;
+    break;
+  case llvm::driver::VectorLibrary::Accelerate:
+    Options.VectorLibrary = llvm::VectorLibrary::Accelerate;
+    break;
+  case llvm::driver::VectorLibrary::Darwin_libsystem_m:
+    Options.VectorLibrary = llvm::VectorLibrary::DarwinLibSystemM;
+    break;
+  case llvm::driver::VectorLibrary::LIBMVEC:
+    Options.VectorLibrary = llvm::VectorLibrary::LIBMVEC;
+    break;
+  case llvm::driver::VectorLibrary::MASSV:
+    Options.VectorLibrary = llvm::VectorLibrary::MASSV;
+    break;
+  case llvm::driver::VectorLibrary::SVML:
+    Options.VectorLibrary = llvm::VectorLibrary::SVML;
+    break;
+  case llvm::driver::VectorLibrary::SLEEF:
+    Options.VectorLibrary = llvm::VectorLibrary::SLEEFGNUABI;
+    break;
+  case llvm::driver::VectorLibrary::ArmPL:
+    Options.VectorLibrary = llvm::VectorLibrary::ArmPL;
+    break;
+  case llvm::driver::VectorLibrary::AMDLIBM:
+    Options.VectorLibrary = llvm::VectorLibrary::AMDLIBM;
+    break;
+  }
+
   switch (CodeGenOpts.getSwiftAsyncFramePointer()) {
   case CodeGenOptions::SwiftAsyncFramePointerKind::Auto:
     Options.SwiftAsyncFramePointer =
@@ -584,6 +614,7 @@ static void setCommandLineOpts(const CodeGenOptions &CodeGenOpts,
     BackendArgs.push_back("-limit-float-precision");
     BackendArgs.push_back(CodeGenOpts.LimitFloatPrecision.c_str());
   }
+
   // Check for the default "clang" invocation that won't set any cl::opt values.
   // Skip trying to parse the command line invocation to avoid the issues
   // described below.
diff --git a/cross-project-tests/CMakeLists.txt b/cross-project-tests/CMakeLists.txt
index 8e94579736537..3f932b8c7fd22 100644
--- a/cross-project-tests/CMakeLists.txt
+++ b/cross-project-tests/CMakeLists.txt
@@ -104,6 +104,13 @@ add_lit_testsuite(check-cross-dtlto "Running DTLTO cross-project tests"
   DEPENDS ${CROSS_PROJECT_TEST_DEPS}
   )
 
+# veclib tests.
+add_lit_testsuite(check-cross-veclib "Running veclib cross-project tests"
+  ${CMAKE_CURRENT_BINARY_DIR}/veclib
+  EXCLUDE_FROM_CHECK_ALL
+  DEPENDS ${CROSS_PROJECT_TEST_DEPS}
+  )
+
 # Add check-cross-project-* targets.
 add_lit_testsuites(CROSS_PROJECT ${CMAKE_CURRENT_SOURCE_DIR}
   DEPENDS ${CROSS_PROJECT_TEST_DEPS}
diff --git a/cross-project-tests/veclib/lit.local.cfg b/cross-project-tests/veclib/lit.local.cfg
new file mode 100644
index 0000000000000..530f4c01646ff
--- /dev/null
+++ b/cross-project-tests/veclib/lit.local.cfg
@@ -0,0 +1,2 @@
+if "clang" not in config.available_features:
+    config.unsupported = True
diff --git a/cross-project-tests/veclib/veclib-sincos.c b/cross-project-tests/veclib/veclib-sincos.c
new file mode 100644
index 0000000000000..657d0df199522
--- /dev/null
+++ b/cross-project-tests/veclib/veclib-sincos.c
@@ -0,0 +1,21 @@
+// REQUIRES: aarch64-registered-target
+// RUN: %clang -S -target aarch64-unknown-linux-gnu -O2 -fno-math-errno \
+// RUN:  -fveclib=ArmPL -o - %s | FileCheck -check-prefix=ARMPL %s
+// RUN: %clang -S -target aarch64-unknown-linux-gnu -O2 -fno-math-errno \
+// RUN:  -fveclib=SLEEF -o - %s | FileCheck -check-prefix=SLEEF %s
+
+typedef __SIZE_TYPE__ size_t;
+
+void sincos(double, double *, double *);
+
+// ARMPL: armpl_vsincosq_f64
+// ARMPL: armpl_vsincosq_f64
+
+// SLEEF: _ZGVnN2vl8l8_sincos
+// SLEEF: _ZGVnN2vl8l8_sincos
+void vectorize_sincos(double *restrict x, double *restrict s,
+                      double *restrict c, size_t n) {
+  for (size_t i = 0; i < n; ++i) {
+    sincos(x[i], &s[i], &c[i]);
+  }
+}
diff --git a/llvm/include/llvm/Analysis/TargetLibraryInfo.h b/llvm/include/llvm/Analysis/TargetLibraryInfo.h
index 78954431e81c3..3b6cc0d1944fd 100644
--- a/llvm/include/llvm/Analysis/TargetLibraryInfo.h
+++ b/llvm/include/llvm/Analysis/TargetLibraryInfo.h
@@ -14,6 +14,7 @@
 #include "llvm/IR/InstrTypes.h"
 #include "llvm/IR/Module.h"
 #include "llvm/IR/PassManager.h"
+#include "llvm/IR/SystemLibraries.h"
 #include "llvm/Pass.h"
 #include "llvm/Support/Compiler.h"
 #include "llvm/TargetParser/Triple.h"
@@ -23,7 +24,6 @@
 namespace llvm {
 
 template <typename T> class ArrayRef;
-enum class VectorLibrary;
 
 /// Provides info so a possible vectorization of a function can be
 /// computed. Function 'VectorFnName' is equivalent to 'ScalarFnName'
@@ -119,7 +119,8 @@ class TargetLibraryInfoImpl {
 
 public:
   TargetLibraryInfoImpl() = delete;
-  LLVM_ABI explicit TargetLibraryInfoImpl(const Triple &T);
+  LLVM_ABI explicit TargetLibraryInfoImpl(
+      const Triple &T, VectorLibrary VecLib = VectorLibrary::NoLibrary);
 
   // Provide value semantics.
   LLVM_ABI TargetLibraryInfoImpl(const TargetLibraryInfoImpl &TLI);
diff --git a/llvm/include/llvm/CodeGen/CommandFlags.h b/llvm/include/llvm/CodeGen/CommandFlags.h
index 59aacc75e055d..6a907b64542ae 100644
--- a/llvm/include/llvm/CodeGen/CommandFlags.h
+++ b/llvm/include/llvm/CodeGen/CommandFlags.h
@@ -125,6 +125,8 @@ LLVM_ABI llvm::EABI getEABIVersion();
 
 LLVM_ABI llvm::DebuggerKind getDebuggerTuningOpt();
 
+LLVM_ABI llvm::VectorLibrary getVectorLibrary();
+
 LLVM_ABI bool getEnableStackSizeSection();
 
 LLVM_ABI bool getEnableAddrsig();
diff --git a/llvm/include/llvm/IR/RuntimeLibcalls.h b/llvm/include/llvm/IR/RuntimeLibcalls.h
index 0afe32a4ecc3c..cf96547063cd0 100644
--- a/llvm/include/llvm/IR/RuntimeLibcalls.h
+++ b/llvm/include/llvm/IR/RuntimeLibcalls.h
@@ -23,6 +23,7 @@
 #include "llvm/IR/CallingConv.h"
 #include "llvm/IR/InstrTypes.h"
 #include "llvm/IR/PassManager.h"
+#include "llvm/IR/SystemLibraries.h"
 #include "llvm/Support/AtomicOrdering.h"
 #include "llvm/Support/CodeGen.h"
 #include "llvm/Support/Compiler.h"
@@ -83,7 +84,8 @@ struct RuntimeLibcallsInfo {
       const Triple &TT,
       ExceptionHandling ExceptionModel = ExceptionHandling::None,
       FloatABI::ABIType FloatABI = FloatABI::Default,
-      EABI EABIVersion = EABI::Default, StringRef ABIName = "");
+      EABI EABIVersion = EABI::Default, StringRef ABIName = "",
+      VectorLibrary VecLib = VectorLibrary::NoLibrary);
 
   explicit RuntimeLibcallsInfo(const Module &M);
 
diff --git a/llvm/include/llvm/IR/SystemLibraries.h b/llvm/include/llvm/IR/SystemLibraries.h
index 1713b07c1c86f..5bdf67642e0e4 100644
--- a/llvm/include/llvm/IR/SystemLibraries.h
+++ b/llvm/include/llvm/IR/SystemLibraries.h
@@ -29,11 +29,6 @@ enum class VectorLibrary {
   AMDLIBM           // AMD Math Vector library.
 };
 
-/// Command line flag value for the vector math library to use
-///
-/// FIXME: This should come from a module flag, and not be mutually exclusive
-extern VectorLibrary ClVectorLibrary;
-
 } // namespace llvm
 
 #endif // LLVM_IR_SYSTEMLIBRARIES_H
diff --git a/llvm/include/llvm/Target/TargetOptions.h b/llvm/include/llvm/Target/TargetOptions.h
index bfd2817b8d1f5..b9258c0fee692 100644
--- a/llvm/include/llvm/Target/TargetOptions.h
+++ b/llvm/include/llvm/Target/TargetOptions.h
@@ -15,6 +15,7 @@
 #define LLVM_TARGET_TARGETOPTIONS_H
 
 #include "llvm/ADT/FloatingPointMode.h"
+#include "llvm/IR/SystemLibraries.h"
 #include "llvm/MC/MCTargetOptions.h"
 #include "llvm/Support/CodeGen.h"
 #include "llvm/Support/Compiler.h"
@@ -409,6 +410,9 @@ class TargetOptions {
   /// Which debugger to tune for.
   DebuggerKind DebuggerTuning = DebuggerKind::Default;
 
+  /// Vector math library to use.
+  VectorLibrary VectorLibrary = VectorLibrary::NoLibrary;
+
 private:
   /// Flushing mode to assume in default FP environment.
   DenormalMode FPDenormalMode;
diff --git a/llvm/lib/Analysis/TargetLibraryInfo.cpp b/llvm/lib/Analysis/TargetLibraryInfo.cpp
index f97abc9a32707..26d0c108fb03a 100644
--- a/llvm/lib/Analysis/TargetLibraryInfo.cpp
+++ b/llvm/lib/Analysis/TargetLibraryInfo.cpp
@@ -160,7 +160,8 @@ static void initializeBase(TargetLibraryInfoImpl &TLI, const Triple &T) {
 /// target triple. This should be carefully written so that a missing target
 /// triple gets a sane set of defaults.
 static void initializeLibCalls(TargetLibraryInfoImpl &TLI, const Triple &T,
-                               ArrayRef<StringLiteral> StandardNames) {
+                               ArrayRef<StringLiteral> StandardNames,
+                               VectorLibrary VecLib) {
   // Set IO unlocked variants as unavailable
   // Set them as available per system below
   TLI.setUnavailable(LibFunc_getc_unlocked);
@@ -924,23 +925,25 @@ static void initializeLibCalls(TargetLibraryInfoImpl &TLI, const Triple &T,
   if (T.isOSAIX())
     TLI.setUnavailable(LibFunc_memrchr);
 
-  TLI.addVectorizableFunctionsFromVecLib(ClVectorLibrary, T);
+  TLI.addVectorizableFunctionsFromVecLib(VecLib, T);
 }
 
 /// Initialize the set of available library functions based on the specified
 /// target triple. This should be carefully written so that a missing target
 /// triple gets a sane set of defaults.
 static void initialize(TargetLibraryInfoImpl &TLI, const Triple &T,
-                       ArrayRef<StringLiteral> StandardNames) {
+                       ArrayRef<StringLiteral> StandardNames,
+                       VectorLibrary VecLib) {
   initializeBase(TLI, T);
-  initializeLibCalls(TLI, T, StandardNames);
+  initializeLibCalls(TLI, T, StandardNames, VecLib);
 }
 
-TargetLibraryInfoImpl::TargetLibraryInfoImpl(const Triple &T) {
+TargetLibraryInfoImpl::TargetLibraryInfoImpl(const Triple &T,
+                                             VectorLibrary VecLib) {
   // Default to everything being available.
   memset(AvailableArray, -1, sizeof(AvailableArray));
 
-  initialize(*this, T, StandardNames);
+  initialize(*this, T, StandardNames, VecLib);
 }
 
 TargetLibraryInfoImpl::TargetLibraryInfoImpl(const TargetLibraryInfoImpl &TLI)
diff --git a/llvm/lib/CodeGen/CommandFlags.cpp b/llvm/lib/CodeGen/CommandFlags.cpp
index cf225f1f03eac..02a6bb9357ad0 100644
--- a/llvm/lib/CodeGen/CommandFlags.cpp
+++ b/llvm/lib/CodeGen/CommandFlags.cpp
@@ -107,6 +107,7 @@ CGOPT(bool, UniqueBasicBlockSectionNames)
 CGOPT(bool, SeparateNamedSections)
 CGOPT(EABI, EABIVersion)
 CGOPT(DebuggerKind, DebuggerTuningOpt)
+CGOPT(VectorLibrary, VectorLibrary)
 CGOPT(bool, EnableStackSizeSection)
 CGOPT(bool, EnableAddrsig)
 CGOPT(bool, EnableCallGraphSection)
@@ -451,6 +452,28 @@ codegen::RegisterCodeGenFlags::RegisterCodeGenFlags() {
           clEnumValN(DebuggerKind::SCE, "sce", "SCE targets (e.g. PS4)")));
   CGBINDOPT(DebuggerTuningOpt);
 
+  static cl::opt<VectorLibrary> VectorLibrary(
+      "vector-library", cl::Hidden, cl::desc("Vector functions library"),
+      cl::init(VectorLibrary::NoLibrary),
+      cl::values(
+          clEnumValN(VectorLibrary::NoLibrary, "none",
+                     "No vector functions library"),
+          clEnumValN(VectorLibrary::Accelerate, "Accelerate",
+                     "Accelerate framework"),
+          clEnumValN(VectorLibrary::DarwinLibSystemM, "Darwin_libsystem_m",
+                     "Darwin libsystem_m"),
+          clEnumValN(VectorLibrary::LIBMVEC, "LIBMVEC",
+                     "GLIBC Vector Math library"),
+          clEnumValN(VectorLibrary::MASSV, "MASSV", "IBM MASS vector library"),
+          clEnumValN(VectorLibrary::SVML, "SVML", "Intel SVML library"),
+          clEnumValN(VectorLibrary::SLEEFGNUABI, "sleefgnuabi",
+                     "SIMD Library for Evaluating Elementary Functions"),
+          clEnumValN(VectorLibrary::ArmPL, "ArmPL",
+                     "Arm Performance Libraries"),
+          clEnumValN(VectorLibrary::AMDLIBM, "AMDLIBM",
+                     "AMD vector math library")));
+  CGBINDOPT(VectorLibrary);
+
   static cl::opt<bool> EnableStackSizeSection(
       "stack-size-section",
       cl::desc("Emit a section containing stack size metadata"),
@@ -609,6 +632,7 @@ codegen::InitTargetOptionsFromCodeGenFlags(const Triple &TheTriple) {
   Options.EnableTLSDESC =
       getExplicitEnableTLSDESC().value_or(TheTriple.hasDefaultTLSDESC());
   Options.ExceptionModel = getExceptionModel();
+  Options.VectorLibrary = getVectorLibrary();
   Options.EmitStackSizeSection = getEnableStackSizeSection();
   Options.EnableMachineFunctionSplitter = getEnableMachineFunctionSplitter();
   Options.EnableStaticDataPartitioning = getEnableStaticDataPartitioning();
diff --git a/llvm/lib/CodeGen/TargetLoweringBase.cpp b/llvm/lib/CodeGen/TargetLoweringBase.cpp
index 77d9b156e2672..0f1e37bbf1bfc 100644
--- a/llvm/lib/CodeGen/TargetLoweringBase.cpp
+++ b/llvm/lib/CodeGen/TargetLoweringBase.cpp
@@ -753,7 +753,8 @@ TargetLoweringBase::TargetLoweringBase(const TargetMachine &tm)
     : TM(tm),
       RuntimeLibcallInfo(TM.getTargetTriple(), TM.Options.ExceptionModel,
                          TM.Options.FloatABIType, TM.Options.EABIVersion,
-                         TM.Options.MCOptions.getABIName()),
+                         TM.Options.MCOptions.getABIName(),
+                         TM.Options.VectorLibrary),
       Libcalls(RuntimeLibcallInfo) {
   initActions();
 
diff --git a/llvm/lib/IR/CMakeLists.txt b/llvm/lib/IR/CMakeLists.txt
index ebdc2ca08d102..10572ff708bd3 100644
--- a/llvm/lib/IR/CMakeLists.txt
+++ b/llvm/lib/IR/CMakeLists.txt
@@ -67,7 +67,6 @@ add_llvm_component_library(LLVMCore
   ReplaceConstant.cpp
   Statepoint.cpp
   StructuralHash.cpp
-  SystemLibraries.cpp
   Type.cpp
   TypedPointerType.cpp
   TypeFinder.cpp
diff --git a/llvm/lib/IR/RuntimeLibcalls.cpp b/llvm/lib/IR/RuntimeLibcalls.cpp
index ee23b58742b64..12d050329a302 100644
--- a/llvm/lib/IR/RuntimeLibcalls.cpp
+++ b/llvm/lib/IR/RuntimeLibcalls.cpp
@@ -29,7 +29,8 @@ using namespace RTLIB;
 RuntimeLibcallsInfo::RuntimeLibcallsInfo(const Triple &TT,
                                          ExceptionHandling ExceptionModel,
                                          FloatABI::ABIType FloatABI,
-                                         EABI EABIVersion, StringRef ABIName) {
+                                         EABI EABIVersion, StringRef ABIName,
+                                         VectorLibrary VecLib) {
   // FIXME: The ExceptionModel parameter is to handle the field in
   // TargetOptions. This interface fails to distinguish the forced disable
   // case for targets which support exceptions by default. This should
@@ -40,7 +41,7 @@ RuntimeLibcallsInfo::RuntimeLibcallsInfo(const Triple &TT,
   initLibcalls(TT, ExceptionModel, FloatABI, EABIVersion, ABIName);
 
   // TODO: Tablegen should generate these sets
-  switch (ClVectorLibrary) {
+  switch (VecLib) {
   case VectorLibrary::SLEEFGNUABI:
     for (RTLIB::LibcallImpl Impl :
          {RTLIB::impl__ZGVnN2vl8_modf, RTLIB::impl__ZGVnN4vl4_modff,
diff --git a/llvm/lib/IR/SystemLibraries.cpp b/llvm/lib/IR/SystemLibraries.cpp
deleted file mode 100644
index fa4ac2adb7296..0000000000000
--- a/llvm/lib/IR/SystemLibraries.cpp
+++ /dev/null
@@ -1,34 +0,0 @@
-//===-----------------------------------------------------------------------==//
-//
-// 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
-//
-//===----------------------------------------------------------------------===//
-
-#include "llvm/IR/SystemLibraries.h"
-#include "llvm/Support/CommandLine.h"
-
-using namespace llvm;
-
-VectorLibrary llvm::ClVectorLibrary;
-
-static cl::opt<VectorLibrary, true> ClVectorLibraryOpt(
-    "vector-library", cl::Hidden, cl::desc("Vector functions library"),
-    cl::location(llvm::ClVectorLibrary), cl::init(VectorLibrary::NoLibrary),
-    cl::values(
-        clEnumValN(VectorLibrary::NoLibrary, "none",
-                   "No vector functions library"),
-        clEnumValN(VectorLibrary::Accelerate, "Accelerate",
-                   "Accelerate framework"),
-        clEnumValN(VectorLibrary::DarwinLibSystemM, "Darwin_libsystem_m",
-                   "Darwin libsystem_m"),
-        clEnumValN(VectorLibrary::LIBMVEC, "LIBMVEC",
-                   "GLIBC Vector Math library"),
-        clEnumValN(VectorLibrary::MASSV, "MASSV", "IBM MASS vector library"),
-        clEnumValN(VectorLibrary::SVML, "SVML", "Intel SVML library"),
-        clEnumValN(VectorLibrary::SLEEFGNUABI, "sleefgnuabi",
-                   "SIMD Library for Evaluating Elementary Functions"),
-        clEnumValN(VectorLibrary::ArmPL, "ArmPL", "Arm Performance Libraries"),
-        clEnumValN(VectorLibrary::AMDLIBM, "AMDLIBM",
-                   "AMD vector math library")));
diff --git a/llvm/tools/llc/llc.cpp b/llvm/tools/llc/llc.cpp
index 2147945d8a416..1cfedad15ec35 100644
--- a/llvm/tools/llc/llc.cpp
+++ b/llvm/tools/llc/llc.cpp
@@ -696,7 +696,8 @@ static int compileModule(char **argv, LLVMContext &Context,
   }
 
   // Add an appropriate TargetLibraryInfo pass for the module's triple.
-  TargetLibraryInfoImpl TLII(M->getTargetTriple());
+  TargetLibraryInfoImpl TLII(M->getTargetTriple(),
+                             Target->Options.VectorLibrary);
 
   // The -disable-simplify-libcalls flag actually disables all builtin optzns.
   if (DisableSimplifyLibCalls)
diff --git a/llvm/tools/opt/optdriver.cpp b/llvm/tools/opt/optdriver.cpp
index 4cf117f227c00..d24c8abef31d0 100644
--- a/llvm/tools/opt/optdriver.cpp
+++ b/llvm/tools/opt/optdriver.cpp
@@ -670,13 +670,15 @@ optMain(int argc, char **argv,
       M->addModuleFlag(Module::Error, "UnifiedLTO", 1);
   }
 
+  VectorLibrary VecLib = codegen::getVectorLibrary();
   // Add an appropriate TargetLibraryInfo pass for the module's triple.
-  TargetLibraryInfoImpl TLII(ModuleTriple);
+  TargetLibraryInfoImpl TLII(ModuleTriple, VecLib);
 
-  // FIXME: Get ABI name from MCOptions
   RTLIB::RuntimeLibcallsInfo RTLCI(ModuleTriple, codegen::getExceptionModel(),
                                    codegen::getFloatABIForCalls(),
-                                   codegen::getEABIVersion());
+                                   codegen::getEABIVersion(),
+                                   "", // FIXME: Get ABI name from MCOptions
+                                   VecLib);
 
   // The -disable-simplify-libcalls flag actually disables all builtin optzns.
   if (DisableSimplifyLibCalls)
diff --git a/llvm/utils/gn/secondary/llvm/lib/IR/BUILD.gn b/llvm/utils/gn/secondary/llvm/lib/IR/BUILD.gn
index 8037c8d693cb8..22aa0b6418132 100644
--- a/llvm/utils/gn/secondary/llvm/lib/IR/BUILD.gn
+++ b/llvm/utils/gn/secondary/llvm/lib/IR/BUILD.gn
@@ -82,7 +82,6 @@ static_library("IR") {
     "SafepointIRVerifier.cpp",
     "Statepoint.cpp",
     "StructuralHash.cpp",
-    "SystemLibraries.cpp",
     "Type.cpp",
     "TypeFinder.cpp",
     "TypedPointerType.cpp",

@llvmbot
Copy link
Member

llvmbot commented Nov 14, 2025

@llvm/pr-subscribers-llvm-analysis

Author: Matt Arsenault (arsenm)

Changes

clang: Pass -vector-library flag when using -fveclib

Really this belongs in an IR module flag.

RuntimeLibcalls: Move VectorLibrary handling into TargetOptions

This fixes the -fveclib flag getting lost on its way to the backend.

Previously this was its own cl::opt with a random boolean. Move the
flag handling into CommandFlags with other backend ABI-ish options,
and have clang directly set it, rather than forcing it to go through
command line parsing.

Prior to de68181, codegen used TargetLibraryInfo to find the vector
function. Clang has special handling for TargetLibraryInfo, where it would
directly construct one with the vector library in the pass pipeline.
RuntimeLibcallsInfo currently is not used as an analysis in codegen, and
needs to know the vector library when constructed.

RuntimeLibraryAnalysis could follow the same trick that TargetLibraryInfo is
using in the future, but a lot more boilerplate changes are needed to thread
that analysis through codegen. Ideally this would come from an IR module flag,
and nothing would be in TargetOptions. For now, it's better for all of these
sorts of controls to be consistent.


Full diff: https://github.com/llvm/llvm-project/pull/167996.diff

18 Files Affected:

  • (modified) clang/lib/CodeGen/BackendUtil.cpp (+31)
  • (modified) cross-project-tests/CMakeLists.txt (+7)
  • (added) cross-project-tests/veclib/lit.local.cfg (+2)
  • (added) cross-project-tests/veclib/veclib-sincos.c (+21)
  • (modified) llvm/include/llvm/Analysis/TargetLibraryInfo.h (+3-2)
  • (modified) llvm/include/llvm/CodeGen/CommandFlags.h (+2)
  • (modified) llvm/include/llvm/IR/RuntimeLibcalls.h (+3-1)
  • (modified) llvm/include/llvm/IR/SystemLibraries.h (-5)
  • (modified) llvm/include/llvm/Target/TargetOptions.h (+4)
  • (modified) llvm/lib/Analysis/TargetLibraryInfo.cpp (+9-6)
  • (modified) llvm/lib/CodeGen/CommandFlags.cpp (+24)
  • (modified) llvm/lib/CodeGen/TargetLoweringBase.cpp (+2-1)
  • (modified) llvm/lib/IR/CMakeLists.txt (-1)
  • (modified) llvm/lib/IR/RuntimeLibcalls.cpp (+3-2)
  • (removed) llvm/lib/IR/SystemLibraries.cpp (-34)
  • (modified) llvm/tools/llc/llc.cpp (+2-1)
  • (modified) llvm/tools/opt/optdriver.cpp (+5-3)
  • (modified) llvm/utils/gn/secondary/llvm/lib/IR/BUILD.gn (-1)
diff --git a/clang/lib/CodeGen/BackendUtil.cpp b/clang/lib/CodeGen/BackendUtil.cpp
index b967a26dd19d7..f1e20403ad668 100644
--- a/clang/lib/CodeGen/BackendUtil.cpp
+++ b/clang/lib/CodeGen/BackendUtil.cpp
@@ -481,6 +481,36 @@ static bool initTargetOptions(const CompilerInstance &CI,
   Options.JMCInstrument = CodeGenOpts.JMCInstrument;
   Options.XCOFFReadOnlyPointers = CodeGenOpts.XCOFFReadOnlyPointers;
 
+  switch (CodeGenOpts.getVecLib()) {
+  case llvm::driver::VectorLibrary::NoLibrary:
+    Options.VectorLibrary = llvm::VectorLibrary::NoLibrary;
+    break;
+  case llvm::driver::VectorLibrary::Accelerate:
+    Options.VectorLibrary = llvm::VectorLibrary::Accelerate;
+    break;
+  case llvm::driver::VectorLibrary::Darwin_libsystem_m:
+    Options.VectorLibrary = llvm::VectorLibrary::DarwinLibSystemM;
+    break;
+  case llvm::driver::VectorLibrary::LIBMVEC:
+    Options.VectorLibrary = llvm::VectorLibrary::LIBMVEC;
+    break;
+  case llvm::driver::VectorLibrary::MASSV:
+    Options.VectorLibrary = llvm::VectorLibrary::MASSV;
+    break;
+  case llvm::driver::VectorLibrary::SVML:
+    Options.VectorLibrary = llvm::VectorLibrary::SVML;
+    break;
+  case llvm::driver::VectorLibrary::SLEEF:
+    Options.VectorLibrary = llvm::VectorLibrary::SLEEFGNUABI;
+    break;
+  case llvm::driver::VectorLibrary::ArmPL:
+    Options.VectorLibrary = llvm::VectorLibrary::ArmPL;
+    break;
+  case llvm::driver::VectorLibrary::AMDLIBM:
+    Options.VectorLibrary = llvm::VectorLibrary::AMDLIBM;
+    break;
+  }
+
   switch (CodeGenOpts.getSwiftAsyncFramePointer()) {
   case CodeGenOptions::SwiftAsyncFramePointerKind::Auto:
     Options.SwiftAsyncFramePointer =
@@ -584,6 +614,7 @@ static void setCommandLineOpts(const CodeGenOptions &CodeGenOpts,
     BackendArgs.push_back("-limit-float-precision");
     BackendArgs.push_back(CodeGenOpts.LimitFloatPrecision.c_str());
   }
+
   // Check for the default "clang" invocation that won't set any cl::opt values.
   // Skip trying to parse the command line invocation to avoid the issues
   // described below.
diff --git a/cross-project-tests/CMakeLists.txt b/cross-project-tests/CMakeLists.txt
index 8e94579736537..3f932b8c7fd22 100644
--- a/cross-project-tests/CMakeLists.txt
+++ b/cross-project-tests/CMakeLists.txt
@@ -104,6 +104,13 @@ add_lit_testsuite(check-cross-dtlto "Running DTLTO cross-project tests"
   DEPENDS ${CROSS_PROJECT_TEST_DEPS}
   )
 
+# veclib tests.
+add_lit_testsuite(check-cross-veclib "Running veclib cross-project tests"
+  ${CMAKE_CURRENT_BINARY_DIR}/veclib
+  EXCLUDE_FROM_CHECK_ALL
+  DEPENDS ${CROSS_PROJECT_TEST_DEPS}
+  )
+
 # Add check-cross-project-* targets.
 add_lit_testsuites(CROSS_PROJECT ${CMAKE_CURRENT_SOURCE_DIR}
   DEPENDS ${CROSS_PROJECT_TEST_DEPS}
diff --git a/cross-project-tests/veclib/lit.local.cfg b/cross-project-tests/veclib/lit.local.cfg
new file mode 100644
index 0000000000000..530f4c01646ff
--- /dev/null
+++ b/cross-project-tests/veclib/lit.local.cfg
@@ -0,0 +1,2 @@
+if "clang" not in config.available_features:
+    config.unsupported = True
diff --git a/cross-project-tests/veclib/veclib-sincos.c b/cross-project-tests/veclib/veclib-sincos.c
new file mode 100644
index 0000000000000..657d0df199522
--- /dev/null
+++ b/cross-project-tests/veclib/veclib-sincos.c
@@ -0,0 +1,21 @@
+// REQUIRES: aarch64-registered-target
+// RUN: %clang -S -target aarch64-unknown-linux-gnu -O2 -fno-math-errno \
+// RUN:  -fveclib=ArmPL -o - %s | FileCheck -check-prefix=ARMPL %s
+// RUN: %clang -S -target aarch64-unknown-linux-gnu -O2 -fno-math-errno \
+// RUN:  -fveclib=SLEEF -o - %s | FileCheck -check-prefix=SLEEF %s
+
+typedef __SIZE_TYPE__ size_t;
+
+void sincos(double, double *, double *);
+
+// ARMPL: armpl_vsincosq_f64
+// ARMPL: armpl_vsincosq_f64
+
+// SLEEF: _ZGVnN2vl8l8_sincos
+// SLEEF: _ZGVnN2vl8l8_sincos
+void vectorize_sincos(double *restrict x, double *restrict s,
+                      double *restrict c, size_t n) {
+  for (size_t i = 0; i < n; ++i) {
+    sincos(x[i], &s[i], &c[i]);
+  }
+}
diff --git a/llvm/include/llvm/Analysis/TargetLibraryInfo.h b/llvm/include/llvm/Analysis/TargetLibraryInfo.h
index 78954431e81c3..3b6cc0d1944fd 100644
--- a/llvm/include/llvm/Analysis/TargetLibraryInfo.h
+++ b/llvm/include/llvm/Analysis/TargetLibraryInfo.h
@@ -14,6 +14,7 @@
 #include "llvm/IR/InstrTypes.h"
 #include "llvm/IR/Module.h"
 #include "llvm/IR/PassManager.h"
+#include "llvm/IR/SystemLibraries.h"
 #include "llvm/Pass.h"
 #include "llvm/Support/Compiler.h"
 #include "llvm/TargetParser/Triple.h"
@@ -23,7 +24,6 @@
 namespace llvm {
 
 template <typename T> class ArrayRef;
-enum class VectorLibrary;
 
 /// Provides info so a possible vectorization of a function can be
 /// computed. Function 'VectorFnName' is equivalent to 'ScalarFnName'
@@ -119,7 +119,8 @@ class TargetLibraryInfoImpl {
 
 public:
   TargetLibraryInfoImpl() = delete;
-  LLVM_ABI explicit TargetLibraryInfoImpl(const Triple &T);
+  LLVM_ABI explicit TargetLibraryInfoImpl(
+      const Triple &T, VectorLibrary VecLib = VectorLibrary::NoLibrary);
 
   // Provide value semantics.
   LLVM_ABI TargetLibraryInfoImpl(const TargetLibraryInfoImpl &TLI);
diff --git a/llvm/include/llvm/CodeGen/CommandFlags.h b/llvm/include/llvm/CodeGen/CommandFlags.h
index 59aacc75e055d..6a907b64542ae 100644
--- a/llvm/include/llvm/CodeGen/CommandFlags.h
+++ b/llvm/include/llvm/CodeGen/CommandFlags.h
@@ -125,6 +125,8 @@ LLVM_ABI llvm::EABI getEABIVersion();
 
 LLVM_ABI llvm::DebuggerKind getDebuggerTuningOpt();
 
+LLVM_ABI llvm::VectorLibrary getVectorLibrary();
+
 LLVM_ABI bool getEnableStackSizeSection();
 
 LLVM_ABI bool getEnableAddrsig();
diff --git a/llvm/include/llvm/IR/RuntimeLibcalls.h b/llvm/include/llvm/IR/RuntimeLibcalls.h
index 0afe32a4ecc3c..cf96547063cd0 100644
--- a/llvm/include/llvm/IR/RuntimeLibcalls.h
+++ b/llvm/include/llvm/IR/RuntimeLibcalls.h
@@ -23,6 +23,7 @@
 #include "llvm/IR/CallingConv.h"
 #include "llvm/IR/InstrTypes.h"
 #include "llvm/IR/PassManager.h"
+#include "llvm/IR/SystemLibraries.h"
 #include "llvm/Support/AtomicOrdering.h"
 #include "llvm/Support/CodeGen.h"
 #include "llvm/Support/Compiler.h"
@@ -83,7 +84,8 @@ struct RuntimeLibcallsInfo {
       const Triple &TT,
       ExceptionHandling ExceptionModel = ExceptionHandling::None,
       FloatABI::ABIType FloatABI = FloatABI::Default,
-      EABI EABIVersion = EABI::Default, StringRef ABIName = "");
+      EABI EABIVersion = EABI::Default, StringRef ABIName = "",
+      VectorLibrary VecLib = VectorLibrary::NoLibrary);
 
   explicit RuntimeLibcallsInfo(const Module &M);
 
diff --git a/llvm/include/llvm/IR/SystemLibraries.h b/llvm/include/llvm/IR/SystemLibraries.h
index 1713b07c1c86f..5bdf67642e0e4 100644
--- a/llvm/include/llvm/IR/SystemLibraries.h
+++ b/llvm/include/llvm/IR/SystemLibraries.h
@@ -29,11 +29,6 @@ enum class VectorLibrary {
   AMDLIBM           // AMD Math Vector library.
 };
 
-/// Command line flag value for the vector math library to use
-///
-/// FIXME: This should come from a module flag, and not be mutually exclusive
-extern VectorLibrary ClVectorLibrary;
-
 } // namespace llvm
 
 #endif // LLVM_IR_SYSTEMLIBRARIES_H
diff --git a/llvm/include/llvm/Target/TargetOptions.h b/llvm/include/llvm/Target/TargetOptions.h
index bfd2817b8d1f5..b9258c0fee692 100644
--- a/llvm/include/llvm/Target/TargetOptions.h
+++ b/llvm/include/llvm/Target/TargetOptions.h
@@ -15,6 +15,7 @@
 #define LLVM_TARGET_TARGETOPTIONS_H
 
 #include "llvm/ADT/FloatingPointMode.h"
+#include "llvm/IR/SystemLibraries.h"
 #include "llvm/MC/MCTargetOptions.h"
 #include "llvm/Support/CodeGen.h"
 #include "llvm/Support/Compiler.h"
@@ -409,6 +410,9 @@ class TargetOptions {
   /// Which debugger to tune for.
   DebuggerKind DebuggerTuning = DebuggerKind::Default;
 
+  /// Vector math library to use.
+  VectorLibrary VectorLibrary = VectorLibrary::NoLibrary;
+
 private:
   /// Flushing mode to assume in default FP environment.
   DenormalMode FPDenormalMode;
diff --git a/llvm/lib/Analysis/TargetLibraryInfo.cpp b/llvm/lib/Analysis/TargetLibraryInfo.cpp
index f97abc9a32707..26d0c108fb03a 100644
--- a/llvm/lib/Analysis/TargetLibraryInfo.cpp
+++ b/llvm/lib/Analysis/TargetLibraryInfo.cpp
@@ -160,7 +160,8 @@ static void initializeBase(TargetLibraryInfoImpl &TLI, const Triple &T) {
 /// target triple. This should be carefully written so that a missing target
 /// triple gets a sane set of defaults.
 static void initializeLibCalls(TargetLibraryInfoImpl &TLI, const Triple &T,
-                               ArrayRef<StringLiteral> StandardNames) {
+                               ArrayRef<StringLiteral> StandardNames,
+                               VectorLibrary VecLib) {
   // Set IO unlocked variants as unavailable
   // Set them as available per system below
   TLI.setUnavailable(LibFunc_getc_unlocked);
@@ -924,23 +925,25 @@ static void initializeLibCalls(TargetLibraryInfoImpl &TLI, const Triple &T,
   if (T.isOSAIX())
     TLI.setUnavailable(LibFunc_memrchr);
 
-  TLI.addVectorizableFunctionsFromVecLib(ClVectorLibrary, T);
+  TLI.addVectorizableFunctionsFromVecLib(VecLib, T);
 }
 
 /// Initialize the set of available library functions based on the specified
 /// target triple. This should be carefully written so that a missing target
 /// triple gets a sane set of defaults.
 static void initialize(TargetLibraryInfoImpl &TLI, const Triple &T,
-                       ArrayRef<StringLiteral> StandardNames) {
+                       ArrayRef<StringLiteral> StandardNames,
+                       VectorLibrary VecLib) {
   initializeBase(TLI, T);
-  initializeLibCalls(TLI, T, StandardNames);
+  initializeLibCalls(TLI, T, StandardNames, VecLib);
 }
 
-TargetLibraryInfoImpl::TargetLibraryInfoImpl(const Triple &T) {
+TargetLibraryInfoImpl::TargetLibraryInfoImpl(const Triple &T,
+                                             VectorLibrary VecLib) {
   // Default to everything being available.
   memset(AvailableArray, -1, sizeof(AvailableArray));
 
-  initialize(*this, T, StandardNames);
+  initialize(*this, T, StandardNames, VecLib);
 }
 
 TargetLibraryInfoImpl::TargetLibraryInfoImpl(const TargetLibraryInfoImpl &TLI)
diff --git a/llvm/lib/CodeGen/CommandFlags.cpp b/llvm/lib/CodeGen/CommandFlags.cpp
index cf225f1f03eac..02a6bb9357ad0 100644
--- a/llvm/lib/CodeGen/CommandFlags.cpp
+++ b/llvm/lib/CodeGen/CommandFlags.cpp
@@ -107,6 +107,7 @@ CGOPT(bool, UniqueBasicBlockSectionNames)
 CGOPT(bool, SeparateNamedSections)
 CGOPT(EABI, EABIVersion)
 CGOPT(DebuggerKind, DebuggerTuningOpt)
+CGOPT(VectorLibrary, VectorLibrary)
 CGOPT(bool, EnableStackSizeSection)
 CGOPT(bool, EnableAddrsig)
 CGOPT(bool, EnableCallGraphSection)
@@ -451,6 +452,28 @@ codegen::RegisterCodeGenFlags::RegisterCodeGenFlags() {
           clEnumValN(DebuggerKind::SCE, "sce", "SCE targets (e.g. PS4)")));
   CGBINDOPT(DebuggerTuningOpt);
 
+  static cl::opt<VectorLibrary> VectorLibrary(
+      "vector-library", cl::Hidden, cl::desc("Vector functions library"),
+      cl::init(VectorLibrary::NoLibrary),
+      cl::values(
+          clEnumValN(VectorLibrary::NoLibrary, "none",
+                     "No vector functions library"),
+          clEnumValN(VectorLibrary::Accelerate, "Accelerate",
+                     "Accelerate framework"),
+          clEnumValN(VectorLibrary::DarwinLibSystemM, "Darwin_libsystem_m",
+                     "Darwin libsystem_m"),
+          clEnumValN(VectorLibrary::LIBMVEC, "LIBMVEC",
+                     "GLIBC Vector Math library"),
+          clEnumValN(VectorLibrary::MASSV, "MASSV", "IBM MASS vector library"),
+          clEnumValN(VectorLibrary::SVML, "SVML", "Intel SVML library"),
+          clEnumValN(VectorLibrary::SLEEFGNUABI, "sleefgnuabi",
+                     "SIMD Library for Evaluating Elementary Functions"),
+          clEnumValN(VectorLibrary::ArmPL, "ArmPL",
+                     "Arm Performance Libraries"),
+          clEnumValN(VectorLibrary::AMDLIBM, "AMDLIBM",
+                     "AMD vector math library")));
+  CGBINDOPT(VectorLibrary);
+
   static cl::opt<bool> EnableStackSizeSection(
       "stack-size-section",
       cl::desc("Emit a section containing stack size metadata"),
@@ -609,6 +632,7 @@ codegen::InitTargetOptionsFromCodeGenFlags(const Triple &TheTriple) {
   Options.EnableTLSDESC =
       getExplicitEnableTLSDESC().value_or(TheTriple.hasDefaultTLSDESC());
   Options.ExceptionModel = getExceptionModel();
+  Options.VectorLibrary = getVectorLibrary();
   Options.EmitStackSizeSection = getEnableStackSizeSection();
   Options.EnableMachineFunctionSplitter = getEnableMachineFunctionSplitter();
   Options.EnableStaticDataPartitioning = getEnableStaticDataPartitioning();
diff --git a/llvm/lib/CodeGen/TargetLoweringBase.cpp b/llvm/lib/CodeGen/TargetLoweringBase.cpp
index 77d9b156e2672..0f1e37bbf1bfc 100644
--- a/llvm/lib/CodeGen/TargetLoweringBase.cpp
+++ b/llvm/lib/CodeGen/TargetLoweringBase.cpp
@@ -753,7 +753,8 @@ TargetLoweringBase::TargetLoweringBase(const TargetMachine &tm)
     : TM(tm),
       RuntimeLibcallInfo(TM.getTargetTriple(), TM.Options.ExceptionModel,
                          TM.Options.FloatABIType, TM.Options.EABIVersion,
-                         TM.Options.MCOptions.getABIName()),
+                         TM.Options.MCOptions.getABIName(),
+                         TM.Options.VectorLibrary),
       Libcalls(RuntimeLibcallInfo) {
   initActions();
 
diff --git a/llvm/lib/IR/CMakeLists.txt b/llvm/lib/IR/CMakeLists.txt
index ebdc2ca08d102..10572ff708bd3 100644
--- a/llvm/lib/IR/CMakeLists.txt
+++ b/llvm/lib/IR/CMakeLists.txt
@@ -67,7 +67,6 @@ add_llvm_component_library(LLVMCore
   ReplaceConstant.cpp
   Statepoint.cpp
   StructuralHash.cpp
-  SystemLibraries.cpp
   Type.cpp
   TypedPointerType.cpp
   TypeFinder.cpp
diff --git a/llvm/lib/IR/RuntimeLibcalls.cpp b/llvm/lib/IR/RuntimeLibcalls.cpp
index ee23b58742b64..12d050329a302 100644
--- a/llvm/lib/IR/RuntimeLibcalls.cpp
+++ b/llvm/lib/IR/RuntimeLibcalls.cpp
@@ -29,7 +29,8 @@ using namespace RTLIB;
 RuntimeLibcallsInfo::RuntimeLibcallsInfo(const Triple &TT,
                                          ExceptionHandling ExceptionModel,
                                          FloatABI::ABIType FloatABI,
-                                         EABI EABIVersion, StringRef ABIName) {
+                                         EABI EABIVersion, StringRef ABIName,
+                                         VectorLibrary VecLib) {
   // FIXME: The ExceptionModel parameter is to handle the field in
   // TargetOptions. This interface fails to distinguish the forced disable
   // case for targets which support exceptions by default. This should
@@ -40,7 +41,7 @@ RuntimeLibcallsInfo::RuntimeLibcallsInfo(const Triple &TT,
   initLibcalls(TT, ExceptionModel, FloatABI, EABIVersion, ABIName);
 
   // TODO: Tablegen should generate these sets
-  switch (ClVectorLibrary) {
+  switch (VecLib) {
   case VectorLibrary::SLEEFGNUABI:
     for (RTLIB::LibcallImpl Impl :
          {RTLIB::impl__ZGVnN2vl8_modf, RTLIB::impl__ZGVnN4vl4_modff,
diff --git a/llvm/lib/IR/SystemLibraries.cpp b/llvm/lib/IR/SystemLibraries.cpp
deleted file mode 100644
index fa4ac2adb7296..0000000000000
--- a/llvm/lib/IR/SystemLibraries.cpp
+++ /dev/null
@@ -1,34 +0,0 @@
-//===-----------------------------------------------------------------------==//
-//
-// 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
-//
-//===----------------------------------------------------------------------===//
-
-#include "llvm/IR/SystemLibraries.h"
-#include "llvm/Support/CommandLine.h"
-
-using namespace llvm;
-
-VectorLibrary llvm::ClVectorLibrary;
-
-static cl::opt<VectorLibrary, true> ClVectorLibraryOpt(
-    "vector-library", cl::Hidden, cl::desc("Vector functions library"),
-    cl::location(llvm::ClVectorLibrary), cl::init(VectorLibrary::NoLibrary),
-    cl::values(
-        clEnumValN(VectorLibrary::NoLibrary, "none",
-                   "No vector functions library"),
-        clEnumValN(VectorLibrary::Accelerate, "Accelerate",
-                   "Accelerate framework"),
-        clEnumValN(VectorLibrary::DarwinLibSystemM, "Darwin_libsystem_m",
-                   "Darwin libsystem_m"),
-        clEnumValN(VectorLibrary::LIBMVEC, "LIBMVEC",
-                   "GLIBC Vector Math library"),
-        clEnumValN(VectorLibrary::MASSV, "MASSV", "IBM MASS vector library"),
-        clEnumValN(VectorLibrary::SVML, "SVML", "Intel SVML library"),
-        clEnumValN(VectorLibrary::SLEEFGNUABI, "sleefgnuabi",
-                   "SIMD Library for Evaluating Elementary Functions"),
-        clEnumValN(VectorLibrary::ArmPL, "ArmPL", "Arm Performance Libraries"),
-        clEnumValN(VectorLibrary::AMDLIBM, "AMDLIBM",
-                   "AMD vector math library")));
diff --git a/llvm/tools/llc/llc.cpp b/llvm/tools/llc/llc.cpp
index 2147945d8a416..1cfedad15ec35 100644
--- a/llvm/tools/llc/llc.cpp
+++ b/llvm/tools/llc/llc.cpp
@@ -696,7 +696,8 @@ static int compileModule(char **argv, LLVMContext &Context,
   }
 
   // Add an appropriate TargetLibraryInfo pass for the module's triple.
-  TargetLibraryInfoImpl TLII(M->getTargetTriple());
+  TargetLibraryInfoImpl TLII(M->getTargetTriple(),
+                             Target->Options.VectorLibrary);
 
   // The -disable-simplify-libcalls flag actually disables all builtin optzns.
   if (DisableSimplifyLibCalls)
diff --git a/llvm/tools/opt/optdriver.cpp b/llvm/tools/opt/optdriver.cpp
index 4cf117f227c00..d24c8abef31d0 100644
--- a/llvm/tools/opt/optdriver.cpp
+++ b/llvm/tools/opt/optdriver.cpp
@@ -670,13 +670,15 @@ optMain(int argc, char **argv,
       M->addModuleFlag(Module::Error, "UnifiedLTO", 1);
   }
 
+  VectorLibrary VecLib = codegen::getVectorLibrary();
   // Add an appropriate TargetLibraryInfo pass for the module's triple.
-  TargetLibraryInfoImpl TLII(ModuleTriple);
+  TargetLibraryInfoImpl TLII(ModuleTriple, VecLib);
 
-  // FIXME: Get ABI name from MCOptions
   RTLIB::RuntimeLibcallsInfo RTLCI(ModuleTriple, codegen::getExceptionModel(),
                                    codegen::getFloatABIForCalls(),
-                                   codegen::getEABIVersion());
+                                   codegen::getEABIVersion(),
+                                   "", // FIXME: Get ABI name from MCOptions
+                                   VecLib);
 
   // The -disable-simplify-libcalls flag actually disables all builtin optzns.
   if (DisableSimplifyLibCalls)
diff --git a/llvm/utils/gn/secondary/llvm/lib/IR/BUILD.gn b/llvm/utils/gn/secondary/llvm/lib/IR/BUILD.gn
index 8037c8d693cb8..22aa0b6418132 100644
--- a/llvm/utils/gn/secondary/llvm/lib/IR/BUILD.gn
+++ b/llvm/utils/gn/secondary/llvm/lib/IR/BUILD.gn
@@ -82,7 +82,6 @@ static_library("IR") {
     "SafepointIRVerifier.cpp",
     "Statepoint.cpp",
     "StructuralHash.cpp",
-    "SystemLibraries.cpp",
     "Type.cpp",
     "TypeFinder.cpp",
     "TypedPointerType.cpp",

@llvmbot
Copy link
Member

llvmbot commented Nov 14, 2025

@llvm/pr-subscribers-clang

Author: Matt Arsenault (arsenm)

Changes

clang: Pass -vector-library flag when using -fveclib

Really this belongs in an IR module flag.

RuntimeLibcalls: Move VectorLibrary handling into TargetOptions

This fixes the -fveclib flag getting lost on its way to the backend.

Previously this was its own cl::opt with a random boolean. Move the
flag handling into CommandFlags with other backend ABI-ish options,
and have clang directly set it, rather than forcing it to go through
command line parsing.

Prior to de68181, codegen used TargetLibraryInfo to find the vector
function. Clang has special handling for TargetLibraryInfo, where it would
directly construct one with the vector library in the pass pipeline.
RuntimeLibcallsInfo currently is not used as an analysis in codegen, and
needs to know the vector library when constructed.

RuntimeLibraryAnalysis could follow the same trick that TargetLibraryInfo is
using in the future, but a lot more boilerplate changes are needed to thread
that analysis through codegen. Ideally this would come from an IR module flag,
and nothing would be in TargetOptions. For now, it's better for all of these
sorts of controls to be consistent.


Full diff: https://github.com/llvm/llvm-project/pull/167996.diff

18 Files Affected:

  • (modified) clang/lib/CodeGen/BackendUtil.cpp (+31)
  • (modified) cross-project-tests/CMakeLists.txt (+7)
  • (added) cross-project-tests/veclib/lit.local.cfg (+2)
  • (added) cross-project-tests/veclib/veclib-sincos.c (+21)
  • (modified) llvm/include/llvm/Analysis/TargetLibraryInfo.h (+3-2)
  • (modified) llvm/include/llvm/CodeGen/CommandFlags.h (+2)
  • (modified) llvm/include/llvm/IR/RuntimeLibcalls.h (+3-1)
  • (modified) llvm/include/llvm/IR/SystemLibraries.h (-5)
  • (modified) llvm/include/llvm/Target/TargetOptions.h (+4)
  • (modified) llvm/lib/Analysis/TargetLibraryInfo.cpp (+9-6)
  • (modified) llvm/lib/CodeGen/CommandFlags.cpp (+24)
  • (modified) llvm/lib/CodeGen/TargetLoweringBase.cpp (+2-1)
  • (modified) llvm/lib/IR/CMakeLists.txt (-1)
  • (modified) llvm/lib/IR/RuntimeLibcalls.cpp (+3-2)
  • (removed) llvm/lib/IR/SystemLibraries.cpp (-34)
  • (modified) llvm/tools/llc/llc.cpp (+2-1)
  • (modified) llvm/tools/opt/optdriver.cpp (+5-3)
  • (modified) llvm/utils/gn/secondary/llvm/lib/IR/BUILD.gn (-1)
diff --git a/clang/lib/CodeGen/BackendUtil.cpp b/clang/lib/CodeGen/BackendUtil.cpp
index b967a26dd19d7..f1e20403ad668 100644
--- a/clang/lib/CodeGen/BackendUtil.cpp
+++ b/clang/lib/CodeGen/BackendUtil.cpp
@@ -481,6 +481,36 @@ static bool initTargetOptions(const CompilerInstance &CI,
   Options.JMCInstrument = CodeGenOpts.JMCInstrument;
   Options.XCOFFReadOnlyPointers = CodeGenOpts.XCOFFReadOnlyPointers;
 
+  switch (CodeGenOpts.getVecLib()) {
+  case llvm::driver::VectorLibrary::NoLibrary:
+    Options.VectorLibrary = llvm::VectorLibrary::NoLibrary;
+    break;
+  case llvm::driver::VectorLibrary::Accelerate:
+    Options.VectorLibrary = llvm::VectorLibrary::Accelerate;
+    break;
+  case llvm::driver::VectorLibrary::Darwin_libsystem_m:
+    Options.VectorLibrary = llvm::VectorLibrary::DarwinLibSystemM;
+    break;
+  case llvm::driver::VectorLibrary::LIBMVEC:
+    Options.VectorLibrary = llvm::VectorLibrary::LIBMVEC;
+    break;
+  case llvm::driver::VectorLibrary::MASSV:
+    Options.VectorLibrary = llvm::VectorLibrary::MASSV;
+    break;
+  case llvm::driver::VectorLibrary::SVML:
+    Options.VectorLibrary = llvm::VectorLibrary::SVML;
+    break;
+  case llvm::driver::VectorLibrary::SLEEF:
+    Options.VectorLibrary = llvm::VectorLibrary::SLEEFGNUABI;
+    break;
+  case llvm::driver::VectorLibrary::ArmPL:
+    Options.VectorLibrary = llvm::VectorLibrary::ArmPL;
+    break;
+  case llvm::driver::VectorLibrary::AMDLIBM:
+    Options.VectorLibrary = llvm::VectorLibrary::AMDLIBM;
+    break;
+  }
+
   switch (CodeGenOpts.getSwiftAsyncFramePointer()) {
   case CodeGenOptions::SwiftAsyncFramePointerKind::Auto:
     Options.SwiftAsyncFramePointer =
@@ -584,6 +614,7 @@ static void setCommandLineOpts(const CodeGenOptions &CodeGenOpts,
     BackendArgs.push_back("-limit-float-precision");
     BackendArgs.push_back(CodeGenOpts.LimitFloatPrecision.c_str());
   }
+
   // Check for the default "clang" invocation that won't set any cl::opt values.
   // Skip trying to parse the command line invocation to avoid the issues
   // described below.
diff --git a/cross-project-tests/CMakeLists.txt b/cross-project-tests/CMakeLists.txt
index 8e94579736537..3f932b8c7fd22 100644
--- a/cross-project-tests/CMakeLists.txt
+++ b/cross-project-tests/CMakeLists.txt
@@ -104,6 +104,13 @@ add_lit_testsuite(check-cross-dtlto "Running DTLTO cross-project tests"
   DEPENDS ${CROSS_PROJECT_TEST_DEPS}
   )
 
+# veclib tests.
+add_lit_testsuite(check-cross-veclib "Running veclib cross-project tests"
+  ${CMAKE_CURRENT_BINARY_DIR}/veclib
+  EXCLUDE_FROM_CHECK_ALL
+  DEPENDS ${CROSS_PROJECT_TEST_DEPS}
+  )
+
 # Add check-cross-project-* targets.
 add_lit_testsuites(CROSS_PROJECT ${CMAKE_CURRENT_SOURCE_DIR}
   DEPENDS ${CROSS_PROJECT_TEST_DEPS}
diff --git a/cross-project-tests/veclib/lit.local.cfg b/cross-project-tests/veclib/lit.local.cfg
new file mode 100644
index 0000000000000..530f4c01646ff
--- /dev/null
+++ b/cross-project-tests/veclib/lit.local.cfg
@@ -0,0 +1,2 @@
+if "clang" not in config.available_features:
+    config.unsupported = True
diff --git a/cross-project-tests/veclib/veclib-sincos.c b/cross-project-tests/veclib/veclib-sincos.c
new file mode 100644
index 0000000000000..657d0df199522
--- /dev/null
+++ b/cross-project-tests/veclib/veclib-sincos.c
@@ -0,0 +1,21 @@
+// REQUIRES: aarch64-registered-target
+// RUN: %clang -S -target aarch64-unknown-linux-gnu -O2 -fno-math-errno \
+// RUN:  -fveclib=ArmPL -o - %s | FileCheck -check-prefix=ARMPL %s
+// RUN: %clang -S -target aarch64-unknown-linux-gnu -O2 -fno-math-errno \
+// RUN:  -fveclib=SLEEF -o - %s | FileCheck -check-prefix=SLEEF %s
+
+typedef __SIZE_TYPE__ size_t;
+
+void sincos(double, double *, double *);
+
+// ARMPL: armpl_vsincosq_f64
+// ARMPL: armpl_vsincosq_f64
+
+// SLEEF: _ZGVnN2vl8l8_sincos
+// SLEEF: _ZGVnN2vl8l8_sincos
+void vectorize_sincos(double *restrict x, double *restrict s,
+                      double *restrict c, size_t n) {
+  for (size_t i = 0; i < n; ++i) {
+    sincos(x[i], &s[i], &c[i]);
+  }
+}
diff --git a/llvm/include/llvm/Analysis/TargetLibraryInfo.h b/llvm/include/llvm/Analysis/TargetLibraryInfo.h
index 78954431e81c3..3b6cc0d1944fd 100644
--- a/llvm/include/llvm/Analysis/TargetLibraryInfo.h
+++ b/llvm/include/llvm/Analysis/TargetLibraryInfo.h
@@ -14,6 +14,7 @@
 #include "llvm/IR/InstrTypes.h"
 #include "llvm/IR/Module.h"
 #include "llvm/IR/PassManager.h"
+#include "llvm/IR/SystemLibraries.h"
 #include "llvm/Pass.h"
 #include "llvm/Support/Compiler.h"
 #include "llvm/TargetParser/Triple.h"
@@ -23,7 +24,6 @@
 namespace llvm {
 
 template <typename T> class ArrayRef;
-enum class VectorLibrary;
 
 /// Provides info so a possible vectorization of a function can be
 /// computed. Function 'VectorFnName' is equivalent to 'ScalarFnName'
@@ -119,7 +119,8 @@ class TargetLibraryInfoImpl {
 
 public:
   TargetLibraryInfoImpl() = delete;
-  LLVM_ABI explicit TargetLibraryInfoImpl(const Triple &T);
+  LLVM_ABI explicit TargetLibraryInfoImpl(
+      const Triple &T, VectorLibrary VecLib = VectorLibrary::NoLibrary);
 
   // Provide value semantics.
   LLVM_ABI TargetLibraryInfoImpl(const TargetLibraryInfoImpl &TLI);
diff --git a/llvm/include/llvm/CodeGen/CommandFlags.h b/llvm/include/llvm/CodeGen/CommandFlags.h
index 59aacc75e055d..6a907b64542ae 100644
--- a/llvm/include/llvm/CodeGen/CommandFlags.h
+++ b/llvm/include/llvm/CodeGen/CommandFlags.h
@@ -125,6 +125,8 @@ LLVM_ABI llvm::EABI getEABIVersion();
 
 LLVM_ABI llvm::DebuggerKind getDebuggerTuningOpt();
 
+LLVM_ABI llvm::VectorLibrary getVectorLibrary();
+
 LLVM_ABI bool getEnableStackSizeSection();
 
 LLVM_ABI bool getEnableAddrsig();
diff --git a/llvm/include/llvm/IR/RuntimeLibcalls.h b/llvm/include/llvm/IR/RuntimeLibcalls.h
index 0afe32a4ecc3c..cf96547063cd0 100644
--- a/llvm/include/llvm/IR/RuntimeLibcalls.h
+++ b/llvm/include/llvm/IR/RuntimeLibcalls.h
@@ -23,6 +23,7 @@
 #include "llvm/IR/CallingConv.h"
 #include "llvm/IR/InstrTypes.h"
 #include "llvm/IR/PassManager.h"
+#include "llvm/IR/SystemLibraries.h"
 #include "llvm/Support/AtomicOrdering.h"
 #include "llvm/Support/CodeGen.h"
 #include "llvm/Support/Compiler.h"
@@ -83,7 +84,8 @@ struct RuntimeLibcallsInfo {
       const Triple &TT,
       ExceptionHandling ExceptionModel = ExceptionHandling::None,
       FloatABI::ABIType FloatABI = FloatABI::Default,
-      EABI EABIVersion = EABI::Default, StringRef ABIName = "");
+      EABI EABIVersion = EABI::Default, StringRef ABIName = "",
+      VectorLibrary VecLib = VectorLibrary::NoLibrary);
 
   explicit RuntimeLibcallsInfo(const Module &M);
 
diff --git a/llvm/include/llvm/IR/SystemLibraries.h b/llvm/include/llvm/IR/SystemLibraries.h
index 1713b07c1c86f..5bdf67642e0e4 100644
--- a/llvm/include/llvm/IR/SystemLibraries.h
+++ b/llvm/include/llvm/IR/SystemLibraries.h
@@ -29,11 +29,6 @@ enum class VectorLibrary {
   AMDLIBM           // AMD Math Vector library.
 };
 
-/// Command line flag value for the vector math library to use
-///
-/// FIXME: This should come from a module flag, and not be mutually exclusive
-extern VectorLibrary ClVectorLibrary;
-
 } // namespace llvm
 
 #endif // LLVM_IR_SYSTEMLIBRARIES_H
diff --git a/llvm/include/llvm/Target/TargetOptions.h b/llvm/include/llvm/Target/TargetOptions.h
index bfd2817b8d1f5..b9258c0fee692 100644
--- a/llvm/include/llvm/Target/TargetOptions.h
+++ b/llvm/include/llvm/Target/TargetOptions.h
@@ -15,6 +15,7 @@
 #define LLVM_TARGET_TARGETOPTIONS_H
 
 #include "llvm/ADT/FloatingPointMode.h"
+#include "llvm/IR/SystemLibraries.h"
 #include "llvm/MC/MCTargetOptions.h"
 #include "llvm/Support/CodeGen.h"
 #include "llvm/Support/Compiler.h"
@@ -409,6 +410,9 @@ class TargetOptions {
   /// Which debugger to tune for.
   DebuggerKind DebuggerTuning = DebuggerKind::Default;
 
+  /// Vector math library to use.
+  VectorLibrary VectorLibrary = VectorLibrary::NoLibrary;
+
 private:
   /// Flushing mode to assume in default FP environment.
   DenormalMode FPDenormalMode;
diff --git a/llvm/lib/Analysis/TargetLibraryInfo.cpp b/llvm/lib/Analysis/TargetLibraryInfo.cpp
index f97abc9a32707..26d0c108fb03a 100644
--- a/llvm/lib/Analysis/TargetLibraryInfo.cpp
+++ b/llvm/lib/Analysis/TargetLibraryInfo.cpp
@@ -160,7 +160,8 @@ static void initializeBase(TargetLibraryInfoImpl &TLI, const Triple &T) {
 /// target triple. This should be carefully written so that a missing target
 /// triple gets a sane set of defaults.
 static void initializeLibCalls(TargetLibraryInfoImpl &TLI, const Triple &T,
-                               ArrayRef<StringLiteral> StandardNames) {
+                               ArrayRef<StringLiteral> StandardNames,
+                               VectorLibrary VecLib) {
   // Set IO unlocked variants as unavailable
   // Set them as available per system below
   TLI.setUnavailable(LibFunc_getc_unlocked);
@@ -924,23 +925,25 @@ static void initializeLibCalls(TargetLibraryInfoImpl &TLI, const Triple &T,
   if (T.isOSAIX())
     TLI.setUnavailable(LibFunc_memrchr);
 
-  TLI.addVectorizableFunctionsFromVecLib(ClVectorLibrary, T);
+  TLI.addVectorizableFunctionsFromVecLib(VecLib, T);
 }
 
 /// Initialize the set of available library functions based on the specified
 /// target triple. This should be carefully written so that a missing target
 /// triple gets a sane set of defaults.
 static void initialize(TargetLibraryInfoImpl &TLI, const Triple &T,
-                       ArrayRef<StringLiteral> StandardNames) {
+                       ArrayRef<StringLiteral> StandardNames,
+                       VectorLibrary VecLib) {
   initializeBase(TLI, T);
-  initializeLibCalls(TLI, T, StandardNames);
+  initializeLibCalls(TLI, T, StandardNames, VecLib);
 }
 
-TargetLibraryInfoImpl::TargetLibraryInfoImpl(const Triple &T) {
+TargetLibraryInfoImpl::TargetLibraryInfoImpl(const Triple &T,
+                                             VectorLibrary VecLib) {
   // Default to everything being available.
   memset(AvailableArray, -1, sizeof(AvailableArray));
 
-  initialize(*this, T, StandardNames);
+  initialize(*this, T, StandardNames, VecLib);
 }
 
 TargetLibraryInfoImpl::TargetLibraryInfoImpl(const TargetLibraryInfoImpl &TLI)
diff --git a/llvm/lib/CodeGen/CommandFlags.cpp b/llvm/lib/CodeGen/CommandFlags.cpp
index cf225f1f03eac..02a6bb9357ad0 100644
--- a/llvm/lib/CodeGen/CommandFlags.cpp
+++ b/llvm/lib/CodeGen/CommandFlags.cpp
@@ -107,6 +107,7 @@ CGOPT(bool, UniqueBasicBlockSectionNames)
 CGOPT(bool, SeparateNamedSections)
 CGOPT(EABI, EABIVersion)
 CGOPT(DebuggerKind, DebuggerTuningOpt)
+CGOPT(VectorLibrary, VectorLibrary)
 CGOPT(bool, EnableStackSizeSection)
 CGOPT(bool, EnableAddrsig)
 CGOPT(bool, EnableCallGraphSection)
@@ -451,6 +452,28 @@ codegen::RegisterCodeGenFlags::RegisterCodeGenFlags() {
           clEnumValN(DebuggerKind::SCE, "sce", "SCE targets (e.g. PS4)")));
   CGBINDOPT(DebuggerTuningOpt);
 
+  static cl::opt<VectorLibrary> VectorLibrary(
+      "vector-library", cl::Hidden, cl::desc("Vector functions library"),
+      cl::init(VectorLibrary::NoLibrary),
+      cl::values(
+          clEnumValN(VectorLibrary::NoLibrary, "none",
+                     "No vector functions library"),
+          clEnumValN(VectorLibrary::Accelerate, "Accelerate",
+                     "Accelerate framework"),
+          clEnumValN(VectorLibrary::DarwinLibSystemM, "Darwin_libsystem_m",
+                     "Darwin libsystem_m"),
+          clEnumValN(VectorLibrary::LIBMVEC, "LIBMVEC",
+                     "GLIBC Vector Math library"),
+          clEnumValN(VectorLibrary::MASSV, "MASSV", "IBM MASS vector library"),
+          clEnumValN(VectorLibrary::SVML, "SVML", "Intel SVML library"),
+          clEnumValN(VectorLibrary::SLEEFGNUABI, "sleefgnuabi",
+                     "SIMD Library for Evaluating Elementary Functions"),
+          clEnumValN(VectorLibrary::ArmPL, "ArmPL",
+                     "Arm Performance Libraries"),
+          clEnumValN(VectorLibrary::AMDLIBM, "AMDLIBM",
+                     "AMD vector math library")));
+  CGBINDOPT(VectorLibrary);
+
   static cl::opt<bool> EnableStackSizeSection(
       "stack-size-section",
       cl::desc("Emit a section containing stack size metadata"),
@@ -609,6 +632,7 @@ codegen::InitTargetOptionsFromCodeGenFlags(const Triple &TheTriple) {
   Options.EnableTLSDESC =
       getExplicitEnableTLSDESC().value_or(TheTriple.hasDefaultTLSDESC());
   Options.ExceptionModel = getExceptionModel();
+  Options.VectorLibrary = getVectorLibrary();
   Options.EmitStackSizeSection = getEnableStackSizeSection();
   Options.EnableMachineFunctionSplitter = getEnableMachineFunctionSplitter();
   Options.EnableStaticDataPartitioning = getEnableStaticDataPartitioning();
diff --git a/llvm/lib/CodeGen/TargetLoweringBase.cpp b/llvm/lib/CodeGen/TargetLoweringBase.cpp
index 77d9b156e2672..0f1e37bbf1bfc 100644
--- a/llvm/lib/CodeGen/TargetLoweringBase.cpp
+++ b/llvm/lib/CodeGen/TargetLoweringBase.cpp
@@ -753,7 +753,8 @@ TargetLoweringBase::TargetLoweringBase(const TargetMachine &tm)
     : TM(tm),
       RuntimeLibcallInfo(TM.getTargetTriple(), TM.Options.ExceptionModel,
                          TM.Options.FloatABIType, TM.Options.EABIVersion,
-                         TM.Options.MCOptions.getABIName()),
+                         TM.Options.MCOptions.getABIName(),
+                         TM.Options.VectorLibrary),
       Libcalls(RuntimeLibcallInfo) {
   initActions();
 
diff --git a/llvm/lib/IR/CMakeLists.txt b/llvm/lib/IR/CMakeLists.txt
index ebdc2ca08d102..10572ff708bd3 100644
--- a/llvm/lib/IR/CMakeLists.txt
+++ b/llvm/lib/IR/CMakeLists.txt
@@ -67,7 +67,6 @@ add_llvm_component_library(LLVMCore
   ReplaceConstant.cpp
   Statepoint.cpp
   StructuralHash.cpp
-  SystemLibraries.cpp
   Type.cpp
   TypedPointerType.cpp
   TypeFinder.cpp
diff --git a/llvm/lib/IR/RuntimeLibcalls.cpp b/llvm/lib/IR/RuntimeLibcalls.cpp
index ee23b58742b64..12d050329a302 100644
--- a/llvm/lib/IR/RuntimeLibcalls.cpp
+++ b/llvm/lib/IR/RuntimeLibcalls.cpp
@@ -29,7 +29,8 @@ using namespace RTLIB;
 RuntimeLibcallsInfo::RuntimeLibcallsInfo(const Triple &TT,
                                          ExceptionHandling ExceptionModel,
                                          FloatABI::ABIType FloatABI,
-                                         EABI EABIVersion, StringRef ABIName) {
+                                         EABI EABIVersion, StringRef ABIName,
+                                         VectorLibrary VecLib) {
   // FIXME: The ExceptionModel parameter is to handle the field in
   // TargetOptions. This interface fails to distinguish the forced disable
   // case for targets which support exceptions by default. This should
@@ -40,7 +41,7 @@ RuntimeLibcallsInfo::RuntimeLibcallsInfo(const Triple &TT,
   initLibcalls(TT, ExceptionModel, FloatABI, EABIVersion, ABIName);
 
   // TODO: Tablegen should generate these sets
-  switch (ClVectorLibrary) {
+  switch (VecLib) {
   case VectorLibrary::SLEEFGNUABI:
     for (RTLIB::LibcallImpl Impl :
          {RTLIB::impl__ZGVnN2vl8_modf, RTLIB::impl__ZGVnN4vl4_modff,
diff --git a/llvm/lib/IR/SystemLibraries.cpp b/llvm/lib/IR/SystemLibraries.cpp
deleted file mode 100644
index fa4ac2adb7296..0000000000000
--- a/llvm/lib/IR/SystemLibraries.cpp
+++ /dev/null
@@ -1,34 +0,0 @@
-//===-----------------------------------------------------------------------==//
-//
-// 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
-//
-//===----------------------------------------------------------------------===//
-
-#include "llvm/IR/SystemLibraries.h"
-#include "llvm/Support/CommandLine.h"
-
-using namespace llvm;
-
-VectorLibrary llvm::ClVectorLibrary;
-
-static cl::opt<VectorLibrary, true> ClVectorLibraryOpt(
-    "vector-library", cl::Hidden, cl::desc("Vector functions library"),
-    cl::location(llvm::ClVectorLibrary), cl::init(VectorLibrary::NoLibrary),
-    cl::values(
-        clEnumValN(VectorLibrary::NoLibrary, "none",
-                   "No vector functions library"),
-        clEnumValN(VectorLibrary::Accelerate, "Accelerate",
-                   "Accelerate framework"),
-        clEnumValN(VectorLibrary::DarwinLibSystemM, "Darwin_libsystem_m",
-                   "Darwin libsystem_m"),
-        clEnumValN(VectorLibrary::LIBMVEC, "LIBMVEC",
-                   "GLIBC Vector Math library"),
-        clEnumValN(VectorLibrary::MASSV, "MASSV", "IBM MASS vector library"),
-        clEnumValN(VectorLibrary::SVML, "SVML", "Intel SVML library"),
-        clEnumValN(VectorLibrary::SLEEFGNUABI, "sleefgnuabi",
-                   "SIMD Library for Evaluating Elementary Functions"),
-        clEnumValN(VectorLibrary::ArmPL, "ArmPL", "Arm Performance Libraries"),
-        clEnumValN(VectorLibrary::AMDLIBM, "AMDLIBM",
-                   "AMD vector math library")));
diff --git a/llvm/tools/llc/llc.cpp b/llvm/tools/llc/llc.cpp
index 2147945d8a416..1cfedad15ec35 100644
--- a/llvm/tools/llc/llc.cpp
+++ b/llvm/tools/llc/llc.cpp
@@ -696,7 +696,8 @@ static int compileModule(char **argv, LLVMContext &Context,
   }
 
   // Add an appropriate TargetLibraryInfo pass for the module's triple.
-  TargetLibraryInfoImpl TLII(M->getTargetTriple());
+  TargetLibraryInfoImpl TLII(M->getTargetTriple(),
+                             Target->Options.VectorLibrary);
 
   // The -disable-simplify-libcalls flag actually disables all builtin optzns.
   if (DisableSimplifyLibCalls)
diff --git a/llvm/tools/opt/optdriver.cpp b/llvm/tools/opt/optdriver.cpp
index 4cf117f227c00..d24c8abef31d0 100644
--- a/llvm/tools/opt/optdriver.cpp
+++ b/llvm/tools/opt/optdriver.cpp
@@ -670,13 +670,15 @@ optMain(int argc, char **argv,
       M->addModuleFlag(Module::Error, "UnifiedLTO", 1);
   }
 
+  VectorLibrary VecLib = codegen::getVectorLibrary();
   // Add an appropriate TargetLibraryInfo pass for the module's triple.
-  TargetLibraryInfoImpl TLII(ModuleTriple);
+  TargetLibraryInfoImpl TLII(ModuleTriple, VecLib);
 
-  // FIXME: Get ABI name from MCOptions
   RTLIB::RuntimeLibcallsInfo RTLCI(ModuleTriple, codegen::getExceptionModel(),
                                    codegen::getFloatABIForCalls(),
-                                   codegen::getEABIVersion());
+                                   codegen::getEABIVersion(),
+                                   "", // FIXME: Get ABI name from MCOptions
+                                   VecLib);
 
   // The -disable-simplify-libcalls flag actually disables all builtin optzns.
   if (DisableSimplifyLibCalls)
diff --git a/llvm/utils/gn/secondary/llvm/lib/IR/BUILD.gn b/llvm/utils/gn/secondary/llvm/lib/IR/BUILD.gn
index 8037c8d693cb8..22aa0b6418132 100644
--- a/llvm/utils/gn/secondary/llvm/lib/IR/BUILD.gn
+++ b/llvm/utils/gn/secondary/llvm/lib/IR/BUILD.gn
@@ -82,7 +82,6 @@ static_library("IR") {
     "SafepointIRVerifier.cpp",
     "Statepoint.cpp",
     "StructuralHash.cpp",
-    "SystemLibraries.cpp",
     "Type.cpp",
     "TypeFinder.cpp",
     "TypedPointerType.cpp",

@llvmbot
Copy link
Member

llvmbot commented Nov 14, 2025

@llvm/pr-subscribers-clang-codegen

Author: Matt Arsenault (arsenm)

Changes

clang: Pass -vector-library flag when using -fveclib

Really this belongs in an IR module flag.

RuntimeLibcalls: Move VectorLibrary handling into TargetOptions

This fixes the -fveclib flag getting lost on its way to the backend.

Previously this was its own cl::opt with a random boolean. Move the
flag handling into CommandFlags with other backend ABI-ish options,
and have clang directly set it, rather than forcing it to go through
command line parsing.

Prior to de68181, codegen used TargetLibraryInfo to find the vector
function. Clang has special handling for TargetLibraryInfo, where it would
directly construct one with the vector library in the pass pipeline.
RuntimeLibcallsInfo currently is not used as an analysis in codegen, and
needs to know the vector library when constructed.

RuntimeLibraryAnalysis could follow the same trick that TargetLibraryInfo is
using in the future, but a lot more boilerplate changes are needed to thread
that analysis through codegen. Ideally this would come from an IR module flag,
and nothing would be in TargetOptions. For now, it's better for all of these
sorts of controls to be consistent.


Full diff: https://github.com/llvm/llvm-project/pull/167996.diff

18 Files Affected:

  • (modified) clang/lib/CodeGen/BackendUtil.cpp (+31)
  • (modified) cross-project-tests/CMakeLists.txt (+7)
  • (added) cross-project-tests/veclib/lit.local.cfg (+2)
  • (added) cross-project-tests/veclib/veclib-sincos.c (+21)
  • (modified) llvm/include/llvm/Analysis/TargetLibraryInfo.h (+3-2)
  • (modified) llvm/include/llvm/CodeGen/CommandFlags.h (+2)
  • (modified) llvm/include/llvm/IR/RuntimeLibcalls.h (+3-1)
  • (modified) llvm/include/llvm/IR/SystemLibraries.h (-5)
  • (modified) llvm/include/llvm/Target/TargetOptions.h (+4)
  • (modified) llvm/lib/Analysis/TargetLibraryInfo.cpp (+9-6)
  • (modified) llvm/lib/CodeGen/CommandFlags.cpp (+24)
  • (modified) llvm/lib/CodeGen/TargetLoweringBase.cpp (+2-1)
  • (modified) llvm/lib/IR/CMakeLists.txt (-1)
  • (modified) llvm/lib/IR/RuntimeLibcalls.cpp (+3-2)
  • (removed) llvm/lib/IR/SystemLibraries.cpp (-34)
  • (modified) llvm/tools/llc/llc.cpp (+2-1)
  • (modified) llvm/tools/opt/optdriver.cpp (+5-3)
  • (modified) llvm/utils/gn/secondary/llvm/lib/IR/BUILD.gn (-1)
diff --git a/clang/lib/CodeGen/BackendUtil.cpp b/clang/lib/CodeGen/BackendUtil.cpp
index b967a26dd19d7..f1e20403ad668 100644
--- a/clang/lib/CodeGen/BackendUtil.cpp
+++ b/clang/lib/CodeGen/BackendUtil.cpp
@@ -481,6 +481,36 @@ static bool initTargetOptions(const CompilerInstance &CI,
   Options.JMCInstrument = CodeGenOpts.JMCInstrument;
   Options.XCOFFReadOnlyPointers = CodeGenOpts.XCOFFReadOnlyPointers;
 
+  switch (CodeGenOpts.getVecLib()) {
+  case llvm::driver::VectorLibrary::NoLibrary:
+    Options.VectorLibrary = llvm::VectorLibrary::NoLibrary;
+    break;
+  case llvm::driver::VectorLibrary::Accelerate:
+    Options.VectorLibrary = llvm::VectorLibrary::Accelerate;
+    break;
+  case llvm::driver::VectorLibrary::Darwin_libsystem_m:
+    Options.VectorLibrary = llvm::VectorLibrary::DarwinLibSystemM;
+    break;
+  case llvm::driver::VectorLibrary::LIBMVEC:
+    Options.VectorLibrary = llvm::VectorLibrary::LIBMVEC;
+    break;
+  case llvm::driver::VectorLibrary::MASSV:
+    Options.VectorLibrary = llvm::VectorLibrary::MASSV;
+    break;
+  case llvm::driver::VectorLibrary::SVML:
+    Options.VectorLibrary = llvm::VectorLibrary::SVML;
+    break;
+  case llvm::driver::VectorLibrary::SLEEF:
+    Options.VectorLibrary = llvm::VectorLibrary::SLEEFGNUABI;
+    break;
+  case llvm::driver::VectorLibrary::ArmPL:
+    Options.VectorLibrary = llvm::VectorLibrary::ArmPL;
+    break;
+  case llvm::driver::VectorLibrary::AMDLIBM:
+    Options.VectorLibrary = llvm::VectorLibrary::AMDLIBM;
+    break;
+  }
+
   switch (CodeGenOpts.getSwiftAsyncFramePointer()) {
   case CodeGenOptions::SwiftAsyncFramePointerKind::Auto:
     Options.SwiftAsyncFramePointer =
@@ -584,6 +614,7 @@ static void setCommandLineOpts(const CodeGenOptions &CodeGenOpts,
     BackendArgs.push_back("-limit-float-precision");
     BackendArgs.push_back(CodeGenOpts.LimitFloatPrecision.c_str());
   }
+
   // Check for the default "clang" invocation that won't set any cl::opt values.
   // Skip trying to parse the command line invocation to avoid the issues
   // described below.
diff --git a/cross-project-tests/CMakeLists.txt b/cross-project-tests/CMakeLists.txt
index 8e94579736537..3f932b8c7fd22 100644
--- a/cross-project-tests/CMakeLists.txt
+++ b/cross-project-tests/CMakeLists.txt
@@ -104,6 +104,13 @@ add_lit_testsuite(check-cross-dtlto "Running DTLTO cross-project tests"
   DEPENDS ${CROSS_PROJECT_TEST_DEPS}
   )
 
+# veclib tests.
+add_lit_testsuite(check-cross-veclib "Running veclib cross-project tests"
+  ${CMAKE_CURRENT_BINARY_DIR}/veclib
+  EXCLUDE_FROM_CHECK_ALL
+  DEPENDS ${CROSS_PROJECT_TEST_DEPS}
+  )
+
 # Add check-cross-project-* targets.
 add_lit_testsuites(CROSS_PROJECT ${CMAKE_CURRENT_SOURCE_DIR}
   DEPENDS ${CROSS_PROJECT_TEST_DEPS}
diff --git a/cross-project-tests/veclib/lit.local.cfg b/cross-project-tests/veclib/lit.local.cfg
new file mode 100644
index 0000000000000..530f4c01646ff
--- /dev/null
+++ b/cross-project-tests/veclib/lit.local.cfg
@@ -0,0 +1,2 @@
+if "clang" not in config.available_features:
+    config.unsupported = True
diff --git a/cross-project-tests/veclib/veclib-sincos.c b/cross-project-tests/veclib/veclib-sincos.c
new file mode 100644
index 0000000000000..657d0df199522
--- /dev/null
+++ b/cross-project-tests/veclib/veclib-sincos.c
@@ -0,0 +1,21 @@
+// REQUIRES: aarch64-registered-target
+// RUN: %clang -S -target aarch64-unknown-linux-gnu -O2 -fno-math-errno \
+// RUN:  -fveclib=ArmPL -o - %s | FileCheck -check-prefix=ARMPL %s
+// RUN: %clang -S -target aarch64-unknown-linux-gnu -O2 -fno-math-errno \
+// RUN:  -fveclib=SLEEF -o - %s | FileCheck -check-prefix=SLEEF %s
+
+typedef __SIZE_TYPE__ size_t;
+
+void sincos(double, double *, double *);
+
+// ARMPL: armpl_vsincosq_f64
+// ARMPL: armpl_vsincosq_f64
+
+// SLEEF: _ZGVnN2vl8l8_sincos
+// SLEEF: _ZGVnN2vl8l8_sincos
+void vectorize_sincos(double *restrict x, double *restrict s,
+                      double *restrict c, size_t n) {
+  for (size_t i = 0; i < n; ++i) {
+    sincos(x[i], &s[i], &c[i]);
+  }
+}
diff --git a/llvm/include/llvm/Analysis/TargetLibraryInfo.h b/llvm/include/llvm/Analysis/TargetLibraryInfo.h
index 78954431e81c3..3b6cc0d1944fd 100644
--- a/llvm/include/llvm/Analysis/TargetLibraryInfo.h
+++ b/llvm/include/llvm/Analysis/TargetLibraryInfo.h
@@ -14,6 +14,7 @@
 #include "llvm/IR/InstrTypes.h"
 #include "llvm/IR/Module.h"
 #include "llvm/IR/PassManager.h"
+#include "llvm/IR/SystemLibraries.h"
 #include "llvm/Pass.h"
 #include "llvm/Support/Compiler.h"
 #include "llvm/TargetParser/Triple.h"
@@ -23,7 +24,6 @@
 namespace llvm {
 
 template <typename T> class ArrayRef;
-enum class VectorLibrary;
 
 /// Provides info so a possible vectorization of a function can be
 /// computed. Function 'VectorFnName' is equivalent to 'ScalarFnName'
@@ -119,7 +119,8 @@ class TargetLibraryInfoImpl {
 
 public:
   TargetLibraryInfoImpl() = delete;
-  LLVM_ABI explicit TargetLibraryInfoImpl(const Triple &T);
+  LLVM_ABI explicit TargetLibraryInfoImpl(
+      const Triple &T, VectorLibrary VecLib = VectorLibrary::NoLibrary);
 
   // Provide value semantics.
   LLVM_ABI TargetLibraryInfoImpl(const TargetLibraryInfoImpl &TLI);
diff --git a/llvm/include/llvm/CodeGen/CommandFlags.h b/llvm/include/llvm/CodeGen/CommandFlags.h
index 59aacc75e055d..6a907b64542ae 100644
--- a/llvm/include/llvm/CodeGen/CommandFlags.h
+++ b/llvm/include/llvm/CodeGen/CommandFlags.h
@@ -125,6 +125,8 @@ LLVM_ABI llvm::EABI getEABIVersion();
 
 LLVM_ABI llvm::DebuggerKind getDebuggerTuningOpt();
 
+LLVM_ABI llvm::VectorLibrary getVectorLibrary();
+
 LLVM_ABI bool getEnableStackSizeSection();
 
 LLVM_ABI bool getEnableAddrsig();
diff --git a/llvm/include/llvm/IR/RuntimeLibcalls.h b/llvm/include/llvm/IR/RuntimeLibcalls.h
index 0afe32a4ecc3c..cf96547063cd0 100644
--- a/llvm/include/llvm/IR/RuntimeLibcalls.h
+++ b/llvm/include/llvm/IR/RuntimeLibcalls.h
@@ -23,6 +23,7 @@
 #include "llvm/IR/CallingConv.h"
 #include "llvm/IR/InstrTypes.h"
 #include "llvm/IR/PassManager.h"
+#include "llvm/IR/SystemLibraries.h"
 #include "llvm/Support/AtomicOrdering.h"
 #include "llvm/Support/CodeGen.h"
 #include "llvm/Support/Compiler.h"
@@ -83,7 +84,8 @@ struct RuntimeLibcallsInfo {
       const Triple &TT,
       ExceptionHandling ExceptionModel = ExceptionHandling::None,
       FloatABI::ABIType FloatABI = FloatABI::Default,
-      EABI EABIVersion = EABI::Default, StringRef ABIName = "");
+      EABI EABIVersion = EABI::Default, StringRef ABIName = "",
+      VectorLibrary VecLib = VectorLibrary::NoLibrary);
 
   explicit RuntimeLibcallsInfo(const Module &M);
 
diff --git a/llvm/include/llvm/IR/SystemLibraries.h b/llvm/include/llvm/IR/SystemLibraries.h
index 1713b07c1c86f..5bdf67642e0e4 100644
--- a/llvm/include/llvm/IR/SystemLibraries.h
+++ b/llvm/include/llvm/IR/SystemLibraries.h
@@ -29,11 +29,6 @@ enum class VectorLibrary {
   AMDLIBM           // AMD Math Vector library.
 };
 
-/// Command line flag value for the vector math library to use
-///
-/// FIXME: This should come from a module flag, and not be mutually exclusive
-extern VectorLibrary ClVectorLibrary;
-
 } // namespace llvm
 
 #endif // LLVM_IR_SYSTEMLIBRARIES_H
diff --git a/llvm/include/llvm/Target/TargetOptions.h b/llvm/include/llvm/Target/TargetOptions.h
index bfd2817b8d1f5..b9258c0fee692 100644
--- a/llvm/include/llvm/Target/TargetOptions.h
+++ b/llvm/include/llvm/Target/TargetOptions.h
@@ -15,6 +15,7 @@
 #define LLVM_TARGET_TARGETOPTIONS_H
 
 #include "llvm/ADT/FloatingPointMode.h"
+#include "llvm/IR/SystemLibraries.h"
 #include "llvm/MC/MCTargetOptions.h"
 #include "llvm/Support/CodeGen.h"
 #include "llvm/Support/Compiler.h"
@@ -409,6 +410,9 @@ class TargetOptions {
   /// Which debugger to tune for.
   DebuggerKind DebuggerTuning = DebuggerKind::Default;
 
+  /// Vector math library to use.
+  VectorLibrary VectorLibrary = VectorLibrary::NoLibrary;
+
 private:
   /// Flushing mode to assume in default FP environment.
   DenormalMode FPDenormalMode;
diff --git a/llvm/lib/Analysis/TargetLibraryInfo.cpp b/llvm/lib/Analysis/TargetLibraryInfo.cpp
index f97abc9a32707..26d0c108fb03a 100644
--- a/llvm/lib/Analysis/TargetLibraryInfo.cpp
+++ b/llvm/lib/Analysis/TargetLibraryInfo.cpp
@@ -160,7 +160,8 @@ static void initializeBase(TargetLibraryInfoImpl &TLI, const Triple &T) {
 /// target triple. This should be carefully written so that a missing target
 /// triple gets a sane set of defaults.
 static void initializeLibCalls(TargetLibraryInfoImpl &TLI, const Triple &T,
-                               ArrayRef<StringLiteral> StandardNames) {
+                               ArrayRef<StringLiteral> StandardNames,
+                               VectorLibrary VecLib) {
   // Set IO unlocked variants as unavailable
   // Set them as available per system below
   TLI.setUnavailable(LibFunc_getc_unlocked);
@@ -924,23 +925,25 @@ static void initializeLibCalls(TargetLibraryInfoImpl &TLI, const Triple &T,
   if (T.isOSAIX())
     TLI.setUnavailable(LibFunc_memrchr);
 
-  TLI.addVectorizableFunctionsFromVecLib(ClVectorLibrary, T);
+  TLI.addVectorizableFunctionsFromVecLib(VecLib, T);
 }
 
 /// Initialize the set of available library functions based on the specified
 /// target triple. This should be carefully written so that a missing target
 /// triple gets a sane set of defaults.
 static void initialize(TargetLibraryInfoImpl &TLI, const Triple &T,
-                       ArrayRef<StringLiteral> StandardNames) {
+                       ArrayRef<StringLiteral> StandardNames,
+                       VectorLibrary VecLib) {
   initializeBase(TLI, T);
-  initializeLibCalls(TLI, T, StandardNames);
+  initializeLibCalls(TLI, T, StandardNames, VecLib);
 }
 
-TargetLibraryInfoImpl::TargetLibraryInfoImpl(const Triple &T) {
+TargetLibraryInfoImpl::TargetLibraryInfoImpl(const Triple &T,
+                                             VectorLibrary VecLib) {
   // Default to everything being available.
   memset(AvailableArray, -1, sizeof(AvailableArray));
 
-  initialize(*this, T, StandardNames);
+  initialize(*this, T, StandardNames, VecLib);
 }
 
 TargetLibraryInfoImpl::TargetLibraryInfoImpl(const TargetLibraryInfoImpl &TLI)
diff --git a/llvm/lib/CodeGen/CommandFlags.cpp b/llvm/lib/CodeGen/CommandFlags.cpp
index cf225f1f03eac..02a6bb9357ad0 100644
--- a/llvm/lib/CodeGen/CommandFlags.cpp
+++ b/llvm/lib/CodeGen/CommandFlags.cpp
@@ -107,6 +107,7 @@ CGOPT(bool, UniqueBasicBlockSectionNames)
 CGOPT(bool, SeparateNamedSections)
 CGOPT(EABI, EABIVersion)
 CGOPT(DebuggerKind, DebuggerTuningOpt)
+CGOPT(VectorLibrary, VectorLibrary)
 CGOPT(bool, EnableStackSizeSection)
 CGOPT(bool, EnableAddrsig)
 CGOPT(bool, EnableCallGraphSection)
@@ -451,6 +452,28 @@ codegen::RegisterCodeGenFlags::RegisterCodeGenFlags() {
           clEnumValN(DebuggerKind::SCE, "sce", "SCE targets (e.g. PS4)")));
   CGBINDOPT(DebuggerTuningOpt);
 
+  static cl::opt<VectorLibrary> VectorLibrary(
+      "vector-library", cl::Hidden, cl::desc("Vector functions library"),
+      cl::init(VectorLibrary::NoLibrary),
+      cl::values(
+          clEnumValN(VectorLibrary::NoLibrary, "none",
+                     "No vector functions library"),
+          clEnumValN(VectorLibrary::Accelerate, "Accelerate",
+                     "Accelerate framework"),
+          clEnumValN(VectorLibrary::DarwinLibSystemM, "Darwin_libsystem_m",
+                     "Darwin libsystem_m"),
+          clEnumValN(VectorLibrary::LIBMVEC, "LIBMVEC",
+                     "GLIBC Vector Math library"),
+          clEnumValN(VectorLibrary::MASSV, "MASSV", "IBM MASS vector library"),
+          clEnumValN(VectorLibrary::SVML, "SVML", "Intel SVML library"),
+          clEnumValN(VectorLibrary::SLEEFGNUABI, "sleefgnuabi",
+                     "SIMD Library for Evaluating Elementary Functions"),
+          clEnumValN(VectorLibrary::ArmPL, "ArmPL",
+                     "Arm Performance Libraries"),
+          clEnumValN(VectorLibrary::AMDLIBM, "AMDLIBM",
+                     "AMD vector math library")));
+  CGBINDOPT(VectorLibrary);
+
   static cl::opt<bool> EnableStackSizeSection(
       "stack-size-section",
       cl::desc("Emit a section containing stack size metadata"),
@@ -609,6 +632,7 @@ codegen::InitTargetOptionsFromCodeGenFlags(const Triple &TheTriple) {
   Options.EnableTLSDESC =
       getExplicitEnableTLSDESC().value_or(TheTriple.hasDefaultTLSDESC());
   Options.ExceptionModel = getExceptionModel();
+  Options.VectorLibrary = getVectorLibrary();
   Options.EmitStackSizeSection = getEnableStackSizeSection();
   Options.EnableMachineFunctionSplitter = getEnableMachineFunctionSplitter();
   Options.EnableStaticDataPartitioning = getEnableStaticDataPartitioning();
diff --git a/llvm/lib/CodeGen/TargetLoweringBase.cpp b/llvm/lib/CodeGen/TargetLoweringBase.cpp
index 77d9b156e2672..0f1e37bbf1bfc 100644
--- a/llvm/lib/CodeGen/TargetLoweringBase.cpp
+++ b/llvm/lib/CodeGen/TargetLoweringBase.cpp
@@ -753,7 +753,8 @@ TargetLoweringBase::TargetLoweringBase(const TargetMachine &tm)
     : TM(tm),
       RuntimeLibcallInfo(TM.getTargetTriple(), TM.Options.ExceptionModel,
                          TM.Options.FloatABIType, TM.Options.EABIVersion,
-                         TM.Options.MCOptions.getABIName()),
+                         TM.Options.MCOptions.getABIName(),
+                         TM.Options.VectorLibrary),
       Libcalls(RuntimeLibcallInfo) {
   initActions();
 
diff --git a/llvm/lib/IR/CMakeLists.txt b/llvm/lib/IR/CMakeLists.txt
index ebdc2ca08d102..10572ff708bd3 100644
--- a/llvm/lib/IR/CMakeLists.txt
+++ b/llvm/lib/IR/CMakeLists.txt
@@ -67,7 +67,6 @@ add_llvm_component_library(LLVMCore
   ReplaceConstant.cpp
   Statepoint.cpp
   StructuralHash.cpp
-  SystemLibraries.cpp
   Type.cpp
   TypedPointerType.cpp
   TypeFinder.cpp
diff --git a/llvm/lib/IR/RuntimeLibcalls.cpp b/llvm/lib/IR/RuntimeLibcalls.cpp
index ee23b58742b64..12d050329a302 100644
--- a/llvm/lib/IR/RuntimeLibcalls.cpp
+++ b/llvm/lib/IR/RuntimeLibcalls.cpp
@@ -29,7 +29,8 @@ using namespace RTLIB;
 RuntimeLibcallsInfo::RuntimeLibcallsInfo(const Triple &TT,
                                          ExceptionHandling ExceptionModel,
                                          FloatABI::ABIType FloatABI,
-                                         EABI EABIVersion, StringRef ABIName) {
+                                         EABI EABIVersion, StringRef ABIName,
+                                         VectorLibrary VecLib) {
   // FIXME: The ExceptionModel parameter is to handle the field in
   // TargetOptions. This interface fails to distinguish the forced disable
   // case for targets which support exceptions by default. This should
@@ -40,7 +41,7 @@ RuntimeLibcallsInfo::RuntimeLibcallsInfo(const Triple &TT,
   initLibcalls(TT, ExceptionModel, FloatABI, EABIVersion, ABIName);
 
   // TODO: Tablegen should generate these sets
-  switch (ClVectorLibrary) {
+  switch (VecLib) {
   case VectorLibrary::SLEEFGNUABI:
     for (RTLIB::LibcallImpl Impl :
          {RTLIB::impl__ZGVnN2vl8_modf, RTLIB::impl__ZGVnN4vl4_modff,
diff --git a/llvm/lib/IR/SystemLibraries.cpp b/llvm/lib/IR/SystemLibraries.cpp
deleted file mode 100644
index fa4ac2adb7296..0000000000000
--- a/llvm/lib/IR/SystemLibraries.cpp
+++ /dev/null
@@ -1,34 +0,0 @@
-//===-----------------------------------------------------------------------==//
-//
-// 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
-//
-//===----------------------------------------------------------------------===//
-
-#include "llvm/IR/SystemLibraries.h"
-#include "llvm/Support/CommandLine.h"
-
-using namespace llvm;
-
-VectorLibrary llvm::ClVectorLibrary;
-
-static cl::opt<VectorLibrary, true> ClVectorLibraryOpt(
-    "vector-library", cl::Hidden, cl::desc("Vector functions library"),
-    cl::location(llvm::ClVectorLibrary), cl::init(VectorLibrary::NoLibrary),
-    cl::values(
-        clEnumValN(VectorLibrary::NoLibrary, "none",
-                   "No vector functions library"),
-        clEnumValN(VectorLibrary::Accelerate, "Accelerate",
-                   "Accelerate framework"),
-        clEnumValN(VectorLibrary::DarwinLibSystemM, "Darwin_libsystem_m",
-                   "Darwin libsystem_m"),
-        clEnumValN(VectorLibrary::LIBMVEC, "LIBMVEC",
-                   "GLIBC Vector Math library"),
-        clEnumValN(VectorLibrary::MASSV, "MASSV", "IBM MASS vector library"),
-        clEnumValN(VectorLibrary::SVML, "SVML", "Intel SVML library"),
-        clEnumValN(VectorLibrary::SLEEFGNUABI, "sleefgnuabi",
-                   "SIMD Library for Evaluating Elementary Functions"),
-        clEnumValN(VectorLibrary::ArmPL, "ArmPL", "Arm Performance Libraries"),
-        clEnumValN(VectorLibrary::AMDLIBM, "AMDLIBM",
-                   "AMD vector math library")));
diff --git a/llvm/tools/llc/llc.cpp b/llvm/tools/llc/llc.cpp
index 2147945d8a416..1cfedad15ec35 100644
--- a/llvm/tools/llc/llc.cpp
+++ b/llvm/tools/llc/llc.cpp
@@ -696,7 +696,8 @@ static int compileModule(char **argv, LLVMContext &Context,
   }
 
   // Add an appropriate TargetLibraryInfo pass for the module's triple.
-  TargetLibraryInfoImpl TLII(M->getTargetTriple());
+  TargetLibraryInfoImpl TLII(M->getTargetTriple(),
+                             Target->Options.VectorLibrary);
 
   // The -disable-simplify-libcalls flag actually disables all builtin optzns.
   if (DisableSimplifyLibCalls)
diff --git a/llvm/tools/opt/optdriver.cpp b/llvm/tools/opt/optdriver.cpp
index 4cf117f227c00..d24c8abef31d0 100644
--- a/llvm/tools/opt/optdriver.cpp
+++ b/llvm/tools/opt/optdriver.cpp
@@ -670,13 +670,15 @@ optMain(int argc, char **argv,
       M->addModuleFlag(Module::Error, "UnifiedLTO", 1);
   }
 
+  VectorLibrary VecLib = codegen::getVectorLibrary();
   // Add an appropriate TargetLibraryInfo pass for the module's triple.
-  TargetLibraryInfoImpl TLII(ModuleTriple);
+  TargetLibraryInfoImpl TLII(ModuleTriple, VecLib);
 
-  // FIXME: Get ABI name from MCOptions
   RTLIB::RuntimeLibcallsInfo RTLCI(ModuleTriple, codegen::getExceptionModel(),
                                    codegen::getFloatABIForCalls(),
-                                   codegen::getEABIVersion());
+                                   codegen::getEABIVersion(),
+                                   "", // FIXME: Get ABI name from MCOptions
+                                   VecLib);
 
   // The -disable-simplify-libcalls flag actually disables all builtin optzns.
   if (DisableSimplifyLibCalls)
diff --git a/llvm/utils/gn/secondary/llvm/lib/IR/BUILD.gn b/llvm/utils/gn/secondary/llvm/lib/IR/BUILD.gn
index 8037c8d693cb8..22aa0b6418132 100644
--- a/llvm/utils/gn/secondary/llvm/lib/IR/BUILD.gn
+++ b/llvm/utils/gn/secondary/llvm/lib/IR/BUILD.gn
@@ -82,7 +82,6 @@ static_library("IR") {
     "SafepointIRVerifier.cpp",
     "Statepoint.cpp",
     "StructuralHash.cpp",
-    "SystemLibraries.cpp",
     "Type.cpp",
     "TypeFinder.cpp",
     "TypedPointerType.cpp",

Copy link
Contributor

@ilovepi ilovepi left a comment

Choose a reason for hiding this comment

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

LGTM.

@llvm-ci
Copy link
Collaborator

llvm-ci commented Nov 14, 2025

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

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

Here is the relevant piece of the build log for the reference
Step 5 (build-unified-tree) failure: build (failure)
...
49.521 [439/429/6279] Building CXX object tools/llvm-isel-fuzzer/CMakeFiles/llvm-isel-fuzzer.dir/llvm-isel-fuzzer.cpp.o
49.530 [439/428/6280] Building CXX object tools/clang/lib/StaticAnalyzer/Core/CMakeFiles/obj.clangStaticAnalyzerCore.dir/CallEvent.cpp.o
49.531 [439/427/6281] Building CXX object tools/clang/lib/StaticAnalyzer/Checkers/CMakeFiles/obj.clangStaticAnalyzerCheckers.dir/DebugCheckers.cpp.o
49.535 [439/426/6282] Building CXX object tools/clang/lib/Parse/CMakeFiles/obj.clangParse.dir/ParseStmtAsm.cpp.o
49.547 [439/425/6283] Building CXX object tools/clang/lib/Parse/CMakeFiles/obj.clangParse.dir/ParseExpr.cpp.o
49.581 [439/424/6284] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/ModuloSchedule.cpp.o
49.682 [439/423/6285] Building CXX object tools/clang/lib/Frontend/CMakeFiles/obj.clangFrontend.dir/ChainedIncludesSource.cpp.o
49.738 [439/422/6286] Building CXX object tools/clang/tools/libclang/CMakeFiles/libclang.dir/CIndexCXX.cpp.o
49.764 [439/421/6287] Building CXX object tools/clang/lib/Parse/CMakeFiles/obj.clangParse.dir/ParseTemplate.cpp.o
49.825 [439/420/6288] Building CXX object tools/opt/CMakeFiles/LLVMOptDriver.dir/optdriver.cpp.o
FAILED: tools/opt/CMakeFiles/LLVMOptDriver.dir/optdriver.cpp.o 
ccache /home/buildbots/llvm-external-buildbots/clang.19.1.7/bin/clang++ -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GLIBCXX_USE_CXX11_ABI=1 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-flang-rhel-test/ppc64le-flang-rhel-clang-build/build/tools/opt -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-flang-rhel-test/ppc64le-flang-rhel-clang-build/llvm-project/llvm/tools/opt -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-flang-rhel-test/ppc64le-flang-rhel-clang-build/build/include -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-flang-rhel-test/ppc64le-flang-rhel-clang-build/llvm-project/llvm/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 -Wno-pass-failed -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=c++17  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -MD -MT tools/opt/CMakeFiles/LLVMOptDriver.dir/optdriver.cpp.o -MF tools/opt/CMakeFiles/LLVMOptDriver.dir/optdriver.cpp.o.d -o tools/opt/CMakeFiles/LLVMOptDriver.dir/optdriver.cpp.o -c /home/buildbots/llvm-external-buildbots/workers/ppc64le-flang-rhel-test/ppc64le-flang-rhel-clang-build/llvm-project/llvm/tools/opt/optdriver.cpp
/home/buildbots/llvm-external-buildbots/workers/ppc64le-flang-rhel-test/ppc64le-flang-rhel-clang-build/llvm-project/llvm/tools/opt/optdriver.cpp:684:30: error: redefinition of 'RTLCI'
  684 |   RTLIB::RuntimeLibcallsInfo RTLCI(ModuleTriple, codegen::getExceptionModel(),
      |                              ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-flang-rhel-test/ppc64le-flang-rhel-clang-build/llvm-project/llvm/tools/opt/optdriver.cpp:677:30: note: previous definition is here
  677 |   RTLIB::RuntimeLibcallsInfo RTLCI(ModuleTriple, codegen::getExceptionModel(),
      |                              ^
1 error generated.
49.829 [439/419/6289] Building CXX object tools/clang/tools/libclang/CMakeFiles/libclang.dir/CXString.cpp.o
49.832 [439/418/6290] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/MIRSampleProfile.cpp.o
49.850 [439/417/6291] Building CXX object tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/CodeGenSYCL.cpp.o
49.895 [439/416/6292] Building CXX object tools/clang/lib/Analysis/FlowSensitive/CMakeFiles/obj.clangAnalysisFlowSensitive.dir/Transfer.cpp.o
49.918 [439/415/6293] Building CXX object tools/clang/lib/Tooling/Transformer/CMakeFiles/obj.clangTransformer.dir/RewriteRule.cpp.o
49.920 [439/414/6294] Building CXX object tools/clang/lib/Sema/CMakeFiles/obj.clangSema.dir/SemaCUDA.cpp.o
49.926 [439/413/6295] Building CXX object tools/clang/lib/InstallAPI/CMakeFiles/obj.clangInstallAPI.dir/Frontend.cpp.o
49.946 [439/412/6296] Building CXX object lib/CodeGen/SelectionDAG/CMakeFiles/LLVMSelectionDAG.dir/LegalizeDAG.cpp.o
49.977 [439/411/6297] Building CXX object tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/CGVTT.cpp.o
50.063 [439/410/6298] Building CXX object tools/clang/tools/libclang/CMakeFiles/libclang.dir/CXComment.cpp.o
50.098 [439/409/6299] Building CXX object tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/CodeGenABITypes.cpp.o
50.113 [439/408/6300] Building CXX object tools/llvm-reduce/CMakeFiles/llvm-reduce.dir/deltas/ReduceRegisterMasks.cpp.o
50.128 [439/407/6301] Building CXX object tools/clang/lib/Sema/CMakeFiles/obj.clangSema.dir/SemaAttr.cpp.o
50.172 [439/406/6302] Building CXX object lib/Transforms/Instrumentation/CMakeFiles/LLVMInstrumentation.dir/AddressSanitizer.cpp.o
50.229 [439/405/6303] Building CXX object lib/Transforms/Scalar/CMakeFiles/LLVMScalarOpts.dir/LICM.cpp.o
50.348 [439/404/6304] Building CXX object tools/llvm-exegesis/lib/CMakeFiles/LLVMExegesis.dir/Clustering.cpp.o
50.417 [439/403/6305] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/BasicTargetTransformInfo.cpp.o
50.458 [439/402/6306] Building CXX object tools/clang/lib/AST/CMakeFiles/obj.clangAST.dir/ASTStructuralEquivalence.cpp.o
50.493 [439/401/6307] Building CXX object tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/CGCUDARuntime.cpp.o
50.499 [439/400/6308] Building CXX object lib/Transforms/IPO/CMakeFiles/LLVMipo.dir/FunctionAttrs.cpp.o
50.510 [439/399/6309] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/LiveDebugVariables.cpp.o
50.528 [439/398/6310] Building CXX object tools/llvm-reduce/CMakeFiles/llvm-reduce.dir/deltas/ReduceRegisterDefs.cpp.o
50.539 [439/397/6311] Building CXX object tools/clang/lib/StaticAnalyzer/Checkers/CMakeFiles/obj.clangStaticAnalyzerCheckers.dir/OSObjectCStyleCast.cpp.o
50.549 [439/396/6312] Building CXX object lib/Target/PowerPC/CMakeFiles/LLVMPowerPCCodeGen.dir/PPCVSXSwapRemoval.cpp.o
50.590 [439/395/6313] Building CXX object tools/clang/lib/Parse/CMakeFiles/obj.clangParse.dir/Parser.cpp.o
50.593 [439/394/6314] Building CXX object tools/clang/lib/Frontend/CMakeFiles/obj.clangFrontend.dir/PrecompiledPreamble.cpp.o
50.615 [439/393/6315] Building CXX object tools/clang/lib/Parse/CMakeFiles/obj.clangParse.dir/ParseOpenACC.cpp.o
50.650 [439/392/6316] Building CXX object tools/clang/lib/AST/CMakeFiles/obj.clangAST.dir/Decl.cpp.o
50.653 [439/391/6317] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/MachineBlockPlacement.cpp.o
50.674 [439/390/6318] Building CXX object lib/Transforms/Utils/CMakeFiles/LLVMTransformUtils.dir/Local.cpp.o

@llvm-ci
Copy link
Collaborator

llvm-ci commented Nov 14, 2025

LLVM Buildbot has detected a new failure on builder llvm-clang-x86_64-darwin running on doug-worker-3 while building clang,cross-project-tests,llvm at step 5 "build-unified-tree".

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

Here is the relevant piece of the build log for the reference
Step 5 (build-unified-tree) failure: build (failure)
...
3090.717 [1727/12/4585] Linking CXX static library lib/libclangToolingASTDiff.a
3090.749 [1726/12/4586] Linking CXX static library lib/libclangDirectoryWatcher.a
3090.805 [1725/12/4587] Building CXX object tools/clang/lib/IndexSerialization/CMakeFiles/obj.clangIndexSerialization.dir/SerializablePathCollection.cpp.o
3090.843 [1724/12/4588] Linking CXX static library lib/libclangInterpreter.a
3090.894 [1723/12/4589] Building CXX object tools/clang/tools/diagtool/CMakeFiles/diagtool.dir/diagtool_main.cpp.o
3090.946 [1722/12/4590] Building CXX object tools/clang/tools/diagtool/CMakeFiles/diagtool.dir/DiagTool.cpp.o
3091.004 [1721/12/4591] Building CXX object tools/clang/tools/diagtool/CMakeFiles/diagtool.dir/DiagnosticNames.cpp.o
3091.061 [1720/12/4592] Building CXX object tools/clang/tools/diagtool/CMakeFiles/diagtool.dir/FindDiagnosticID.cpp.o
3091.114 [1719/12/4593] Building CXX object tools/clang/tools/diagtool/CMakeFiles/diagtool.dir/ListWarnings.cpp.o
3092.253 [1718/12/4594] Building CXX object tools/opt/CMakeFiles/LLVMOptDriver.dir/optdriver.cpp.o
FAILED: [code=1] tools/opt/CMakeFiles/LLVMOptDriver.dir/optdriver.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes CCACHE_SLOPPINESS=pch_defines,time_macros /usr/local/bin/ccache /usr/bin/clang++ -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/Users/buildbot/buildbot-root/x86_64-darwin/build/tools/opt -I/Users/buildbot/buildbot-root/x86_64-darwin/llvm-project/llvm/tools/opt -I/Users/buildbot/buildbot-root/x86_64-darwin/build/include -I/Users/buildbot/buildbot-root/x86_64-darwin/llvm-project/llvm/include -isystem /usr/local/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 -Wno-pass-failed -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -O3 -DNDEBUG -std=c++17 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -MD -MT tools/opt/CMakeFiles/LLVMOptDriver.dir/optdriver.cpp.o -MF tools/opt/CMakeFiles/LLVMOptDriver.dir/optdriver.cpp.o.d -o tools/opt/CMakeFiles/LLVMOptDriver.dir/optdriver.cpp.o -c /Users/buildbot/buildbot-root/x86_64-darwin/llvm-project/llvm/tools/opt/optdriver.cpp
/Users/buildbot/buildbot-root/x86_64-darwin/llvm-project/llvm/tools/opt/optdriver.cpp:684:30: error: redefinition of 'RTLCI'
  RTLIB::RuntimeLibcallsInfo RTLCI(ModuleTriple, codegen::getExceptionModel(),
                             ^
/Users/buildbot/buildbot-root/x86_64-darwin/llvm-project/llvm/tools/opt/optdriver.cpp:677:30: note: previous definition is here
  RTLIB::RuntimeLibcallsInfo RTLCI(ModuleTriple, codegen::getExceptionModel(),
                             ^
1 error generated.
3093.392 [1718/11/4595] Building CXX object tools/llvm-exegesis/lib/X86/CMakeFiles/LLVMExegesisX86.dir/Target.cpp.o
3093.838 [1718/10/4596] Building CXX object unittests/Passes/Plugins/TestPlugin/CMakeFiles/TestPlugin.dir/TestPlugin.cpp.o
3094.099 [1718/9/4597] Building CXX object unittests/Passes/Plugins/DoublerPlugin/CMakeFiles/DoublerPlugin.dir/DoublerPlugin.cpp.o
3099.017 [1718/8/4598] Building CXX object tools/opt/CMakeFiles/LLVMOptDriver.dir/NewPMDriver.cpp.o
3100.324 [1718/7/4599] Building CXX object tools/lto/CMakeFiles/LTO.dir/lto.cpp.o
3101.401 [1718/6/4600] Building CXX object tools/clang/lib/Analysis/plugins/SampleAnalyzer/CMakeFiles/SampleAnalyzerPlugin.dir/MainCallChecker.cpp.o
3101.573 [1718/5/4601] Building CXX object tools/clang/tools/diagtool/CMakeFiles/diagtool.dir/ShowEnabledWarnings.cpp.o
3101.723 [1718/4/4602] Building CXX object tools/clang/lib/Analysis/plugins/CheckerDependencyHandling/CMakeFiles/CheckerDependencyHandlingAnalyzerPlugin.dir/CheckerDependencyHandling.cpp.o
3102.528 [1718/3/4603] Building CXX object tools/clang/lib/Analysis/plugins/CheckerOptionHandling/CMakeFiles/CheckerOptionHandlingAnalyzerPlugin.dir/CheckerOptionHandling.cpp.o
3103.354 [1718/2/4604] Building CXX object tools/llvm-lto/CMakeFiles/llvm-lto.dir/llvm-lto.cpp.o
3104.063 [1718/1/4605] Building CXX object tools/clang/tools/libclang/CMakeFiles/libclang.dir/CXExtractAPI.cpp.o
ninja: build stopped: subcommand failed.

@llvm-ci
Copy link
Collaborator

llvm-ci commented Nov 14, 2025

LLVM Buildbot has detected a new failure on builder amdgpu-offload-rhel-9-cmake-build-only running on rocm-docker-rhel-9 while building clang,cross-project-tests,llvm at step 4 "annotate".

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

Here is the relevant piece of the build log for the reference
Step 4 (annotate) failure: '../llvm-zorg/zorg/buildbot/builders/annotated/amdgpu-offload-cmake.py --jobs=32' (failure)
...
[1378/8205] Building CXX object lib/CGData/CMakeFiles/LLVMCGData.dir/CodeGenDataReader.cpp.o
[1379/8205] Building CXX object lib/CGData/CMakeFiles/LLVMCGData.dir/OutlinedHashTreeRecord.cpp.o
[1380/8205] Building CXX object lib/CGData/CMakeFiles/LLVMCGData.dir/StableFunctionMap.cpp.o
[1381/8205] Building CXX object lib/CGData/CMakeFiles/LLVMCGData.dir/OutlinedHashTree.cpp.o
[1382/8205] Building CXX object lib/CGData/CMakeFiles/LLVMCGData.dir/StableFunctionMapRecord.cpp.o
[1383/8205] Building CXX object lib/CGData/CMakeFiles/LLVMCGData.dir/CodeGenDataWriter.cpp.o
[1384/8205] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AssignmentTrackingAnalysis.cpp.o
[1385/8205] Building X86GenFoldTables.inc...
[1386/8205] Building X86GenFastISel.inc...
[1387/8205] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/FuncletLayout.cpp.o
FAILED: lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/FuncletLayout.cpp.o 
ccache /usr/bin/c++ -DGTEST_HAS_RTTI=0 -DLLVM_EXPORTS -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GLIBCXX_USE_CXX11_ABI=1 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/build/lib/CodeGen -I/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/llvm/lib/CodeGen -I/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/build/include -I/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-array-bounds -Wno-stringop-overread -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=c++17 -fPIC  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -MD -MT lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/FuncletLayout.cpp.o -MF lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/FuncletLayout.cpp.o.d -o lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/FuncletLayout.cpp.o -c /home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/llvm/lib/CodeGen/FuncletLayout.cpp
In file included from /home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/llvm/include/llvm/CodeGen/MachineFunction.h:35,
                 from /home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/llvm/lib/CodeGen/FuncletLayout.cpp:14:
/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/llvm/include/llvm/Target/TargetOptions.h:414:17: error: declaration of ‘llvm::VectorLibrary llvm::TargetOptions::VectorLibrary’ changes meaning of ‘VectorLibrary’ [-fpermissive]
  414 |   VectorLibrary VectorLibrary = VectorLibrary::NoLibrary;
      |                 ^~~~~~~~~~~~~
In file included from /home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/llvm/include/llvm/Target/TargetOptions.h:18,
                 from /home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/llvm/include/llvm/CodeGen/MachineFunction.h:35,
                 from /home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/llvm/lib/CodeGen/FuncletLayout.cpp:14:
/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/llvm/include/llvm/IR/SystemLibraries.h:20:12: note: ‘VectorLibrary’ declared here as ‘enum class llvm::VectorLibrary’
   20 | enum class VectorLibrary {
      |            ^~~~~~~~~~~~~
[1388/8205] Building X86GenGlobalISel.inc...
[1389/8205] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AllocationOrder.cpp.o
FAILED: lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AllocationOrder.cpp.o 
ccache /usr/bin/c++ -DGTEST_HAS_RTTI=0 -DLLVM_EXPORTS -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GLIBCXX_USE_CXX11_ABI=1 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/build/lib/CodeGen -I/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/llvm/lib/CodeGen -I/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/build/include -I/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-array-bounds -Wno-stringop-overread -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=c++17 -fPIC  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -MD -MT lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AllocationOrder.cpp.o -MF lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AllocationOrder.cpp.o.d -o lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AllocationOrder.cpp.o -c /home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/llvm/lib/CodeGen/AllocationOrder.cpp
In file included from /home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/llvm/include/llvm/CodeGen/MachineFunction.h:35,
                 from /home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/llvm/lib/CodeGen/AllocationOrder.cpp:17:
/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/llvm/include/llvm/Target/TargetOptions.h:414:17: error: declaration of ‘llvm::VectorLibrary llvm::TargetOptions::VectorLibrary’ changes meaning of ‘VectorLibrary’ [-fpermissive]
  414 |   VectorLibrary VectorLibrary = VectorLibrary::NoLibrary;
      |                 ^~~~~~~~~~~~~
In file included from /home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/llvm/include/llvm/Target/TargetOptions.h:18,
                 from /home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/llvm/include/llvm/CodeGen/MachineFunction.h:35,
                 from /home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/llvm/lib/CodeGen/AllocationOrder.cpp:17:
/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/llvm/include/llvm/IR/SystemLibraries.h:20:12: note: ‘VectorLibrary’ declared here as ‘enum class llvm::VectorLibrary’
   20 | enum class VectorLibrary {
      |            ^~~~~~~~~~~~~
[1390/8205] Building CXX object lib/IR/CMakeFiles/LLVMCore.dir/RuntimeLibcalls.cpp.o
In file included from /home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/llvm/lib/IR/RuntimeLibcalls.cpp:27:
/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/build/include/llvm/IR/RuntimeLibcalls.inc: In member function ‘void llvm::RTLIB::RuntimeLibcallsInfo::setTargetRuntimeLibcallSets(const llvm::Triple&, llvm::ExceptionHandling, llvm::FloatABI::ABIType, llvm::EABI, llvm::StringRef)’:
/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/build/include/llvm/IR/RuntimeLibcalls.inc:23140:57: warning: enumerated and non-enumerated type in conditional expression [-Wextra]
23140 |         setLibcallImplCallingConv(Impl, TT.isWatchABI() ? DefaultCC :
      |                                         ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
23141 |     (isAAPCS_ABI(TT, ABIName) ? CallingConv::ARM_AAPCS : CallingConv::ARM_APCS));
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/build/include/llvm/IR/RuntimeLibcalls.inc:23153:57: warning: enumerated and non-enumerated type in conditional expression [-Wextra]
23153 |         setLibcallImplCallingConv(Impl, TT.isWatchABI() ? DefaultCC :
      |                                         ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
Step 7 (build cmake config) failure: build cmake config (failure)
...
[1378/8205] Building CXX object lib/CGData/CMakeFiles/LLVMCGData.dir/CodeGenDataReader.cpp.o
[1379/8205] Building CXX object lib/CGData/CMakeFiles/LLVMCGData.dir/OutlinedHashTreeRecord.cpp.o
[1380/8205] Building CXX object lib/CGData/CMakeFiles/LLVMCGData.dir/StableFunctionMap.cpp.o
[1381/8205] Building CXX object lib/CGData/CMakeFiles/LLVMCGData.dir/OutlinedHashTree.cpp.o
[1382/8205] Building CXX object lib/CGData/CMakeFiles/LLVMCGData.dir/StableFunctionMapRecord.cpp.o
[1383/8205] Building CXX object lib/CGData/CMakeFiles/LLVMCGData.dir/CodeGenDataWriter.cpp.o
[1384/8205] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AssignmentTrackingAnalysis.cpp.o
[1385/8205] Building X86GenFoldTables.inc...
[1386/8205] Building X86GenFastISel.inc...
[1387/8205] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/FuncletLayout.cpp.o
FAILED: lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/FuncletLayout.cpp.o 
ccache /usr/bin/c++ -DGTEST_HAS_RTTI=0 -DLLVM_EXPORTS -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GLIBCXX_USE_CXX11_ABI=1 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/build/lib/CodeGen -I/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/llvm/lib/CodeGen -I/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/build/include -I/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-array-bounds -Wno-stringop-overread -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=c++17 -fPIC  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -MD -MT lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/FuncletLayout.cpp.o -MF lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/FuncletLayout.cpp.o.d -o lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/FuncletLayout.cpp.o -c /home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/llvm/lib/CodeGen/FuncletLayout.cpp
In file included from /home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/llvm/include/llvm/CodeGen/MachineFunction.h:35,
                 from /home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/llvm/lib/CodeGen/FuncletLayout.cpp:14:
/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/llvm/include/llvm/Target/TargetOptions.h:414:17: error: declaration of ‘llvm::VectorLibrary llvm::TargetOptions::VectorLibrary’ changes meaning of ‘VectorLibrary’ [-fpermissive]
  414 |   VectorLibrary VectorLibrary = VectorLibrary::NoLibrary;
      |                 ^~~~~~~~~~~~~
In file included from /home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/llvm/include/llvm/Target/TargetOptions.h:18,
                 from /home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/llvm/include/llvm/CodeGen/MachineFunction.h:35,
                 from /home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/llvm/lib/CodeGen/FuncletLayout.cpp:14:
/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/llvm/include/llvm/IR/SystemLibraries.h:20:12: note: ‘VectorLibrary’ declared here as ‘enum class llvm::VectorLibrary’
   20 | enum class VectorLibrary {
      |            ^~~~~~~~~~~~~
[1388/8205] Building X86GenGlobalISel.inc...
[1389/8205] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AllocationOrder.cpp.o
FAILED: lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AllocationOrder.cpp.o 
ccache /usr/bin/c++ -DGTEST_HAS_RTTI=0 -DLLVM_EXPORTS -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GLIBCXX_USE_CXX11_ABI=1 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/build/lib/CodeGen -I/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/llvm/lib/CodeGen -I/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/build/include -I/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-array-bounds -Wno-stringop-overread -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=c++17 -fPIC  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -MD -MT lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AllocationOrder.cpp.o -MF lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AllocationOrder.cpp.o.d -o lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AllocationOrder.cpp.o -c /home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/llvm/lib/CodeGen/AllocationOrder.cpp
In file included from /home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/llvm/include/llvm/CodeGen/MachineFunction.h:35,
                 from /home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/llvm/lib/CodeGen/AllocationOrder.cpp:17:
/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/llvm/include/llvm/Target/TargetOptions.h:414:17: error: declaration of ‘llvm::VectorLibrary llvm::TargetOptions::VectorLibrary’ changes meaning of ‘VectorLibrary’ [-fpermissive]
  414 |   VectorLibrary VectorLibrary = VectorLibrary::NoLibrary;
      |                 ^~~~~~~~~~~~~
In file included from /home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/llvm/include/llvm/Target/TargetOptions.h:18,
                 from /home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/llvm/include/llvm/CodeGen/MachineFunction.h:35,
                 from /home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/llvm/lib/CodeGen/AllocationOrder.cpp:17:
/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/llvm/include/llvm/IR/SystemLibraries.h:20:12: note: ‘VectorLibrary’ declared here as ‘enum class llvm::VectorLibrary’
   20 | enum class VectorLibrary {
      |            ^~~~~~~~~~~~~
[1390/8205] Building CXX object lib/IR/CMakeFiles/LLVMCore.dir/RuntimeLibcalls.cpp.o
In file included from /home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/llvm/lib/IR/RuntimeLibcalls.cpp:27:
/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/build/include/llvm/IR/RuntimeLibcalls.inc: In member function ‘void llvm::RTLIB::RuntimeLibcallsInfo::setTargetRuntimeLibcallSets(const llvm::Triple&, llvm::ExceptionHandling, llvm::FloatABI::ABIType, llvm::EABI, llvm::StringRef)’:
/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/build/include/llvm/IR/RuntimeLibcalls.inc:23140:57: warning: enumerated and non-enumerated type in conditional expression [-Wextra]
23140 |         setLibcallImplCallingConv(Impl, TT.isWatchABI() ? DefaultCC :
      |                                         ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
23141 |     (isAAPCS_ABI(TT, ABIName) ? CallingConv::ARM_AAPCS : CallingConv::ARM_APCS));
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/build/include/llvm/IR/RuntimeLibcalls.inc:23153:57: warning: enumerated and non-enumerated type in conditional expression [-Wextra]
23153 |         setLibcallImplCallingConv(Impl, TT.isWatchABI() ? DefaultCC :
      |                                         ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~

@llvm-ci
Copy link
Collaborator

llvm-ci commented Nov 14, 2025

LLVM Buildbot has detected a new failure on builder amdgpu-offload-ubuntu-22-cmake-build-only running on rocm-docker-ubu-22 while building clang,cross-project-tests,llvm at step 4 "annotate".

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

Here is the relevant piece of the build log for the reference
Step 4 (annotate) failure: '../llvm-zorg/zorg/buildbot/builders/annotated/amdgpu-offload-cmake.py --jobs=32' (failure)
...
[1283/8205] Building CXX object lib/CGData/CMakeFiles/LLVMCGData.dir/OutlinedHashTreeRecord.cpp.o
[1284/8205] Building CXX object lib/CGData/CMakeFiles/LLVMCGData.dir/StableFunctionMap.cpp.o
[1285/8205] Building CXX object lib/CGData/CMakeFiles/LLVMCGData.dir/StableFunctionMapRecord.cpp.o
[1286/8205] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AssignmentTrackingAnalysis.cpp.o
[1287/8205] Building X86GenRegisterInfo.inc...
[1288/8205] Building X86GenDisassemblerTables.inc...
[1289/8205] Building X86GenMnemonicTables.inc...
[1290/8205] Building X86GenFoldTables.inc...
[1291/8205] Building X86GenGlobalISel.inc...
[1292/8205] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/FuncletLayout.cpp.o
FAILED: lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/FuncletLayout.cpp.o 
ccache /usr/bin/c++ -DGTEST_HAS_RTTI=0 -DLLVM_EXPORTS -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GLIBCXX_USE_CXX11_ABI=1 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/build/lib/CodeGen -I/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/llvm-project/llvm/lib/CodeGen -I/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/build/include -I/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-array-bounds -Wno-stringop-overread -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -fPIC  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -std=c++17 -MD -MT lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/FuncletLayout.cpp.o -MF lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/FuncletLayout.cpp.o.d -o lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/FuncletLayout.cpp.o -c /home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/llvm-project/llvm/lib/CodeGen/FuncletLayout.cpp
In file included from /home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/llvm-project/llvm/include/llvm/CodeGen/MachineFunction.h:35,
                 from /home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/llvm-project/llvm/lib/CodeGen/FuncletLayout.cpp:14:
/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/llvm-project/llvm/include/llvm/Target/TargetOptions.h:414:17: error: declaration of ‘llvm::VectorLibrary llvm::TargetOptions::VectorLibrary’ changes meaning of ‘VectorLibrary’ [-fpermissive]
  414 |   VectorLibrary VectorLibrary = VectorLibrary::NoLibrary;
      |                 ^~~~~~~~~~~~~
In file included from /home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/llvm-project/llvm/include/llvm/Target/TargetOptions.h:18,
                 from /home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/llvm-project/llvm/include/llvm/CodeGen/MachineFunction.h:35,
                 from /home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/llvm-project/llvm/lib/CodeGen/FuncletLayout.cpp:14:
/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/llvm-project/llvm/include/llvm/IR/SystemLibraries.h:20:12: note: ‘VectorLibrary’ declared here as ‘enum class llvm::VectorLibrary’
   20 | enum class VectorLibrary {
      |            ^~~~~~~~~~~~~
[1293/8205] Building X86GenFastISel.inc...
[1294/8205] Building CXX object lib/IR/CMakeFiles/LLVMCore.dir/RuntimeLibcalls.cpp.o
In file included from /home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/llvm-project/llvm/lib/IR/RuntimeLibcalls.cpp:27:
/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/build/include/llvm/IR/RuntimeLibcalls.inc: In member function ‘void llvm::RTLIB::RuntimeLibcallsInfo::setTargetRuntimeLibcallSets(const llvm::Triple&, llvm::ExceptionHandling, llvm::FloatABI::ABIType, llvm::EABI, llvm::StringRef)’:
/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/build/include/llvm/IR/RuntimeLibcalls.inc:23140:57: warning: enumerated and non-enumerated type in conditional expression [-Wextra]
23140 |         setLibcallImplCallingConv(Impl, TT.isWatchABI() ? DefaultCC :
      |                                         ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
23141 |     (isAAPCS_ABI(TT, ABIName) ? CallingConv::ARM_AAPCS : CallingConv::ARM_APCS));
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/build/include/llvm/IR/RuntimeLibcalls.inc:23153:57: warning: enumerated and non-enumerated type in conditional expression [-Wextra]
23153 |         setLibcallImplCallingConv(Impl, TT.isWatchABI() ? DefaultCC :
      |                                         ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
23154 |     (isAAPCS_ABI(TT, ABIName) ? CallingConv::ARM_AAPCS : CallingConv::ARM_APCS));
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/build/include/llvm/IR/RuntimeLibcalls.inc:23168:57: warning: enumerated and non-enumerated type in conditional expression [-Wextra]
23168 |         setLibcallImplCallingConv(Impl, TT.isWatchABI() ? DefaultCC :
      |                                         ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
23169 |     (isAAPCS_ABI(TT, ABIName) ? CallingConv::ARM_AAPCS : CallingConv::ARM_APCS));
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[1295/8205] Building X86GenDAGISel.inc...
[1296/8205] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AllocationOrder.cpp.o
FAILED: lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AllocationOrder.cpp.o 
ccache /usr/bin/c++ -DGTEST_HAS_RTTI=0 -DLLVM_EXPORTS -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GLIBCXX_USE_CXX11_ABI=1 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/build/lib/CodeGen -I/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/llvm-project/llvm/lib/CodeGen -I/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/build/include -I/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-array-bounds -Wno-stringop-overread -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -fPIC  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -std=c++17 -MD -MT lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AllocationOrder.cpp.o -MF lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AllocationOrder.cpp.o.d -o lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AllocationOrder.cpp.o -c /home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/llvm-project/llvm/lib/CodeGen/AllocationOrder.cpp
In file included from /home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/llvm-project/llvm/include/llvm/CodeGen/MachineFunction.h:35,
                 from /home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/llvm-project/llvm/lib/CodeGen/AllocationOrder.cpp:17:
/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/llvm-project/llvm/include/llvm/Target/TargetOptions.h:414:17: error: declaration of ‘llvm::VectorLibrary llvm::TargetOptions::VectorLibrary’ changes meaning of ‘VectorLibrary’ [-fpermissive]
Step 7 (build cmake config) failure: build cmake config (failure)
...
[1283/8205] Building CXX object lib/CGData/CMakeFiles/LLVMCGData.dir/OutlinedHashTreeRecord.cpp.o
[1284/8205] Building CXX object lib/CGData/CMakeFiles/LLVMCGData.dir/StableFunctionMap.cpp.o
[1285/8205] Building CXX object lib/CGData/CMakeFiles/LLVMCGData.dir/StableFunctionMapRecord.cpp.o
[1286/8205] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AssignmentTrackingAnalysis.cpp.o
[1287/8205] Building X86GenRegisterInfo.inc...
[1288/8205] Building X86GenDisassemblerTables.inc...
[1289/8205] Building X86GenMnemonicTables.inc...
[1290/8205] Building X86GenFoldTables.inc...
[1291/8205] Building X86GenGlobalISel.inc...
[1292/8205] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/FuncletLayout.cpp.o
FAILED: lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/FuncletLayout.cpp.o 
ccache /usr/bin/c++ -DGTEST_HAS_RTTI=0 -DLLVM_EXPORTS -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GLIBCXX_USE_CXX11_ABI=1 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/build/lib/CodeGen -I/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/llvm-project/llvm/lib/CodeGen -I/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/build/include -I/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-array-bounds -Wno-stringop-overread -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -fPIC  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -std=c++17 -MD -MT lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/FuncletLayout.cpp.o -MF lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/FuncletLayout.cpp.o.d -o lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/FuncletLayout.cpp.o -c /home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/llvm-project/llvm/lib/CodeGen/FuncletLayout.cpp
In file included from /home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/llvm-project/llvm/include/llvm/CodeGen/MachineFunction.h:35,
                 from /home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/llvm-project/llvm/lib/CodeGen/FuncletLayout.cpp:14:
/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/llvm-project/llvm/include/llvm/Target/TargetOptions.h:414:17: error: declaration of ‘llvm::VectorLibrary llvm::TargetOptions::VectorLibrary’ changes meaning of ‘VectorLibrary’ [-fpermissive]
  414 |   VectorLibrary VectorLibrary = VectorLibrary::NoLibrary;
      |                 ^~~~~~~~~~~~~
In file included from /home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/llvm-project/llvm/include/llvm/Target/TargetOptions.h:18,
                 from /home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/llvm-project/llvm/include/llvm/CodeGen/MachineFunction.h:35,
                 from /home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/llvm-project/llvm/lib/CodeGen/FuncletLayout.cpp:14:
/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/llvm-project/llvm/include/llvm/IR/SystemLibraries.h:20:12: note: ‘VectorLibrary’ declared here as ‘enum class llvm::VectorLibrary’
   20 | enum class VectorLibrary {
      |            ^~~~~~~~~~~~~
[1293/8205] Building X86GenFastISel.inc...
[1294/8205] Building CXX object lib/IR/CMakeFiles/LLVMCore.dir/RuntimeLibcalls.cpp.o
In file included from /home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/llvm-project/llvm/lib/IR/RuntimeLibcalls.cpp:27:
/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/build/include/llvm/IR/RuntimeLibcalls.inc: In member function ‘void llvm::RTLIB::RuntimeLibcallsInfo::setTargetRuntimeLibcallSets(const llvm::Triple&, llvm::ExceptionHandling, llvm::FloatABI::ABIType, llvm::EABI, llvm::StringRef)’:
/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/build/include/llvm/IR/RuntimeLibcalls.inc:23140:57: warning: enumerated and non-enumerated type in conditional expression [-Wextra]
23140 |         setLibcallImplCallingConv(Impl, TT.isWatchABI() ? DefaultCC :
      |                                         ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
23141 |     (isAAPCS_ABI(TT, ABIName) ? CallingConv::ARM_AAPCS : CallingConv::ARM_APCS));
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/build/include/llvm/IR/RuntimeLibcalls.inc:23153:57: warning: enumerated and non-enumerated type in conditional expression [-Wextra]
23153 |         setLibcallImplCallingConv(Impl, TT.isWatchABI() ? DefaultCC :
      |                                         ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
23154 |     (isAAPCS_ABI(TT, ABIName) ? CallingConv::ARM_AAPCS : CallingConv::ARM_APCS));
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/build/include/llvm/IR/RuntimeLibcalls.inc:23168:57: warning: enumerated and non-enumerated type in conditional expression [-Wextra]
23168 |         setLibcallImplCallingConv(Impl, TT.isWatchABI() ? DefaultCC :
      |                                         ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
23169 |     (isAAPCS_ABI(TT, ABIName) ? CallingConv::ARM_AAPCS : CallingConv::ARM_APCS));
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[1295/8205] Building X86GenDAGISel.inc...
[1296/8205] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AllocationOrder.cpp.o
FAILED: lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AllocationOrder.cpp.o 
ccache /usr/bin/c++ -DGTEST_HAS_RTTI=0 -DLLVM_EXPORTS -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GLIBCXX_USE_CXX11_ABI=1 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/build/lib/CodeGen -I/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/llvm-project/llvm/lib/CodeGen -I/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/build/include -I/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-array-bounds -Wno-stringop-overread -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -fPIC  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -std=c++17 -MD -MT lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AllocationOrder.cpp.o -MF lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AllocationOrder.cpp.o.d -o lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AllocationOrder.cpp.o -c /home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/llvm-project/llvm/lib/CodeGen/AllocationOrder.cpp
In file included from /home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/llvm-project/llvm/include/llvm/CodeGen/MachineFunction.h:35,
                 from /home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/llvm-project/llvm/lib/CodeGen/AllocationOrder.cpp:17:
/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/llvm-project/llvm/include/llvm/Target/TargetOptions.h:414:17: error: declaration of ‘llvm::VectorLibrary llvm::TargetOptions::VectorLibrary’ changes meaning of ‘VectorLibrary’ [-fpermissive]

@llvm-ci
Copy link
Collaborator

llvm-ci commented Nov 14, 2025

LLVM Buildbot has detected a new failure on builder amdgpu-offload-rhel-8-cmake-build-only running on rocm-docker-rhel-8 while building clang,cross-project-tests,llvm at step 4 "annotate".

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

Here is the relevant piece of the build log for the reference
Step 4 (annotate) failure: '../llvm-zorg/zorg/buildbot/builders/annotated/amdgpu-offload-cmake.py --jobs=32' (failure)
...
     (isAAPCS_ABI(TT, ABIName) ? CallingConv::ARM_AAPCS : CallingConv::ARM_APCS));
     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/include/llvm/IR/RuntimeLibcalls.inc:23168:57: warning: enumeral and non-enumeral type in conditional expression [-Wextra]
         setLibcallImplCallingConv(Impl, TT.isWatchABI() ? DefaultCC :
                                         ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
     (isAAPCS_ABI(TT, ABIName) ? CallingConv::ARM_AAPCS : CallingConv::ARM_APCS));
     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[1359/8205] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/CallBrPrepare.cpp.o
[1360/8205] Building X86GenGlobalISel.inc...
[1361/8205] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AllocationOrder.cpp.o
FAILED: lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AllocationOrder.cpp.o 
ccache /usr/bin/c++ -DGTEST_HAS_RTTI=0 -DLLVM_EXPORTS -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GLIBCXX_USE_CXX11_ABI=1 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/lib/CodeGen -I/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/lib/CodeGen -I/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/include -I/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-array-bounds -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wno-comment -Wno-misleading-indentation -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=c++17 -fPIC  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -MD -MT lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AllocationOrder.cpp.o -MF lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AllocationOrder.cpp.o.d -o lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AllocationOrder.cpp.o -c /home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/lib/CodeGen/AllocationOrder.cpp
In file included from /home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/include/llvm/CodeGen/MachineFunction.h:35,
                 from /home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/lib/CodeGen/AllocationOrder.cpp:17:
/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/include/llvm/Target/TargetOptions.h:414:48: error: declaration of ‘llvm::VectorLibrary llvm::TargetOptions::VectorLibrary’ [-fpermissive]
   VectorLibrary VectorLibrary = VectorLibrary::NoLibrary;
                                                ^~~~~~~~~
In file included from /home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/include/llvm/Target/TargetOptions.h:18,
                 from /home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/include/llvm/CodeGen/MachineFunction.h:35,
                 from /home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/lib/CodeGen/AllocationOrder.cpp:17:
/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/include/llvm/IR/SystemLibraries.h:20:12: error: changes meaning of ‘VectorLibrary’ from ‘enum class llvm::VectorLibrary’ [-fpermissive]
 enum class VectorLibrary {
            ^~~~~~~~~~~~~
[1362/8205] Building X86GenSubtargetInfo.inc...
[1363/8205] Building X86GenDAGISel.inc...
[1364/8205] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/BranchRelaxation.cpp.o
FAILED: lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/BranchRelaxation.cpp.o 
ccache /usr/bin/c++ -DGTEST_HAS_RTTI=0 -DLLVM_EXPORTS -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GLIBCXX_USE_CXX11_ABI=1 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/lib/CodeGen -I/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/lib/CodeGen -I/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/include -I/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-array-bounds -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wno-comment -Wno-misleading-indentation -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=c++17 -fPIC  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -MD -MT lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/BranchRelaxation.cpp.o -MF lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/BranchRelaxation.cpp.o.d -o lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/BranchRelaxation.cpp.o -c /home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/lib/CodeGen/BranchRelaxation.cpp
In file included from /home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/include/llvm/CodeGen/MachineFunction.h:35,
                 from /home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/include/llvm/CodeGen/MachinePassManager.h:26,
                 from /home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/include/llvm/CodeGen/BranchRelaxation.h:12,
                 from /home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/lib/CodeGen/BranchRelaxation.cpp:9:
/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/include/llvm/Target/TargetOptions.h:414:48: error: declaration of ‘llvm::VectorLibrary llvm::TargetOptions::VectorLibrary’ [-fpermissive]
   VectorLibrary VectorLibrary = VectorLibrary::NoLibrary;
                                                ^~~~~~~~~
In file included from /home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/include/llvm/Target/TargetOptions.h:18,
                 from /home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/include/llvm/CodeGen/MachineFunction.h:35,
                 from /home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/include/llvm/CodeGen/MachinePassManager.h:26,
                 from /home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/include/llvm/CodeGen/BranchRelaxation.h:12,
                 from /home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/lib/CodeGen/BranchRelaxation.cpp:9:
/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/include/llvm/IR/SystemLibraries.h:20:12: error: changes meaning of ‘VectorLibrary’ from ‘enum class llvm::VectorLibrary’ [-fpermissive]
 enum class VectorLibrary {
            ^~~~~~~~~~~~~
[1365/8205] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/BreakFalseDeps.cpp.o
FAILED: lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/BreakFalseDeps.cpp.o 
ccache /usr/bin/c++ -DGTEST_HAS_RTTI=0 -DLLVM_EXPORTS -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GLIBCXX_USE_CXX11_ABI=1 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/lib/CodeGen -I/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/lib/CodeGen -I/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/include -I/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-array-bounds -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wno-comment -Wno-misleading-indentation -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=c++17 -fPIC  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -MD -MT lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/BreakFalseDeps.cpp.o -MF lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/BreakFalseDeps.cpp.o.d -o lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/BreakFalseDeps.cpp.o -c /home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/lib/CodeGen/BreakFalseDeps.cpp
In file included from /home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/include/llvm/CodeGen/MachineFunction.h:35,
                 from /home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/include/llvm/CodeGen/MachineFunctionPass.h:21,
                 from /home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/lib/CodeGen/BreakFalseDeps.cpp:22:
Step 7 (build cmake config) failure: build cmake config (failure)
...
     (isAAPCS_ABI(TT, ABIName) ? CallingConv::ARM_AAPCS : CallingConv::ARM_APCS));
     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/include/llvm/IR/RuntimeLibcalls.inc:23168:57: warning: enumeral and non-enumeral type in conditional expression [-Wextra]
         setLibcallImplCallingConv(Impl, TT.isWatchABI() ? DefaultCC :
                                         ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
     (isAAPCS_ABI(TT, ABIName) ? CallingConv::ARM_AAPCS : CallingConv::ARM_APCS));
     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[1359/8205] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/CallBrPrepare.cpp.o
[1360/8205] Building X86GenGlobalISel.inc...
[1361/8205] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AllocationOrder.cpp.o
FAILED: lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AllocationOrder.cpp.o 
ccache /usr/bin/c++ -DGTEST_HAS_RTTI=0 -DLLVM_EXPORTS -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GLIBCXX_USE_CXX11_ABI=1 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/lib/CodeGen -I/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/lib/CodeGen -I/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/include -I/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-array-bounds -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wno-comment -Wno-misleading-indentation -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=c++17 -fPIC  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -MD -MT lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AllocationOrder.cpp.o -MF lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AllocationOrder.cpp.o.d -o lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AllocationOrder.cpp.o -c /home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/lib/CodeGen/AllocationOrder.cpp
In file included from /home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/include/llvm/CodeGen/MachineFunction.h:35,
                 from /home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/lib/CodeGen/AllocationOrder.cpp:17:
/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/include/llvm/Target/TargetOptions.h:414:48: error: declaration of ‘llvm::VectorLibrary llvm::TargetOptions::VectorLibrary’ [-fpermissive]
   VectorLibrary VectorLibrary = VectorLibrary::NoLibrary;
                                                ^~~~~~~~~
In file included from /home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/include/llvm/Target/TargetOptions.h:18,
                 from /home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/include/llvm/CodeGen/MachineFunction.h:35,
                 from /home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/lib/CodeGen/AllocationOrder.cpp:17:
/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/include/llvm/IR/SystemLibraries.h:20:12: error: changes meaning of ‘VectorLibrary’ from ‘enum class llvm::VectorLibrary’ [-fpermissive]
 enum class VectorLibrary {
            ^~~~~~~~~~~~~
[1362/8205] Building X86GenSubtargetInfo.inc...
[1363/8205] Building X86GenDAGISel.inc...
[1364/8205] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/BranchRelaxation.cpp.o
FAILED: lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/BranchRelaxation.cpp.o 
ccache /usr/bin/c++ -DGTEST_HAS_RTTI=0 -DLLVM_EXPORTS -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GLIBCXX_USE_CXX11_ABI=1 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/lib/CodeGen -I/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/lib/CodeGen -I/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/include -I/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-array-bounds -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wno-comment -Wno-misleading-indentation -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=c++17 -fPIC  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -MD -MT lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/BranchRelaxation.cpp.o -MF lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/BranchRelaxation.cpp.o.d -o lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/BranchRelaxation.cpp.o -c /home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/lib/CodeGen/BranchRelaxation.cpp
In file included from /home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/include/llvm/CodeGen/MachineFunction.h:35,
                 from /home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/include/llvm/CodeGen/MachinePassManager.h:26,
                 from /home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/include/llvm/CodeGen/BranchRelaxation.h:12,
                 from /home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/lib/CodeGen/BranchRelaxation.cpp:9:
/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/include/llvm/Target/TargetOptions.h:414:48: error: declaration of ‘llvm::VectorLibrary llvm::TargetOptions::VectorLibrary’ [-fpermissive]
   VectorLibrary VectorLibrary = VectorLibrary::NoLibrary;
                                                ^~~~~~~~~
In file included from /home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/include/llvm/Target/TargetOptions.h:18,
                 from /home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/include/llvm/CodeGen/MachineFunction.h:35,
                 from /home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/include/llvm/CodeGen/MachinePassManager.h:26,
                 from /home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/include/llvm/CodeGen/BranchRelaxation.h:12,
                 from /home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/lib/CodeGen/BranchRelaxation.cpp:9:
/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/include/llvm/IR/SystemLibraries.h:20:12: error: changes meaning of ‘VectorLibrary’ from ‘enum class llvm::VectorLibrary’ [-fpermissive]
 enum class VectorLibrary {
            ^~~~~~~~~~~~~
[1365/8205] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/BreakFalseDeps.cpp.o
FAILED: lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/BreakFalseDeps.cpp.o 
ccache /usr/bin/c++ -DGTEST_HAS_RTTI=0 -DLLVM_EXPORTS -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GLIBCXX_USE_CXX11_ABI=1 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/lib/CodeGen -I/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/lib/CodeGen -I/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/include -I/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-array-bounds -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wno-comment -Wno-misleading-indentation -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=c++17 -fPIC  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -MD -MT lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/BreakFalseDeps.cpp.o -MF lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/BreakFalseDeps.cpp.o.d -o lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/BreakFalseDeps.cpp.o -c /home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/lib/CodeGen/BreakFalseDeps.cpp
In file included from /home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/include/llvm/CodeGen/MachineFunction.h:35,
                 from /home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/include/llvm/CodeGen/MachineFunctionPass.h:21,
                 from /home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/lib/CodeGen/BreakFalseDeps.cpp:22:

@llvm-ci
Copy link
Collaborator

llvm-ci commented Nov 14, 2025

LLVM Buildbot has detected a new failure on builder flang-x86_64-windows running on minipc-ryzen-win while building clang,cross-project-tests,llvm at step 6 "build-unified-tree".

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

Here is the relevant piece of the build log for the reference
Step 6 (build-unified-tree) failure: build (failure)
...
8.817 [3/6/124] Building C object CMakeFiles\clang_rt.builtins-x86_64.dir\truncdfbf2.c.obj
8.828 [2/6/125] Building C object CMakeFiles\clang_rt.builtins-x86_64.dir\x86_64\floatdisf.c.obj
8.837 [1/6/126] Building C object CMakeFiles\clang_rt.builtins-x86_64.dir\extendbfsf2.c.obj
8.989 [1/5/127] Building C object CMakeFiles\clang_rt.builtins-x86_64.dir\truncxfbf2.c.obj
9.047 [1/4/128] Building C object CMakeFiles\clang_rt.builtins-x86_64.dir\truncsfbf2.c.obj
9.065 [1/3/129] Building C object CMakeFiles\clang_rt.builtins-x86_64.dir\trunctfbf2.c.obj
9.205 [1/2/130] Building C object CMakeFiles\clang_rt.builtins-x86_64.dir\emutls.c.obj
9.845 [1/1/131] Building C object CMakeFiles\clang_rt.builtins-x86_64.dir\cpu_model\x86.c.obj
9.897 [0/1/132] Linking C static library C:\buildbot\flang-x86_64-windows\build\lib\clang\22\lib\windows\clang_rt.builtins-x86_64.lib
3398.618 [1861/6/5419] Building CXX object tools\opt\CMakeFiles\LLVMOptDriver.dir\optdriver.cpp.obj
FAILED: [code=2] tools/opt/CMakeFiles/LLVMOptDriver.dir/optdriver.cpp.obj 
ccache C:\PROGRA~1\MICROS~2\2022\COMMUN~1\VC\Tools\MSVC\1444~1.352\bin\Hostx64\x64\cl.exe  /nologo /TP -DGTEST_HAS_RTTI=0 -DUNICODE -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_GLIBCXX_ASSERTIONS -D_HAS_EXCEPTIONS=0 -D_SCL_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS -D_UNICODE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -IC:\buildbot\flang-x86_64-windows\build\tools\opt -IC:\buildbot\flang-x86_64-windows\llvm-project\llvm\tools\opt -IC:\buildbot\flang-x86_64-windows\build\include -IC:\buildbot\flang-x86_64-windows\llvm-project\llvm\include /DWIN32 /D_WINDOWS   /Zc:inline /Zc:preprocessor /Zc:__cplusplus /Oi /bigobj /permissive- /W4 -wd4141 -wd4146 -wd4244 -wd4267 -wd4291 -wd4351 -wd4456 -wd4457 -wd4458 -wd4459 -wd4503 -wd4624 -wd4722 -wd4100 -wd4127 -wd4512 -wd4505 -wd4610 -wd4510 -wd4702 -wd4245 -wd4706 -wd4310 -wd4701 -wd4703 -wd4389 -wd4611 -wd4805 -wd4204 -wd4577 -wd4091 -wd4592 -wd4319 -wd4709 -wd5105 -wd4324 -wd4251 -wd4275 -w14062 -we4238 /Gw /O2 /Ob2  -std:c++17 -MD  /EHs-c- /GR- -UNDEBUG /showIncludes /Fotools\opt\CMakeFiles\LLVMOptDriver.dir\optdriver.cpp.obj /Fdtools\opt\CMakeFiles\LLVMOptDriver.dir\LLVMOptDriver.pdb /FS -c C:\buildbot\flang-x86_64-windows\llvm-project\llvm\tools\opt\optdriver.cpp
..\llvm-project\llvm\tools\opt\optdriver.cpp(684): error C2374: 'RTLCI': redefinition; multiple initialization
..\llvm-project\llvm\tools\opt\optdriver.cpp(677): note: see declaration of 'RTLCI'
..\llvm-project\llvm\tools\opt\optdriver.cpp(684): error C2086: 'llvm::RTLIB::RuntimeLibcallsInfo RTLCI': redefinition
..\llvm-project\llvm\tools\opt\optdriver.cpp(677): note: see declaration of 'RTLCI'
3399.298 [1861/4/5421] Building CXX object tools\opt\CMakeFiles\LLVMOptDriver.dir\NewPMDriver.cpp.obj
3403.244 [1861/2/5423] Building CXX object tools\flang\lib\Optimizer\CodeGen\CMakeFiles\FIRCodeGen.dir\CodeGenOpenMP.cpp.obj
3443.221 [1861/1/5424] Building CXX object tools\flang\lib\Optimizer\CodeGen\CMakeFiles\FIRCodeGen.dir\CodeGen.cpp.obj
ninja: build stopped: subcommand failed.
Cache directory:      C:\Users\buildbot-worker\AppData\Local\ccache
Config file:          C:\Users\buildbot-worker\AppData\Local\ccache\ccache.conf
System config file:   C:\ProgramData\ccache\ccache.conf
Stats updated:        11/14/25 13:33:05
Cacheable calls:       3656 / 3657 (99.97%)
  Hits:                2605 / 3656 (71.25%)
    Direct:            2581 / 2605 (99.08%)
    Preprocessed:        24 / 2605 ( 0.92%)
  Misses:              1051 / 3656 (28.75%)
Uncacheable calls:        1 / 3657 ( 0.03%)
  Compilation failed:     1 /    1 (100.0%)
Successful lookups:
  Direct:              2581 / 3657 (70.58%)
  Preprocessed:          24 / 1076 ( 2.23%)
Local storage:
  Cache size (GB):      5.0 /  5.0 (99.76%)
  Files:              21617
  Cleanups:              80
  Hits:                2611 / 3662 (71.30%)
  Misses:              1051 / 3662 (28.70%)
  Reads:               7336
  Writes:              2104

@llvm-ci
Copy link
Collaborator

llvm-ci commented Nov 14, 2025

LLVM Buildbot has detected a new failure on builder clang-x64-windows-msvc running on windows-gcebot2 while building clang,cross-project-tests,llvm at step 4 "annotate".

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

Here is the relevant piece of the build log for the reference
Step 4 (annotate) failure: 'python ../llvm-zorg/zorg/buildbot/builders/annotated/clang-windows.py ...' (failure)
...
[2918/2987] Building CXX object tools\llvm-reduce\CMakeFiles\llvm-reduce.dir\deltas\ReduceRegisterUses.cpp.obj
[2919/2987] Building CXX object tools\llvm-reduce\CMakeFiles\llvm-reduce.dir\deltas\Delta.cpp.obj
[2920/2987] Building CXX object tools\llvm-reduce\CMakeFiles\llvm-reduce.dir\deltas\ReduceRegisterMasks.cpp.obj
[2921/2987] Building CXX object tools\llvm-dwarfutil\CMakeFiles\llvm-dwarfutil.dir\DebugInfoLinker.cpp.obj
[2922/2987] Building CXX object tools\llvm-reduce\CMakeFiles\llvm-reduce.dir\deltas\ReduceInstructionsMIR.cpp.obj
[2923/2987] Building CXX object tools\llvm-reduce\CMakeFiles\llvm-reduce.dir\deltas\ReduceRegisterDefs.cpp.obj
[2924/2987] Building CXX object tools\llvm-exegesis\lib\CMakeFiles\LLVMExegesis.dir\BenchmarkResult.cpp.obj
[2925/2987] Building CXX object tools\llvm-tli-checker\CMakeFiles\llvm-tli-checker.dir\llvm-tli-checker.cpp.obj
[2926/2987] Building CXX object tools\llvm-exegesis\lib\CMakeFiles\LLVMExegesis.dir\Assembler.cpp.obj
[2927/2987] Building CXX object tools\opt\CMakeFiles\LLVMOptDriver.dir\optdriver.cpp.obj
FAILED: tools/opt/CMakeFiles/LLVMOptDriver.dir/optdriver.cpp.obj 
C:\PROGRA~2\MICROS~3\2019\PROFES~1\VC\Tools\MSVC\1428~1.293\bin\Hostx64\x64\cl.exe  /nologo /TP -DGTEST_HAS_RTTI=0 -DUNICODE -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_HAS_EXCEPTIONS=0 -D_SCL_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS -D_UNICODE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -IC:\b\slave\clang-x64-windows-msvc\build\stage1\tools\opt -IC:\b\slave\clang-x64-windows-msvc\llvm-project\llvm\tools\opt -IC:\b\slave\clang-x64-windows-msvc\build\stage1\include -IC:\b\slave\clang-x64-windows-msvc\llvm-project\llvm\include /DWIN32 /D_WINDOWS   /Zc:inline /Zc:preprocessor /Zc:__cplusplus /Oi /bigobj /permissive- /W4 -wd4141 -wd4146 -wd4244 -wd4267 -wd4291 -wd4351 -wd4456 -wd4457 -wd4458 -wd4459 -wd4503 -wd4624 -wd4722 -wd4100 -wd4127 -wd4512 -wd4505 -wd4610 -wd4510 -wd4702 -wd4245 -wd4706 -wd4310 -wd4701 -wd4703 -wd4389 -wd4611 -wd4805 -wd4204 -wd4577 -wd4091 -wd4592 -wd4319 -wd4709 -wd5105 -wd4324 -wd4251 -wd4275 -w14062 -we4238 /Gw /O2 /Ob2 /DNDEBUG -std:c++17 -MD  /EHs-c- /GR- /showIncludes /Fotools\opt\CMakeFiles\LLVMOptDriver.dir\optdriver.cpp.obj /Fdtools\opt\CMakeFiles\LLVMOptDriver.dir\LLVMOptDriver.pdb /FS -c C:\b\slave\clang-x64-windows-msvc\llvm-project\llvm\tools\opt\optdriver.cpp
C:\b\slave\clang-x64-windows-msvc\llvm-project\llvm\tools\opt\optdriver.cpp(684): error C2374: 'RTLCI': redefinition; multiple initialization
C:\b\slave\clang-x64-windows-msvc\llvm-project\llvm\tools\opt\optdriver.cpp(677): note: see declaration of 'RTLCI'
[2928/2987] Linking CXX static library lib\LLVMExegesis.lib
[2929/2987] Linking CXX executable bin\llvm-tli-checker.exe
[2930/2987] Building CXX object tools\llvm-opt-fuzzer\CMakeFiles\llvm-opt-fuzzer.dir\llvm-opt-fuzzer.cpp.obj
[2931/2987] Linking CXX executable bin\lli.exe
[2932/2987] Building CXX object tools\llvm-exegesis\CMakeFiles\llvm-exegesis.dir\llvm-exegesis.cpp.obj
[2933/2987] Building CXX object tools\llvm-lto2\CMakeFiles\llvm-lto2.dir\llvm-lto2.cpp.obj
[2934/2987] Building CXX object tools\llvm-reduce\CMakeFiles\llvm-reduce.dir\deltas\RunIRPasses.cpp.obj
[2935/2987] Building CXX object tools\llvm-reduce\CMakeFiles\llvm-reduce.dir\ReducerWorkItem.cpp.obj
[2936/2987] Building CXX object tools\opt\CMakeFiles\LLVMOptDriver.dir\NewPMDriver.cpp.obj
[2937/2987] Building CXX object tools\llvm-jitlink\CMakeFiles\llvm-jitlink.dir\llvm-jitlink.cpp.obj
[2938/2987] Building CXX object lib\Target\AMDGPU\CMakeFiles\LLVMAMDGPUCodeGen.dir\AMDGPUISelDAGToDAG.cpp.obj
[2939/2987] Building CXX object lib\Target\AArch64\CMakeFiles\LLVMAArch64CodeGen.dir\AArch64ISelDAGToDAG.cpp.obj
ninja: build stopped: subcommand failed.
Command 'ninja' failed with return code 1
@@@STEP_FAILURE@@@
Step 7 (stage 1 build) failure: stage 1 build (failure)
...
[2918/2987] Building CXX object tools\llvm-reduce\CMakeFiles\llvm-reduce.dir\deltas\ReduceRegisterUses.cpp.obj
[2919/2987] Building CXX object tools\llvm-reduce\CMakeFiles\llvm-reduce.dir\deltas\Delta.cpp.obj
[2920/2987] Building CXX object tools\llvm-reduce\CMakeFiles\llvm-reduce.dir\deltas\ReduceRegisterMasks.cpp.obj
[2921/2987] Building CXX object tools\llvm-dwarfutil\CMakeFiles\llvm-dwarfutil.dir\DebugInfoLinker.cpp.obj
[2922/2987] Building CXX object tools\llvm-reduce\CMakeFiles\llvm-reduce.dir\deltas\ReduceInstructionsMIR.cpp.obj
[2923/2987] Building CXX object tools\llvm-reduce\CMakeFiles\llvm-reduce.dir\deltas\ReduceRegisterDefs.cpp.obj
[2924/2987] Building CXX object tools\llvm-exegesis\lib\CMakeFiles\LLVMExegesis.dir\BenchmarkResult.cpp.obj
[2925/2987] Building CXX object tools\llvm-tli-checker\CMakeFiles\llvm-tli-checker.dir\llvm-tli-checker.cpp.obj
[2926/2987] Building CXX object tools\llvm-exegesis\lib\CMakeFiles\LLVMExegesis.dir\Assembler.cpp.obj
[2927/2987] Building CXX object tools\opt\CMakeFiles\LLVMOptDriver.dir\optdriver.cpp.obj
FAILED: tools/opt/CMakeFiles/LLVMOptDriver.dir/optdriver.cpp.obj 
C:\PROGRA~2\MICROS~3\2019\PROFES~1\VC\Tools\MSVC\1428~1.293\bin\Hostx64\x64\cl.exe  /nologo /TP -DGTEST_HAS_RTTI=0 -DUNICODE -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_HAS_EXCEPTIONS=0 -D_SCL_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS -D_UNICODE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -IC:\b\slave\clang-x64-windows-msvc\build\stage1\tools\opt -IC:\b\slave\clang-x64-windows-msvc\llvm-project\llvm\tools\opt -IC:\b\slave\clang-x64-windows-msvc\build\stage1\include -IC:\b\slave\clang-x64-windows-msvc\llvm-project\llvm\include /DWIN32 /D_WINDOWS   /Zc:inline /Zc:preprocessor /Zc:__cplusplus /Oi /bigobj /permissive- /W4 -wd4141 -wd4146 -wd4244 -wd4267 -wd4291 -wd4351 -wd4456 -wd4457 -wd4458 -wd4459 -wd4503 -wd4624 -wd4722 -wd4100 -wd4127 -wd4512 -wd4505 -wd4610 -wd4510 -wd4702 -wd4245 -wd4706 -wd4310 -wd4701 -wd4703 -wd4389 -wd4611 -wd4805 -wd4204 -wd4577 -wd4091 -wd4592 -wd4319 -wd4709 -wd5105 -wd4324 -wd4251 -wd4275 -w14062 -we4238 /Gw /O2 /Ob2 /DNDEBUG -std:c++17 -MD  /EHs-c- /GR- /showIncludes /Fotools\opt\CMakeFiles\LLVMOptDriver.dir\optdriver.cpp.obj /Fdtools\opt\CMakeFiles\LLVMOptDriver.dir\LLVMOptDriver.pdb /FS -c C:\b\slave\clang-x64-windows-msvc\llvm-project\llvm\tools\opt\optdriver.cpp
C:\b\slave\clang-x64-windows-msvc\llvm-project\llvm\tools\opt\optdriver.cpp(684): error C2374: 'RTLCI': redefinition; multiple initialization
C:\b\slave\clang-x64-windows-msvc\llvm-project\llvm\tools\opt\optdriver.cpp(677): note: see declaration of 'RTLCI'
[2928/2987] Linking CXX static library lib\LLVMExegesis.lib
[2929/2987] Linking CXX executable bin\llvm-tli-checker.exe
[2930/2987] Building CXX object tools\llvm-opt-fuzzer\CMakeFiles\llvm-opt-fuzzer.dir\llvm-opt-fuzzer.cpp.obj
[2931/2987] Linking CXX executable bin\lli.exe
[2932/2987] Building CXX object tools\llvm-exegesis\CMakeFiles\llvm-exegesis.dir\llvm-exegesis.cpp.obj
[2933/2987] Building CXX object tools\llvm-lto2\CMakeFiles\llvm-lto2.dir\llvm-lto2.cpp.obj
[2934/2987] Building CXX object tools\llvm-reduce\CMakeFiles\llvm-reduce.dir\deltas\RunIRPasses.cpp.obj
[2935/2987] Building CXX object tools\llvm-reduce\CMakeFiles\llvm-reduce.dir\ReducerWorkItem.cpp.obj
[2936/2987] Building CXX object tools\opt\CMakeFiles\LLVMOptDriver.dir\NewPMDriver.cpp.obj
[2937/2987] Building CXX object tools\llvm-jitlink\CMakeFiles\llvm-jitlink.dir\llvm-jitlink.cpp.obj
[2938/2987] Building CXX object lib\Target\AMDGPU\CMakeFiles\LLVMAMDGPUCodeGen.dir\AMDGPUISelDAGToDAG.cpp.obj
[2939/2987] Building CXX object lib\Target\AArch64\CMakeFiles\LLVMAArch64CodeGen.dir\AArch64ISelDAGToDAG.cpp.obj
ninja: build stopped: subcommand failed.
Command 'ninja' failed with return code 1
program finished with exit code 0
elapsedTime=1719.667000

@llvm-ci
Copy link
Collaborator

llvm-ci commented Nov 14, 2025

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

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

Here is the relevant piece of the build log for the reference
Step 5 (build-unified-tree) failure: build (failure)
...
67.805 [7359/5/442] Building CXX object lib/IRPrinter/CMakeFiles/LLVMIRPrinter.dir/IRPrintingPasses.cpp.o
67.897 [7359/4/443] Building CXX object lib/InterfaceStub/CMakeFiles/LLVMInterfaceStub.dir/IFSStub.cpp.o
68.007 [7359/3/444] Building CXX object lib/IRReader/CMakeFiles/LLVMIRReader.dir/IRReader.cpp.o
68.008 [7359/2/445] Building CXX object lib/CGData/CMakeFiles/LLVMCGData.dir/CodeGenDataWriter.cpp.o
68.083 [7359/1/446] Building CXX object lib/CGData/CMakeFiles/LLVMCGData.dir/CodeGenData.cpp.o
68.397 [7358/1/447] Building CXX object lib/CGData/CMakeFiles/LLVMCGData.dir/OutlinedHashTree.cpp.o
68.680 [7357/1/448] Building CXX object lib/CGData/CMakeFiles/LLVMCGData.dir/OutlinedHashTreeRecord.cpp.o
68.922 [7355/2/449] Building CXX object lib/CGData/CMakeFiles/LLVMCGData.dir/StableFunctionMapRecord.cpp.o
68.991 [7355/1/450] Building CXX object lib/CGData/CMakeFiles/LLVMCGData.dir/StableFunctionMap.cpp.o
74.722 [7352/3/451] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AllocationOrder.cpp.o
FAILED: lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AllocationOrder.cpp.o 
/usr/local/bin/c++ -DGTEST_HAS_RTTI=0 -DLLVM_EXPORTS -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GLIBCXX_USE_CXX11_ABI=1 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/tcwg-buildbot/worker/flang-aarch64-latest-gcc/build/lib/CodeGen -I/home/tcwg-buildbot/worker/flang-aarch64-latest-gcc/llvm-project/llvm/lib/CodeGen -I/home/tcwg-buildbot/worker/flang-aarch64-latest-gcc/build/include -I/home/tcwg-buildbot/worker/flang-aarch64-latest-gcc/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-dangling-reference -Wno-redundant-move -Wno-pessimizing-move -Wno-array-bounds -Wno-stringop-overread -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=c++17 -fPIC  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -MD -MT lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AllocationOrder.cpp.o -MF lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AllocationOrder.cpp.o.d -o lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AllocationOrder.cpp.o -c /home/tcwg-buildbot/worker/flang-aarch64-latest-gcc/llvm-project/llvm/lib/CodeGen/AllocationOrder.cpp
In file included from ../llvm-project/llvm/include/llvm/CodeGen/MachineFunction.h:35,
                 from ../llvm-project/llvm/lib/CodeGen/AllocationOrder.cpp:17:
../llvm-project/llvm/include/llvm/Target/TargetOptions.h:414:17: error: declaration of ‘llvm::VectorLibrary llvm::TargetOptions::VectorLibrary’ changes meaning of ‘VectorLibrary’ [-Wchanges-meaning]
  414 |   VectorLibrary VectorLibrary = VectorLibrary::NoLibrary;
      |                 ^~~~~~~~~~~~~
../llvm-project/llvm/include/llvm/Target/TargetOptions.h:414:3: note: used here to mean ‘enum class llvm::VectorLibrary’
  414 |   VectorLibrary VectorLibrary = VectorLibrary::NoLibrary;
      |   ^~~~~~~~~~~~~
In file included from ../llvm-project/llvm/include/llvm/Target/TargetOptions.h:18:
../llvm-project/llvm/include/llvm/IR/SystemLibraries.h:20:12: note: declared here
   20 | enum class VectorLibrary {
      |            ^~~~~~~~~~~~~
80.357 [7352/2/452] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AggressiveAntiDepBreaker.cpp.o
FAILED: lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AggressiveAntiDepBreaker.cpp.o 
/usr/local/bin/c++ -DGTEST_HAS_RTTI=0 -DLLVM_EXPORTS -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GLIBCXX_USE_CXX11_ABI=1 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/tcwg-buildbot/worker/flang-aarch64-latest-gcc/build/lib/CodeGen -I/home/tcwg-buildbot/worker/flang-aarch64-latest-gcc/llvm-project/llvm/lib/CodeGen -I/home/tcwg-buildbot/worker/flang-aarch64-latest-gcc/build/include -I/home/tcwg-buildbot/worker/flang-aarch64-latest-gcc/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-dangling-reference -Wno-redundant-move -Wno-pessimizing-move -Wno-array-bounds -Wno-stringop-overread -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=c++17 -fPIC  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -MD -MT lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AggressiveAntiDepBreaker.cpp.o -MF lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AggressiveAntiDepBreaker.cpp.o.d -o lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AggressiveAntiDepBreaker.cpp.o -c /home/tcwg-buildbot/worker/flang-aarch64-latest-gcc/llvm-project/llvm/lib/CodeGen/AggressiveAntiDepBreaker.cpp
In file included from ../llvm-project/llvm/include/llvm/CodeGen/MachineFunction.h:35,
                 from ../llvm-project/llvm/include/llvm/CodeGen/MachineFunctionPass.h:21,
                 from ../llvm-project/llvm/include/llvm/CodeGen/MachineOptimizationRemarkEmitter.h:18,
                 from ../llvm-project/llvm/include/llvm/CodeGen/TargetFrameLowering.h:18,
                 from ../llvm-project/llvm/include/llvm/CodeGen/MachineFrameInfo.h:18,
                 from ../llvm-project/llvm/lib/CodeGen/AggressiveAntiDepBreaker.cpp:21:
../llvm-project/llvm/include/llvm/Target/TargetOptions.h:414:17: error: declaration of ‘llvm::VectorLibrary llvm::TargetOptions::VectorLibrary’ changes meaning of ‘VectorLibrary’ [-Wchanges-meaning]
  414 |   VectorLibrary VectorLibrary = VectorLibrary::NoLibrary;
      |                 ^~~~~~~~~~~~~
../llvm-project/llvm/include/llvm/Target/TargetOptions.h:414:3: note: used here to mean ‘enum class llvm::VectorLibrary’
  414 |   VectorLibrary VectorLibrary = VectorLibrary::NoLibrary;
      |   ^~~~~~~~~~~~~
In file included from ../llvm-project/llvm/include/llvm/Target/TargetOptions.h:18:
../llvm-project/llvm/include/llvm/IR/SystemLibraries.h:20:12: note: declared here
   20 | enum class VectorLibrary {
      |            ^~~~~~~~~~~~~
80.957 [7352/1/453] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/Analysis.cpp.o
FAILED: lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/Analysis.cpp.o 
/usr/local/bin/c++ -DGTEST_HAS_RTTI=0 -DLLVM_EXPORTS -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GLIBCXX_USE_CXX11_ABI=1 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/tcwg-buildbot/worker/flang-aarch64-latest-gcc/build/lib/CodeGen -I/home/tcwg-buildbot/worker/flang-aarch64-latest-gcc/llvm-project/llvm/lib/CodeGen -I/home/tcwg-buildbot/worker/flang-aarch64-latest-gcc/build/include -I/home/tcwg-buildbot/worker/flang-aarch64-latest-gcc/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-dangling-reference -Wno-redundant-move -Wno-pessimizing-move -Wno-array-bounds -Wno-stringop-overread -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=c++17 -fPIC  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -MD -MT lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/Analysis.cpp.o -MF lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/Analysis.cpp.o.d -o lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/Analysis.cpp.o -c /home/tcwg-buildbot/worker/flang-aarch64-latest-gcc/llvm-project/llvm/lib/CodeGen/Analysis.cpp
In file included from ../llvm-project/llvm/include/llvm/CodeGen/MachineFunction.h:35,
                 from ../llvm-project/llvm/lib/CodeGen/Analysis.cpp:15:
../llvm-project/llvm/include/llvm/Target/TargetOptions.h:414:17: error: declaration of ‘llvm::VectorLibrary llvm::TargetOptions::VectorLibrary’ changes meaning of ‘VectorLibrary’ [-Wchanges-meaning]

@llvm-ci
Copy link
Collaborator

llvm-ci commented Nov 14, 2025

LLVM Buildbot has detected a new failure on builder clang-aarch64-global-isel running on linaro-clang-aarch64-global-isel while building clang,cross-project-tests,llvm at step 6 "build stage 1".

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

Here is the relevant piece of the build log for the reference
Step 6 (build stage 1) failure: 'ninja' (failure)
...
[6244/6256] Building CXX object third-party/benchmark/src/CMakeFiles/benchmark.dir/sysinfo.cc.o
[6245/6256] Linking CXX executable bin/yaml2obj
[6246/6256] Linking CXX executable bin/sanstats
[6247/6256] Linking CXX static library lib/libbenchmark.a
[6248/6256] Linking CXX static library lib/libbenchmark_main.a
[6249/6256] Linking CXX executable bin/verify-uselistorder
[6250/6256] Linking CXX executable bin/sancov
[6251/6256] Linking CXX executable bin/llvm-split
[6252/6256] Building CXX object tools/llvm-reduce/CMakeFiles/llvm-reduce.dir/ReducerWorkItem.cpp.o
[6253/6256] Building CXX object tools/opt/CMakeFiles/LLVMOptDriver.dir/optdriver.cpp.o
FAILED: tools/opt/CMakeFiles/LLVMOptDriver.dir/optdriver.cpp.o 
/usr/local/bin/c++ -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GLIBCXX_USE_CXX11_ABI=1 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/tcwg-buildbot/worker/clang-aarch64-global-isel/stage1/tools/opt -I/home/tcwg-buildbot/worker/clang-aarch64-global-isel/llvm/llvm/tools/opt -I/home/tcwg-buildbot/worker/clang-aarch64-global-isel/stage1/include -I/home/tcwg-buildbot/worker/clang-aarch64-global-isel/llvm/llvm/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 -Wno-pass-failed -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=c++17  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -MD -MT tools/opt/CMakeFiles/LLVMOptDriver.dir/optdriver.cpp.o -MF tools/opt/CMakeFiles/LLVMOptDriver.dir/optdriver.cpp.o.d -o tools/opt/CMakeFiles/LLVMOptDriver.dir/optdriver.cpp.o -c /home/tcwg-buildbot/worker/clang-aarch64-global-isel/llvm/llvm/tools/opt/optdriver.cpp
../llvm/llvm/tools/opt/optdriver.cpp:684:30: error: redefinition of 'RTLCI'
  684 |   RTLIB::RuntimeLibcallsInfo RTLCI(ModuleTriple, codegen::getExceptionModel(),
      |                              ^
../llvm/llvm/tools/opt/optdriver.cpp:677:30: note: previous definition is here
  677 |   RTLIB::RuntimeLibcallsInfo RTLCI(ModuleTriple, codegen::getExceptionModel(),
      |                              ^
1 error generated.
[6254/6256] Linking CXX executable bin/llvm-reduce
ninja: build stopped: subcommand failed.

@llvm-ci
Copy link
Collaborator

llvm-ci commented Nov 14, 2025

LLVM Buildbot has detected a new failure on builder llvm-clang-win-x-aarch64 running on as-builder-2 while building clang,cross-project-tests,llvm at step 8 "build-default".

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

Here is the relevant piece of the build log for the reference
Step 8 (build-default) failure: cmake (failure)
...
7.261 [1/4/411]Building ASM object CMakeFiles/clang_rt.builtins-aarch64.dir/outline_atomic_helpers.dir/outline_atomic_ldadd1_1.S.o
7.289 [1/3/412]Building ASM object CMakeFiles/clang_rt.builtins-aarch64.dir/outline_atomic_helpers.dir/outline_atomic_ldadd1_4.S.o
7.333 [1/2/413]Building ASM object CMakeFiles/clang_rt.builtins-aarch64.dir/outline_atomic_helpers.dir/outline_atomic_swp8_5.S.o
7.355 [1/1/414]Building ASM object CMakeFiles/clang_rt.builtins-aarch64.dir/outline_atomic_helpers.dir/outline_atomic_ldadd1_2.S.o
7.545 [0/1/415]Linking CXX static library C:\buildbot\as-builder-2\x-aarch64\build\lib\clang\22\lib\aarch64-unknown-linux-gnu\libclang_rt.builtins.a
linux-gnu'
899.066 [41/53/5136]Performing configure step for 'builtins-aarch64-unknown-linux-gnu'
907.464 [30/33/5168]Building CXX object tools\llvm-reduce\CMakeFiles\llvm-reduce.dir\deltas\ReduceInstructionsMIR.cpp.obj
907.501 [29/32/5169]Performing build step for 'builtins-aarch64-unknown-linux-gnu'
909.407 [28/24/5179]Building CXX object tools\opt\CMakeFiles\LLVMOptDriver.dir\optdriver.cpp.obj
FAILED: tools/opt/CMakeFiles/LLVMOptDriver.dir/optdriver.cpp.obj 
ccache C:\PROGRA~1\MICROS~2\2022\COMMUN~1\VC\Tools\MSVC\1444~1.352\bin\Hostx64\x64\cl.exe  /nologo /TP -DGTEST_HAS_RTTI=0 -DUNICODE -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_GLIBCXX_ASSERTIONS -D_HAS_EXCEPTIONS=0 -D_SCL_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS -D_UNICODE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -IC:\buildbot\as-builder-2\x-aarch64\build\tools\opt -IC:\buildbot\as-builder-2\x-aarch64\llvm-project\llvm\tools\opt -IC:\buildbot\as-builder-2\x-aarch64\build\include -IC:\buildbot\as-builder-2\x-aarch64\llvm-project\llvm\include -external:IC:\buildbot\fs\zlib-win32\include -external:W0 -D__OPTIMIZE__ /Zc:inline /Zc:preprocessor /Zc:__cplusplus /Oi /bigobj /permissive- /W4 -wd4141 -wd4146 -wd4244 -wd4267 -wd4291 -wd4351 -wd4456 -wd4457 -wd4458 -wd4459 -wd4503 -wd4624 -wd4722 -wd4100 -wd4127 -wd4512 -wd4505 -wd4610 -wd4510 -wd4702 -wd4245 -wd4706 -wd4310 -wd4701 -wd4703 -wd4389 -wd4611 -wd4805 -wd4204 -wd4577 -wd4091 -wd4592 -wd4319 -wd4709 -wd5105 -wd4324 -wd4251 -wd4275 -w14062 -we4238 /Gw /O2 /Ob2  -MD  /EHs-c- /GR- -UNDEBUG -std:c++17 /showIncludes /Fotools\opt\CMakeFiles\LLVMOptDriver.dir\optdriver.cpp.obj /Fdtools\opt\CMakeFiles\LLVMOptDriver.dir\LLVMOptDriver.pdb /FS -c C:\buildbot\as-builder-2\x-aarch64\llvm-project\llvm\tools\opt\optdriver.cpp
C:\buildbot\as-builder-2\x-aarch64\llvm-project\llvm\tools\opt\optdriver.cpp(684): error C2374: 'RTLCI': redefinition; multiple initialization
C:\buildbot\as-builder-2\x-aarch64\llvm-project\llvm\tools\opt\optdriver.cpp(677): note: see declaration of 'RTLCI'
C:\buildbot\as-builder-2\x-aarch64\llvm-project\llvm\tools\opt\optdriver.cpp(684): error C2086: 'llvm::RTLIB::RuntimeLibcallsInfo RTLCI': redefinition
C:\buildbot\as-builder-2\x-aarch64\llvm-project\llvm\tools\opt\optdriver.cpp(677): note: see declaration of 'RTLCI'
915.128 [28/5/5198]Building CXX object tools\llvm-reduce\CMakeFiles\llvm-reduce.dir\ReducerWorkItem.cpp.obj
916.091 [28/3/5200]Building CXX object tools\opt\CMakeFiles\LLVMOptDriver.dir\NewPMDriver.cpp.obj
916.817 [28/2/5201]Generating export list for LLVM-C
917.070 [28/1/5202]Building CXX object tools\llvm-jitlink\CMakeFiles\llvm-jitlink.dir\llvm-jitlink.cpp.obj
ninja: build stopped: subcommand failed.

@llvm-ci
Copy link
Collaborator

llvm-ci commented Nov 14, 2025

LLVM Buildbot has detected a new failure on builder bolt-x86_64-ubuntu-clang running on bolt-worker while building clang,cross-project-tests,llvm at step 5 "build-clang-bolt".

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

Here is the relevant piece of the build log for the reference
Step 5 (build-clang-bolt) failure: build (failure)
...
4.448 [2476/18/857] Building RISCVTargetParserDef.inc...
4.467 [2475/18/858] Building CXX object tools/clang/lib/Lex/CMakeFiles/obj.clangLex.dir/PPLexerChange.cpp.o
4.467 [2474/18/859] Building CXX object lib/AsmParser/CMakeFiles/LLVMAsmParser.dir/AsmParserContext.cpp.o
4.646 [2473/18/860] Building X86GenAsmWriter.inc...
4.652 [2472/18/861] Building CXX object tools/clang/lib/Lex/CMakeFiles/obj.clangLex.dir/Pragma.cpp.o
4.665 [2471/18/862] Building X86GenFoldTables.inc...
4.709 [2470/18/863] Building X86GenAsmWriter1.inc...
4.794 [2469/18/864] Building X86GenAsmMatcher.inc...
4.840 [2468/18/865] Building X86GenDisassemblerTables.inc...
6.218 [2467/18/866] Building CXX object tools/clang/lib/Lex/CMakeFiles/obj.clangLex.dir/LiteralSupport.cpp.o
FAILED: tools/clang/lib/Lex/CMakeFiles/obj.clangLex.dir/LiteralSupport.cpp.o 
ccache /usr/bin/g++ -DCLANG_EXPORTS -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GLIBCXX_USE_CXX11_ABI=1 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/worker/bolt-worker2/bolt-x86_64-ubuntu-clang/build/tools/clang/lib/Lex -I/home/worker/bolt-worker2/bolt-x86_64-ubuntu-clang/llvm-project/clang/lib/Lex -I/home/worker/bolt-worker2/bolt-x86_64-ubuntu-clang/llvm-project/clang/include -I/home/worker/bolt-worker2/bolt-x86_64-ubuntu-clang/build/tools/clang/include -I/home/worker/bolt-worker2/bolt-x86_64-ubuntu-clang/build/include -I/home/worker/bolt-worker2/bolt-x86_64-ubuntu-clang/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-array-bounds -Wno-stringop-overread -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -fno-common -Woverloaded-virtual -O3 -DNDEBUG  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -std=c++17 -MD -MT tools/clang/lib/Lex/CMakeFiles/obj.clangLex.dir/LiteralSupport.cpp.o -MF tools/clang/lib/Lex/CMakeFiles/obj.clangLex.dir/LiteralSupport.cpp.o.d -o tools/clang/lib/Lex/CMakeFiles/obj.clangLex.dir/LiteralSupport.cpp.o -c /home/worker/bolt-worker2/bolt-x86_64-ubuntu-clang/llvm-project/clang/lib/Lex/LiteralSupport.cpp
In file included from /home/worker/bolt-worker2/bolt-x86_64-ubuntu-clang/llvm-project/clang/include/clang/Basic/PointerAuthOptions.h:21,
                 from /home/worker/bolt-worker2/bolt-x86_64-ubuntu-clang/llvm-project/clang/include/clang/Basic/CodeGenOptions.h:17,
                 from /home/worker/bolt-worker2/bolt-x86_64-ubuntu-clang/llvm-project/clang/include/clang/Basic/TargetInfo.h:21,
                 from /home/worker/bolt-worker2/bolt-x86_64-ubuntu-clang/llvm-project/clang/lib/Lex/LiteralSupport.cpp:18:
/home/worker/bolt-worker2/bolt-x86_64-ubuntu-clang/llvm-project/llvm/include/llvm/Target/TargetOptions.h:414:17: error: declaration of ‘llvm::VectorLibrary llvm::TargetOptions::VectorLibrary’ changes meaning of ‘VectorLibrary’ [-fpermissive]
  414 |   VectorLibrary VectorLibrary = VectorLibrary::NoLibrary;
      |                 ^~~~~~~~~~~~~
In file included from /home/worker/bolt-worker2/bolt-x86_64-ubuntu-clang/llvm-project/llvm/include/llvm/Target/TargetOptions.h:18,
                 from /home/worker/bolt-worker2/bolt-x86_64-ubuntu-clang/llvm-project/clang/include/clang/Basic/PointerAuthOptions.h:21,
                 from /home/worker/bolt-worker2/bolt-x86_64-ubuntu-clang/llvm-project/clang/include/clang/Basic/CodeGenOptions.h:17,
                 from /home/worker/bolt-worker2/bolt-x86_64-ubuntu-clang/llvm-project/clang/include/clang/Basic/TargetInfo.h:21,
                 from /home/worker/bolt-worker2/bolt-x86_64-ubuntu-clang/llvm-project/clang/lib/Lex/LiteralSupport.cpp:18:
/home/worker/bolt-worker2/bolt-x86_64-ubuntu-clang/llvm-project/llvm/include/llvm/IR/SystemLibraries.h:20:12: note: ‘VectorLibrary’ declared here as ‘enum class llvm::VectorLibrary’
   20 | enum class VectorLibrary {
      |            ^~~~~~~~~~~~~
6.670 [2467/17/867] Building X86GenFastISel.inc...
6.862 [2467/16/868] Building X86GenGlobalISel.inc...
7.412 [2467/15/869] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/LiveIntervalUnion.cpp.o
FAILED: lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/LiveIntervalUnion.cpp.o 
ccache /usr/bin/g++ -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GLIBCXX_USE_CXX11_ABI=1 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/worker/bolt-worker2/bolt-x86_64-ubuntu-clang/build/lib/CodeGen -I/home/worker/bolt-worker2/bolt-x86_64-ubuntu-clang/llvm-project/llvm/lib/CodeGen -I/home/worker/bolt-worker2/bolt-x86_64-ubuntu-clang/build/include -I/home/worker/bolt-worker2/bolt-x86_64-ubuntu-clang/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-array-bounds -Wno-stringop-overread -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -std=c++17 -MD -MT lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/LiveIntervalUnion.cpp.o -MF lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/LiveIntervalUnion.cpp.o.d -o lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/LiveIntervalUnion.cpp.o -c /home/worker/bolt-worker2/bolt-x86_64-ubuntu-clang/llvm-project/llvm/lib/CodeGen/LiveIntervalUnion.cpp
In file included from /home/worker/bolt-worker2/bolt-x86_64-ubuntu-clang/llvm-project/llvm/include/llvm/CodeGen/MachineFunction.h:35,
                 from /home/worker/bolt-worker2/bolt-x86_64-ubuntu-clang/llvm-project/llvm/include/llvm/CodeGen/SlotIndexes.h:27,
                 from /home/worker/bolt-worker2/bolt-x86_64-ubuntu-clang/llvm-project/llvm/include/llvm/CodeGen/LiveInterval.h:29,
                 from /home/worker/bolt-worker2/bolt-x86_64-ubuntu-clang/llvm-project/llvm/include/llvm/CodeGen/LiveIntervalUnion.h:21,
                 from /home/worker/bolt-worker2/bolt-x86_64-ubuntu-clang/llvm-project/llvm/lib/CodeGen/LiveIntervalUnion.cpp:15:
/home/worker/bolt-worker2/bolt-x86_64-ubuntu-clang/llvm-project/llvm/include/llvm/Target/TargetOptions.h:414:17: error: declaration of ‘llvm::VectorLibrary llvm::TargetOptions::VectorLibrary’ changes meaning of ‘VectorLibrary’ [-fpermissive]
  414 |   VectorLibrary VectorLibrary = VectorLibrary::NoLibrary;
      |                 ^~~~~~~~~~~~~
In file included from /home/worker/bolt-worker2/bolt-x86_64-ubuntu-clang/llvm-project/llvm/include/llvm/Target/TargetOptions.h:18,
                 from /home/worker/bolt-worker2/bolt-x86_64-ubuntu-clang/llvm-project/llvm/include/llvm/CodeGen/MachineFunction.h:35,
                 from /home/worker/bolt-worker2/bolt-x86_64-ubuntu-clang/llvm-project/llvm/include/llvm/CodeGen/SlotIndexes.h:27,
                 from /home/worker/bolt-worker2/bolt-x86_64-ubuntu-clang/llvm-project/llvm/include/llvm/CodeGen/LiveInterval.h:29,
                 from /home/worker/bolt-worker2/bolt-x86_64-ubuntu-clang/llvm-project/llvm/include/llvm/CodeGen/LiveIntervalUnion.h:21,
                 from /home/worker/bolt-worker2/bolt-x86_64-ubuntu-clang/llvm-project/llvm/lib/CodeGen/LiveIntervalUnion.cpp:15:
/home/worker/bolt-worker2/bolt-x86_64-ubuntu-clang/llvm-project/llvm/include/llvm/IR/SystemLibraries.h:20:12: note: ‘VectorLibrary’ declared here as ‘enum class llvm::VectorLibrary’
   20 | enum class VectorLibrary {
      |            ^~~~~~~~~~~~~

@llvm-ci
Copy link
Collaborator

llvm-ci commented Nov 14, 2025

LLVM Buildbot has detected a new failure on builder sanitizer-windows running on sanitizer-windows while building clang,cross-project-tests,llvm at step 6 "build-unified-tree".

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

Here is the relevant piece of the build log for the reference
Step 6 (build-unified-tree) failure: build (failure)
...
[124/132] Building C object CMakeFiles\clang_rt.builtins-x86_64.dir\truncdfbf2.c.obj
[125/132] Building C object CMakeFiles\clang_rt.builtins-x86_64.dir\udivmodti4.c.obj
[126/132] Building C object CMakeFiles\clang_rt.builtins-x86_64.dir\trunctfbf2.c.obj
[127/132] Building C object CMakeFiles\clang_rt.builtins-x86_64.dir\extendbfsf2.c.obj
[128/132] Building C object CMakeFiles\clang_rt.builtins-x86_64.dir\truncsfbf2.c.obj
[129/132] Building C object CMakeFiles\clang_rt.builtins-x86_64.dir\enable_execute_stack.c.obj
[130/132] Building C object CMakeFiles\clang_rt.builtins-x86_64.dir\emutls.c.obj
[131/132] Building C object CMakeFiles\clang_rt.builtins-x86_64.dir\cpu_model\x86.c.obj
[132/132] Linking C static library C:\b\slave\sanitizer-windows\build\lib\clang\22\lib\windows\clang_rt.builtins-x86_64.lib
[4467/4508] Building CXX object tools\opt\CMakeFiles\LLVMOptDriver.dir\optdriver.cpp.obj
FAILED: tools/opt/CMakeFiles/LLVMOptDriver.dir/optdriver.cpp.obj 
C:\PROGRA~2\MIB055~1\2019\PROFES~1\VC\Tools\MSVC\1429~1.301\bin\Hostx64\x64\cl.exe  /nologo /TP -DGTEST_HAS_RTTI=0 -DUNICODE -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_GLIBCXX_ASSERTIONS -D_HAS_EXCEPTIONS=0 -D_SCL_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS -D_UNICODE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -IC:\b\slave\sanitizer-windows\build\tools\opt -IC:\b\slave\sanitizer-windows\llvm-project\llvm\tools\opt -IC:\b\slave\sanitizer-windows\build\include -IC:\b\slave\sanitizer-windows\llvm-project\llvm\include /DWIN32 /D_WINDOWS   /Zc:inline /Zc:preprocessor /Zc:__cplusplus /Zi /Oi /bigobj /permissive- /W4 -wd4141 -wd4146 -wd4244 -wd4267 -wd4291 -wd4351 -wd4456 -wd4457 -wd4458 -wd4459 -wd4503 -wd4624 -wd4722 -wd4100 -wd4127 -wd4512 -wd4505 -wd4610 -wd4510 -wd4702 -wd4245 -wd4706 -wd4310 -wd4701 -wd4703 -wd4389 -wd4611 -wd4805 -wd4204 -wd4577 -wd4091 -wd4592 -wd4319 -wd4709 -wd5105 -wd4324 -wd4251 -wd4275 -w14062 -we4238 /Gw /O2 /Ob2  -std:c++17 -MD  /EHs-c- /GR- -UNDEBUG /showIncludes /Fotools\opt\CMakeFiles\LLVMOptDriver.dir\optdriver.cpp.obj /Fdtools\opt\CMakeFiles\LLVMOptDriver.dir\LLVMOptDriver.pdb /FS -c C:\b\slave\sanitizer-windows\llvm-project\llvm\tools\opt\optdriver.cpp
C:\b\slave\sanitizer-windows\llvm-project\llvm\tools\opt\optdriver.cpp(684): error C2374: 'RTLCI': redefinition; multiple initialization
C:\b\slave\sanitizer-windows\llvm-project\llvm\tools\opt\optdriver.cpp(677): note: see declaration of 'RTLCI'
[4477/4508] Building CXX object third-party\benchmark\src\CMakeFiles\benchmark.dir\perf_counters.cc.obj
[4479/4508] Building CXX object third-party\benchmark\src\CMakeFiles\benchmark.dir\complexity.cc.obj
[4480/4508] Building CXX object third-party\benchmark\src\CMakeFiles\benchmark.dir\string_util.cc.obj
[4481/4508] Building CXX object tools\obj2yaml\CMakeFiles\obj2yaml.dir\elf2yaml.cpp.obj
[4482/4508] Building CXX object third-party\benchmark\src\CMakeFiles\benchmark.dir\json_reporter.cc.obj
ninja: build stopped: subcommand failed.

@llvm-ci
Copy link
Collaborator

llvm-ci commented Nov 14, 2025

LLVM Buildbot has detected a new failure on builder flang-runtime-cuda-gcc running on as-builder-7 while building clang,cross-project-tests,llvm at step 6 "build-flang-rt".

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

Here is the relevant piece of the build log for the reference
Step 6 (build-flang-rt) failure: cmake (failure)
...
9.117 [5245/64/1868] Building AArch64GenRegisterInfo.inc...
9.250 [5244/64/1869] Building ARMGenInstrInfo.inc...
9.268 [5243/64/1870] Building BPFGenGlobalISel.inc...
9.282 [5242/64/1871] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/GCMetadata.cpp.o
9.292 [5241/64/1872] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/GCMetadataPrinter.cpp.o
9.353 [5240/64/1873] Building BPFGenInstrInfo.inc...
9.795 [5239/64/1874] Building AArch64GenFastISel.inc...
9.814 [5238/64/1875] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/GlobalMergeFunctions.cpp.o
10.807 [5237/64/1876] Building AArch64GenGlobalISel.inc...
11.364 [5236/64/1877] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AllocationOrder.cpp.o
FAILED: lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AllocationOrder.cpp.o 
ccache /usr/bin/g++ -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GLIBCXX_USE_CXX11_ABI=1 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/buildbot/worker/as-builder-7/flang-runtime-cuda-gcc/build/lib/CodeGen -I/home/buildbot/worker/as-builder-7/flang-runtime-cuda-gcc/llvm-project/llvm/lib/CodeGen -I/home/buildbot/worker/as-builder-7/flang-runtime-cuda-gcc/build/include -I/home/buildbot/worker/as-builder-7/flang-runtime-cuda-gcc/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-dangling-reference -Wno-redundant-move -Wno-pessimizing-move -Wno-array-bounds -Wno-stringop-overread -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=c++17  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -MD -MT lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AllocationOrder.cpp.o -MF lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AllocationOrder.cpp.o.d -o lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AllocationOrder.cpp.o -c /home/buildbot/worker/as-builder-7/flang-runtime-cuda-gcc/llvm-project/llvm/lib/CodeGen/AllocationOrder.cpp
In file included from /home/buildbot/worker/as-builder-7/flang-runtime-cuda-gcc/llvm-project/llvm/include/llvm/CodeGen/MachineFunction.h:35,
                 from /home/buildbot/worker/as-builder-7/flang-runtime-cuda-gcc/llvm-project/llvm/lib/CodeGen/AllocationOrder.cpp:17:
/home/buildbot/worker/as-builder-7/flang-runtime-cuda-gcc/llvm-project/llvm/include/llvm/Target/TargetOptions.h:414:17: error: declaration of ‘llvm::VectorLibrary llvm::TargetOptions::VectorLibrary’ changes meaning of ‘VectorLibrary’ [-Wchanges-meaning]
  414 |   VectorLibrary VectorLibrary = VectorLibrary::NoLibrary;
      |                 ^~~~~~~~~~~~~
/home/buildbot/worker/as-builder-7/flang-runtime-cuda-gcc/llvm-project/llvm/include/llvm/Target/TargetOptions.h:414:3: note: used here to mean ‘enum class llvm::VectorLibrary’
  414 |   VectorLibrary VectorLibrary = VectorLibrary::NoLibrary;
      |   ^~~~~~~~~~~~~
In file included from /home/buildbot/worker/as-builder-7/flang-runtime-cuda-gcc/llvm-project/llvm/include/llvm/Target/TargetOptions.h:18:
/home/buildbot/worker/as-builder-7/flang-runtime-cuda-gcc/llvm-project/llvm/include/llvm/IR/SystemLibraries.h:20:12: note: declared here
   20 | enum class VectorLibrary {
      |            ^~~~~~~~~~~~~
11.759 [5236/63/1878] Building AArch64GenDAGISel.inc...
12.339 [5236/62/1879] Building CXX object lib/IR/CMakeFiles/LLVMCore.dir/RuntimeLibcalls.cpp.o
In file included from /home/buildbot/worker/as-builder-7/flang-runtime-cuda-gcc/llvm-project/llvm/lib/IR/RuntimeLibcalls.cpp:27:
/home/buildbot/worker/as-builder-7/flang-runtime-cuda-gcc/build/include/llvm/IR/RuntimeLibcalls.inc: In member function ‘void llvm::RTLIB::RuntimeLibcallsInfo::setTargetRuntimeLibcallSets(const llvm::Triple&, llvm::ExceptionHandling, llvm::FloatABI::ABIType, llvm::EABI, llvm::StringRef)’:
/home/buildbot/worker/as-builder-7/flang-runtime-cuda-gcc/build/include/llvm/IR/RuntimeLibcalls.inc:23140:57: warning: enumerated and non-enumerated type in conditional expression [-Wextra]
23140 |         setLibcallImplCallingConv(Impl, TT.isWatchABI() ? DefaultCC :
      |                                         ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
23141 |     (isAAPCS_ABI(TT, ABIName) ? CallingConv::ARM_AAPCS : CallingConv::ARM_APCS));
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/buildbot/worker/as-builder-7/flang-runtime-cuda-gcc/build/include/llvm/IR/RuntimeLibcalls.inc:23153:57: warning: enumerated and non-enumerated type in conditional expression [-Wextra]
23153 |         setLibcallImplCallingConv(Impl, TT.isWatchABI() ? DefaultCC :
      |                                         ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
23154 |     (isAAPCS_ABI(TT, ABIName) ? CallingConv::ARM_AAPCS : CallingConv::ARM_APCS));
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/buildbot/worker/as-builder-7/flang-runtime-cuda-gcc/build/include/llvm/IR/RuntimeLibcalls.inc:23168:57: warning: enumerated and non-enumerated type in conditional expression [-Wextra]
23168 |         setLibcallImplCallingConv(Impl, TT.isWatchABI() ? DefaultCC :
      |                                         ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
23169 |     (isAAPCS_ABI(TT, ABIName) ? CallingConv::ARM_AAPCS : CallingConv::ARM_APCS));
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
12.376 [5236/61/1880] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/EdgeBundles.cpp.o
FAILED: lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/EdgeBundles.cpp.o 
ccache /usr/bin/g++ -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GLIBCXX_USE_CXX11_ABI=1 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/buildbot/worker/as-builder-7/flang-runtime-cuda-gcc/build/lib/CodeGen -I/home/buildbot/worker/as-builder-7/flang-runtime-cuda-gcc/llvm-project/llvm/lib/CodeGen -I/home/buildbot/worker/as-builder-7/flang-runtime-cuda-gcc/build/include -I/home/buildbot/worker/as-builder-7/flang-runtime-cuda-gcc/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-dangling-reference -Wno-redundant-move -Wno-pessimizing-move -Wno-array-bounds -Wno-stringop-overread -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=c++17  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -MD -MT lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/EdgeBundles.cpp.o -MF lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/EdgeBundles.cpp.o.d -o lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/EdgeBundles.cpp.o -c /home/buildbot/worker/as-builder-7/flang-runtime-cuda-gcc/llvm-project/llvm/lib/CodeGen/EdgeBundles.cpp
In file included from /home/buildbot/worker/as-builder-7/flang-runtime-cuda-gcc/llvm-project/llvm/include/llvm/CodeGen/MachineFunction.h:35,
                 from /home/buildbot/worker/as-builder-7/flang-runtime-cuda-gcc/llvm-project/llvm/include/llvm/CodeGen/MachineFunctionPass.h:21,
                 from /home/buildbot/worker/as-builder-7/flang-runtime-cuda-gcc/llvm-project/llvm/include/llvm/CodeGen/EdgeBundles.h:20,

@llvm-ci
Copy link
Collaborator

llvm-ci commented Nov 14, 2025

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

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

Here is the relevant piece of the build log for the reference
Step 5 (build-unified-tree) failure: build (failure)
...
15.655 [1/8/83] Building CXX object utils/TableGen/CMakeFiles/llvm-tblgen.dir/RegisterInfoEmitter.cpp.o
16.314 [1/7/84] Building CXX object utils/TableGen/Common/CMakeFiles/obj.LLVMTableGenCommon.dir/CodeGenSchedule.cpp.o
18.659 [1/6/85] Building CXX object utils/TableGen/Common/CMakeFiles/obj.LLVMTableGenCommon.dir/CodeGenDAGPatterns.cpp.o
18.925 [1/5/86] Building CXX object utils/TableGen/CMakeFiles/llvm-tblgen.dir/AsmMatcherEmitter.cpp.o
19.351 [1/4/87] Building CXX object utils/TableGen/Common/CMakeFiles/obj.LLVMTableGenCommon.dir/GlobalISel/GlobalISelMatchTable.cpp.o
19.931 [1/3/88] Building CXX object utils/TableGen/CMakeFiles/llvm-tblgen.dir/GlobalISelCombinerEmitter.cpp.o
20.248 [1/2/89] Building CXX object utils/TableGen/CMakeFiles/llvm-tblgen.dir/GlobalISelEmitter.cpp.o
20.745 [1/1/90] Building CXX object utils/TableGen/Common/CMakeFiles/obj.LLVMTableGenCommon.dir/CodeGenRegisters.cpp.o
21.106 [0/1/91] Linking CXX executable bin/llvm-tblgen
36.706 [2085/128/644] Building CXX object unittests/CodeGen/CGPluginTest/Plugin/CMakeFiles/CGTestPlugin.dir/CodeGenTestPass.cpp.o
FAILED: unittests/CodeGen/CGPluginTest/Plugin/CMakeFiles/CGTestPlugin.dir/CodeGenTestPass.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes CCACHE_SLOPPINESS=pch_defines,time_macros /usr/bin/ccache /usr/bin/c++ -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GLIBCXX_USE_CXX11_ABI=1 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/buildbot/worker/as-builder-7/llvm-nvptx64-nvidia-ubuntu/build/unittests/CodeGen/CGPluginTest/Plugin -I/home/buildbot/worker/as-builder-7/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/unittests/CodeGen/CGPluginTest/Plugin -I/home/buildbot/worker/as-builder-7/llvm-nvptx64-nvidia-ubuntu/build/include -I/home/buildbot/worker/as-builder-7/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-dangling-reference -Wno-redundant-move -Wno-pessimizing-move -Wno-array-bounds -Wno-stringop-overread -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=c++17 -fPIC  -Wno-dangling-else -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -MD -MT unittests/CodeGen/CGPluginTest/Plugin/CMakeFiles/CGTestPlugin.dir/CodeGenTestPass.cpp.o -MF unittests/CodeGen/CGPluginTest/Plugin/CMakeFiles/CGTestPlugin.dir/CodeGenTestPass.cpp.o.d -o unittests/CodeGen/CGPluginTest/Plugin/CMakeFiles/CGTestPlugin.dir/CodeGenTestPass.cpp.o -c /home/buildbot/worker/as-builder-7/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/unittests/CodeGen/CGPluginTest/Plugin/CodeGenTestPass.cpp
In file included from /home/buildbot/worker/as-builder-7/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/include/llvm/CodeGen/MachineFunction.h:35,
                 from /home/buildbot/worker/as-builder-7/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/include/llvm/CodeGen/MachineFunctionPass.h:21,
                 from /home/buildbot/worker/as-builder-7/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/unittests/CodeGen/CGPluginTest/Plugin/CodeGenTestPass.h:12,
                 from /home/buildbot/worker/as-builder-7/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/unittests/CodeGen/CGPluginTest/Plugin/CodeGenTestPass.cpp:9:
/home/buildbot/worker/as-builder-7/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/include/llvm/Target/TargetOptions.h:414:17: error: declaration of ‘llvm::VectorLibrary llvm::TargetOptions::VectorLibrary’ changes meaning of ‘VectorLibrary’ [-Wchanges-meaning]
  414 |   VectorLibrary VectorLibrary = VectorLibrary::NoLibrary;
      |                 ^~~~~~~~~~~~~
/home/buildbot/worker/as-builder-7/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/include/llvm/Target/TargetOptions.h:414:3: note: used here to mean ‘enum class llvm::VectorLibrary’
  414 |   VectorLibrary VectorLibrary = VectorLibrary::NoLibrary;
      |   ^~~~~~~~~~~~~
In file included from /home/buildbot/worker/as-builder-7/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/include/llvm/Target/TargetOptions.h:18:
/home/buildbot/worker/as-builder-7/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/include/llvm/IR/SystemLibraries.h:20:12: note: declared here
   20 | enum class VectorLibrary {
      |            ^~~~~~~~~~~~~
38.064 [2085/127/645] Building CXX object tools/llvm-exegesis/lib/CMakeFiles/obj.LLVMExegesis.dir/SubprocessMemory.cpp.o
FAILED: tools/llvm-exegesis/lib/CMakeFiles/obj.LLVMExegesis.dir/SubprocessMemory.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes CCACHE_SLOPPINESS=pch_defines,time_macros /usr/bin/ccache /usr/bin/c++ -DGTEST_HAS_RTTI=0 -DLLVM_BUILD_STATIC -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GLIBCXX_USE_CXX11_ABI=1 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/buildbot/worker/as-builder-7/llvm-nvptx64-nvidia-ubuntu/build/tools/llvm-exegesis/lib -I/home/buildbot/worker/as-builder-7/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/tools/llvm-exegesis/lib -I/home/buildbot/worker/as-builder-7/llvm-nvptx64-nvidia-ubuntu/build/include -I/home/buildbot/worker/as-builder-7/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-dangling-reference -Wno-redundant-move -Wno-pessimizing-move -Wno-array-bounds -Wno-stringop-overread -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=c++17  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -MD -MT tools/llvm-exegesis/lib/CMakeFiles/obj.LLVMExegesis.dir/SubprocessMemory.cpp.o -MF tools/llvm-exegesis/lib/CMakeFiles/obj.LLVMExegesis.dir/SubprocessMemory.cpp.o.d -o tools/llvm-exegesis/lib/CMakeFiles/obj.LLVMExegesis.dir/SubprocessMemory.cpp.o -c /home/buildbot/worker/as-builder-7/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/tools/llvm-exegesis/lib/SubprocessMemory.cpp
In file included from /home/buildbot/worker/as-builder-7/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/include/llvm/Target/CGPassBuilderOption.h:19,
                 from /home/buildbot/worker/as-builder-7/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/include/llvm/Target/TargetMachine.h:25,
                 from /home/buildbot/worker/as-builder-7/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/tools/llvm-exegesis/lib/LlvmState.h:25,
                 from /home/buildbot/worker/as-builder-7/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/tools/llvm-exegesis/lib/BenchmarkResult.h:18,
                 from /home/buildbot/worker/as-builder-7/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/tools/llvm-exegesis/lib/SubprocessMemory.h:18,
                 from /home/buildbot/worker/as-builder-7/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/tools/llvm-exegesis/lib/SubprocessMemory.cpp:9:
/home/buildbot/worker/as-builder-7/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/include/llvm/Target/TargetOptions.h:414:17: error: declaration of ‘llvm::VectorLibrary llvm::TargetOptions::VectorLibrary’ changes meaning of ‘VectorLibrary’ [-Wchanges-meaning]
  414 |   VectorLibrary VectorLibrary = VectorLibrary::NoLibrary;
      |                 ^~~~~~~~~~~~~
/home/buildbot/worker/as-builder-7/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/include/llvm/Target/TargetOptions.h:414:3: note: used here to mean ‘enum class llvm::VectorLibrary’
  414 |   VectorLibrary VectorLibrary = VectorLibrary::NoLibrary;
      |   ^~~~~~~~~~~~~
In file included from /home/buildbot/worker/as-builder-7/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/include/llvm/Target/TargetOptions.h:18:
/home/buildbot/worker/as-builder-7/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/include/llvm/IR/SystemLibraries.h:20:12: note: declared here
   20 | enum class VectorLibrary {
      |            ^~~~~~~~~~~~~
38.143 [2085/126/646] Building CXX object tools/llvm-exegesis/lib/CMakeFiles/obj.LLVMExegesis.dir/SchedClassResolution.cpp.o
FAILED: tools/llvm-exegesis/lib/CMakeFiles/obj.LLVMExegesis.dir/SchedClassResolution.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes CCACHE_SLOPPINESS=pch_defines,time_macros /usr/bin/ccache /usr/bin/c++ -DGTEST_HAS_RTTI=0 -DLLVM_BUILD_STATIC -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GLIBCXX_USE_CXX11_ABI=1 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/buildbot/worker/as-builder-7/llvm-nvptx64-nvidia-ubuntu/build/tools/llvm-exegesis/lib -I/home/buildbot/worker/as-builder-7/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/tools/llvm-exegesis/lib -I/home/buildbot/worker/as-builder-7/llvm-nvptx64-nvidia-ubuntu/build/include -I/home/buildbot/worker/as-builder-7/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-dangling-reference -Wno-redundant-move -Wno-pessimizing-move -Wno-array-bounds -Wno-stringop-overread -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=c++17  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -MD -MT tools/llvm-exegesis/lib/CMakeFiles/obj.LLVMExegesis.dir/SchedClassResolution.cpp.o -MF tools/llvm-exegesis/lib/CMakeFiles/obj.LLVMExegesis.dir/SchedClassResolution.cpp.o.d -o tools/llvm-exegesis/lib/CMakeFiles/obj.LLVMExegesis.dir/SchedClassResolution.cpp.o -c /home/buildbot/worker/as-builder-7/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/tools/llvm-exegesis/lib/SchedClassResolution.cpp
In file included from /home/buildbot/worker/as-builder-7/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/include/llvm/Target/CGPassBuilderOption.h:19,

@llvm-ci
Copy link
Collaborator

llvm-ci commented Nov 14, 2025

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

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

Here is the relevant piece of the build log for the reference
Step 5 (build-unified-tree) failure: build (failure)
...
16.000 [1/8/83] Building CXX object utils/TableGen/CMakeFiles/llvm-tblgen.dir/AsmWriterEmitter.cpp.o
16.306 [1/7/84] Building CXX object utils/TableGen/CMakeFiles/llvm-tblgen.dir/InstrInfoEmitter.cpp.o
18.315 [1/6/85] Building CXX object utils/TableGen/CMakeFiles/llvm-tblgen.dir/GlobalISelEmitter.cpp.o
18.536 [1/5/86] Building CXX object utils/TableGen/CMakeFiles/llvm-tblgen.dir/GlobalISelCombinerEmitter.cpp.o
19.120 [1/4/87] Building CXX object utils/TableGen/Common/CMakeFiles/obj.LLVMTableGenCommon.dir/GlobalISel/GlobalISelMatchTable.cpp.o
20.528 [1/3/88] Building CXX object utils/TableGen/Common/CMakeFiles/obj.LLVMTableGenCommon.dir/CodeGenDAGPatterns.cpp.o
20.930 [1/2/89] Building CXX object utils/TableGen/Common/CMakeFiles/obj.LLVMTableGenCommon.dir/CodeGenRegisters.cpp.o
22.196 [1/1/90] Building CXX object utils/TableGen/CMakeFiles/llvm-tblgen.dir/AsmMatcherEmitter.cpp.o
22.558 [0/1/91] Linking CXX executable bin/llvm-tblgen
36.537 [2085/128/644] Building CXX object unittests/CodeGen/CGPluginTest/Plugin/CMakeFiles/CGTestPlugin.dir/Plugin.cpp.o
FAILED: unittests/CodeGen/CGPluginTest/Plugin/CMakeFiles/CGTestPlugin.dir/Plugin.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes CCACHE_SLOPPINESS=pch_defines,time_macros /usr/bin/ccache /usr/bin/c++ -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GLIBCXX_USE_CXX11_ABI=1 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/buildbot/worker/as-builder-7/llvm-nvptx-nvidia-ubuntu/build/unittests/CodeGen/CGPluginTest/Plugin -I/home/buildbot/worker/as-builder-7/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/unittests/CodeGen/CGPluginTest/Plugin -I/home/buildbot/worker/as-builder-7/llvm-nvptx-nvidia-ubuntu/build/include -I/home/buildbot/worker/as-builder-7/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-dangling-reference -Wno-redundant-move -Wno-pessimizing-move -Wno-array-bounds -Wno-stringop-overread -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=c++17 -fPIC  -Wno-dangling-else -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -MD -MT unittests/CodeGen/CGPluginTest/Plugin/CMakeFiles/CGTestPlugin.dir/Plugin.cpp.o -MF unittests/CodeGen/CGPluginTest/Plugin/CMakeFiles/CGTestPlugin.dir/Plugin.cpp.o.d -o unittests/CodeGen/CGPluginTest/Plugin/CMakeFiles/CGTestPlugin.dir/Plugin.cpp.o -c /home/buildbot/worker/as-builder-7/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/unittests/CodeGen/CGPluginTest/Plugin/Plugin.cpp
In file included from /home/buildbot/worker/as-builder-7/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/include/llvm/CodeGen/MachineFunction.h:35,
                 from /home/buildbot/worker/as-builder-7/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/include/llvm/CodeGen/MachineFunctionPass.h:21,
                 from /home/buildbot/worker/as-builder-7/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/unittests/CodeGen/CGPluginTest/Plugin/CodeGenTestPass.h:12,
                 from /home/buildbot/worker/as-builder-7/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/unittests/CodeGen/CGPluginTest/Plugin/Plugin.cpp:9:
/home/buildbot/worker/as-builder-7/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/include/llvm/Target/TargetOptions.h:414:17: error: declaration of ‘llvm::VectorLibrary llvm::TargetOptions::VectorLibrary’ changes meaning of ‘VectorLibrary’ [-Wchanges-meaning]
  414 |   VectorLibrary VectorLibrary = VectorLibrary::NoLibrary;
      |                 ^~~~~~~~~~~~~
/home/buildbot/worker/as-builder-7/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/include/llvm/Target/TargetOptions.h:414:3: note: used here to mean ‘enum class llvm::VectorLibrary’
  414 |   VectorLibrary VectorLibrary = VectorLibrary::NoLibrary;
      |   ^~~~~~~~~~~~~
In file included from /home/buildbot/worker/as-builder-7/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/include/llvm/Target/TargetOptions.h:18:
/home/buildbot/worker/as-builder-7/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/include/llvm/IR/SystemLibraries.h:20:12: note: declared here
   20 | enum class VectorLibrary {
      |            ^~~~~~~~~~~~~
36.685 [2085/127/645] Building CXX object unittests/CodeGen/CGPluginTest/Plugin/CMakeFiles/CGTestPlugin.dir/CodeGenTestPass.cpp.o
FAILED: unittests/CodeGen/CGPluginTest/Plugin/CMakeFiles/CGTestPlugin.dir/CodeGenTestPass.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes CCACHE_SLOPPINESS=pch_defines,time_macros /usr/bin/ccache /usr/bin/c++ -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GLIBCXX_USE_CXX11_ABI=1 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/buildbot/worker/as-builder-7/llvm-nvptx-nvidia-ubuntu/build/unittests/CodeGen/CGPluginTest/Plugin -I/home/buildbot/worker/as-builder-7/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/unittests/CodeGen/CGPluginTest/Plugin -I/home/buildbot/worker/as-builder-7/llvm-nvptx-nvidia-ubuntu/build/include -I/home/buildbot/worker/as-builder-7/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-dangling-reference -Wno-redundant-move -Wno-pessimizing-move -Wno-array-bounds -Wno-stringop-overread -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=c++17 -fPIC  -Wno-dangling-else -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -MD -MT unittests/CodeGen/CGPluginTest/Plugin/CMakeFiles/CGTestPlugin.dir/CodeGenTestPass.cpp.o -MF unittests/CodeGen/CGPluginTest/Plugin/CMakeFiles/CGTestPlugin.dir/CodeGenTestPass.cpp.o.d -o unittests/CodeGen/CGPluginTest/Plugin/CMakeFiles/CGTestPlugin.dir/CodeGenTestPass.cpp.o -c /home/buildbot/worker/as-builder-7/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/unittests/CodeGen/CGPluginTest/Plugin/CodeGenTestPass.cpp
In file included from /home/buildbot/worker/as-builder-7/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/include/llvm/CodeGen/MachineFunction.h:35,
                 from /home/buildbot/worker/as-builder-7/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/include/llvm/CodeGen/MachineFunctionPass.h:21,
                 from /home/buildbot/worker/as-builder-7/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/unittests/CodeGen/CGPluginTest/Plugin/CodeGenTestPass.h:12,
                 from /home/buildbot/worker/as-builder-7/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/unittests/CodeGen/CGPluginTest/Plugin/CodeGenTestPass.cpp:9:
/home/buildbot/worker/as-builder-7/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/include/llvm/Target/TargetOptions.h:414:17: error: declaration of ‘llvm::VectorLibrary llvm::TargetOptions::VectorLibrary’ changes meaning of ‘VectorLibrary’ [-Wchanges-meaning]
  414 |   VectorLibrary VectorLibrary = VectorLibrary::NoLibrary;
      |                 ^~~~~~~~~~~~~
/home/buildbot/worker/as-builder-7/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/include/llvm/Target/TargetOptions.h:414:3: note: used here to mean ‘enum class llvm::VectorLibrary’
  414 |   VectorLibrary VectorLibrary = VectorLibrary::NoLibrary;
      |   ^~~~~~~~~~~~~
In file included from /home/buildbot/worker/as-builder-7/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/include/llvm/Target/TargetOptions.h:18:
/home/buildbot/worker/as-builder-7/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/include/llvm/IR/SystemLibraries.h:20:12: note: declared here
   20 | enum class VectorLibrary {
      |            ^~~~~~~~~~~~~
37.560 [2085/126/646] Building CXX object tools/llvm-exegesis/lib/CMakeFiles/obj.LLVMExegesis.dir/SubprocessMemory.cpp.o
FAILED: tools/llvm-exegesis/lib/CMakeFiles/obj.LLVMExegesis.dir/SubprocessMemory.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes CCACHE_SLOPPINESS=pch_defines,time_macros /usr/bin/ccache /usr/bin/c++ -DGTEST_HAS_RTTI=0 -DLLVM_BUILD_STATIC -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GLIBCXX_USE_CXX11_ABI=1 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/buildbot/worker/as-builder-7/llvm-nvptx-nvidia-ubuntu/build/tools/llvm-exegesis/lib -I/home/buildbot/worker/as-builder-7/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/tools/llvm-exegesis/lib -I/home/buildbot/worker/as-builder-7/llvm-nvptx-nvidia-ubuntu/build/include -I/home/buildbot/worker/as-builder-7/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-dangling-reference -Wno-redundant-move -Wno-pessimizing-move -Wno-array-bounds -Wno-stringop-overread -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=c++17  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -MD -MT tools/llvm-exegesis/lib/CMakeFiles/obj.LLVMExegesis.dir/SubprocessMemory.cpp.o -MF tools/llvm-exegesis/lib/CMakeFiles/obj.LLVMExegesis.dir/SubprocessMemory.cpp.o.d -o tools/llvm-exegesis/lib/CMakeFiles/obj.LLVMExegesis.dir/SubprocessMemory.cpp.o -c /home/buildbot/worker/as-builder-7/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/tools/llvm-exegesis/lib/SubprocessMemory.cpp
In file included from /home/buildbot/worker/as-builder-7/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/include/llvm/Target/CGPassBuilderOption.h:19,
                 from /home/buildbot/worker/as-builder-7/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/include/llvm/Target/TargetMachine.h:25,
                 from /home/buildbot/worker/as-builder-7/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/tools/llvm-exegesis/lib/LlvmState.h:25,

@llvm-ci
Copy link
Collaborator

llvm-ci commented Nov 14, 2025

LLVM Buildbot has detected a new failure on builder flang-runtime-cuda-clang running on as-builder-7 while building clang,cross-project-tests,llvm at step 6 "build-default".

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

Here is the relevant piece of the build log for the reference
Step 6 (build-default) failure: cmake (failure)
...
10.337 [4942/130/2248] Building CXX object lib/IR/CMakeFiles/LLVMCore.dir/TypedPointerType.cpp.o
10.354 [4941/130/2249] Building CXX object lib/IR/CMakeFiles/LLVMCore.dir/TypeFinder.cpp.o
10.369 [4940/130/2250] Building CXX object lib/IR/CMakeFiles/LLVMCore.dir/Use.cpp.o
10.385 [4939/130/2251] Building CXX object lib/IR/CMakeFiles/LLVMCore.dir/User.cpp.o
10.404 [4938/130/2252] Building CXX object lib/IR/CMakeFiles/LLVMCore.dir/Value.cpp.o
10.419 [4937/130/2253] Building CXX object lib/IR/CMakeFiles/LLVMCore.dir/ValueSymbolTable.cpp.o
10.433 [4936/130/2254] Building CXX object lib/IR/CMakeFiles/LLVMCore.dir/VectorTypeUtils.cpp.o
10.454 [4935/130/2255] Building CXX object lib/IR/CMakeFiles/LLVMCore.dir/Verifier.cpp.o
10.470 [4934/130/2256] Building CXX object lib/IR/CMakeFiles/LLVMCore.dir/VFABIDemangler.cpp.o
10.555 [4933/130/2257] Building CXX object unittests/CodeGen/CGPluginTest/Plugin/CMakeFiles/CGTestPlugin.dir/Plugin.cpp.o
FAILED: unittests/CodeGen/CGPluginTest/Plugin/CMakeFiles/CGTestPlugin.dir/Plugin.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes CCACHE_SLOPPINESS=pch_defines,time_macros /usr/bin/ccache /usr/bin/c++ -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GLIBCXX_USE_CXX11_ABI=1 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/buildbot/worker/as-builder-7/flang-runtime-cuda-clang/build/unittests/CodeGen/CGPluginTest/Plugin -I/home/buildbot/worker/as-builder-7/flang-runtime-cuda-clang/llvm-project/llvm/unittests/CodeGen/CGPluginTest/Plugin -I/home/buildbot/worker/as-builder-7/flang-runtime-cuda-clang/build/include -I/home/buildbot/worker/as-builder-7/flang-runtime-cuda-clang/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-dangling-reference -Wno-redundant-move -Wno-pessimizing-move -Wno-array-bounds -Wno-stringop-overread -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=c++17 -fPIC  -Wno-dangling-else -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -MD -MT unittests/CodeGen/CGPluginTest/Plugin/CMakeFiles/CGTestPlugin.dir/Plugin.cpp.o -MF unittests/CodeGen/CGPluginTest/Plugin/CMakeFiles/CGTestPlugin.dir/Plugin.cpp.o.d -o unittests/CodeGen/CGPluginTest/Plugin/CMakeFiles/CGTestPlugin.dir/Plugin.cpp.o -c /home/buildbot/worker/as-builder-7/flang-runtime-cuda-clang/llvm-project/llvm/unittests/CodeGen/CGPluginTest/Plugin/Plugin.cpp
In file included from /home/buildbot/worker/as-builder-7/flang-runtime-cuda-clang/llvm-project/llvm/include/llvm/CodeGen/MachineFunction.h:35,
                 from /home/buildbot/worker/as-builder-7/flang-runtime-cuda-clang/llvm-project/llvm/include/llvm/CodeGen/MachineFunctionPass.h:21,
                 from /home/buildbot/worker/as-builder-7/flang-runtime-cuda-clang/llvm-project/llvm/unittests/CodeGen/CGPluginTest/Plugin/CodeGenTestPass.h:12,
                 from /home/buildbot/worker/as-builder-7/flang-runtime-cuda-clang/llvm-project/llvm/unittests/CodeGen/CGPluginTest/Plugin/Plugin.cpp:9:
/home/buildbot/worker/as-builder-7/flang-runtime-cuda-clang/llvm-project/llvm/include/llvm/Target/TargetOptions.h:414:17: error: declaration of ‘llvm::VectorLibrary llvm::TargetOptions::VectorLibrary’ changes meaning of ‘VectorLibrary’ [-Wchanges-meaning]
  414 |   VectorLibrary VectorLibrary = VectorLibrary::NoLibrary;
      |                 ^~~~~~~~~~~~~
/home/buildbot/worker/as-builder-7/flang-runtime-cuda-clang/llvm-project/llvm/include/llvm/Target/TargetOptions.h:414:3: note: used here to mean ‘enum class llvm::VectorLibrary’
  414 |   VectorLibrary VectorLibrary = VectorLibrary::NoLibrary;
      |   ^~~~~~~~~~~~~
In file included from /home/buildbot/worker/as-builder-7/flang-runtime-cuda-clang/llvm-project/llvm/include/llvm/Target/TargetOptions.h:18:
/home/buildbot/worker/as-builder-7/flang-runtime-cuda-clang/llvm-project/llvm/include/llvm/IR/SystemLibraries.h:20:12: note: declared here
   20 | enum class VectorLibrary {
      |            ^~~~~~~~~~~~~
10.688 [4933/129/2258] Building X86GenExegesis.inc...
10.902 [4933/128/2259] Building CXX object unittests/CodeGen/CGPluginTest/Plugin/CMakeFiles/CGTestPlugin.dir/CodeGenTestPass.cpp.o
FAILED: unittests/CodeGen/CGPluginTest/Plugin/CMakeFiles/CGTestPlugin.dir/CodeGenTestPass.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes CCACHE_SLOPPINESS=pch_defines,time_macros /usr/bin/ccache /usr/bin/c++ -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GLIBCXX_USE_CXX11_ABI=1 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/buildbot/worker/as-builder-7/flang-runtime-cuda-clang/build/unittests/CodeGen/CGPluginTest/Plugin -I/home/buildbot/worker/as-builder-7/flang-runtime-cuda-clang/llvm-project/llvm/unittests/CodeGen/CGPluginTest/Plugin -I/home/buildbot/worker/as-builder-7/flang-runtime-cuda-clang/build/include -I/home/buildbot/worker/as-builder-7/flang-runtime-cuda-clang/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-dangling-reference -Wno-redundant-move -Wno-pessimizing-move -Wno-array-bounds -Wno-stringop-overread -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=c++17 -fPIC  -Wno-dangling-else -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -MD -MT unittests/CodeGen/CGPluginTest/Plugin/CMakeFiles/CGTestPlugin.dir/CodeGenTestPass.cpp.o -MF unittests/CodeGen/CGPluginTest/Plugin/CMakeFiles/CGTestPlugin.dir/CodeGenTestPass.cpp.o.d -o unittests/CodeGen/CGPluginTest/Plugin/CMakeFiles/CGTestPlugin.dir/CodeGenTestPass.cpp.o -c /home/buildbot/worker/as-builder-7/flang-runtime-cuda-clang/llvm-project/llvm/unittests/CodeGen/CGPluginTest/Plugin/CodeGenTestPass.cpp
In file included from /home/buildbot/worker/as-builder-7/flang-runtime-cuda-clang/llvm-project/llvm/include/llvm/CodeGen/MachineFunction.h:35,
                 from /home/buildbot/worker/as-builder-7/flang-runtime-cuda-clang/llvm-project/llvm/include/llvm/CodeGen/MachineFunctionPass.h:21,
                 from /home/buildbot/worker/as-builder-7/flang-runtime-cuda-clang/llvm-project/llvm/unittests/CodeGen/CGPluginTest/Plugin/CodeGenTestPass.h:12,
                 from /home/buildbot/worker/as-builder-7/flang-runtime-cuda-clang/llvm-project/llvm/unittests/CodeGen/CGPluginTest/Plugin/CodeGenTestPass.cpp:9:
/home/buildbot/worker/as-builder-7/flang-runtime-cuda-clang/llvm-project/llvm/include/llvm/Target/TargetOptions.h:414:17: error: declaration of ‘llvm::VectorLibrary llvm::TargetOptions::VectorLibrary’ changes meaning of ‘VectorLibrary’ [-Wchanges-meaning]
  414 |   VectorLibrary VectorLibrary = VectorLibrary::NoLibrary;
      |                 ^~~~~~~~~~~~~
/home/buildbot/worker/as-builder-7/flang-runtime-cuda-clang/llvm-project/llvm/include/llvm/Target/TargetOptions.h:414:3: note: used here to mean ‘enum class llvm::VectorLibrary’
  414 |   VectorLibrary VectorLibrary = VectorLibrary::NoLibrary;
      |   ^~~~~~~~~~~~~
In file included from /home/buildbot/worker/as-builder-7/flang-runtime-cuda-clang/llvm-project/llvm/include/llvm/Target/TargetOptions.h:18:
/home/buildbot/worker/as-builder-7/flang-runtime-cuda-clang/llvm-project/llvm/include/llvm/IR/SystemLibraries.h:20:12: note: declared here
   20 | enum class VectorLibrary {
      |            ^~~~~~~~~~~~~
11.079 [4933/127/2260] Building X86GenCallingConv.inc...
11.079 [4933/126/2261] Building X86GenRegisterBank.inc...
11.231 [4933/125/2262] Building X86GenRegisterInfo.inc...
11.417 [4933/124/2263] Building X86GenMnemonicTables.inc...
11.699 [4933/123/2264] Building CXX object tools/clang/lib/Analysis/CMakeFiles/obj.clangAnalysis.dir/ThreadSafetyTIL.cpp.o

@llvm-ci
Copy link
Collaborator

llvm-ci commented Nov 14, 2025

LLVM Buildbot has detected a new failure on builder llvm-clang-x86_64-gcc-ubuntu-no-asserts running on doug-worker-6 while building clang,cross-project-tests,llvm at step 5 "build-unified-tree".

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

Here is the relevant piece of the build log for the reference
Step 5 (build-unified-tree) failure: build (failure)
...
23153 |         setLibcallImplCallingConv(Impl, TT.isWatchABI() ? DefaultCC :
      |                                         ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
23154 |     (isAAPCS_ABI(TT, ABIName) ? CallingConv::ARM_AAPCS : CallingConv::ARM_APCS));
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/buildbot/buildbot-root/gcc-no-asserts/build/include/llvm/IR/RuntimeLibcalls.inc:23168:57: warning: enumeral and non-enumeral type in conditional expression [-Wextra]
23168 |         setLibcallImplCallingConv(Impl, TT.isWatchABI() ? DefaultCC :
      |                                         ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
23169 |     (isAAPCS_ABI(TT, ABIName) ? CallingConv::ARM_AAPCS : CallingConv::ARM_APCS));
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
16.658 [6675/8/751] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AllocationOrder.cpp.o
FAILED: lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AllocationOrder.cpp.o 
/opt/ccache/bin/g++ -DGTEST_HAS_RTTI=0 -D_GLIBCXX_USE_CXX11_ABI=1 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/buildbot/buildbot-root/gcc-no-asserts/build/lib/CodeGen -I/home/buildbot/buildbot-root/gcc-no-asserts/llvm-project/llvm/lib/CodeGen -I/home/buildbot/buildbot-root/gcc-no-asserts/build/include -I/home/buildbot/buildbot-root/gcc-no-asserts/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-array-bounds -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG  -fno-exceptions -funwind-tables -fno-rtti -std=c++17 -MD -MT lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AllocationOrder.cpp.o -MF lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AllocationOrder.cpp.o.d -o lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AllocationOrder.cpp.o -c /home/buildbot/buildbot-root/gcc-no-asserts/llvm-project/llvm/lib/CodeGen/AllocationOrder.cpp
In file included from /home/buildbot/buildbot-root/gcc-no-asserts/llvm-project/llvm/include/llvm/CodeGen/MachineFunction.h:35,
                 from /home/buildbot/buildbot-root/gcc-no-asserts/llvm-project/llvm/lib/CodeGen/AllocationOrder.cpp:17:
/home/buildbot/buildbot-root/gcc-no-asserts/llvm-project/llvm/include/llvm/Target/TargetOptions.h:414:17: error: declaration of ‘llvm::VectorLibrary llvm::TargetOptions::VectorLibrary’ changes meaning of ‘VectorLibrary’ [-fpermissive]
  414 |   VectorLibrary VectorLibrary = VectorLibrary::NoLibrary;
      |                 ^~~~~~~~~~~~~
In file included from /home/buildbot/buildbot-root/gcc-no-asserts/llvm-project/llvm/include/llvm/Target/TargetOptions.h:18,
                 from /home/buildbot/buildbot-root/gcc-no-asserts/llvm-project/llvm/include/llvm/CodeGen/MachineFunction.h:35,
                 from /home/buildbot/buildbot-root/gcc-no-asserts/llvm-project/llvm/lib/CodeGen/AllocationOrder.cpp:17:
/home/buildbot/buildbot-root/gcc-no-asserts/llvm-project/llvm/include/llvm/IR/SystemLibraries.h:20:12: note: ‘VectorLibrary’ declared here as ‘enum class llvm::VectorLibrary’
   20 | enum class VectorLibrary {
      |            ^~~~~~~~~~~~~
21.372 [6675/7/752] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AggressiveAntiDepBreaker.cpp.o
FAILED: lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AggressiveAntiDepBreaker.cpp.o 
/opt/ccache/bin/g++ -DGTEST_HAS_RTTI=0 -D_GLIBCXX_USE_CXX11_ABI=1 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/buildbot/buildbot-root/gcc-no-asserts/build/lib/CodeGen -I/home/buildbot/buildbot-root/gcc-no-asserts/llvm-project/llvm/lib/CodeGen -I/home/buildbot/buildbot-root/gcc-no-asserts/build/include -I/home/buildbot/buildbot-root/gcc-no-asserts/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-array-bounds -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG  -fno-exceptions -funwind-tables -fno-rtti -std=c++17 -MD -MT lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AggressiveAntiDepBreaker.cpp.o -MF lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AggressiveAntiDepBreaker.cpp.o.d -o lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AggressiveAntiDepBreaker.cpp.o -c /home/buildbot/buildbot-root/gcc-no-asserts/llvm-project/llvm/lib/CodeGen/AggressiveAntiDepBreaker.cpp
In file included from /home/buildbot/buildbot-root/gcc-no-asserts/llvm-project/llvm/include/llvm/CodeGen/MachineFunction.h:35,
                 from /home/buildbot/buildbot-root/gcc-no-asserts/llvm-project/llvm/include/llvm/CodeGen/MachineFunctionPass.h:21,
                 from /home/buildbot/buildbot-root/gcc-no-asserts/llvm-project/llvm/include/llvm/CodeGen/MachineOptimizationRemarkEmitter.h:18,
                 from /home/buildbot/buildbot-root/gcc-no-asserts/llvm-project/llvm/include/llvm/CodeGen/TargetFrameLowering.h:18,
                 from /home/buildbot/buildbot-root/gcc-no-asserts/llvm-project/llvm/include/llvm/CodeGen/MachineFrameInfo.h:18,
                 from /home/buildbot/buildbot-root/gcc-no-asserts/llvm-project/llvm/lib/CodeGen/AggressiveAntiDepBreaker.cpp:21:
/home/buildbot/buildbot-root/gcc-no-asserts/llvm-project/llvm/include/llvm/Target/TargetOptions.h:414:17: error: declaration of ‘llvm::VectorLibrary llvm::TargetOptions::VectorLibrary’ changes meaning of ‘VectorLibrary’ [-fpermissive]
  414 |   VectorLibrary VectorLibrary = VectorLibrary::NoLibrary;
      |                 ^~~~~~~~~~~~~
In file included from /home/buildbot/buildbot-root/gcc-no-asserts/llvm-project/llvm/include/llvm/Target/TargetOptions.h:18,
                 from /home/buildbot/buildbot-root/gcc-no-asserts/llvm-project/llvm/include/llvm/CodeGen/MachineFunction.h:35,
                 from /home/buildbot/buildbot-root/gcc-no-asserts/llvm-project/llvm/include/llvm/CodeGen/MachineFunctionPass.h:21,
                 from /home/buildbot/buildbot-root/gcc-no-asserts/llvm-project/llvm/include/llvm/CodeGen/MachineOptimizationRemarkEmitter.h:18,
                 from /home/buildbot/buildbot-root/gcc-no-asserts/llvm-project/llvm/include/llvm/CodeGen/TargetFrameLowering.h:18,
                 from /home/buildbot/buildbot-root/gcc-no-asserts/llvm-project/llvm/include/llvm/CodeGen/MachineFrameInfo.h:18,
                 from /home/buildbot/buildbot-root/gcc-no-asserts/llvm-project/llvm/lib/CodeGen/AggressiveAntiDepBreaker.cpp:21:
/home/buildbot/buildbot-root/gcc-no-asserts/llvm-project/llvm/include/llvm/IR/SystemLibraries.h:20:12: note: ‘VectorLibrary’ declared here as ‘enum class llvm::VectorLibrary’
   20 | enum class VectorLibrary {
      |            ^~~~~~~~~~~~~
22.243 [6675/6/753] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AtomicExpandPass.cpp.o
FAILED: lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AtomicExpandPass.cpp.o 
/opt/ccache/bin/g++ -DGTEST_HAS_RTTI=0 -D_GLIBCXX_USE_CXX11_ABI=1 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/buildbot/buildbot-root/gcc-no-asserts/build/lib/CodeGen -I/home/buildbot/buildbot-root/gcc-no-asserts/llvm-project/llvm/lib/CodeGen -I/home/buildbot/buildbot-root/gcc-no-asserts/build/include -I/home/buildbot/buildbot-root/gcc-no-asserts/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-array-bounds -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG  -fno-exceptions -funwind-tables -fno-rtti -std=c++17 -MD -MT lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AtomicExpandPass.cpp.o -MF lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AtomicExpandPass.cpp.o.d -o lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AtomicExpandPass.cpp.o -c /home/buildbot/buildbot-root/gcc-no-asserts/llvm-project/llvm/lib/CodeGen/AtomicExpandPass.cpp
In file included from /home/buildbot/buildbot-root/gcc-no-asserts/llvm-project/llvm/include/llvm/CodeGen/MachineFunction.h:35,

@llvm-ci
Copy link
Collaborator

llvm-ci commented Nov 14, 2025

LLVM Buildbot has detected a new failure on builder clang-arm64-windows-msvc running on linaro-armv8-windows-msvc-04 while building clang,cross-project-tests,llvm at step 5 "build-unified-tree".

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

Here is the relevant piece of the build log for the reference
Step 5 (build-unified-tree) failure: build (failure)
...
-- Performing additional configure checks with target flags: /Zl -fno-builtin -march=armv8-a
-- Performing Test COMPILER_RT_HAS_aarch64_FLOAT16
-- Performing Test COMPILER_RT_HAS_aarch64_FLOAT16 - Success
-- Performing Test COMPILER_RT_HAS_aarch64_BFLOAT16
-- Performing Test COMPILER_RT_HAS_aarch64_BFLOAT16 - Success
-- For aarch64 builtins preferring aarch64/fp_mode.c to fp_mode.c
-- Configuring done (13.7s)
-- Generating done (0.2s)
-- Build files have been written to: C:/Users/tcwg/llvm-worker/clang-arm64-windows-msvc/build/runtimes/builtins-bins
1723.738 [1653/10/3784] Building CXX object tools\opt\CMakeFiles\LLVMOptDriver.dir\optdriver.cpp.obj
FAILED: tools/opt/CMakeFiles/LLVMOptDriver.dir/optdriver.cpp.obj 
C:\Users\tcwg\scoop\shims\ccache.exe C:\Users\tcwg\scoop\apps\llvm-arm64\current\bin\clang-cl.exe  /nologo -TP -DGTEST_HAS_RTTI=0 -DUNICODE -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_GLIBCXX_ASSERTIONS -D_HAS_EXCEPTIONS=0 -D_SCL_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS -D_UNICODE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -IC:\Users\tcwg\llvm-worker\clang-arm64-windows-msvc\build\tools\opt -IC:\Users\tcwg\llvm-worker\clang-arm64-windows-msvc\llvm-project\llvm\tools\opt -IC:\Users\tcwg\llvm-worker\clang-arm64-windows-msvc\build\include -IC:\Users\tcwg\llvm-worker\clang-arm64-windows-msvc\llvm-project\llvm\include /DWIN32 /D_WINDOWS   /Zc:inline /Zc:__cplusplus /Oi /Brepro /bigobj /permissive- -Werror=unguarded-availability-new /W4  -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wno-pass-failed -Wmisleading-indentation -Wctad-maybe-unsupported /Gw /O2 /Ob2  -std:c++17 -MD  /EHs-c- /GR- -UNDEBUG /showIncludes /Fotools\opt\CMakeFiles\LLVMOptDriver.dir\optdriver.cpp.obj /Fdtools\opt\CMakeFiles\LLVMOptDriver.dir\LLVMOptDriver.pdb -c -- C:\Users\tcwg\llvm-worker\clang-arm64-windows-msvc\llvm-project\llvm\tools\opt\optdriver.cpp
C:\Users\tcwg\llvm-worker\clang-arm64-windows-msvc\llvm-project\llvm\tools\opt\optdriver.cpp(684,30): error: redefinition of 'RTLCI'
  684 |   RTLIB::RuntimeLibcallsInfo RTLCI(ModuleTriple, codegen::getExceptionModel(),
      |                              ^
C:\Users\tcwg\llvm-worker\clang-arm64-windows-msvc\llvm-project\llvm\tools\opt\optdriver.cpp(677,30): note: previous definition is here
  677 |   RTLIB::RuntimeLibcallsInfo RTLCI(ModuleTriple, codegen::getExceptionModel(),
      |                              ^
1 error generated.
1728.611 [1653/4/3790] Building CXX object tools\clang\lib\Tooling\CMakeFiles\obj.clangTooling.dir\AllTUsExecution.cpp.obj
1729.136 [1653/2/3792] Building CXX object tools\llvm-lto\CMakeFiles\llvm-lto.dir\llvm-lto.cpp.obj
1729.186 [1653/1/3793] Building CXX object tools\clang\lib\Tooling\CMakeFiles\obj.clangTooling.dir\CompilationDatabase.cpp.obj
ninja: build stopped: subcommand failed.

@llvm-ci
Copy link
Collaborator

llvm-ci commented Nov 14, 2025

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

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

Here is the relevant piece of the build log for the reference
Step 5 (build) failure: 'ninja -j16' (failure)
...
[4259/4488] Building CXX object tools/obj2yaml/CMakeFiles/obj2yaml.dir/dwarf2yaml.cpp.o
[4260/4488] Building CXX object tools/obj2yaml/CMakeFiles/obj2yaml.dir/wasm2yaml.cpp.o
[4261/4488] Building CXX object tools/sanstats/CMakeFiles/sanstats.dir/sanstats.cpp.o
[4262/4488] Linking CXX executable bin/sanstats
[4263/4488] Building CXX object tools/polly/lib/CMakeFiles/obj.Polly.dir/Analysis/ScopDetectionDiagnostic.cpp.o
[4264/4488] Building CXX object tools/verify-uselistorder/CMakeFiles/verify-uselistorder.dir/verify-uselistorder.cpp.o
[4265/4488] Building CXX object tools/yaml2obj/CMakeFiles/yaml2obj.dir/yaml2obj.cpp.o
[4266/4488] Linking CXX executable bin/verify-uselistorder
[4267/4488] Linking CXX executable bin/yaml2obj
[4268/4488] Building CXX object tools/opt/CMakeFiles/LLVMOptDriver.dir/optdriver.cpp.o
FAILED: tools/opt/CMakeFiles/LLVMOptDriver.dir/optdriver.cpp.o 
/local/clang+llvm-12.0.0-x86_64-linux-gnu-ubuntu-16.04/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/local/mnt/workspace/bots/hexagon-build-02/polly-arm-linux/llvm.obj/tools/opt -I/local/mnt/workspace/bots/hexagon-build-02/polly-arm-linux/llvm.src/llvm/tools/opt -I/local/mnt/workspace/bots/hexagon-build-02/polly-arm-linux/llvm.obj/include -I/local/mnt/workspace/bots/hexagon-build-02/polly-arm-linux/llvm.src/llvm/include -stdlib=libc++ -fPIC -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wno-pass-failed -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -std=c++17 -MD -MT tools/opt/CMakeFiles/LLVMOptDriver.dir/optdriver.cpp.o -MF tools/opt/CMakeFiles/LLVMOptDriver.dir/optdriver.cpp.o.d -o tools/opt/CMakeFiles/LLVMOptDriver.dir/optdriver.cpp.o -c /local/mnt/workspace/bots/hexagon-build-02/polly-arm-linux/llvm.src/llvm/tools/opt/optdriver.cpp
/local/mnt/workspace/bots/hexagon-build-02/polly-arm-linux/llvm.src/llvm/tools/opt/optdriver.cpp:684:30: error: redefinition of 'RTLCI'
  RTLIB::RuntimeLibcallsInfo RTLCI(ModuleTriple, codegen::getExceptionModel(),
                             ^
/local/mnt/workspace/bots/hexagon-build-02/polly-arm-linux/llvm.src/llvm/tools/opt/optdriver.cpp:677:30: note: previous definition is here
  RTLIB::RuntimeLibcallsInfo RTLCI(ModuleTriple, codegen::getExceptionModel(),
                             ^
1 error generated.
[4269/4488] Building CXX object tools/obj2yaml/CMakeFiles/obj2yaml.dir/macho2yaml.cpp.o
[4270/4488] Building CXX object tools/sancov/CMakeFiles/sancov.dir/sancov.cpp.o
[4271/4488] Building CXX object tools/polly/lib/CMakeFiles/obj.Polly.dir/Analysis/ScopGraphPrinter.cpp.o
[4272/4488] Building CXX object tools/polly/lib/CMakeFiles/obj.Polly.dir/Analysis/DependenceInfo.cpp.o
[4273/4488] Building CXX object tools/polly/lib/CMakeFiles/obj.Polly.dir/Analysis/PruneUnprofitable.cpp.o
[4274/4488] Building CXX object tools/polly/lib/CMakeFiles/obj.Polly.dir/Analysis/ScopPass.cpp.o
[4275/4488] Building CXX object tools/opt/CMakeFiles/LLVMOptDriver.dir/NewPMDriver.cpp.o
[4276/4488] Building CXX object tools/polly/lib/CMakeFiles/obj.Polly.dir/Analysis/ScopDetection.cpp.o
[4277/4488] Building CXX object tools/polly/lib/CMakeFiles/obj.Polly.dir/CodeGen/IslExprBuilder.cpp.o
[4278/4488] Building CXX object tools/polly/lib/CMakeFiles/obj.Polly.dir/CodeGen/IslAst.cpp.o
[4279/4488] Building CXX object tools/polly/lib/CMakeFiles/obj.Polly.dir/Analysis/ScopInfo.cpp.o
[4280/4488] Building CXX object tools/polly/lib/CMakeFiles/obj.Polly.dir/CodeGen/BlockGenerators.cpp.o
[4281/4488] Building CXX object tools/polly/lib/CMakeFiles/obj.Polly.dir/Analysis/ScopBuilder.cpp.o
[4282/4488] Building CXX object tools/llvm-readobj/CMakeFiles/llvm-readobj.dir/ELFDumper.cpp.o
[4283/4488] Building CXX object tools/obj2yaml/CMakeFiles/obj2yaml.dir/elf2yaml.cpp.o
ninja: build stopped: subcommand failed.

@llvm-ci
Copy link
Collaborator

llvm-ci commented Nov 14, 2025

LLVM Buildbot has detected a new failure on builder sanitizer-x86_64-linux-android running on sanitizer-buildbot-android while building clang,cross-project-tests,llvm at step 2 "annotate".

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

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)
...
[5647/5672] Building CXX object third-party/benchmark/src/CMakeFiles/benchmark_main.dir/benchmark_main.cc.o
[5648/5672] Copying llvm-locstats into /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm_build64/./bin
[5649/5672] Linking CXX static library lib/libbenchmark.a
[5650/5672] Linking CXX static library lib/libbenchmark_main.a
[5651/5672] Building CXX object unittests/CodeGen/CGPluginTest/Plugin/CMakeFiles/CGTestPlugin.dir/Plugin.cpp.o
[5652/5672] Linking CXX shared module lib/CGTestPlugin.so
[5653/5672] Linking CXX executable bin/llvm-split
[5654/5672] Building CXX object unittests/Analysis/InlineAdvisorPlugin/CMakeFiles/InlineAdvisorPlugin.dir/InlineAdvisorPlugin.cpp.o
[5655/5672] Linking CXX shared module unittests/Analysis/InlineAdvisorPlugin.so
[5656/5672] Building CXX object tools/opt/CMakeFiles/LLVMOptDriver.dir/optdriver.cpp.o
FAILED: tools/opt/CMakeFiles/LLVMOptDriver.dir/optdriver.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes CCACHE_SLOPPINESS=pch_defines,time_macros /usr/bin/ccache /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm_build0/bin/clang++ -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GLIBCXX_USE_CXX11_ABI=1 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm_build64/tools/opt -I/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/llvm/tools/opt -I/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm_build64/include -I/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wno-pass-failed -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=c++17  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -MD -MT tools/opt/CMakeFiles/LLVMOptDriver.dir/optdriver.cpp.o -MF tools/opt/CMakeFiles/LLVMOptDriver.dir/optdriver.cpp.o.d -o tools/opt/CMakeFiles/LLVMOptDriver.dir/optdriver.cpp.o -c /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/llvm/tools/opt/optdriver.cpp
/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/llvm/tools/opt/optdriver.cpp:684:30: error: redefinition of 'RTLCI'
  684 |   RTLIB::RuntimeLibcallsInfo RTLCI(ModuleTriple, codegen::getExceptionModel(),
      |                              ^
/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/llvm/tools/opt/optdriver.cpp:677:30: note: previous definition is here
  677 |   RTLIB::RuntimeLibcallsInfo RTLCI(ModuleTriple, codegen::getExceptionModel(),
      |                              ^
1 error generated.
[5657/5672] Building CXX object examples/Bye/CMakeFiles/Bye.dir/Bye.cpp.o
[5658/5672] Building CXX object examples/IRTransforms/CMakeFiles/ExampleIRTransforms.dir/SimplifyCFG.cpp.o
[5659/5672] Linking CXX executable bin/llvm-reduce
[5660/5672] Building CXX object unittests/Analysis/InlineOrderPlugin/CMakeFiles/InlineOrderPlugin.dir/InlineOrderPlugin.cpp.o
[5661/5672] Building CXX object tools/llvm-jitlink/CMakeFiles/llvm-jitlink.dir/llvm-jitlink.cpp.o
[5662/5672] Building CXX object unittests/Passes/Plugins/TestPlugin/CMakeFiles/TestPlugin.dir/TestPlugin.cpp.o
[5663/5672] Building CXX object tools/opt/CMakeFiles/LLVMOptDriver.dir/NewPMDriver.cpp.o
[5664/5672] Building CXX object unittests/Passes/Plugins/DoublerPlugin/CMakeFiles/DoublerPlugin.dir/DoublerPlugin.cpp.o
ninja: build stopped: subcommand failed.

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


@@@STEP_FAILURE@@@

@@@STEP_FAILURE@@@

@@@STEP_FAILURE@@@
Step 8 (bootstrap clang) failure: bootstrap clang (failure)
...
[5647/5672] Building CXX object third-party/benchmark/src/CMakeFiles/benchmark_main.dir/benchmark_main.cc.o
[5648/5672] Copying llvm-locstats into /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm_build64/./bin
[5649/5672] Linking CXX static library lib/libbenchmark.a
[5650/5672] Linking CXX static library lib/libbenchmark_main.a
[5651/5672] Building CXX object unittests/CodeGen/CGPluginTest/Plugin/CMakeFiles/CGTestPlugin.dir/Plugin.cpp.o
[5652/5672] Linking CXX shared module lib/CGTestPlugin.so
[5653/5672] Linking CXX executable bin/llvm-split
[5654/5672] Building CXX object unittests/Analysis/InlineAdvisorPlugin/CMakeFiles/InlineAdvisorPlugin.dir/InlineAdvisorPlugin.cpp.o
[5655/5672] Linking CXX shared module unittests/Analysis/InlineAdvisorPlugin.so
[5656/5672] Building CXX object tools/opt/CMakeFiles/LLVMOptDriver.dir/optdriver.cpp.o
FAILED: tools/opt/CMakeFiles/LLVMOptDriver.dir/optdriver.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes CCACHE_SLOPPINESS=pch_defines,time_macros /usr/bin/ccache /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm_build0/bin/clang++ -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GLIBCXX_USE_CXX11_ABI=1 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm_build64/tools/opt -I/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/llvm/tools/opt -I/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm_build64/include -I/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wno-pass-failed -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=c++17  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -MD -MT tools/opt/CMakeFiles/LLVMOptDriver.dir/optdriver.cpp.o -MF tools/opt/CMakeFiles/LLVMOptDriver.dir/optdriver.cpp.o.d -o tools/opt/CMakeFiles/LLVMOptDriver.dir/optdriver.cpp.o -c /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/llvm/tools/opt/optdriver.cpp
/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/llvm/tools/opt/optdriver.cpp:684:30: error: redefinition of 'RTLCI'
  684 |   RTLIB::RuntimeLibcallsInfo RTLCI(ModuleTriple, codegen::getExceptionModel(),
      |                              ^
/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/llvm/tools/opt/optdriver.cpp:677:30: note: previous definition is here
  677 |   RTLIB::RuntimeLibcallsInfo RTLCI(ModuleTriple, codegen::getExceptionModel(),
      |                              ^
1 error generated.
[5657/5672] Building CXX object examples/Bye/CMakeFiles/Bye.dir/Bye.cpp.o
[5658/5672] Building CXX object examples/IRTransforms/CMakeFiles/ExampleIRTransforms.dir/SimplifyCFG.cpp.o
[5659/5672] Linking CXX executable bin/llvm-reduce
[5660/5672] Building CXX object unittests/Analysis/InlineOrderPlugin/CMakeFiles/InlineOrderPlugin.dir/InlineOrderPlugin.cpp.o
[5661/5672] Building CXX object tools/llvm-jitlink/CMakeFiles/llvm-jitlink.dir/llvm-jitlink.cpp.o
[5662/5672] Building CXX object unittests/Passes/Plugins/TestPlugin/CMakeFiles/TestPlugin.dir/TestPlugin.cpp.o
[5663/5672] Building CXX object tools/opt/CMakeFiles/LLVMOptDriver.dir/NewPMDriver.cpp.o
[5664/5672] Building CXX object unittests/Passes/Plugins/DoublerPlugin/CMakeFiles/DoublerPlugin.dir/DoublerPlugin.cpp.o
ninja: build stopped: subcommand failed.

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




program finished with exit code 2
elapsedTime=3623.143846

@llvm-ci
Copy link
Collaborator

llvm-ci commented Nov 14, 2025

LLVM Buildbot has detected a new failure on builder clang-debian-cpp20 running on clang-debian-cpp20 while building clang,cross-project-tests,llvm at step 5 "build-unified-tree".

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

Here is the relevant piece of the build log for the reference
Step 5 (build-unified-tree) failure: build (failure)
...
2848.948 [5/9/6247] Building CXX object tools/llvm-tli-checker/CMakeFiles/llvm-tli-checker.dir/llvm-tli-checker.cpp.o
2849.372 [4/9/6248] Linking CXX executable bin/llvm-tli-checker
2850.142 [4/8/6249] Linking CXX executable bin/llvm-lto2
2850.603 [4/7/6250] Building CXX object tools/llvm-reduce/CMakeFiles/llvm-reduce.dir/ReducerWorkItem.cpp.o
2850.678 [4/6/6251] Linking CXX executable bin/llvm-opt-fuzzer
2850.869 [4/5/6252] Building CXX object tools/llvm-reduce/CMakeFiles/llvm-reduce.dir/deltas/RunIRPasses.cpp.o
2852.217 [3/5/6253] Linking CXX executable bin/llvm-split
2852.234 [3/4/6254] Building CXX object tools/llvm-jitlink/CMakeFiles/llvm-jitlink.dir/llvm-jitlink.cpp.o
2853.694 [2/4/6255] Linking CXX executable bin/llvm-jitlink
2853.966 [2/3/6256] Building CXX object tools/opt/CMakeFiles/LLVMOptDriver.dir/optdriver.cpp.o
FAILED: tools/opt/CMakeFiles/LLVMOptDriver.dir/optdriver.cpp.o 
ccache /usr/bin/clang++-17 -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GLIBCXX_USE_CXX11_ABI=1 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/vol/worker/clang-debian-cpp20/clang-debian-cpp20/build/tools/opt -I/vol/worker/clang-debian-cpp20/clang-debian-cpp20/llvm-project/llvm/tools/opt -I/vol/worker/clang-debian-cpp20/clang-debian-cpp20/build/include -I/vol/worker/clang-debian-cpp20/clang-debian-cpp20/llvm-project/llvm/include -Wno-deprecated-enum-enum-conversion -Wno-deprecated-declarations -Wno-deprecated-anon-enum-enum-conversion -Wno-ambiguous-reversed-operator -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wno-pass-failed -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=c++20  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -MD -MT tools/opt/CMakeFiles/LLVMOptDriver.dir/optdriver.cpp.o -MF tools/opt/CMakeFiles/LLVMOptDriver.dir/optdriver.cpp.o.d -o tools/opt/CMakeFiles/LLVMOptDriver.dir/optdriver.cpp.o -c /vol/worker/clang-debian-cpp20/clang-debian-cpp20/llvm-project/llvm/tools/opt/optdriver.cpp
/vol/worker/clang-debian-cpp20/clang-debian-cpp20/llvm-project/llvm/tools/opt/optdriver.cpp:684:30: error: redefinition of 'RTLCI'
  684 |   RTLIB::RuntimeLibcallsInfo RTLCI(ModuleTriple, codegen::getExceptionModel(),
      |                              ^
/vol/worker/clang-debian-cpp20/clang-debian-cpp20/llvm-project/llvm/tools/opt/optdriver.cpp:677:30: note: previous definition is here
  677 |   RTLIB::RuntimeLibcallsInfo RTLCI(ModuleTriple, codegen::getExceptionModel(),
      |                              ^
1 error generated.
2854.966 [2/2/6257] Building CXX object tools/opt/CMakeFiles/LLVMOptDriver.dir/NewPMDriver.cpp.o
2855.066 [2/1/6258] Linking CXX executable bin/llvm-reduce
ninja: build stopped: subcommand failed.

@llvm-ci
Copy link
Collaborator

llvm-ci commented Nov 14, 2025

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

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

Here is the relevant piece of the build log for the reference
Step 5 (build-bolt) failure: build (failure)
...
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/worker/bolt-worker2/bolt-x86_64-ubuntu-dylib/build/include/llvm/IR/RuntimeLibcalls.inc:23168:57: warning: enumerated and non-enumerated type in conditional expression [-Wextra]
23168 |         setLibcallImplCallingConv(Impl, TT.isWatchABI() ? DefaultCC :
      |                                         ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
23169 |     (isAAPCS_ABI(TT, ABIName) ? CallingConv::ARM_AAPCS : CallingConv::ARM_APCS));
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
8.591 [1646/18/530] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/CallBrPrepare.cpp.o
8.847 [1645/18/531] Building X86GenDAGISel.inc...
8.880 [1644/18/532] Building X86GenSubtargetInfo.inc...
8.967 [1643/18/533] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AllocationOrder.cpp.o
FAILED: lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AllocationOrder.cpp.o 
ccache /usr/bin/c++ -DGTEST_HAS_RTTI=0 -DLLVM_EXPORTS -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GLIBCXX_USE_CXX11_ABI=1 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/worker/bolt-worker2/bolt-x86_64-ubuntu-dylib/build/lib/CodeGen -I/home/worker/bolt-worker2/bolt-x86_64-ubuntu-dylib/llvm-project/llvm/lib/CodeGen -I/home/worker/bolt-worker2/bolt-x86_64-ubuntu-dylib/build/include -I/home/worker/bolt-worker2/bolt-x86_64-ubuntu-dylib/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-array-bounds -Wno-stringop-overread -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -std=c++17 -MD -MT lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AllocationOrder.cpp.o -MF lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AllocationOrder.cpp.o.d -o lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AllocationOrder.cpp.o -c /home/worker/bolt-worker2/bolt-x86_64-ubuntu-dylib/llvm-project/llvm/lib/CodeGen/AllocationOrder.cpp
In file included from /home/worker/bolt-worker2/bolt-x86_64-ubuntu-dylib/llvm-project/llvm/include/llvm/CodeGen/MachineFunction.h:35,
                 from /home/worker/bolt-worker2/bolt-x86_64-ubuntu-dylib/llvm-project/llvm/lib/CodeGen/AllocationOrder.cpp:17:
/home/worker/bolt-worker2/bolt-x86_64-ubuntu-dylib/llvm-project/llvm/include/llvm/Target/TargetOptions.h:414:17: error: declaration of ‘llvm::VectorLibrary llvm::TargetOptions::VectorLibrary’ changes meaning of ‘VectorLibrary’ [-fpermissive]
  414 |   VectorLibrary VectorLibrary = VectorLibrary::NoLibrary;
      |                 ^~~~~~~~~~~~~
In file included from /home/worker/bolt-worker2/bolt-x86_64-ubuntu-dylib/llvm-project/llvm/include/llvm/Target/TargetOptions.h:18,
                 from /home/worker/bolt-worker2/bolt-x86_64-ubuntu-dylib/llvm-project/llvm/include/llvm/CodeGen/MachineFunction.h:35,
                 from /home/worker/bolt-worker2/bolt-x86_64-ubuntu-dylib/llvm-project/llvm/lib/CodeGen/AllocationOrder.cpp:17:
/home/worker/bolt-worker2/bolt-x86_64-ubuntu-dylib/llvm-project/llvm/include/llvm/IR/SystemLibraries.h:20:12: note: ‘VectorLibrary’ declared here as ‘enum class llvm::VectorLibrary’
   20 | enum class VectorLibrary {
      |            ^~~~~~~~~~~~~
10.167 [1643/17/534] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/BreakFalseDeps.cpp.o
FAILED: lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/BreakFalseDeps.cpp.o 
ccache /usr/bin/c++ -DGTEST_HAS_RTTI=0 -DLLVM_EXPORTS -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GLIBCXX_USE_CXX11_ABI=1 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/worker/bolt-worker2/bolt-x86_64-ubuntu-dylib/build/lib/CodeGen -I/home/worker/bolt-worker2/bolt-x86_64-ubuntu-dylib/llvm-project/llvm/lib/CodeGen -I/home/worker/bolt-worker2/bolt-x86_64-ubuntu-dylib/build/include -I/home/worker/bolt-worker2/bolt-x86_64-ubuntu-dylib/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-array-bounds -Wno-stringop-overread -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -std=c++17 -MD -MT lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/BreakFalseDeps.cpp.o -MF lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/BreakFalseDeps.cpp.o.d -o lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/BreakFalseDeps.cpp.o -c /home/worker/bolt-worker2/bolt-x86_64-ubuntu-dylib/llvm-project/llvm/lib/CodeGen/BreakFalseDeps.cpp
In file included from /home/worker/bolt-worker2/bolt-x86_64-ubuntu-dylib/llvm-project/llvm/include/llvm/CodeGen/MachineFunction.h:35,
                 from /home/worker/bolt-worker2/bolt-x86_64-ubuntu-dylib/llvm-project/llvm/include/llvm/CodeGen/MachineFunctionPass.h:21,
                 from /home/worker/bolt-worker2/bolt-x86_64-ubuntu-dylib/llvm-project/llvm/lib/CodeGen/BreakFalseDeps.cpp:22:
/home/worker/bolt-worker2/bolt-x86_64-ubuntu-dylib/llvm-project/llvm/include/llvm/Target/TargetOptions.h:414:17: error: declaration of ‘llvm::VectorLibrary llvm::TargetOptions::VectorLibrary’ changes meaning of ‘VectorLibrary’ [-fpermissive]
  414 |   VectorLibrary VectorLibrary = VectorLibrary::NoLibrary;
      |                 ^~~~~~~~~~~~~
In file included from /home/worker/bolt-worker2/bolt-x86_64-ubuntu-dylib/llvm-project/llvm/include/llvm/Target/TargetOptions.h:18,
                 from /home/worker/bolt-worker2/bolt-x86_64-ubuntu-dylib/llvm-project/llvm/include/llvm/CodeGen/MachineFunction.h:35,
                 from /home/worker/bolt-worker2/bolt-x86_64-ubuntu-dylib/llvm-project/llvm/include/llvm/CodeGen/MachineFunctionPass.h:21,
                 from /home/worker/bolt-worker2/bolt-x86_64-ubuntu-dylib/llvm-project/llvm/lib/CodeGen/BreakFalseDeps.cpp:22:
/home/worker/bolt-worker2/bolt-x86_64-ubuntu-dylib/llvm-project/llvm/include/llvm/IR/SystemLibraries.h:20:12: note: ‘VectorLibrary’ declared here as ‘enum class llvm::VectorLibrary’
   20 | enum class VectorLibrary {
      |            ^~~~~~~~~~~~~
10.406 [1643/16/535] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/BranchRelaxation.cpp.o
FAILED: lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/BranchRelaxation.cpp.o 
ccache /usr/bin/c++ -DGTEST_HAS_RTTI=0 -DLLVM_EXPORTS -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GLIBCXX_USE_CXX11_ABI=1 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/worker/bolt-worker2/bolt-x86_64-ubuntu-dylib/build/lib/CodeGen -I/home/worker/bolt-worker2/bolt-x86_64-ubuntu-dylib/llvm-project/llvm/lib/CodeGen -I/home/worker/bolt-worker2/bolt-x86_64-ubuntu-dylib/build/include -I/home/worker/bolt-worker2/bolt-x86_64-ubuntu-dylib/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-array-bounds -Wno-stringop-overread -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -std=c++17 -MD -MT lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/BranchRelaxation.cpp.o -MF lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/BranchRelaxation.cpp.o.d -o lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/BranchRelaxation.cpp.o -c /home/worker/bolt-worker2/bolt-x86_64-ubuntu-dylib/llvm-project/llvm/lib/CodeGen/BranchRelaxation.cpp
In file included from /home/worker/bolt-worker2/bolt-x86_64-ubuntu-dylib/llvm-project/llvm/include/llvm/CodeGen/MachineFunction.h:35,
                 from /home/worker/bolt-worker2/bolt-x86_64-ubuntu-dylib/llvm-project/llvm/include/llvm/CodeGen/MachinePassManager.h:26,
                 from /home/worker/bolt-worker2/bolt-x86_64-ubuntu-dylib/llvm-project/llvm/include/llvm/CodeGen/BranchRelaxation.h:12,
                 from /home/worker/bolt-worker2/bolt-x86_64-ubuntu-dylib/llvm-project/llvm/lib/CodeGen/BranchRelaxation.cpp:9:
/home/worker/bolt-worker2/bolt-x86_64-ubuntu-dylib/llvm-project/llvm/include/llvm/Target/TargetOptions.h:414:17: error: declaration of ‘llvm::VectorLibrary llvm::TargetOptions::VectorLibrary’ changes meaning of ‘VectorLibrary’ [-fpermissive]
  414 |   VectorLibrary VectorLibrary = VectorLibrary::NoLibrary;
      |                 ^~~~~~~~~~~~~

@llvm-ci
Copy link
Collaborator

llvm-ci commented Nov 14, 2025

LLVM Buildbot has detected a new failure on builder clang-armv7-global-isel running on linaro-clang-armv7-global-isel while building clang,cross-project-tests,llvm at step 6 "build stage 1".

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

Here is the relevant piece of the build log for the reference
Step 6 (build stage 1) failure: 'ninja' (failure)
...
[6243/6256] Building CXX object third-party/benchmark/src/CMakeFiles/benchmark.dir/sysinfo.cc.o
[6244/6256] Building CXX object third-party/benchmark/src/CMakeFiles/benchmark.dir/timers.cc.o
[6245/6256] Building CXX object third-party/benchmark/src/CMakeFiles/benchmark_main.dir/benchmark_main.cc.o
[6246/6256] Copying llvm-locstats into /home/tcwg-buildbot/worker/clang-armv7-global-isel/stage1/./bin
[6247/6256] Linking CXX static library lib/libbenchmark.a
[6248/6256] Linking CXX static library lib/libbenchmark_main.a
[6249/6256] Linking CXX executable bin/yaml2obj
[6250/6256] Building CXX object tools/llvm-split/CMakeFiles/llvm-split.dir/llvm-split.cpp.o
[6251/6256] Linking CXX executable bin/sancov
[6252/6256] Building CXX object tools/opt/CMakeFiles/LLVMOptDriver.dir/optdriver.cpp.o
FAILED: tools/opt/CMakeFiles/LLVMOptDriver.dir/optdriver.cpp.o 
/usr/local/bin/c++ -DGTEST_HAS_RTTI=0 -D_DEBUG -D_FILE_OFFSET_BITS=64 -D_GLIBCXX_ASSERTIONS -D_GLIBCXX_USE_CXX11_ABI=1 -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/tcwg-buildbot/worker/clang-armv7-global-isel/stage1/tools/opt -I/home/tcwg-buildbot/worker/clang-armv7-global-isel/llvm/llvm/tools/opt -I/home/tcwg-buildbot/worker/clang-armv7-global-isel/stage1/include -I/home/tcwg-buildbot/worker/clang-armv7-global-isel/llvm/llvm/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 -Wno-pass-failed -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=c++17  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -MD -MT tools/opt/CMakeFiles/LLVMOptDriver.dir/optdriver.cpp.o -MF tools/opt/CMakeFiles/LLVMOptDriver.dir/optdriver.cpp.o.d -o tools/opt/CMakeFiles/LLVMOptDriver.dir/optdriver.cpp.o -c /home/tcwg-buildbot/worker/clang-armv7-global-isel/llvm/llvm/tools/opt/optdriver.cpp
../llvm/llvm/tools/opt/optdriver.cpp:684:30: error: redefinition of 'RTLCI'
  684 |   RTLIB::RuntimeLibcallsInfo RTLCI(ModuleTriple, codegen::getExceptionModel(),
      |                              ^
../llvm/llvm/tools/opt/optdriver.cpp:677:30: note: previous definition is here
  677 |   RTLIB::RuntimeLibcallsInfo RTLCI(ModuleTriple, codegen::getExceptionModel(),
      |                              ^
1 error generated.
[6253/6256] Linking CXX executable bin/llvm-split
[6254/6256] Linking CXX executable bin/llvm-reduce
ninja: build stopped: subcommand failed.

@llvm-ci
Copy link
Collaborator

llvm-ci commented Nov 14, 2025

LLVM Buildbot has detected a new failure on builder bolt-x86_64-ubuntu-shared running on bolt-worker while building clang,cross-project-tests,llvm at step 5 "build-bolt".

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

Here is the relevant piece of the build log for the reference
Step 5 (build-bolt) failure: build (failure)
...
4.707 [1739/18/523] Building CXX object lib/CGData/CMakeFiles/LLVMCGData.dir/StableFunctionMap.cpp.o
4.742 [1738/18/524] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AssignmentTrackingAnalysis.cpp.o
4.775 [1737/18/525] Building X86GenAsmMatcher.inc...
4.981 [1736/18/526] Building AArch64GenPostLegalizeGILowering.inc...
5.106 [1735/18/527] Building AArch64GenAsmMatcher.inc...
5.122 [1734/18/528] Building AArch64GenExegesis.inc...
5.281 [1733/18/529] Building AArch64GenAsmWriter.inc...
5.431 [1732/18/530] Building AArch64GenRegisterBank.inc...
6.999 [1731/18/531] Building X86GenFastISel.inc...
7.010 [1730/18/532] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/FuncletLayout.cpp.o
FAILED: lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/FuncletLayout.cpp.o 
ccache /usr/bin/c++ -DGTEST_HAS_RTTI=0 -DLLVM_EXPORTS -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GLIBCXX_USE_CXX11_ABI=1 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/worker/bolt-worker2/bolt-x86_64-ubuntu-shared/build/lib/CodeGen -I/home/worker/bolt-worker2/bolt-x86_64-ubuntu-shared/llvm-project/llvm/lib/CodeGen -I/home/worker/bolt-worker2/bolt-x86_64-ubuntu-shared/build/include -I/home/worker/bolt-worker2/bolt-x86_64-ubuntu-shared/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-array-bounds -Wno-stringop-overread -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -fPIC  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -std=c++17 -MD -MT lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/FuncletLayout.cpp.o -MF lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/FuncletLayout.cpp.o.d -o lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/FuncletLayout.cpp.o -c /home/worker/bolt-worker2/bolt-x86_64-ubuntu-shared/llvm-project/llvm/lib/CodeGen/FuncletLayout.cpp
In file included from /home/worker/bolt-worker2/bolt-x86_64-ubuntu-shared/llvm-project/llvm/include/llvm/CodeGen/MachineFunction.h:35,
                 from /home/worker/bolt-worker2/bolt-x86_64-ubuntu-shared/llvm-project/llvm/lib/CodeGen/FuncletLayout.cpp:14:
/home/worker/bolt-worker2/bolt-x86_64-ubuntu-shared/llvm-project/llvm/include/llvm/Target/TargetOptions.h:414:17: error: declaration of ‘llvm::VectorLibrary llvm::TargetOptions::VectorLibrary’ changes meaning of ‘VectorLibrary’ [-fpermissive]
  414 |   VectorLibrary VectorLibrary = VectorLibrary::NoLibrary;
      |                 ^~~~~~~~~~~~~
In file included from /home/worker/bolt-worker2/bolt-x86_64-ubuntu-shared/llvm-project/llvm/include/llvm/Target/TargetOptions.h:18,
                 from /home/worker/bolt-worker2/bolt-x86_64-ubuntu-shared/llvm-project/llvm/include/llvm/CodeGen/MachineFunction.h:35,
                 from /home/worker/bolt-worker2/bolt-x86_64-ubuntu-shared/llvm-project/llvm/lib/CodeGen/FuncletLayout.cpp:14:
/home/worker/bolt-worker2/bolt-x86_64-ubuntu-shared/llvm-project/llvm/include/llvm/IR/SystemLibraries.h:20:12: note: ‘VectorLibrary’ declared here as ‘enum class llvm::VectorLibrary’
   20 | enum class VectorLibrary {
      |            ^~~~~~~~~~~~~
7.297 [1730/17/533] Building X86GenGlobalISel.inc...
7.321 [1730/16/534] Building CXX object lib/IR/CMakeFiles/LLVMCore.dir/RuntimeLibcalls.cpp.o
In file included from /home/worker/bolt-worker2/bolt-x86_64-ubuntu-shared/llvm-project/llvm/lib/IR/RuntimeLibcalls.cpp:27:
/home/worker/bolt-worker2/bolt-x86_64-ubuntu-shared/build/include/llvm/IR/RuntimeLibcalls.inc: In member function ‘void llvm::RTLIB::RuntimeLibcallsInfo::setTargetRuntimeLibcallSets(const llvm::Triple&, llvm::ExceptionHandling, llvm::FloatABI::ABIType, llvm::EABI, llvm::StringRef)’:
/home/worker/bolt-worker2/bolt-x86_64-ubuntu-shared/build/include/llvm/IR/RuntimeLibcalls.inc:23140:57: warning: enumerated and non-enumerated type in conditional expression [-Wextra]
23140 |         setLibcallImplCallingConv(Impl, TT.isWatchABI() ? DefaultCC :
      |                                         ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
23141 |     (isAAPCS_ABI(TT, ABIName) ? CallingConv::ARM_AAPCS : CallingConv::ARM_APCS));
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/worker/bolt-worker2/bolt-x86_64-ubuntu-shared/build/include/llvm/IR/RuntimeLibcalls.inc:23153:57: warning: enumerated and non-enumerated type in conditional expression [-Wextra]
23153 |         setLibcallImplCallingConv(Impl, TT.isWatchABI() ? DefaultCC :
      |                                         ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
23154 |     (isAAPCS_ABI(TT, ABIName) ? CallingConv::ARM_AAPCS : CallingConv::ARM_APCS));
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/worker/bolt-worker2/bolt-x86_64-ubuntu-shared/build/include/llvm/IR/RuntimeLibcalls.inc:23168:57: warning: enumerated and non-enumerated type in conditional expression [-Wextra]
23168 |         setLibcallImplCallingConv(Impl, TT.isWatchABI() ? DefaultCC :
      |                                         ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
23169 |     (isAAPCS_ABI(TT, ABIName) ? CallingConv::ARM_AAPCS : CallingConv::ARM_APCS));
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
8.097 [1730/15/535] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AllocationOrder.cpp.o
FAILED: lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AllocationOrder.cpp.o 
ccache /usr/bin/c++ -DGTEST_HAS_RTTI=0 -DLLVM_EXPORTS -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GLIBCXX_USE_CXX11_ABI=1 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/worker/bolt-worker2/bolt-x86_64-ubuntu-shared/build/lib/CodeGen -I/home/worker/bolt-worker2/bolt-x86_64-ubuntu-shared/llvm-project/llvm/lib/CodeGen -I/home/worker/bolt-worker2/bolt-x86_64-ubuntu-shared/build/include -I/home/worker/bolt-worker2/bolt-x86_64-ubuntu-shared/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-array-bounds -Wno-stringop-overread -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -fPIC  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -std=c++17 -MD -MT lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AllocationOrder.cpp.o -MF lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AllocationOrder.cpp.o.d -o lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AllocationOrder.cpp.o -c /home/worker/bolt-worker2/bolt-x86_64-ubuntu-shared/llvm-project/llvm/lib/CodeGen/AllocationOrder.cpp
In file included from /home/worker/bolt-worker2/bolt-x86_64-ubuntu-shared/llvm-project/llvm/include/llvm/CodeGen/MachineFunction.h:35,
                 from /home/worker/bolt-worker2/bolt-x86_64-ubuntu-shared/llvm-project/llvm/lib/CodeGen/AllocationOrder.cpp:17:
/home/worker/bolt-worker2/bolt-x86_64-ubuntu-shared/llvm-project/llvm/include/llvm/Target/TargetOptions.h:414:17: error: declaration of ‘llvm::VectorLibrary llvm::TargetOptions::VectorLibrary’ changes meaning of ‘VectorLibrary’ [-fpermissive]
  414 |   VectorLibrary VectorLibrary = VectorLibrary::NoLibrary;

@llvm-ci
Copy link
Collaborator

llvm-ci commented Nov 15, 2025

LLVM Buildbot has detected a new failure on builder reverse-iteration running on hexagon-build-02 while building clang,cross-project-tests,llvm at step 5 "build".

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

Here is the relevant piece of the build log for the reference
Step 5 (build) failure: 'ninja -j16' (failure)
...
[5694/5813] Building C object tools/polly/lib/External/CMakeFiles/PollyISL.dir/isl/isl_scheduler_clustering.c.o
[5695/5813] Building CXX object tools/verify-uselistorder/CMakeFiles/verify-uselistorder.dir/verify-uselistorder.cpp.o
[5696/5813] Building C object tools/polly/lib/External/CMakeFiles/PollyISL.dir/isl/isl_set_to_ast_graft_list.c.o
[5697/5813] Building C object tools/polly/lib/External/CMakeFiles/PollyISL.dir/isl/isl_sort.c.o
[5698/5813] Building C object tools/polly/lib/External/CMakeFiles/PollyISL.dir/isl/isl_schedule_node.c.o
[5699/5813] Building C object tools/polly/lib/External/CMakeFiles/PollyISL.dir/isl/isl_schedule_tree.c.o
[5700/5813] Building C object tools/polly/lib/External/CMakeFiles/PollyISL.dir/isl/isl_stride.c.o
[5701/5813] Building C object tools/polly/lib/External/CMakeFiles/PollyISL.dir/isl/isl_set_list.c.o
[5702/5813] Building C object tools/polly/lib/External/CMakeFiles/PollyISL.dir/isl/isl_tarjan.c.o
[5703/5813] Building CXX object tools/opt/CMakeFiles/LLVMOptDriver.dir/optdriver.cpp.o
FAILED: tools/opt/CMakeFiles/LLVMOptDriver.dir/optdriver.cpp.o 
/local/clang+llvm-12.0.0-x86_64-linux-gnu-ubuntu-16.04/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/local/mnt/workspace/bots/hexagon-build-02/reverse-iteration/llvm.obj/tools/opt -I/local/mnt/workspace/bots/hexagon-build-02/reverse-iteration/llvm.src/llvm/tools/opt -I/local/mnt/workspace/bots/hexagon-build-02/reverse-iteration/llvm.obj/include -I/local/mnt/workspace/bots/hexagon-build-02/reverse-iteration/llvm.src/llvm/include -stdlib=libc++ -fPIC -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wno-pass-failed -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -std=c++17 -MD -MT tools/opt/CMakeFiles/LLVMOptDriver.dir/optdriver.cpp.o -MF tools/opt/CMakeFiles/LLVMOptDriver.dir/optdriver.cpp.o.d -o tools/opt/CMakeFiles/LLVMOptDriver.dir/optdriver.cpp.o -c /local/mnt/workspace/bots/hexagon-build-02/reverse-iteration/llvm.src/llvm/tools/opt/optdriver.cpp
/local/mnt/workspace/bots/hexagon-build-02/reverse-iteration/llvm.src/llvm/tools/opt/optdriver.cpp:684:30: error: redefinition of 'RTLCI'
  RTLIB::RuntimeLibcallsInfo RTLCI(ModuleTriple, codegen::getExceptionModel(),
                             ^
/local/mnt/workspace/bots/hexagon-build-02/reverse-iteration/llvm.src/llvm/tools/opt/optdriver.cpp:677:30: note: previous definition is here
  RTLIB::RuntimeLibcallsInfo RTLCI(ModuleTriple, codegen::getExceptionModel(),
                             ^
1 error generated.
[5704/5813] Building C object tools/polly/lib/External/CMakeFiles/PollyISL.dir/isl/isl_stream.c.o
[5705/5813] Building C object tools/polly/lib/External/CMakeFiles/PollyISL.dir/isl/isl_scheduler.c.o
[5706/5813] Linking CXX executable bin/verify-uselistorder
[5707/5813] Building CXX object tools/yaml2obj/CMakeFiles/yaml2obj.dir/yaml2obj.cpp.o
[5708/5813] Building CXX object tools/obj2yaml/CMakeFiles/obj2yaml.dir/macho2yaml.cpp.o
[5709/5813] Building C object tools/polly/lib/External/CMakeFiles/PollyISL.dir/isl/isl_space.c.o
[5710/5813] Building C object tools/polly/lib/External/CMakeFiles/PollyISL.dir/isl/isl_transitive_closure.c.o
[5711/5813] Building C object tools/polly/lib/External/CMakeFiles/PollyISL.dir/isl/isl_tab.c.o
[5712/5813] Building C object tools/polly/lib/External/CMakeFiles/PollyISL.dir/isl/isl_tab_pip.c.o
[5713/5813] Building C object tools/polly/lib/External/CMakeFiles/PollyISL.dir/isl/isl_polynomial.c.o
[5714/5813] Building C object tools/polly/lib/External/CMakeFiles/PollyISL.dir/isl/isl_map.c.o
[5715/5813] Building CXX object tools/sancov/CMakeFiles/sancov.dir/sancov.cpp.o
[5716/5813] Building CXX object tools/opt/CMakeFiles/LLVMOptDriver.dir/NewPMDriver.cpp.o
[5717/5813] Building CXX object tools/llvm-readobj/CMakeFiles/llvm-readobj.dir/ELFDumper.cpp.o
[5718/5813] Building CXX object tools/obj2yaml/CMakeFiles/obj2yaml.dir/elf2yaml.cpp.o
ninja: build stopped: subcommand failed.

@llvm-ci
Copy link
Collaborator

llvm-ci commented Nov 15, 2025

LLVM Buildbot has detected a new failure on builder clang-with-thin-lto-ubuntu running on as-worker-92 while building clang,cross-project-tests,llvm at step 6 "build-stage1-compiler".

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

Here is the relevant piece of the build log for the reference
Step 6 (build-stage1-compiler) failure: build (failure)
...
31.565 [6125/72/582] Building CXX object lib/IR/CMakeFiles/LLVMCore.dir/FPEnv.cpp.o
31.712 [6124/72/583] Building CXX object lib/IR/CMakeFiles/LLVMCore.dir/OptBisect.cpp.o
31.840 [6123/72/584] Building CXX object lib/IR/CMakeFiles/LLVMCore.dir/DebugLoc.cpp.o
31.849 [6122/72/585] Building CXX object lib/IR/CMakeFiles/LLVMCore.dir/DebugProgramInstruction.cpp.o
31.868 [6121/72/586] Building CXX object lib/IR/CMakeFiles/LLVMCore.dir/CycleInfo.cpp.o
31.918 [6120/72/587] Building CXX object unittests/FileCheck/CMakeFiles/FileCheckTests.dir/FileCheckTest.cpp.o
31.919 [6119/72/588] Building CXX object lib/IR/CMakeFiles/LLVMCore.dir/PassRegistry.cpp.o
32.041 [6118/72/589] Building CXX object utils/TableGen/CMakeFiles/llvm-tblgen.dir/SubtargetEmitter.cpp.o
32.146 [6117/72/590] Building CXX object utils/TableGen/CMakeFiles/llvm-tblgen.dir/AsmWriterEmitter.cpp.o
32.157 [6116/72/591] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/KCFI.cpp.o
FAILED: lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/KCFI.cpp.o 
/usr/bin/c++ -DGTEST_HAS_RTTI=0 -D_GLIBCXX_USE_CXX11_ABI=1 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/buildbot/as-worker-92/clang-with-thin-lto-ubuntu/build/stage1/lib/CodeGen -I/home/buildbot/as-worker-92/clang-with-thin-lto-ubuntu/llvm-project/llvm/lib/CodeGen -I/home/buildbot/as-worker-92/clang-with-thin-lto-ubuntu/build/stage1/include -I/home/buildbot/as-worker-92/clang-with-thin-lto-ubuntu/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-array-bounds -Wno-stringop-overread -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG  -fno-exceptions -funwind-tables -fno-rtti -std=c++17 -MD -MT lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/KCFI.cpp.o -MF lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/KCFI.cpp.o.d -o lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/KCFI.cpp.o -c /home/buildbot/as-worker-92/clang-with-thin-lto-ubuntu/llvm-project/llvm/lib/CodeGen/KCFI.cpp
In file included from /home/buildbot/as-worker-92/clang-with-thin-lto-ubuntu/llvm-project/llvm/include/llvm/CodeGen/MachineFunction.h:35,
                 from /home/buildbot/as-worker-92/clang-with-thin-lto-ubuntu/llvm-project/llvm/include/llvm/CodeGen/MachineFunctionPass.h:21,
                 from /home/buildbot/as-worker-92/clang-with-thin-lto-ubuntu/llvm-project/llvm/lib/CodeGen/KCFI.cpp:17:
/home/buildbot/as-worker-92/clang-with-thin-lto-ubuntu/llvm-project/llvm/include/llvm/Target/TargetOptions.h:414:17: error: declaration of ‘llvm::VectorLibrary llvm::TargetOptions::VectorLibrary’ changes meaning of ‘VectorLibrary’ [-fpermissive]
  414 |   VectorLibrary VectorLibrary = VectorLibrary::NoLibrary;
      |                 ^~~~~~~~~~~~~
In file included from /home/buildbot/as-worker-92/clang-with-thin-lto-ubuntu/llvm-project/llvm/include/llvm/Target/TargetOptions.h:18,
                 from /home/buildbot/as-worker-92/clang-with-thin-lto-ubuntu/llvm-project/llvm/include/llvm/CodeGen/MachineFunction.h:35,
                 from /home/buildbot/as-worker-92/clang-with-thin-lto-ubuntu/llvm-project/llvm/include/llvm/CodeGen/MachineFunctionPass.h:21,
                 from /home/buildbot/as-worker-92/clang-with-thin-lto-ubuntu/llvm-project/llvm/lib/CodeGen/KCFI.cpp:17:
/home/buildbot/as-worker-92/clang-with-thin-lto-ubuntu/llvm-project/llvm/include/llvm/IR/SystemLibraries.h:20:12: note: ‘VectorLibrary’ declared here as ‘enum class llvm::VectorLibrary’
   20 | enum class VectorLibrary {
      |            ^~~~~~~~~~~~~
32.407 [6116/71/592] Building CXX object lib/IR/CMakeFiles/LLVMCore.dir/BasicBlock.cpp.o
32.429 [6116/70/593] Building CXX object lib/IR/CMakeFiles/LLVMCore.dir/ConvergenceVerifier.cpp.o
32.510 [6116/69/594] Building CXX object lib/IR/CMakeFiles/LLVMCore.dir/Use.cpp.o
32.517 [6116/68/595] Building CXX object lib/IR/CMakeFiles/LLVMCore.dir/ConstantRange.cpp.o
32.602 [6116/67/596] Building CXX object lib/IR/CMakeFiles/LLVMCore.dir/DroppedVariableStats.cpp.o
32.638 [6116/66/597] Building CXX object lib/IR/CMakeFiles/LLVMCore.dir/Pass.cpp.o
33.193 [6116/65/598] Building CXX object lib/IR/CMakeFiles/LLVMCore.dir/DroppedVariableStatsIR.cpp.o
33.282 [6116/64/599] Building CXX object lib/IR/CMakeFiles/LLVMCore.dir/VectorTypeUtils.cpp.o
33.346 [6116/63/600] Building CXX object lib/IR/CMakeFiles/LLVMCore.dir/ProfileSummary.cpp.o
33.472 [6116/62/601] Building CXX object lib/IR/CMakeFiles/LLVMCore.dir/Operator.cpp.o
33.513 [6116/61/602] Building CXX object lib/IR/CMakeFiles/LLVMCore.dir/DiagnosticInfo.cpp.o
33.645 [6116/60/603] Building CXX object lib/IR/CMakeFiles/LLVMCore.dir/Function.cpp.o
33.747 [6116/59/604] Building CXX object lib/IR/CMakeFiles/LLVMCore.dir/ReplaceConstant.cpp.o
33.784 [6116/58/605] Building CXX object lib/IR/CMakeFiles/LLVMCore.dir/PassTimingInfo.cpp.o
33.785 [6116/57/606] Building CXX object lib/IR/CMakeFiles/LLVMCore.dir/PrintPasses.cpp.o
33.920 [6116/56/607] Building CXX object lib/IR/CMakeFiles/LLVMCore.dir/ProfDataUtils.cpp.o
33.925 [6116/55/608] Building CXX object lib/IR/CMakeFiles/LLVMCore.dir/IntrinsicInst.cpp.o
33.988 [6116/54/609] Building CXX object lib/Analysis/CMakeFiles/LLVMAnalysis.dir/Lint.cpp.o
34.001 [6116/53/610] Building CXX object utils/TableGen/Common/CMakeFiles/obj.LLVMTableGenCommon.dir/CodeGenSchedule.cpp.o
34.147 [6116/52/611] Building CXX object utils/TableGen/CMakeFiles/llvm-tblgen.dir/InstrInfoEmitter.cpp.o
34.263 [6116/51/612] Building CXX object lib/Analysis/CMakeFiles/LLVMAnalysis.dir/Loads.cpp.o
34.364 [6116/50/613] Building CXX object lib/IR/CMakeFiles/LLVMCore.dir/ValueSymbolTable.cpp.o
34.434 [6116/49/614] Building CXX object lib/IR/CMakeFiles/LLVMCore.dir/InlineAsm.cpp.o
34.526 [6116/48/615] Building CXX object lib/IR/CMakeFiles/LLVMCore.dir/Globals.cpp.o

@llvm-ci
Copy link
Collaborator

llvm-ci commented Nov 15, 2025

LLVM Buildbot has detected a new failure on builder flang-aarch64-debug-reverse-iteration running on linaro-flang-aarch64-debug-reverse-iteration while building clang,cross-project-tests,llvm at step 5 "build-unified-tree".

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

Here is the relevant piece of the build log for the reference
Step 5 (build-unified-tree) failure: build (failure)
...
-- Performing additional configure checks with target flags: -nostdinc++ -fPIC -fno-builtin -fvisibility=hidden -fomit-frame-pointer -march=armv8-a
-- Performing Test COMPILER_RT_HAS_aarch64_FLOAT16
-- Performing Test COMPILER_RT_HAS_aarch64_FLOAT16 - Success
-- Performing Test COMPILER_RT_HAS_aarch64_BFLOAT16
-- Performing Test COMPILER_RT_HAS_aarch64_BFLOAT16 - Success
-- For aarch64 builtins preferring aarch64/fp_mode.c to fp_mode.c
-- Configuring done (7.0s)
-- Generating done (0.0s)
-- Build files have been written to: /home/tcwg-buildbot/worker/flang-aarch64-debug-reverse-iteration/build/runtimes/builtins-bins
3417.444 [21/9/7179] Building CXX object tools/opt/CMakeFiles/LLVMOptDriver.dir/optdriver.cpp.o
FAILED: tools/opt/CMakeFiles/LLVMOptDriver.dir/optdriver.cpp.o 
/usr/local/bin/c++ -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GLIBCXX_USE_CXX11_ABI=1 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/tcwg-buildbot/worker/flang-aarch64-debug-reverse-iteration/build/tools/opt -I/home/tcwg-buildbot/worker/flang-aarch64-debug-reverse-iteration/llvm-project/llvm/tools/opt -I/home/tcwg-buildbot/worker/flang-aarch64-debug-reverse-iteration/build/include -I/home/tcwg-buildbot/worker/flang-aarch64-debug-reverse-iteration/llvm-project/llvm/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 -Wno-pass-failed -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -g -std=c++17  -fno-exceptions -funwind-tables -fno-rtti -MD -MT tools/opt/CMakeFiles/LLVMOptDriver.dir/optdriver.cpp.o -MF tools/opt/CMakeFiles/LLVMOptDriver.dir/optdriver.cpp.o.d -o tools/opt/CMakeFiles/LLVMOptDriver.dir/optdriver.cpp.o -c /home/tcwg-buildbot/worker/flang-aarch64-debug-reverse-iteration/llvm-project/llvm/tools/opt/optdriver.cpp
../llvm-project/llvm/tools/opt/optdriver.cpp:684:30: error: redefinition of 'RTLCI'
  684 |   RTLIB::RuntimeLibcallsInfo RTLCI(ModuleTriple, codegen::getExceptionModel(),
      |                              ^
../llvm-project/llvm/tools/opt/optdriver.cpp:677:30: note: previous definition is here
  677 |   RTLIB::RuntimeLibcallsInfo RTLCI(ModuleTriple, codegen::getExceptionModel(),
      |                              ^
1 error generated.
3418.121 [21/8/7180] Building CXX object unittests/Analysis/InlineOrderPlugin/CMakeFiles/InlineOrderPlugin.dir/InlineOrderPlugin.cpp.o
3418.548 [21/6/7182] Building CXX object unittests/Analysis/InlineAdvisorPlugin/CMakeFiles/InlineAdvisorPlugin.dir/InlineAdvisorPlugin.cpp.o
3418.834 [21/5/7183] Building CXX object examples/IRTransforms/CMakeFiles/ExampleIRTransforms.dir/SimplifyCFG.cpp.o
3419.765 [21/4/7184] Building CXX object examples/Bye/CMakeFiles/Bye.dir/Bye.cpp.o
3420.028 [21/3/7185] Building CXX object tools/opt/CMakeFiles/LLVMOptDriver.dir/NewPMDriver.cpp.o
3424.842 [21/2/7186] Building CXX object unittests/Passes/Plugins/TestPlugin/CMakeFiles/TestPlugin.dir/TestPlugin.cpp.o
3425.285 [21/1/7187] Building CXX object unittests/Passes/Plugins/DoublerPlugin/CMakeFiles/DoublerPlugin.dir/DoublerPlugin.cpp.o
ninja: build stopped: subcommand failed.

@llvm-ci
Copy link
Collaborator

llvm-ci commented Nov 15, 2025

LLVM Buildbot has detected a new failure on builder clang-solaris11-sparcv9 running on solaris11-sparcv9 while building clang,cross-project-tests,llvm at step 4 "build stage 1".

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

Here is the relevant piece of the build log for the reference
Step 4 (build stage 1) failure: 'ninja -j8' (failure)
...
[4579/5872] Linking CXX static library lib/libLLVMDWARFCFIChecker.a
[4580/5872] Linking CXX static library lib/libLLVMDWP.a
[4581/5872] Linking CXX static library lib/libLLVMInterpreter.a
[4582/5872] Building CXX object lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Logging.cpp.o
[4583/5872] Linking CXX static library lib/libLLVMXRay.a
[4584/5872] Linking CXX static library lib/libLLVMWindowsManifest.a
[4585/5872] Building CXX object lib/Frontend/OpenACC/CMakeFiles/LLVMFrontendOpenACC.dir/ACC.cpp.o
[4586/5872] Building CXX object lib/Telemetry/CMakeFiles/LLVMTelemetry.dir/Telemetry.cpp.o
[4587/5872] Building C object utils/count/CMakeFiles/count.dir/count.c.o
[4588/5872] Building CXX object tools/opt/CMakeFiles/LLVMOptDriver.dir/optdriver.cpp.o
FAILED: tools/opt/CMakeFiles/LLVMOptDriver.dir/optdriver.cpp.o 
/opt/llvm/21/bin/clang++ -DGTEST_HAS_RTTI=0 -D_DEBUG -D_FILE_OFFSET_BITS=64 -D_GLIBCXX_ASSERTIONS -D_GLIBCXX_USE_CXX11_ABI=1 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/opt/llvm-buildbot/home/solaris11-sparcv9/clang-solaris11-sparcv9/stage1/tools/opt -I/opt/llvm-buildbot/home/solaris11-sparcv9/clang-solaris11-sparcv9/llvm/llvm/tools/opt -I/opt/llvm-buildbot/home/solaris11-sparcv9/clang-solaris11-sparcv9/stage1/include -I/opt/llvm-buildbot/home/solaris11-sparcv9/clang-solaris11-sparcv9/llvm/llvm/include -I/opt/llvm-buildbot/home/solaris11-sparcv9/clang-solaris11-sparcv9/llvm/llvm/include/llvm/Support/Solaris -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wno-pass-failed -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections  -O -DNDEBUG  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -std=c++17 -MD -MT tools/opt/CMakeFiles/LLVMOptDriver.dir/optdriver.cpp.o -MF tools/opt/CMakeFiles/LLVMOptDriver.dir/optdriver.cpp.o.d -o tools/opt/CMakeFiles/LLVMOptDriver.dir/optdriver.cpp.o -c /opt/llvm-buildbot/home/solaris11-sparcv9/clang-solaris11-sparcv9/llvm/llvm/tools/opt/optdriver.cpp
/opt/llvm-buildbot/home/solaris11-sparcv9/clang-solaris11-sparcv9/llvm/llvm/tools/opt/optdriver.cpp:684:30: error: redefinition of 'RTLCI'
  684 |   RTLIB::RuntimeLibcallsInfo RTLCI(ModuleTriple, codegen::getExceptionModel(),
      |                              ^
/opt/llvm-buildbot/home/solaris11-sparcv9/clang-solaris11-sparcv9/llvm/llvm/tools/opt/optdriver.cpp:677:30: note: previous definition is here
  677 |   RTLIB::RuntimeLibcallsInfo RTLCI(ModuleTriple, codegen::getExceptionModel(),
      |                              ^
1 error generated.
[4589/5872] Building CXX object utils/PerfectShuffle/CMakeFiles/llvm-PerfectShuffle.dir/PerfectShuffle.cpp.o
[4590/5872] Building CXX object lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Transport.cpp.o
[4591/5872] Building CXX object utils/not/CMakeFiles/not.dir/not.cpp.o
[4592/5872] Building CXX object lib/Support/LSP/CMakeFiles/LLVMSupportLSP.dir/Protocol.cpp.o
[4593/5872] Building CXX object utils/FileCheck/CMakeFiles/FileCheck.dir/FileCheck.cpp.o
[4594/5872] Building CXX object tools/opt/CMakeFiles/LLVMOptDriver.dir/NewPMDriver.cpp.o
[4595/5872] Building CXX object tools/llvm-readobj/CMakeFiles/llvm-readobj.dir/ELFDumper.cpp.o
ninja: build stopped: subcommand failed.

@llvm-ci
Copy link
Collaborator

llvm-ci commented Nov 15, 2025

LLVM Buildbot has detected a new failure on builder llvm-clang-win-x-armv7l running on as-builder-1 while building clang,cross-project-tests,llvm at step 8 "build-default".

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

Here is the relevant piece of the build log for the reference
Step 8 (build-default) failure: cmake (failure)
...
654.893 [276/21/4912]Building CXX object tools\llvm-exegesis\lib\CMakeFiles\LLVMExegesis.dir\LatencyBenchmarkRunner.cpp.obj
654.895 [276/20/4913]Building CXX object tools\llvm-exegesis\lib\CMakeFiles\LLVMExegesis.dir\SerialSnippetGenerator.cpp.obj
655.002 [276/19/4914]Building CXX object tools\llvm-reduce\CMakeFiles\llvm-reduce.dir\deltas\ReduceInstructionsMIR.cpp.obj
655.160 [276/18/4915]Building CXX object tools\llvm-exegesis\lib\CMakeFiles\LLVMExegesis.dir\ParallelSnippetGenerator.cpp.obj
655.241 [276/17/4916]Building CXX object tools\llvm-reduce\CMakeFiles\llvm-reduce.dir\deltas\Delta.cpp.obj
655.292 [276/16/4917]Building CXX object tools\llvm-tli-checker\CMakeFiles\llvm-tli-checker.dir\llvm-tli-checker.cpp.obj
656.026 [275/16/4918]Building CXX object tools\clang\tools\extra\include-cleaner\lib\CMakeFiles\obj.clangIncludeCleaner.dir\WalkAST.cpp.obj
656.259 [275/15/4919]Linking CXX executable bin\llvm-tli-checker.exe
656.326 [275/14/4920]Building CXX object tools\llvm-reduce\CMakeFiles\llvm-reduce.dir\deltas\RunIRPasses.cpp.obj
656.673 [275/13/4921]Building CXX object tools\opt\CMakeFiles\LLVMOptDriver.dir\optdriver.cpp.obj
FAILED: tools/opt/CMakeFiles/LLVMOptDriver.dir/optdriver.cpp.obj 
C:\ninja\ccache.exe C:\PROGRA~1\MICROS~2\2022\COMMUN~1\VC\Tools\MSVC\1444~1.352\bin\Hostx64\x64\cl.exe  /nologo /TP -DGTEST_HAS_RTTI=0 -DUNICODE -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_GLIBCXX_ASSERTIONS -D_HAS_EXCEPTIONS=0 -D_SCL_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS -D_UNICODE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -IC:\buildbot\as-builder-1\x-armv7l\build\tools\opt -IC:\buildbot\as-builder-1\x-armv7l\llvm-project\llvm\tools\opt -IC:\buildbot\as-builder-1\x-armv7l\build\include -IC:\buildbot\as-builder-1\x-armv7l\llvm-project\llvm\include -external:IC:\buildbot\fs\zlib-win32\include -external:W0 -D__OPTIMIZE__ /Zc:inline /Zc:preprocessor /Zc:__cplusplus /Oi /bigobj /permissive- /W4 -wd4141 -wd4146 -wd4244 -wd4267 -wd4291 -wd4351 -wd4456 -wd4457 -wd4458 -wd4459 -wd4503 -wd4624 -wd4722 -wd4100 -wd4127 -wd4512 -wd4505 -wd4610 -wd4510 -wd4702 -wd4245 -wd4706 -wd4310 -wd4701 -wd4703 -wd4389 -wd4611 -wd4805 -wd4204 -wd4577 -wd4091 -wd4592 -wd4319 -wd4709 -wd5105 -wd4324 -wd4251 -wd4275 -w14062 -we4238 /Gw /O2 /Ob2  -MD  /EHs-c- /GR- -UNDEBUG -std:c++17 /showIncludes /Fotools\opt\CMakeFiles\LLVMOptDriver.dir\optdriver.cpp.obj /Fdtools\opt\CMakeFiles\LLVMOptDriver.dir\LLVMOptDriver.pdb /FS -c C:\buildbot\as-builder-1\x-armv7l\llvm-project\llvm\tools\opt\optdriver.cpp
C:\buildbot\as-builder-1\x-armv7l\llvm-project\llvm\tools\opt\optdriver.cpp(684): error C2374: 'RTLCI': redefinition; multiple initialization
C:\buildbot\as-builder-1\x-armv7l\llvm-project\llvm\tools\opt\optdriver.cpp(677): note: see declaration of 'RTLCI'
C:\buildbot\as-builder-1\x-armv7l\llvm-project\llvm\tools\opt\optdriver.cpp(684): error C2086: 'llvm::RTLIB::RuntimeLibcallsInfo RTLCI': redefinition
C:\buildbot\as-builder-1\x-armv7l\llvm-project\llvm\tools\opt\optdriver.cpp(677): note: see declaration of 'RTLCI'
656.911 [275/12/4922]Building CXX object tools\llvm-reduce\CMakeFiles\llvm-reduce.dir\ReducerWorkItem.cpp.obj
657.523 [275/11/4923]Building CXX object tools\clang\tools\libclang\CMakeFiles\libclang.dir\CIndex.cpp.obj
657.873 [275/10/4924]Building CXX object tools\opt\CMakeFiles\LLVMOptDriver.dir\NewPMDriver.cpp.obj
658.272 [275/9/4925]Building CXX object tools\llvm-exegesis\lib\CMakeFiles\LLVMExegesis.dir\Assembler.cpp.obj
659.402 [275/8/4926]Building CXX object tools\llvm-lto2\CMakeFiles\llvm-lto2.dir\llvm-lto2.cpp.obj
660.096 [275/7/4927]Building CXX object tools\clang\tools\extra\clangd\refactor\tweaks\CMakeFiles\obj.clangDaemonTweaks.dir\ExtractFunction.cpp.obj
660.615 [275/6/4928]Building CXX object tools\llvm-jitlink\CMakeFiles\llvm-jitlink.dir\llvm-jitlink.cpp.obj
662.375 [275/5/4929]Building CXX object tools\clang\tools\extra\clangd\refactor\tweaks\CMakeFiles\obj.clangDaemonTweaks.dir\RemoveUsingNamespace.cpp.obj
662.838 [275/4/4930]Building CXX object tools\clang\tools\extra\clangd\refactor\tweaks\CMakeFiles\obj.clangDaemonTweaks.dir\AddUsing.cpp.obj
662.959 [275/3/4931]Building CXX object lib\Frontend\OpenMP\CMakeFiles\LLVMFrontendOpenMP.dir\OMPIRBuilder.cpp.obj
663.400 [275/2/4932]Building CXX object tools\clang\tools\extra\clangd\refactor\tweaks\CMakeFiles\obj.clangDaemonTweaks.dir\ExtractVariable.cpp.obj
665.319 [275/1/4933]Building CXX object tools\clang\tools\libclang\CMakeFiles\libclang.dir\CXExtractAPI.cpp.obj
ninja: build stopped: subcommand failed.

@llvm-ci
Copy link
Collaborator

llvm-ci commented Nov 15, 2025

LLVM Buildbot has detected a new failure on builder clang-ppc64-aix running on aix-ppc64 while building clang,cross-project-tests,llvm at step 5 "build-unified-tree".

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

Here is the relevant piece of the build log for the reference
Step 5 (build-unified-tree) failure: build (failure)
...
12.864 [0/1/262] Linking C static library /home/llvm/llvm-external-buildbots/workers/aix-ppc64/clang-ppc64-aix/build/lib/clang/22/lib/powerpc64-ibm-aix/libclang_rt.builtins.a
4607.045 [881/10/4662] Generating export list for lli
4609.642 [879/10/4664] Building CXX object utils/not/CMakeFiles/not.dir/not.cpp.o
4612.061 [878/10/4665] Building CXX object utils/split-file/CMakeFiles/split-file.dir/split-file.cpp.o
4612.322 [877/10/4666] Building CXX object third-party/unittest/CMakeFiles/llvm_gtest_main.dir/UnitTestMain/TestMain.cpp.o
4614.928 [876/10/4667] Building CXX object utils/FileCheck/CMakeFiles/FileCheck.dir/FileCheck.cpp.o
4614.956 [875/10/4668] Generating export list for opt
4615.385 [874/10/4669] Building CXX object tools/llvm-cov/CMakeFiles/llvm-cov.dir/llvm-cov.cpp.o
4615.452 [873/10/4670] Building CXX object third-party/unittest/CMakeFiles/llvm_gtest.dir/googletest/src/gtest-all.cc.o
4616.248 [872/10/4671] Building CXX object tools/opt/CMakeFiles/LLVMOptDriver.dir/optdriver.cpp.o
FAILED: [code=1] tools/opt/CMakeFiles/LLVMOptDriver.dir/optdriver.cpp.o 
/home/llvm/llvm-external-buildbots/clang.20.1.7/bin/clang++ -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_LARGE_FILE_API -D_XOPEN_SOURCE=700 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/llvm/llvm-external-buildbots/workers/aix-ppc64/clang-ppc64-aix/build/tools/opt -I/home/llvm/llvm-external-buildbots/workers/aix-ppc64/clang-ppc64-aix/llvm-project/llvm/tools/opt -I/home/llvm/llvm-external-buildbots/workers/aix-ppc64/clang-ppc64-aix/build/include -I/home/llvm/llvm-external-buildbots/workers/aix-ppc64/clang-ppc64-aix/llvm-project/llvm/include -pthread -mcmodel=large -fPIC -Werror -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wno-pass-failed -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=c++17  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -pthread -MD -MT tools/opt/CMakeFiles/LLVMOptDriver.dir/optdriver.cpp.o -MF tools/opt/CMakeFiles/LLVMOptDriver.dir/optdriver.cpp.o.d -o tools/opt/CMakeFiles/LLVMOptDriver.dir/optdriver.cpp.o -c /home/llvm/llvm-external-buildbots/workers/aix-ppc64/clang-ppc64-aix/llvm-project/llvm/tools/opt/optdriver.cpp
/home/llvm/llvm-external-buildbots/workers/aix-ppc64/clang-ppc64-aix/llvm-project/llvm/tools/opt/optdriver.cpp:684:30: error: redefinition of 'RTLCI'
  684 |   RTLIB::RuntimeLibcallsInfo RTLCI(ModuleTriple, codegen::getExceptionModel(),
      |                              ^
/home/llvm/llvm-external-buildbots/workers/aix-ppc64/clang-ppc64-aix/llvm-project/llvm/tools/opt/optdriver.cpp:677:30: note: previous definition is here
  677 |   RTLIB::RuntimeLibcallsInfo RTLCI(ModuleTriple, codegen::getExceptionModel(),
      |                              ^
1 error generated.
4616.858 [872/9/4672] Building CXX object tools/llvm-objcopy/CMakeFiles/llvm-objcopy.dir/ObjcopyOptions.cpp.o
4620.411 [872/8/4673] Building CXX object tools/llvm-cov/CMakeFiles/llvm-cov.dir/gcov.cpp.o
4623.271 [872/7/4674] Building CXX object tools/llvm-cov/CMakeFiles/llvm-cov.dir/CoverageExporterLcov.cpp.o
4624.476 [872/6/4675] Building CXX object tools/llvm-cov/CMakeFiles/llvm-cov.dir/CoverageExporterJson.cpp.o
4626.914 [872/5/4676] Building CXX object tools/opt/CMakeFiles/LLVMOptDriver.dir/NewPMDriver.cpp.o
4632.233 [872/4/4677] Building CXX object tools/llvm-lto/CMakeFiles/llvm-lto.dir/llvm-lto.cpp.o
4633.626 [872/3/4678] Building CXX object tools/llvm-cov/CMakeFiles/llvm-cov.dir/CodeCoverage.cpp.o
4638.610 [872/2/4679] Building CXX object tools/lli/CMakeFiles/lli.dir/lli.cpp.o
4650.323 [872/1/4680] Building CXX object tools/llvm-profdata/CMakeFiles/llvm-profdata.dir/llvm-profdata.cpp.o
ninja: build stopped: subcommand failed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

clang:codegen IR generation bugs: mangling, exceptions, etc. clang Clang issues not falling into any other category llvm:analysis Includes value tracking, cost tables and constant folding llvm:codegen llvm:ir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants