Skip to content

Conversation

@artagnon
Copy link
Contributor

@artagnon artagnon commented Mar 6, 2025

No description provided.

@artagnon artagnon requested review from david-arm and fhahn March 6, 2025 16:44
@llvmbot llvmbot added llvm:analysis Includes value tracking, cost tables and constant folding llvm:adt labels Mar 6, 2025
@llvmbot
Copy link
Member

llvmbot commented Mar 6, 2025

@llvm/pr-subscribers-llvm-adt

Author: Ramkumar Ramachandra (artagnon)

Changes

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

3 Files Affected:

  • (modified) llvm/include/llvm/ADT/EquivalenceClasses.h (+3)
  • (modified) llvm/lib/Analysis/LoopAccessAnalysis.cpp (+2-3)
  • (modified) llvm/lib/Analysis/VectorUtils.cpp (+3-3)
diff --git a/llvm/include/llvm/ADT/EquivalenceClasses.h b/llvm/include/llvm/ADT/EquivalenceClasses.h
index 4f98b84cf97d2..1987b9ae4a761 100644
--- a/llvm/include/llvm/ADT/EquivalenceClasses.h
+++ b/llvm/include/llvm/ADT/EquivalenceClasses.h
@@ -178,6 +178,9 @@ class EquivalenceClasses {
   member_iterator member_end() const {
     return member_iterator(nullptr);
   }
+  auto members(iterator I) const {
+    return make_range(member_begin(I), member_end());
+  }
 
   /// findValue - Return an iterator to the specified value.  If it does not
   /// exist, end() is returned.
diff --git a/llvm/lib/Analysis/LoopAccessAnalysis.cpp b/llvm/lib/Analysis/LoopAccessAnalysis.cpp
index 38ee82b77a946..207f5417934e5 100644
--- a/llvm/lib/Analysis/LoopAccessAnalysis.cpp
+++ b/llvm/lib/Analysis/LoopAccessAnalysis.cpp
@@ -527,9 +527,8 @@ void RuntimePointerChecking::groupChecks(
     // iteration order within an equivalence class member is only dependent on
     // the order in which unions and insertions are performed on the
     // equivalence class, the iteration order is deterministic.
-    for (auto MI = DepCands.member_begin(LeaderI), ME = DepCands.member_end();
-         MI != ME; ++MI) {
-      auto PointerI = PositionMap.find(MI->getPointer());
+    for (const auto &MI : DepCands.members(LeaderI)) {
+      auto PointerI = PositionMap.find(MI.getPointer());
       assert(PointerI != PositionMap.end() &&
              "pointer in equivalence class not found in PositionMap");
       for (unsigned Pointer : PointerI->second) {
diff --git a/llvm/lib/Analysis/VectorUtils.cpp b/llvm/lib/Analysis/VectorUtils.cpp
index 91ba68fe03324..c0bc451973c6e 100644
--- a/llvm/lib/Analysis/VectorUtils.cpp
+++ b/llvm/lib/Analysis/VectorUtils.cpp
@@ -845,7 +845,7 @@ llvm::computeMinimumValueSizes(ArrayRef<BasicBlock *> Blocks, DemandedBits &DB,
 
   for (auto I = ECs.begin(), E = ECs.end(); I != E; ++I) {
     uint64_t LeaderDemandedBits = 0;
-    for (Value *M : llvm::make_range(ECs.member_begin(I), ECs.member_end()))
+    for (Value *M : ECs.members(I))
       LeaderDemandedBits |= DBits[M];
 
     uint64_t MinBW = llvm::bit_width(LeaderDemandedBits);
@@ -857,7 +857,7 @@ llvm::computeMinimumValueSizes(ArrayRef<BasicBlock *> Blocks, DemandedBits &DB,
     // indvars.
     // If we are required to shrink a PHI, abandon this entire equivalence class.
     bool Abort = false;
-    for (Value *M : llvm::make_range(ECs.member_begin(I), ECs.member_end()))
+    for (Value *M : ECs.members(I))
       if (isa<PHINode>(M) && MinBW < M->getType()->getScalarSizeInBits()) {
         Abort = true;
         break;
@@ -865,7 +865,7 @@ llvm::computeMinimumValueSizes(ArrayRef<BasicBlock *> Blocks, DemandedBits &DB,
     if (Abort)
       continue;
 
-    for (Value *M : llvm::make_range(ECs.member_begin(I), ECs.member_end())) {
+    for (Value *M : ECs.members(I)) {
       auto *MI = dyn_cast<Instruction>(M);
       if (!MI)
         continue;

@llvmbot
Copy link
Member

llvmbot commented Mar 6, 2025

@llvm/pr-subscribers-llvm-analysis

Author: Ramkumar Ramachandra (artagnon)

Changes

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

3 Files Affected:

  • (modified) llvm/include/llvm/ADT/EquivalenceClasses.h (+3)
  • (modified) llvm/lib/Analysis/LoopAccessAnalysis.cpp (+2-3)
  • (modified) llvm/lib/Analysis/VectorUtils.cpp (+3-3)
diff --git a/llvm/include/llvm/ADT/EquivalenceClasses.h b/llvm/include/llvm/ADT/EquivalenceClasses.h
index 4f98b84cf97d2..1987b9ae4a761 100644
--- a/llvm/include/llvm/ADT/EquivalenceClasses.h
+++ b/llvm/include/llvm/ADT/EquivalenceClasses.h
@@ -178,6 +178,9 @@ class EquivalenceClasses {
   member_iterator member_end() const {
     return member_iterator(nullptr);
   }
+  auto members(iterator I) const {
+    return make_range(member_begin(I), member_end());
+  }
 
   /// findValue - Return an iterator to the specified value.  If it does not
   /// exist, end() is returned.
diff --git a/llvm/lib/Analysis/LoopAccessAnalysis.cpp b/llvm/lib/Analysis/LoopAccessAnalysis.cpp
index 38ee82b77a946..207f5417934e5 100644
--- a/llvm/lib/Analysis/LoopAccessAnalysis.cpp
+++ b/llvm/lib/Analysis/LoopAccessAnalysis.cpp
@@ -527,9 +527,8 @@ void RuntimePointerChecking::groupChecks(
     // iteration order within an equivalence class member is only dependent on
     // the order in which unions and insertions are performed on the
     // equivalence class, the iteration order is deterministic.
-    for (auto MI = DepCands.member_begin(LeaderI), ME = DepCands.member_end();
-         MI != ME; ++MI) {
-      auto PointerI = PositionMap.find(MI->getPointer());
+    for (const auto &MI : DepCands.members(LeaderI)) {
+      auto PointerI = PositionMap.find(MI.getPointer());
       assert(PointerI != PositionMap.end() &&
              "pointer in equivalence class not found in PositionMap");
       for (unsigned Pointer : PointerI->second) {
diff --git a/llvm/lib/Analysis/VectorUtils.cpp b/llvm/lib/Analysis/VectorUtils.cpp
index 91ba68fe03324..c0bc451973c6e 100644
--- a/llvm/lib/Analysis/VectorUtils.cpp
+++ b/llvm/lib/Analysis/VectorUtils.cpp
@@ -845,7 +845,7 @@ llvm::computeMinimumValueSizes(ArrayRef<BasicBlock *> Blocks, DemandedBits &DB,
 
   for (auto I = ECs.begin(), E = ECs.end(); I != E; ++I) {
     uint64_t LeaderDemandedBits = 0;
-    for (Value *M : llvm::make_range(ECs.member_begin(I), ECs.member_end()))
+    for (Value *M : ECs.members(I))
       LeaderDemandedBits |= DBits[M];
 
     uint64_t MinBW = llvm::bit_width(LeaderDemandedBits);
@@ -857,7 +857,7 @@ llvm::computeMinimumValueSizes(ArrayRef<BasicBlock *> Blocks, DemandedBits &DB,
     // indvars.
     // If we are required to shrink a PHI, abandon this entire equivalence class.
     bool Abort = false;
-    for (Value *M : llvm::make_range(ECs.member_begin(I), ECs.member_end()))
+    for (Value *M : ECs.members(I))
       if (isa<PHINode>(M) && MinBW < M->getType()->getScalarSizeInBits()) {
         Abort = true;
         break;
@@ -865,7 +865,7 @@ llvm::computeMinimumValueSizes(ArrayRef<BasicBlock *> Blocks, DemandedBits &DB,
     if (Abort)
       continue;
 
-    for (Value *M : llvm::make_range(ECs.member_begin(I), ECs.member_end())) {
+    for (Value *M : ECs.members(I)) {
       auto *MI = dyn_cast<Instruction>(M);
       if (!MI)
         continue;

@artagnon artagnon changed the title [EquivClasses] Introduce members iterator-helper (NFC) [EquivClasses] Introduce members iterator-helper Mar 7, 2025
@artagnon artagnon force-pushed the equivclass-members-it branch from 6b88c5b to e096a2f Compare March 7, 2025 16:33
Copy link
Member

@kuhar kuhar left a comment

Choose a reason for hiding this comment

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

LGTM

@artagnon artagnon merged commit 259624b into llvm:main Mar 7, 2025
8 of 11 checks passed
@artagnon artagnon deleted the equivclass-members-it branch March 7, 2025 17:24
@llvm-ci
Copy link
Collaborator

llvm-ci commented Mar 7, 2025

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

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

Here is the relevant piece of the build log for the reference
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
...
2.538 [61/34/36] Linking CXX executable unittests/Debuginfod/DebuginfodTests
2.585 [60/34/37] Linking CXX executable unittests/DebugInfo/BTF/DebugInfoBTFTests
2.598 [59/34/38] Linking CXX executable tools/clang/tools/extra/unittests/clang-tidy/ClangTidyTests
2.598 [58/34/39] Linking CXX executable unittests/DebugInfo/GSYM/DebugInfoGSYMTests
2.599 [57/34/40] Linking CXX executable tools/clang/unittests/AST/ASTTests
2.669 [56/34/41] Linking CXX executable unittests/ExecutionEngine/JITLink/JITLinkTests
2.683 [55/34/42] Linking CXX executable unittests/DebugInfo/PDB/DebugInfoPDBTests
2.713 [54/34/43] Linking CXX executable unittests/ExecutionEngine/ExecutionEngineTests
2.793 [53/34/44] Linking CXX executable tools/clang/unittests/StaticAnalyzer/StaticAnalysisTests
2.894 [52/34/45] Building CXX object unittests/ADT/CMakeFiles/ADTTests.dir/EquivalenceClassesTest.cpp.o
FAILED: unittests/ADT/CMakeFiles/ADTTests.dir/EquivalenceClassesTest.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes /usr/bin/ccache /usr/bin/g++ -DGTEST_HAS_RTTI=0 -DLLVM_BUILD_STATIC -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/unittests/ADT -I/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/unittests/ADT -I/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/include -I/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/include -I/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/third-party/unittest/googletest/include -I/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/third-party/unittest/googlemock/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -fno-lifetime-dse -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG  -Wno-dangling-else -Wno-variadic-macros -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -Wno-suggest-override -std=c++17 -MD -MT unittests/ADT/CMakeFiles/ADTTests.dir/EquivalenceClassesTest.cpp.o -MF unittests/ADT/CMakeFiles/ADTTests.dir/EquivalenceClassesTest.cpp.o.d -o unittests/ADT/CMakeFiles/ADTTests.dir/EquivalenceClassesTest.cpp.o -c /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/unittests/ADT/EquivalenceClassesTest.cpp
In file included from /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/third-party/unittest/googlemock/include/gmock/gmock.h:61,
                 from /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/unittests/ADT/EquivalenceClassesTest.cpp:10:
/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/third-party/unittest/googlemock/include/gmock/gmock-more-matchers.h: In instantiation of ‘bool testing::internal::IsEmptyMatcher::MatchAndExplain(const MatcheeContainerType&, testing::MatchResultListener*) const [with MatcheeContainerType = llvm::iterator_range<llvm::EquivalenceClasses<int>::member_iterator>]’:
/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/third-party/unittest/googletest/include/gtest/gtest-matchers.h:647:35:   required from ‘bool testing::PolymorphicMatcher<Impl>::MonomorphicImpl<T>::MatchAndExplain(T, testing::MatchResultListener*) const [with T = const llvm::iterator_range<llvm::EquivalenceClasses<int>::member_iterator>&; Impl = testing::internal::IsEmptyMatcher]’
/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/third-party/unittest/googletest/include/gtest/gtest-matchers.h:646:10:   required from here
/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/third-party/unittest/googlemock/include/gmock/gmock-more-matchers.h:73:40: error: ‘const class llvm::iterator_range<llvm::EquivalenceClasses<int>::member_iterator>’ has no member named ‘size’
   73 |     *listener << "whose size is " << c.size();
      |                                      ~~^~~~
2.908 [52/33/46] Linking CXX executable unittests/Linker/LinkerTests
2.990 [52/32/47] Linking CXX executable tools/clang/unittests/CodeGen/ClangCodeGenTests
3.009 [52/31/48] Linking CXX executable tools/clang/unittests/Driver/ClangDriverTests
3.030 [52/30/49] Linking CXX executable tools/lld/unittests/AsLibAll/LLDAsLibAllTests
3.092 [52/29/50] Linking CXX executable unittests/MC/MCTests
3.137 [52/28/51] Linking CXX executable unittests/Object/ObjectTests
3.143 [52/27/52] Linking CXX executable unittests/ObjectYAML/ObjectYAMLTests
3.266 [52/26/53] Linking CXX executable unittests/ObjCopy/ObjCopyTests
3.611 [52/25/54] Linking CXX executable unittests/DebugInfo/DWARF/DebugInfoDWARFTests
3.682 [52/24/55] Linking CXX executable tools/clang/unittests/Tooling/ToolingTests
3.691 [52/23/56] Linking CXX executable unittests/CodeGen/GlobalISel/GlobalISelTests
3.775 [52/22/57] Linking CXX executable unittests/DebugInfo/LogicalView/DebugInfoLogicalViewTests
3.942 [52/21/58] Linking CXX executable unittests/MIR/MIRTests
4.016 [52/20/59] Linking CXX executable unittests/MI/MITests
4.307 [52/19/60] Linking CXX executable tools/clang/unittests/Frontend/FrontendTests
4.352 [52/18/61] Linking CXX executable unittests/ExecutionEngine/Orc/OrcJITTests
4.816 [52/17/62] Linking CXX executable unittests/ExecutionEngine/MCJIT/MCJITTests
5.033 [52/16/63] Linking CXX executable tools/clang/unittests/Interpreter/ClangReplInterpreterTests
5.151 [52/15/64] Linking CXX executable tools/clang/unittests/Interpreter/ExceptionTests/ClangReplInterpreterExceptionTests
6.450 [52/14/65] Building CXX object unittests/Analysis/CMakeFiles/AnalysisTests.dir/DDGTest.cpp.o
7.997 [52/13/66] Building CXX object unittests/Analysis/CMakeFiles/AnalysisTests.dir/VectorUtilsTest.cpp.o
8.328 [52/12/67] Building CXX object unittests/Analysis/CMakeFiles/AnalysisTests.dir/LastRunTrackingAnalysisTest.cpp.o
8.734 [52/11/68] Building CXX object unittests/Analysis/CMakeFiles/AnalysisTests.dir/ReplaceWithVecLibTest.cpp.o
8.952 [52/10/69] Building CXX object unittests/Analysis/CMakeFiles/AnalysisTests.dir/PluginInlineOrderAnalysisTest.cpp.o
9.084 [52/9/70] Building CXX object unittests/Analysis/CMakeFiles/AnalysisTests.dir/PluginInlineAdvisorAnalysisTest.cpp.o
9.440 [52/8/71] Building CXX object unittests/IR/CMakeFiles/IRTests.dir/VFABIDemanglerTest.cpp.o
10.425 [52/7/72] Building CXX object unittests/Analysis/CMakeFiles/AnalysisTests.dir/CtxProfAnalysisTest.cpp.o
10.625 [52/6/73] Building CXX object unittests/CodeGen/CMakeFiles/CodeGenTests.dir/PassManagerTest.cpp.o
11.003 [52/5/74] Building CXX object unittests/Analysis/CMakeFiles/AnalysisTests.dir/FunctionPropertiesAnalysisTest.cpp.o

@llvm-ci
Copy link
Collaborator

llvm-ci commented Mar 7, 2025

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

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

Here is the relevant piece of the build log for the reference
Step 5 (build-unified-tree) failure: build (failure)
...
179.584 [833/8/5164] Building CXX object unittests/ADT/CMakeFiles/ADTTests.dir/SimpleIListTest.cpp.o
179.612 [832/8/5165] Building CXX object unittests/ADT/CMakeFiles/ADTTests.dir/SmallPtrSetTest.cpp.o
179.636 [831/8/5166] Building CXX object unittests/ADT/CMakeFiles/ADTTests.dir/SmallSetTest.cpp.o
179.662 [830/8/5167] Building CXX object unittests/ADT/CMakeFiles/ADTTests.dir/SmallStringTest.cpp.o
179.678 [829/8/5168] Building CXX object unittests/ADT/CMakeFiles/ADTTests.dir/SmallVectorExtrasTest.cpp.o
179.704 [828/8/5169] Building CXX object unittests/ADT/CMakeFiles/ADTTests.dir/SmallVectorTest.cpp.o
179.730 [827/8/5170] Building CXX object unittests/ADT/CMakeFiles/ADTTests.dir/SparseBitVectorTest.cpp.o
179.758 [826/8/5171] Building CXX object unittests/ADT/CMakeFiles/ADTTests.dir/SparseMultiSetTest.cpp.o
179.783 [825/8/5172] Building CXX object unittests/ADT/CMakeFiles/ADTTests.dir/SparseSetTest.cpp.o
179.789 [824/8/5173] Building CXX object unittests/ADT/CMakeFiles/ADTTests.dir/EquivalenceClassesTest.cpp.o
FAILED: unittests/ADT/CMakeFiles/ADTTests.dir/EquivalenceClassesTest.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes /opt/homebrew/bin/ccache /usr/bin/clang++ -DGTEST_HAS_RTTI=0 -DLLVM_BUILD_STATIC -D_DEBUG -D_GLIBCXX_ASSERTIONS -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/Users/buildbot/buildbot-root/aarch64-darwin/build/unittests/ADT -I/Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/llvm/unittests/ADT -I/Users/buildbot/buildbot-root/aarch64-darwin/build/include -I/Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/llvm/include -I/Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/third-party/unittest/googletest/include -I/Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/third-party/unittest/googlemock/include -isystem /opt/homebrew/include -fPIC -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -O3 -DNDEBUG -std=c++17 -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk  -Wno-variadic-macros -Wno-gnu-zero-variadic-macro-arguments -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -Wno-suggest-override -MD -MT unittests/ADT/CMakeFiles/ADTTests.dir/EquivalenceClassesTest.cpp.o -MF unittests/ADT/CMakeFiles/ADTTests.dir/EquivalenceClassesTest.cpp.o.d -o unittests/ADT/CMakeFiles/ADTTests.dir/EquivalenceClassesTest.cpp.o -c /Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/llvm/unittests/ADT/EquivalenceClassesTest.cpp
In file included from /Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/llvm/unittests/ADT/EquivalenceClassesTest.cpp:10:
In file included from /Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/third-party/unittest/googlemock/include/gmock/gmock.h:61:
/Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/third-party/unittest/googlemock/include/gmock/gmock-more-matchers.h:73:40: error: no member named 'size' in 'llvm::iterator_range<llvm::EquivalenceClasses<int>::member_iterator>'
    *listener << "whose size is " << c.size();
                                     ~ ^
/Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/third-party/unittest/googletest/include/gtest/gtest-matchers.h:647:20: note: in instantiation of function template specialization 'testing::internal::IsEmptyMatcher::MatchAndExplain<llvm::iterator_range<llvm::EquivalenceClasses<int>::member_iterator>>' requested here
      return impl_.MatchAndExplain(x, listener);
                   ^
/Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/third-party/unittest/googletest/include/gtest/gtest-matchers.h:638:14: note: in instantiation of member function 'testing::PolymorphicMatcher<testing::internal::IsEmptyMatcher>::MonomorphicImpl<const llvm::iterator_range<llvm::EquivalenceClasses<int>::member_iterator> &>::MatchAndExplain' requested here
    explicit MonomorphicImpl(const Impl& impl) : impl_(impl) {}
             ^
/Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/third-party/unittest/googletest/include/gtest/gtest-matchers.h:631:27: note: in instantiation of member function 'testing::PolymorphicMatcher<testing::internal::IsEmptyMatcher>::MonomorphicImpl<const llvm::iterator_range<llvm::EquivalenceClasses<int>::member_iterator> &>::MonomorphicImpl' requested here
    return Matcher<T>(new MonomorphicImpl<const T&>(impl_));
                          ^
/Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/third-party/unittest/googlemock/include/gmock/gmock-matchers.h:373:12: note: in instantiation of function template specialization 'testing::PolymorphicMatcher<testing::internal::IsEmptyMatcher>::operator Matcher<const llvm::iterator_range<llvm::EquivalenceClasses<int>::member_iterator> &>' requested here
    return polymorphic_matcher_or_value;
           ^
/Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/third-party/unittest/googlemock/include/gmock/gmock-matchers.h:355:12: note: in instantiation of function template specialization 'testing::internal::MatcherCastImpl<const llvm::iterator_range<llvm::EquivalenceClasses<int>::member_iterator> &, testing::PolymorphicMatcher<testing::internal::IsEmptyMatcher>>::CastImpl<false>' requested here
    return CastImpl(polymorphic_matcher_or_value,
           ^
/Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/third-party/unittest/googlemock/include/gmock/gmock-matchers.h:515:43: note: in instantiation of member function 'testing::internal::MatcherCastImpl<const llvm::iterator_range<llvm::EquivalenceClasses<int>::member_iterator> &, testing::PolymorphicMatcher<testing::internal::IsEmptyMatcher>>::Cast' requested here
  return internal::MatcherCastImpl<T, M>::Cast(matcher);
                                          ^
/Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/third-party/unittest/googlemock/include/gmock/gmock-matchers.h:522:10: note: in instantiation of function template specialization 'testing::MatcherCast<const llvm::iterator_range<llvm::EquivalenceClasses<int>::member_iterator> &, testing::PolymorphicMatcher<testing::internal::IsEmptyMatcher>>' requested here
  return MatcherCast<T>(polymorphic_matcher_or_value);
         ^
/Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/third-party/unittest/googlemock/include/gmock/gmock-matchers.h:1591:39: note: in instantiation of function template specialization 'testing::SafeMatcherCast<const llvm::iterator_range<llvm::EquivalenceClasses<int>::member_iterator> &, testing::PolymorphicMatcher<testing::internal::IsEmptyMatcher>>' requested here
    const Matcher<const T&> matcher = SafeMatcherCast<const T&>(matcher_);
                                      ^
/Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/llvm/unittests/ADT/EquivalenceClassesTest.cpp:80:3: note: in instantiation of function template specialization 'testing::internal::PredicateFormatterFromMatcher<testing::PolymorphicMatcher<testing::internal::IsEmptyMatcher>>::operator()<llvm::iterator_range<llvm::EquivalenceClasses<int>::member_iterator>>' requested here
  EXPECT_THAT(EC.members(EC.end()), testing::IsEmpty());
  ^
/Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/third-party/unittest/googlemock/include/gmock/gmock-matchers.h:5495:3: note: expanded from macro 'EXPECT_THAT'
  EXPECT_PRED_FORMAT1(              \
  ^
/Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/third-party/unittest/googletest/include/gtest/gtest_pred_impl.h:109:3: note: expanded from macro 'EXPECT_PRED_FORMAT1'
  GTEST_PRED_FORMAT1_(pred_format, v1, GTEST_NONFATAL_FAILURE_)

@llvm-ci
Copy link
Collaborator

llvm-ci commented Mar 7, 2025

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

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

Here is the relevant piece of the build log for the reference
Step 6 (test-build-unified-tree-check-llvm) failure: test (failure)
...
0.913 [15/44/643] Linking CXX executable unittests/tools/llvm-mca/LLVMMCATests
0.917 [15/43/644] Linking CXX executable unittests/TableGen/TableGenTests
0.920 [15/42/645] Linking CXX executable unittests/ExecutionEngine/Orc/OrcJITTests
0.920 [15/41/646] Linking CXX executable unittests/TargetParser/TargetParserTests
0.940 [15/40/647] Linking CXX executable unittests/Object/ObjectTests
0.952 [15/39/648] Linking CXX executable unittests/ProfileData/ProfileDataTests
0.955 [15/38/649] Linking CXX executable unittests/DebugInfo/DWARF/DebugInfoDWARFTests
0.998 [15/37/650] Linking CXX executable unittests/tools/llvm-exegesis/LLVMExegesisTests
1.274 [15/36/651] Linking CXX executable unittests/Support/SupportTests
3.039 [15/35/652] Building CXX object unittests/ADT/CMakeFiles/ADTTests.dir/EquivalenceClassesTest.cpp.o
FAILED: unittests/ADT/CMakeFiles/ADTTests.dir/EquivalenceClassesTest.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes /usr/bin/ccache /usr/bin/c++ -DGTEST_HAS_RTTI=0 -DLLVM_BUILD_STATIC -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/build/unittests/ADT -I/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/unittests/ADT -I/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/build/include -I/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/include -I/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/llvm-project/third-party/unittest/googletest/include -I/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/llvm-project/third-party/unittest/googlemock/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -fno-lifetime-dse -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG  -Wno-dangling-else -Wno-variadic-macros -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -Wno-suggest-override -std=c++17 -MD -MT unittests/ADT/CMakeFiles/ADTTests.dir/EquivalenceClassesTest.cpp.o -MF unittests/ADT/CMakeFiles/ADTTests.dir/EquivalenceClassesTest.cpp.o.d -o unittests/ADT/CMakeFiles/ADTTests.dir/EquivalenceClassesTest.cpp.o -c /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/unittests/ADT/EquivalenceClassesTest.cpp
In file included from /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/llvm-project/third-party/unittest/googlemock/include/gmock/gmock.h:61,
                 from /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/unittests/ADT/EquivalenceClassesTest.cpp:10:
/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/llvm-project/third-party/unittest/googlemock/include/gmock/gmock-more-matchers.h: In instantiation of ‘bool testing::internal::IsEmptyMatcher::MatchAndExplain(const MatcheeContainerType&, testing::MatchResultListener*) const [with MatcheeContainerType = llvm::iterator_range<llvm::EquivalenceClasses<int>::member_iterator>]’:
/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/llvm-project/third-party/unittest/googletest/include/gtest/gtest-matchers.h:647:35:   required from ‘bool testing::PolymorphicMatcher<Impl>::MonomorphicImpl<T>::MatchAndExplain(T, testing::MatchResultListener*) const [with T = const llvm::iterator_range<llvm::EquivalenceClasses<int>::member_iterator>&; Impl = testing::internal::IsEmptyMatcher]’
/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/llvm-project/third-party/unittest/googletest/include/gtest/gtest-matchers.h:646:10:   required from here
/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/llvm-project/third-party/unittest/googlemock/include/gmock/gmock-more-matchers.h:73:40: error: ‘const class llvm::iterator_range<llvm::EquivalenceClasses<int>::member_iterator>’ has no member named ‘size’
   73 |     *listener << "whose size is " << c.size();
      |                                      ~~^~~~
6.001 [15/34/653] Building CXX object unittests/Analysis/CMakeFiles/AnalysisTests.dir/DDGTest.cpp.o
7.323 [15/33/654] Building CXX object unittests/Transforms/Utils/CMakeFiles/UtilsTests.dir/LoopUtilsTest.cpp.o
7.557 [15/32/655] Building CXX object unittests/Analysis/CMakeFiles/AnalysisTests.dir/VectorUtilsTest.cpp.o
7.580 [15/31/656] Building CXX object unittests/Transforms/Vectorize/CMakeFiles/VectorizeTests.dir/VPDomTreeTest.cpp.o
7.772 [15/30/657] Building CXX object unittests/Analysis/CMakeFiles/AnalysisTests.dir/LastRunTrackingAnalysisTest.cpp.o
7.932 [15/29/658] Building CXX object unittests/Analysis/CMakeFiles/AnalysisTests.dir/ReplaceWithVecLibTest.cpp.o
8.050 [15/28/659] Building CXX object unittests/Transforms/Vectorize/CMakeFiles/VectorizeTests.dir/VPlanVerifierTest.cpp.o
8.157 [15/27/660] Building CXX object unittests/Transforms/Vectorize/SandboxVectorizer/CMakeFiles/SandboxVectorizerTests.dir/InstrMapsTest.cpp.o
8.164 [15/26/661] Building CXX object unittests/SandboxIR/CMakeFiles/SandboxIRTests.dir/UtilsTest.cpp.o
8.635 [15/25/662] Building CXX object unittests/Transforms/Vectorize/CMakeFiles/VectorizeTests.dir/VPlanHCFGTest.cpp.o
9.007 [15/24/663] Building CXX object unittests/Transforms/Vectorize/CMakeFiles/VectorizeTests.dir/VPlanSlpTest.cpp.o
9.083 [15/23/664] Building CXX object unittests/IR/CMakeFiles/IRTests.dir/VFABIDemanglerTest.cpp.o
9.085 [15/22/665] Building CXX object unittests/Analysis/CMakeFiles/AnalysisTests.dir/PluginInlineAdvisorAnalysisTest.cpp.o
9.171 [15/21/666] Building CXX object unittests/Transforms/Vectorize/SandboxVectorizer/CMakeFiles/SandboxVectorizerTests.dir/VecUtilsTest.cpp.o
9.184 [15/20/667] Building CXX object unittests/Transforms/Scalar/CMakeFiles/ScalarTests.dir/LICMTest.cpp.o
9.436 [15/19/668] Building CXX object unittests/Analysis/CMakeFiles/AnalysisTests.dir/PluginInlineOrderAnalysisTest.cpp.o
9.631 [15/18/669] Building CXX object unittests/Passes/Plugins/CMakeFiles/PluginsTests.dir/PluginsTest.cpp.o
9.637 [15/17/670] Building CXX object unittests/Transforms/Utils/CMakeFiles/UtilsTests.dir/MemTransferLowering.cpp.o
10.288 [15/16/671] Building CXX object unittests/Transforms/Vectorize/SandboxVectorizer/CMakeFiles/SandboxVectorizerTests.dir/LegalityTest.cpp.o
In file included from /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/unittests/Transforms/Vectorize/SandboxVectorizer/LegalityTest.cpp:9:
/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/include/llvm/Transforms/Vectorize/SandboxVectorizer/Legality.h:186:33: warning: ‘maybe_unused’ attribute ignored [-Wattributes]
  186 |   [[maybe_unused]] ResultReason Reason;
      |                                 ^~~~~~
10.417 [15/15/672] Building CXX object unittests/Transforms/Coroutines/CMakeFiles/CoroTests.dir/ExtraRematTest.cpp.o
10.446 [15/14/673] Building CXX object unittests/Target/X86/CMakeFiles/X86Tests.dir/TernlogTest.cpp.o
10.550 [15/13/674] Building CXX object unittests/CodeGen/CMakeFiles/CodeGenTests.dir/PassManagerTest.cpp.o
10.563 [15/12/675] Building CXX object unittests/Analysis/CMakeFiles/AnalysisTests.dir/CtxProfAnalysisTest.cpp.o
10.877 [15/11/676] Building CXX object unittests/CodeGen/CMakeFiles/CodeGenTests.dir/MachineDomTreeUpdaterTest.cpp.o
10.935 [15/10/677] Building CXX object unittests/Analysis/CMakeFiles/AnalysisTests.dir/FunctionPropertiesAnalysisTest.cpp.o

@llvm-ci
Copy link
Collaborator

llvm-ci commented Mar 7, 2025

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

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

Here is the relevant piece of the build log for the reference
Step 5 (ninja check 1) failure: stage 1 checked (failure)
...
[26/125] Linking CXX executable unittests/CGData/CGDataTests
[27/125] Linking CXX executable tools/clang/unittests/Driver/ClangDriverTests
[28/125] Linking CXX executable tools/clang/unittests/Sema/SemaTests
[29/125] Linking CXX executable unittests/Bitcode/BitcodeTests
[30/125] Linking CXX executable tools/clang/unittests/Index/IndexTests
[31/125] Linking CXX executable tools/clang/unittests/Support/ClangSupportTests
[32/125] Linking CXX executable tools/clang/unittests/Serialization/SerializationTests
[33/125] Linking CXX executable unittests/DebugInfo/GSYM/DebugInfoGSYMTests
[34/125] Linking CXX executable tools/clang/unittests/ASTMatchers/Dynamic/DynamicASTMatchersTests
[35/125] Building CXX object unittests/ADT/CMakeFiles/ADTTests.dir/EquivalenceClassesTest.cpp.o
FAILED: unittests/ADT/CMakeFiles/ADTTests.dir/EquivalenceClassesTest.cpp.o 
/usr/local/bin/c++ -DGTEST_HAS_RTTI=0 -DLLVM_BUILD_STATIC -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/tcwg-buildbot/worker/clang-aarch64-quick/stage1/unittests/ADT -I/home/tcwg-buildbot/worker/clang-aarch64-quick/llvm/llvm/unittests/ADT -I/home/tcwg-buildbot/worker/clang-aarch64-quick/stage1/include -I/home/tcwg-buildbot/worker/clang-aarch64-quick/llvm/llvm/include -I/home/tcwg-buildbot/worker/clang-aarch64-quick/llvm/third-party/unittest/googletest/include -I/home/tcwg-buildbot/worker/clang-aarch64-quick/llvm/third-party/unittest/googlemock/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=c++17  -Wno-variadic-macros -Wno-gnu-zero-variadic-macro-arguments -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -Wno-suggest-override -MD -MT unittests/ADT/CMakeFiles/ADTTests.dir/EquivalenceClassesTest.cpp.o -MF unittests/ADT/CMakeFiles/ADTTests.dir/EquivalenceClassesTest.cpp.o.d -o unittests/ADT/CMakeFiles/ADTTests.dir/EquivalenceClassesTest.cpp.o -c /home/tcwg-buildbot/worker/clang-aarch64-quick/llvm/llvm/unittests/ADT/EquivalenceClassesTest.cpp
In file included from ../llvm/llvm/unittests/ADT/EquivalenceClassesTest.cpp:10:
In file included from ../llvm/third-party/unittest/googlemock/include/gmock/gmock.h:61:
../llvm/third-party/unittest/googlemock/include/gmock/gmock-more-matchers.h:73:40: error: no member named 'size' in 'llvm::iterator_range<llvm::EquivalenceClasses<int>::member_iterator>'
   73 |     *listener << "whose size is " << c.size();
      |                                      ~ ^
../llvm/third-party/unittest/googletest/include/gtest/gtest-matchers.h:647:20: note: in instantiation of function template specialization 'testing::internal::IsEmptyMatcher::MatchAndExplain<llvm::iterator_range<llvm::EquivalenceClasses<int>::member_iterator>>' requested here
  647 |       return impl_.MatchAndExplain(x, listener);
      |                    ^
../llvm/third-party/unittest/googletest/include/gtest/gtest-matchers.h:638:14: note: in instantiation of member function 'testing::PolymorphicMatcher<testing::internal::IsEmptyMatcher>::MonomorphicImpl<const llvm::iterator_range<llvm::EquivalenceClasses<int>::member_iterator> &>::MatchAndExplain' requested here
  638 |     explicit MonomorphicImpl(const Impl& impl) : impl_(impl) {}
      |              ^
../llvm/third-party/unittest/googletest/include/gtest/gtest-matchers.h:631:27: note: in instantiation of member function 'testing::PolymorphicMatcher<testing::internal::IsEmptyMatcher>::MonomorphicImpl<const llvm::iterator_range<llvm::EquivalenceClasses<int>::member_iterator> &>::MonomorphicImpl' requested here
  631 |     return Matcher<T>(new MonomorphicImpl<const T&>(impl_));
      |                           ^
../llvm/third-party/unittest/googlemock/include/gmock/gmock-matchers.h:373:12: note: in instantiation of function template specialization 'testing::PolymorphicMatcher<testing::internal::IsEmptyMatcher>::operator Matcher<const llvm::iterator_range<llvm::EquivalenceClasses<int>::member_iterator> &>' requested here
  373 |     return polymorphic_matcher_or_value;
      |            ^
../llvm/third-party/unittest/googlemock/include/gmock/gmock-matchers.h:355:12: note: in instantiation of function template specialization 'testing::internal::MatcherCastImpl<const llvm::iterator_range<llvm::EquivalenceClasses<int>::member_iterator> &, testing::PolymorphicMatcher<testing::internal::IsEmptyMatcher>>::CastImpl<false>' requested here
  355 |     return CastImpl(polymorphic_matcher_or_value,
      |            ^
../llvm/third-party/unittest/googlemock/include/gmock/gmock-matchers.h:515:43: note: in instantiation of member function 'testing::internal::MatcherCastImpl<const llvm::iterator_range<llvm::EquivalenceClasses<int>::member_iterator> &, testing::PolymorphicMatcher<testing::internal::IsEmptyMatcher>>::Cast' requested here
  515 |   return internal::MatcherCastImpl<T, M>::Cast(matcher);
      |                                           ^
../llvm/third-party/unittest/googlemock/include/gmock/gmock-matchers.h:522:10: note: in instantiation of function template specialization 'testing::MatcherCast<const llvm::iterator_range<llvm::EquivalenceClasses<int>::member_iterator> &, testing::PolymorphicMatcher<testing::internal::IsEmptyMatcher>>' requested here
  522 |   return MatcherCast<T>(polymorphic_matcher_or_value);
      |          ^
../llvm/third-party/unittest/googlemock/include/gmock/gmock-matchers.h:1591:39: note: in instantiation of function template specialization 'testing::SafeMatcherCast<const llvm::iterator_range<llvm::EquivalenceClasses<int>::member_iterator> &, testing::PolymorphicMatcher<testing::internal::IsEmptyMatcher>>' requested here
 1591 |     const Matcher<const T&> matcher = SafeMatcherCast<const T&>(matcher_);
      |                                       ^
../llvm/llvm/unittests/ADT/EquivalenceClassesTest.cpp:80:3: note: in instantiation of function template specialization 'testing::internal::PredicateFormatterFromMatcher<testing::PolymorphicMatcher<testing::internal::IsEmptyMatcher>>::operator()<llvm::iterator_range<llvm::EquivalenceClasses<int>::member_iterator>>' requested here
   80 |   EXPECT_THAT(EC.members(EC.end()), testing::IsEmpty());
      |   ^
../llvm/third-party/unittest/googlemock/include/gmock/gmock-matchers.h:5495:3: note: expanded from macro 'EXPECT_THAT'
 5495 |   EXPECT_PRED_FORMAT1(              \
      |   ^
../llvm/third-party/unittest/googletest/include/gtest/gtest_pred_impl.h:109:3: note: expanded from macro 'EXPECT_PRED_FORMAT1'
  109 |   GTEST_PRED_FORMAT1_(pred_format, v1, GTEST_NONFATAL_FAILURE_)

@llvm-ci
Copy link
Collaborator

llvm-ci commented Mar 7, 2025

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

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

Here is the relevant piece of the build log for the reference
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
...
2.413 [323/26/402] Building CXX object unittests/Object/CMakeFiles/ObjectTests.dir/SymbolicFileTest.cpp.o
2.469 [322/26/403] Building CXX object unittests/Object/CMakeFiles/ObjectTests.dir/XCOFFObjectFileTest.cpp.o
2.930 [321/26/404] Linking CXX executable unittests/ObjCopy/ObjCopyTests
2.952 [320/26/405] Building CXX object unittests/ObjectYAML/CMakeFiles/ObjectYAMLTests.dir/ELFYAMLTest.cpp.o
2.972 [319/26/406] Building CXX object unittests/ObjectYAML/CMakeFiles/ObjectYAMLTests.dir/MinidumpYAMLTest.cpp.o
2.991 [318/26/407] Building CXX object unittests/ObjectYAML/CMakeFiles/ObjectYAMLTests.dir/YAML2ObjTest.cpp.o
3.008 [317/26/408] Building CXX object unittests/ObjectYAML/CMakeFiles/ObjectYAMLTests.dir/YAMLTest.cpp.o
3.391 [316/26/409] Linking CXX executable unittests/Object/ObjectTests
3.418 [315/26/410] Building Opts.inc...
3.426 [314/26/411] Building CXX object unittests/ADT/CMakeFiles/ADTTests.dir/EquivalenceClassesTest.cpp.o
FAILED: unittests/ADT/CMakeFiles/ADTTests.dir/EquivalenceClassesTest.cpp.o 
ccache /usr/bin/c++ -DGTEST_HAS_RTTI=0 -DLLVM_BUILD_STATIC -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/b/ml-opt-dev-x86-64-b1/build/unittests/ADT -I/b/ml-opt-dev-x86-64-b1/llvm-project/llvm/unittests/ADT -I/b/ml-opt-dev-x86-64-b1/build/include -I/b/ml-opt-dev-x86-64-b1/llvm-project/llvm/include -I/b/ml-opt-dev-x86-64-b1/llvm-project/third-party/unittest/googletest/include -I/b/ml-opt-dev-x86-64-b1/llvm-project/third-party/unittest/googlemock/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -fno-lifetime-dse -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG  -Wno-dangling-else -Wno-variadic-macros -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -Wno-suggest-override -std=c++17 -MD -MT unittests/ADT/CMakeFiles/ADTTests.dir/EquivalenceClassesTest.cpp.o -MF unittests/ADT/CMakeFiles/ADTTests.dir/EquivalenceClassesTest.cpp.o.d -o unittests/ADT/CMakeFiles/ADTTests.dir/EquivalenceClassesTest.cpp.o -c /b/ml-opt-dev-x86-64-b1/llvm-project/llvm/unittests/ADT/EquivalenceClassesTest.cpp
In file included from /b/ml-opt-dev-x86-64-b1/llvm-project/third-party/unittest/googlemock/include/gmock/gmock.h:61,
                 from /b/ml-opt-dev-x86-64-b1/llvm-project/llvm/unittests/ADT/EquivalenceClassesTest.cpp:10:
/b/ml-opt-dev-x86-64-b1/llvm-project/third-party/unittest/googlemock/include/gmock/gmock-more-matchers.h: In instantiation of ‘bool testing::internal::IsEmptyMatcher::MatchAndExplain(const MatcheeContainerType&, testing::MatchResultListener*) const [with MatcheeContainerType = llvm::iterator_range<llvm::EquivalenceClasses<int>::member_iterator>]’:
/b/ml-opt-dev-x86-64-b1/llvm-project/third-party/unittest/googletest/include/gtest/gtest-matchers.h:647:35:   required from ‘bool testing::PolymorphicMatcher<Impl>::MonomorphicImpl<T>::MatchAndExplain(T, testing::MatchResultListener*) const [with T = const llvm::iterator_range<llvm::EquivalenceClasses<int>::member_iterator>&; Impl = testing::internal::IsEmptyMatcher]’
/b/ml-opt-dev-x86-64-b1/llvm-project/third-party/unittest/googletest/include/gtest/gtest-matchers.h:646:10:   required from here
/b/ml-opt-dev-x86-64-b1/llvm-project/third-party/unittest/googlemock/include/gmock/gmock-more-matchers.h:73:40: error: ‘const class llvm::iterator_range<llvm::EquivalenceClasses<int>::member_iterator>’ has no member named ‘size’
   73 |     *listener << "whose size is " << c.size();
      |                                      ~~^~~~
3.441 [314/25/412] Building CXX object unittests/Option/CMakeFiles/OptionTests.dir/OptionParsingTest.cpp.o
3.559 [314/24/413] Linking CXX executable unittests/MC/MCTests
3.622 [314/23/414] Linking CXX executable unittests/ObjectYAML/ObjectYAMLTests
5.197 [314/22/415] Linking CXX executable unittests/ExecutionEngine/Orc/OrcJITTests
5.228 [314/21/416] Linking CXX executable unittests/MC/AMDGPU/AMDGPUMCTests
5.732 [314/20/417] Linking CXX executable unittests/ExecutionEngine/MCJIT/MCJITTests
7.625 [314/19/418] Linking CXX executable unittests/DebugInfo/DWARF/DebugInfoDWARFTests
8.298 [314/18/419] Linking CXX executable unittests/CodeGen/GlobalISel/GlobalISelTests
8.739 [314/17/420] Linking CXX executable unittests/DebugInfo/LogicalView/DebugInfoLogicalViewTests
9.313 [314/16/421] Linking CXX executable unittests/MIR/MIRTests
9.742 [314/15/422] Building CXX object unittests/Analysis/CMakeFiles/AnalysisTests.dir/DDGTest.cpp.o
9.817 [314/14/423] Linking CXX executable unittests/MI/MITests
11.586 [314/13/424] Building CXX object unittests/Analysis/CMakeFiles/AnalysisTests.dir/ReplaceWithVecLibTest.cpp.o
12.372 [314/12/425] Building CXX object unittests/Analysis/CMakeFiles/AnalysisTests.dir/LastRunTrackingAnalysisTest.cpp.o
12.570 [314/11/426] Building CXX object unittests/Analysis/CMakeFiles/AnalysisTests.dir/VectorUtilsTest.cpp.o
13.115 [314/10/427] Building CXX object unittests/Analysis/CMakeFiles/AnalysisTests.dir/PluginInlineOrderAnalysisTest.cpp.o
13.428 [314/9/428] Building CXX object unittests/IR/CMakeFiles/IRTests.dir/VFABIDemanglerTest.cpp.o
13.649 [314/8/429] Building CXX object unittests/Analysis/CMakeFiles/AnalysisTests.dir/PluginInlineAdvisorAnalysisTest.cpp.o
15.131 [314/7/430] Building CXX object unittests/Analysis/CMakeFiles/AnalysisTests.dir/FunctionPropertiesAnalysisTest.cpp.o
15.295 [314/6/431] Building CXX object unittests/CodeGen/CMakeFiles/CodeGenTests.dir/PassManagerTest.cpp.o
16.636 [314/5/432] Building CXX object unittests/CodeGen/CMakeFiles/CodeGenTests.dir/MachineDomTreeUpdaterTest.cpp.o
17.061 [314/4/433] Building CXX object unittests/Analysis/CMakeFiles/AnalysisTests.dir/CtxProfAnalysisTest.cpp.o
17.842 [314/3/434] Building CXX object unittests/IR/CMakeFiles/IRTests.dir/InstructionsTest.cpp.o
32.260 [314/2/435] Building CXX object unittests/IR/CMakeFiles/IRTests.dir/PassBuilderCallbacksTest.cpp.o
39.379 [314/1/436] Building CXX object unittests/Frontend/CMakeFiles/LLVMFrontendTests.dir/OpenMPIRBuilderTest.cpp.o
ninja: build stopped: subcommand failed.

@llvm-ci
Copy link
Collaborator

llvm-ci commented Mar 7, 2025

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

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

Here is the relevant piece of the build log for the reference
Step 6 (test-build-unified-tree-check-llvm) failure: test (failure)
...
1.087 [15/44/643] Linking CXX executable unittests/TextAPI/TextAPITests
1.094 [15/43/644] Linking CXX executable unittests/XRay/XRayTests
1.095 [15/42/645] Linking CXX executable unittests/DebugInfo/DWARF/DebugInfoDWARFTests
1.126 [15/41/646] Linking CXX executable unittests/Object/ObjectTests
1.129 [15/40/647] Linking CXX executable unittests/ExecutionEngine/Orc/OrcJITTests
1.148 [15/39/648] Linking CXX executable unittests/tools/llvm-mca/LLVMMCATests
1.155 [15/38/649] Linking CXX executable unittests/ProfileData/ProfileDataTests
1.249 [15/37/650] Linking CXX executable unittests/tools/llvm-exegesis/LLVMExegesisTests
1.493 [15/36/651] Linking CXX executable unittests/Support/SupportTests
3.202 [15/35/652] Building CXX object unittests/ADT/CMakeFiles/ADTTests.dir/EquivalenceClassesTest.cpp.o
FAILED: unittests/ADT/CMakeFiles/ADTTests.dir/EquivalenceClassesTest.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes /usr/bin/ccache /usr/bin/c++ -DGTEST_HAS_RTTI=0 -DLLVM_BUILD_STATIC -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/build/unittests/ADT -I/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/unittests/ADT -I/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/build/include -I/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/include -I/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/llvm-project/third-party/unittest/googletest/include -I/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/llvm-project/third-party/unittest/googlemock/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -fno-lifetime-dse -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG  -Wno-dangling-else -Wno-variadic-macros -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -Wno-suggest-override -std=c++17 -MD -MT unittests/ADT/CMakeFiles/ADTTests.dir/EquivalenceClassesTest.cpp.o -MF unittests/ADT/CMakeFiles/ADTTests.dir/EquivalenceClassesTest.cpp.o.d -o unittests/ADT/CMakeFiles/ADTTests.dir/EquivalenceClassesTest.cpp.o -c /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/unittests/ADT/EquivalenceClassesTest.cpp
In file included from /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/llvm-project/third-party/unittest/googlemock/include/gmock/gmock.h:61,
                 from /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/unittests/ADT/EquivalenceClassesTest.cpp:10:
/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/llvm-project/third-party/unittest/googlemock/include/gmock/gmock-more-matchers.h: In instantiation of ‘bool testing::internal::IsEmptyMatcher::MatchAndExplain(const MatcheeContainerType&, testing::MatchResultListener*) const [with MatcheeContainerType = llvm::iterator_range<llvm::EquivalenceClasses<int>::member_iterator>]’:
/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/llvm-project/third-party/unittest/googletest/include/gtest/gtest-matchers.h:647:35:   required from ‘bool testing::PolymorphicMatcher<Impl>::MonomorphicImpl<T>::MatchAndExplain(T, testing::MatchResultListener*) const [with T = const llvm::iterator_range<llvm::EquivalenceClasses<int>::member_iterator>&; Impl = testing::internal::IsEmptyMatcher]’
/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/llvm-project/third-party/unittest/googletest/include/gtest/gtest-matchers.h:646:10:   required from here
/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/llvm-project/third-party/unittest/googlemock/include/gmock/gmock-more-matchers.h:73:40: error: ‘const class llvm::iterator_range<llvm::EquivalenceClasses<int>::member_iterator>’ has no member named ‘size’
   73 |     *listener << "whose size is " << c.size();
      |                                      ~~^~~~
6.747 [15/34/653] Building CXX object unittests/Analysis/CMakeFiles/AnalysisTests.dir/DDGTest.cpp.o
8.066 [15/33/654] Building CXX object unittests/Transforms/Utils/CMakeFiles/UtilsTests.dir/LoopUtilsTest.cpp.o
8.433 [15/32/655] Building CXX object unittests/Analysis/CMakeFiles/AnalysisTests.dir/VectorUtilsTest.cpp.o
8.648 [15/31/656] Building CXX object unittests/Transforms/Vectorize/SandboxVectorizer/CMakeFiles/SandboxVectorizerTests.dir/InstrMapsTest.cpp.o
8.700 [15/30/657] Building CXX object unittests/Transforms/Vectorize/CMakeFiles/VectorizeTests.dir/VPDomTreeTest.cpp.o
8.743 [15/29/658] Building CXX object unittests/Analysis/CMakeFiles/AnalysisTests.dir/LastRunTrackingAnalysisTest.cpp.o
8.967 [15/28/659] Building CXX object unittests/Analysis/CMakeFiles/AnalysisTests.dir/ReplaceWithVecLibTest.cpp.o
9.122 [15/27/660] Building CXX object unittests/Transforms/Vectorize/CMakeFiles/VectorizeTests.dir/VPlanVerifierTest.cpp.o
9.236 [15/26/661] Building CXX object unittests/SandboxIR/CMakeFiles/SandboxIRTests.dir/UtilsTest.cpp.o
9.439 [15/25/662] Building CXX object unittests/Transforms/Vectorize/CMakeFiles/VectorizeTests.dir/VPlanHCFGTest.cpp.o
9.563 [15/24/663] Building CXX object unittests/Analysis/CMakeFiles/AnalysisTests.dir/PluginInlineOrderAnalysisTest.cpp.o
9.729 [15/23/664] Building CXX object unittests/Transforms/Vectorize/CMakeFiles/VectorizeTests.dir/VPlanSlpTest.cpp.o
9.922 [15/22/665] Building CXX object unittests/Transforms/Scalar/CMakeFiles/ScalarTests.dir/LICMTest.cpp.o
9.941 [15/21/666] Building CXX object unittests/Transforms/Vectorize/SandboxVectorizer/CMakeFiles/SandboxVectorizerTests.dir/VecUtilsTest.cpp.o
10.122 [15/20/667] Building CXX object unittests/Transforms/Coroutines/CMakeFiles/CoroTests.dir/ExtraRematTest.cpp.o
10.142 [15/19/668] Building CXX object unittests/IR/CMakeFiles/IRTests.dir/VFABIDemanglerTest.cpp.o
10.407 [15/18/669] Building CXX object unittests/Analysis/CMakeFiles/AnalysisTests.dir/PluginInlineAdvisorAnalysisTest.cpp.o
10.532 [15/17/670] Building CXX object unittests/Passes/Plugins/CMakeFiles/PluginsTests.dir/PluginsTest.cpp.o
10.656 [15/16/671] Building CXX object unittests/Transforms/Utils/CMakeFiles/UtilsTests.dir/MemTransferLowering.cpp.o
10.749 [15/15/672] Building CXX object unittests/Transforms/Vectorize/SandboxVectorizer/CMakeFiles/SandboxVectorizerTests.dir/SeedCollectorTest.cpp.o
11.228 [15/14/673] Building CXX object unittests/Transforms/Vectorize/SandboxVectorizer/CMakeFiles/SandboxVectorizerTests.dir/LegalityTest.cpp.o
In file included from /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/unittests/Transforms/Vectorize/SandboxVectorizer/LegalityTest.cpp:9:
/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/include/llvm/Transforms/Vectorize/SandboxVectorizer/Legality.h:186:33: warning: ‘maybe_unused’ attribute ignored [-Wattributes]
  186 |   [[maybe_unused]] ResultReason Reason;
      |                                 ^~~~~~
11.428 [15/13/674] Building CXX object unittests/CodeGen/CMakeFiles/CodeGenTests.dir/PassManagerTest.cpp.o
11.542 [15/12/675] Building CXX object unittests/CodeGen/CMakeFiles/CodeGenTests.dir/MachineDomTreeUpdaterTest.cpp.o
11.734 [15/11/676] Building CXX object unittests/Analysis/CMakeFiles/AnalysisTests.dir/CtxProfAnalysisTest.cpp.o
11.862 [15/10/677] Building CXX object unittests/Analysis/CMakeFiles/AnalysisTests.dir/FunctionPropertiesAnalysisTest.cpp.o

@llvm-ci
Copy link
Collaborator

llvm-ci commented Mar 7, 2025

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

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

Here is the relevant piece of the build log for the reference
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
...
2.323 [323/26/401] Building CXX object unittests/ObjCopy/CMakeFiles/ObjCopyTests.dir/ObjCopyTest.cpp.o
2.346 [322/26/402] Building CXX object unittests/Object/CMakeFiles/ObjectTests.dir/ELFObjectFileTest.cpp.o
2.369 [321/26/403] Building CXX object unittests/Object/CMakeFiles/ObjectTests.dir/ELFTypesTest.cpp.o
2.430 [320/26/404] Building CXX object unittests/Object/CMakeFiles/ObjectTests.dir/ELFTest.cpp.o
3.273 [319/26/405] Linking CXX executable unittests/ObjCopy/ObjCopyTests
3.338 [318/26/406] Building CXX object unittests/Object/CMakeFiles/ObjectTests.dir/GOFFObjectFileTest.cpp.o
3.391 [317/26/407] Building CXX object unittests/Object/CMakeFiles/ObjectTests.dir/MinidumpTest.cpp.o
3.450 [316/26/408] Building CXX object unittests/Object/CMakeFiles/ObjectTests.dir/ObjectFileTest.cpp.o
3.506 [315/26/409] Building CXX object unittests/Object/CMakeFiles/ObjectTests.dir/OffloadingTest.cpp.o
3.531 [314/26/410] Building CXX object unittests/ADT/CMakeFiles/ADTTests.dir/EquivalenceClassesTest.cpp.o
FAILED: unittests/ADT/CMakeFiles/ADTTests.dir/EquivalenceClassesTest.cpp.o 
ccache /usr/bin/c++ -DGTEST_HAS_RTTI=0 -DLLVM_BUILD_STATIC -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/b/ml-opt-rel-x86-64-b1/build/unittests/ADT -I/b/ml-opt-rel-x86-64-b1/llvm-project/llvm/unittests/ADT -I/var/lib/buildbot/.local/lib/python3.7/site-packages/tensorflow/include -I/b/ml-opt-rel-x86-64-b1/build/include -I/b/ml-opt-rel-x86-64-b1/llvm-project/llvm/include -I/b/ml-opt-rel-x86-64-b1/llvm-project/third-party/unittest/googletest/include -I/b/ml-opt-rel-x86-64-b1/llvm-project/third-party/unittest/googlemock/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -fno-lifetime-dse -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG  -Wno-dangling-else -Wno-variadic-macros -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -Wno-suggest-override -std=c++17 -MD -MT unittests/ADT/CMakeFiles/ADTTests.dir/EquivalenceClassesTest.cpp.o -MF unittests/ADT/CMakeFiles/ADTTests.dir/EquivalenceClassesTest.cpp.o.d -o unittests/ADT/CMakeFiles/ADTTests.dir/EquivalenceClassesTest.cpp.o -c /b/ml-opt-rel-x86-64-b1/llvm-project/llvm/unittests/ADT/EquivalenceClassesTest.cpp
In file included from /b/ml-opt-rel-x86-64-b1/llvm-project/third-party/unittest/googlemock/include/gmock/gmock.h:61,
                 from /b/ml-opt-rel-x86-64-b1/llvm-project/llvm/unittests/ADT/EquivalenceClassesTest.cpp:10:
/b/ml-opt-rel-x86-64-b1/llvm-project/third-party/unittest/googlemock/include/gmock/gmock-more-matchers.h: In instantiation of ‘bool testing::internal::IsEmptyMatcher::MatchAndExplain(const MatcheeContainerType&, testing::MatchResultListener*) const [with MatcheeContainerType = llvm::iterator_range<llvm::EquivalenceClasses<int>::member_iterator>]’:
/b/ml-opt-rel-x86-64-b1/llvm-project/third-party/unittest/googletest/include/gtest/gtest-matchers.h:647:35:   required from ‘bool testing::PolymorphicMatcher<Impl>::MonomorphicImpl<T>::MatchAndExplain(T, testing::MatchResultListener*) const [with T = const llvm::iterator_range<llvm::EquivalenceClasses<int>::member_iterator>&; Impl = testing::internal::IsEmptyMatcher]’
/b/ml-opt-rel-x86-64-b1/llvm-project/third-party/unittest/googletest/include/gtest/gtest-matchers.h:646:10:   required from here
/b/ml-opt-rel-x86-64-b1/llvm-project/third-party/unittest/googlemock/include/gmock/gmock-more-matchers.h:73:40: error: ‘const class llvm::iterator_range<llvm::EquivalenceClasses<int>::member_iterator>’ has no member named ‘size’
   73 |     *listener << "whose size is " << c.size();
      |                                      ~~^~~~
3.543 [314/25/411] Building CXX object unittests/Object/CMakeFiles/ObjectTests.dir/SymbolSizeTest.cpp.o
3.655 [314/24/412] Linking CXX executable unittests/MC/MCTests
4.946 [314/23/413] Linking CXX executable unittests/ExecutionEngine/MCJIT/MCJITTests
5.348 [314/22/414] Linking CXX executable unittests/ExecutionEngine/Orc/OrcJITTests
5.589 [314/21/415] Linking CXX executable unittests/MC/AMDGPU/AMDGPUMCTests
7.380 [314/20/416] Building CXX object unittests/Analysis/CMakeFiles/AnalysisTests.dir/DDGTest.cpp.o
7.483 [314/19/417] Linking CXX executable unittests/DebugInfo/DWARF/DebugInfoDWARFTests
7.836 [314/18/418] Linking CXX executable unittests/CodeGen/GlobalISel/GlobalISelTests
8.424 [314/17/419] Linking CXX executable unittests/DebugInfo/LogicalView/DebugInfoLogicalViewTests
8.830 [314/16/420] Linking CXX executable unittests/MIR/MIRTests
9.236 [314/15/421] Linking CXX executable unittests/MI/MITests
10.887 [314/14/422] Building CXX object unittests/Analysis/CMakeFiles/AnalysisTests.dir/VectorUtilsTest.cpp.o
11.879 [314/13/423] Building CXX object unittests/Analysis/CMakeFiles/AnalysisTests.dir/LastRunTrackingAnalysisTest.cpp.o
12.599 [314/12/424] Building CXX object unittests/Analysis/CMakeFiles/AnalysisTests.dir/ReplaceWithVecLibTest.cpp.o
13.043 [314/11/425] Building CXX object unittests/Analysis/CMakeFiles/AnalysisTests.dir/PluginInlineOrderAnalysisTest.cpp.o
13.670 [314/10/426] Building CXX object unittests/Analysis/CMakeFiles/AnalysisTests.dir/PluginInlineAdvisorAnalysisTest.cpp.o
13.676 [314/9/427] Building CXX object unittests/IR/CMakeFiles/IRTests.dir/VFABIDemanglerTest.cpp.o
14.856 [314/8/428] Building CXX object unittests/CodeGen/CMakeFiles/CodeGenTests.dir/PassManagerTest.cpp.o
14.969 [314/7/429] Building CXX object unittests/Analysis/CMakeFiles/AnalysisTests.dir/CtxProfAnalysisTest.cpp.o
15.666 [314/6/430] Building CXX object unittests/IR/CMakeFiles/IRTests.dir/InstructionsTest.cpp.o
15.838 [314/5/431] Building CXX object unittests/CodeGen/CMakeFiles/CodeGenTests.dir/MachineDomTreeUpdaterTest.cpp.o
15.848 [314/4/432] Building CXX object unittests/Target/X86/CMakeFiles/X86Tests.dir/TernlogTest.cpp.o
16.529 [314/3/433] Building CXX object unittests/Analysis/CMakeFiles/AnalysisTests.dir/FunctionPropertiesAnalysisTest.cpp.o
33.958 [314/2/434] Building CXX object unittests/IR/CMakeFiles/IRTests.dir/PassBuilderCallbacksTest.cpp.o
39.408 [314/1/435] Building CXX object unittests/Frontend/CMakeFiles/LLVMFrontendTests.dir/OpenMPIRBuilderTest.cpp.o
ninja: build stopped: subcommand failed.

@llvm-ci
Copy link
Collaborator

llvm-ci commented Mar 7, 2025

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

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

Here is the relevant piece of the build log for the reference
Step 8 (Add check check-llvm) failure: test (failure)
...
[632/696] Linking CXX executable unittests/Target/TargetMachineCTests
[633/696] Linking CXX executable unittests/Transforms/IPO/IPOTests
[634/696] Linking CXX executable unittests/tools/llvm-profgen/LLVMProfgenTests
[635/696] Linking CXX executable unittests/tools/llvm-profdata/LLVMProfdataTests
[636/696] Linking CXX executable unittests/tools/llvm-cfi-verify/CFIVerifyTests
[637/696] Linking CXX executable unittests/XRay/XRayTests
[638/696] Linking CXX executable unittests/tools/llvm-mca/LLVMMCATests
[639/696] Linking CXX executable unittests/tools/llvm-exegesis/LLVMExegesisTests
[640/696] Linking CXX executable unittests/Support/SupportTests
[641/696] Building CXX object unittests/ADT/CMakeFiles/ADTTests.dir/EquivalenceClassesTest.cpp.o
FAILED: unittests/ADT/CMakeFiles/ADTTests.dir/EquivalenceClassesTest.cpp.o 
ccache /usr/bin/c++ -DGTEST_HAS_RTTI=0 -DLLVM_BUILD_STATIC -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.build/unittests/ADT -I/home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/llvm/unittests/ADT -I/home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.build/include -I/home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/llvm/include -I/home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/third-party/unittest/googletest/include -I/home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/third-party/unittest/googlemock/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -fno-lifetime-dse -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG  -Wno-dangling-else -Wno-variadic-macros -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -Wno-suggest-override -std=c++17 -MD -MT unittests/ADT/CMakeFiles/ADTTests.dir/EquivalenceClassesTest.cpp.o -MF unittests/ADT/CMakeFiles/ADTTests.dir/EquivalenceClassesTest.cpp.o.d -o unittests/ADT/CMakeFiles/ADTTests.dir/EquivalenceClassesTest.cpp.o -c /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/llvm/unittests/ADT/EquivalenceClassesTest.cpp
In file included from /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/third-party/unittest/googlemock/include/gmock/gmock.h:61,
                 from /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/llvm/unittests/ADT/EquivalenceClassesTest.cpp:10:
/home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/third-party/unittest/googlemock/include/gmock/gmock-more-matchers.h: In instantiation of ‘bool testing::internal::IsEmptyMatcher::MatchAndExplain(const MatcheeContainerType&, testing::MatchResultListener*) const [with MatcheeContainerType = llvm::iterator_range<llvm::EquivalenceClasses<int>::member_iterator>]’:
/home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/third-party/unittest/googletest/include/gtest/gtest-matchers.h:647:35:   required from ‘bool testing::PolymorphicMatcher<Impl>::MonomorphicImpl<T>::MatchAndExplain(T, testing::MatchResultListener*) const [with T = const llvm::iterator_range<llvm::EquivalenceClasses<int>::member_iterator>&; Impl = testing::internal::IsEmptyMatcher]’
/home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/third-party/unittest/googletest/include/gtest/gtest-matchers.h:646:10:   required from here
/home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/third-party/unittest/googlemock/include/gmock/gmock-more-matchers.h:73:40: error: ‘const class llvm::iterator_range<llvm::EquivalenceClasses<int>::member_iterator>’ has no member named ‘size’
   73 |     *listener << "whose size is " << c.size();
      |                                      ~~^~~~
[642/696] Building CXX object unittests/Analysis/CMakeFiles/AnalysisTests.dir/DDGTest.cpp.o
[643/696] Building CXX object unittests/Transforms/Utils/CMakeFiles/UtilsTests.dir/LoopUtilsTest.cpp.o
[644/696] Building CXX object unittests/Analysis/CMakeFiles/AnalysisTests.dir/VectorUtilsTest.cpp.o
[645/696] Building CXX object unittests/Analysis/CMakeFiles/AnalysisTests.dir/LastRunTrackingAnalysisTest.cpp.o
[646/696] Building CXX object unittests/Transforms/Vectorize/CMakeFiles/VectorizeTests.dir/VPDomTreeTest.cpp.o
[647/696] Building CXX object unittests/Transforms/Vectorize/SandboxVectorizer/CMakeFiles/SandboxVectorizerTests.dir/InstrMapsTest.cpp.o
[648/696] Building CXX object unittests/Transforms/Vectorize/CMakeFiles/VectorizeTests.dir/VPlanVerifierTest.cpp.o
[649/696] Building CXX object unittests/Analysis/CMakeFiles/AnalysisTests.dir/ReplaceWithVecLibTest.cpp.o
[650/696] Building CXX object unittests/SandboxIR/CMakeFiles/SandboxIRTests.dir/UtilsTest.cpp.o
[651/696] Building CXX object unittests/Analysis/CMakeFiles/AnalysisTests.dir/PluginInlineOrderAnalysisTest.cpp.o
[652/696] Building CXX object unittests/Transforms/Vectorize/CMakeFiles/VectorizeTests.dir/VPlanHCFGTest.cpp.o
[653/696] Building CXX object unittests/Transforms/Scalar/CMakeFiles/ScalarTests.dir/LICMTest.cpp.o
[654/696] Building CXX object unittests/Transforms/Vectorize/CMakeFiles/VectorizeTests.dir/VPlanSlpTest.cpp.o
[655/696] Building CXX object unittests/Analysis/CMakeFiles/AnalysisTests.dir/PluginInlineAdvisorAnalysisTest.cpp.o
[656/696] Building CXX object unittests/Transforms/Coroutines/CMakeFiles/CoroTests.dir/ExtraRematTest.cpp.o
[657/696] Building CXX object unittests/Transforms/Vectorize/SandboxVectorizer/CMakeFiles/SandboxVectorizerTests.dir/VecUtilsTest.cpp.o
[658/696] Building CXX object unittests/IR/CMakeFiles/IRTests.dir/VFABIDemanglerTest.cpp.o
[659/696] Building CXX object unittests/Transforms/Utils/CMakeFiles/UtilsTests.dir/MemTransferLowering.cpp.o
[660/696] Building CXX object unittests/Passes/Plugins/CMakeFiles/PluginsTests.dir/PluginsTest.cpp.o
[661/696] Building CXX object unittests/Transforms/Vectorize/SandboxVectorizer/CMakeFiles/SandboxVectorizerTests.dir/SeedCollectorTest.cpp.o
[662/696] Building CXX object unittests/Target/X86/CMakeFiles/X86Tests.dir/TernlogTest.cpp.o
[663/696] Building CXX object unittests/Transforms/Vectorize/SandboxVectorizer/CMakeFiles/SandboxVectorizerTests.dir/LegalityTest.cpp.o
In file included from /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/llvm/unittests/Transforms/Vectorize/SandboxVectorizer/LegalityTest.cpp:9:
/home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/llvm/include/llvm/Transforms/Vectorize/SandboxVectorizer/Legality.h:186:33: warning: ‘maybe_unused’ attribute ignored [-Wattributes]
  186 |   [[maybe_unused]] ResultReason Reason;
      |                                 ^~~~~~
[664/696] Building CXX object unittests/CodeGen/CMakeFiles/CodeGenTests.dir/PassManagerTest.cpp.o
[665/696] Building CXX object unittests/CodeGen/CMakeFiles/CodeGenTests.dir/MachineDomTreeUpdaterTest.cpp.o
[666/696] Building CXX object unittests/Analysis/CMakeFiles/AnalysisTests.dir/FunctionPropertiesAnalysisTest.cpp.o

@llvm-ci
Copy link
Collaborator

llvm-ci commented Mar 7, 2025

LLVM Buildbot has detected a new failure on builder clang-x86_64-linux-abi-test running on sie-linux-worker2 while building llvm at step 6 "build-unified-tree".

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

Here is the relevant piece of the build log for the reference
Step 6 (build-unified-tree) failure: build (failure)
...
4.593 [6068/10/1015] Building CXX object third-party/benchmark/src/CMakeFiles/benchmark.dir/reporter.cc.o
4.603 [6067/10/1016] Building CXX object third-party/benchmark/src/CMakeFiles/benchmark.dir/statistics.cc.o
4.606 [6066/10/1017] Building CXX object third-party/benchmark/src/CMakeFiles/benchmark.dir/string_util.cc.o
4.625 [6065/10/1018] Building CXX object third-party/benchmark/src/CMakeFiles/benchmark.dir/sysinfo.cc.o
4.628 [6065/9/1019] Building CXX object third-party/benchmark/src/CMakeFiles/benchmark.dir/timers.cc.o
4.630 [6064/9/1020] Building CXX object third-party/benchmark/src/CMakeFiles/benchmark_main.dir/benchmark_main.cc.o
4.660 [6064/8/1021] Linking CXX static library lib/libbenchmark.a
4.669 [6063/8/1022] Linking CXX static library lib/libbenchmark_main.a
4.742 [6063/7/1023] Building AArch64TargetParserDef.inc...
5.801 [6062/7/1024] Building CXX object unittests/ADT/CMakeFiles/ADTTests.dir/EquivalenceClassesTest.cpp.o
FAILED: unittests/ADT/CMakeFiles/ADTTests.dir/EquivalenceClassesTest.cpp.o 
/opt/ccache/bin/g++ -DGTEST_HAS_RTTI=0 -DLLVM_BUILD_STATIC -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/buildbot/buildbot-root/abi-test/build/unittests/ADT -I/home/buildbot/buildbot-root/abi-test/llvm/llvm/unittests/ADT -I/home/buildbot/buildbot-root/abi-test/build/include -I/home/buildbot/buildbot-root/abi-test/llvm/llvm/include -I/home/buildbot/buildbot-root/abi-test/llvm/third-party/unittest/googletest/include -I/home/buildbot/buildbot-root/abi-test/llvm/third-party/unittest/googlemock/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -fno-lifetime-dse -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG  -Wno-dangling-else -Wno-variadic-macros -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -Wno-suggest-override -std=c++17 -MD -MT unittests/ADT/CMakeFiles/ADTTests.dir/EquivalenceClassesTest.cpp.o -MF unittests/ADT/CMakeFiles/ADTTests.dir/EquivalenceClassesTest.cpp.o.d -o unittests/ADT/CMakeFiles/ADTTests.dir/EquivalenceClassesTest.cpp.o -c /home/buildbot/buildbot-root/abi-test/llvm/llvm/unittests/ADT/EquivalenceClassesTest.cpp
In file included from /home/buildbot/buildbot-root/abi-test/llvm/third-party/unittest/googlemock/include/gmock/gmock.h:61,
                 from /home/buildbot/buildbot-root/abi-test/llvm/llvm/unittests/ADT/EquivalenceClassesTest.cpp:10:
/home/buildbot/buildbot-root/abi-test/llvm/third-party/unittest/googlemock/include/gmock/gmock-more-matchers.h: In instantiation of ‘bool testing::internal::IsEmptyMatcher::MatchAndExplain(const MatcheeContainerType&, testing::MatchResultListener*) const [with MatcheeContainerType = llvm::iterator_range<llvm::EquivalenceClasses<int>::member_iterator>]’:
/home/buildbot/buildbot-root/abi-test/llvm/third-party/unittest/googletest/include/gtest/gtest-matchers.h:647:35:   required from ‘bool testing::PolymorphicMatcher<Impl>::MonomorphicImpl<T>::MatchAndExplain(T, testing::MatchResultListener*) const [with T = const llvm::iterator_range<llvm::EquivalenceClasses<int>::member_iterator>&; Impl = testing::internal::IsEmptyMatcher]’
/home/buildbot/buildbot-root/abi-test/llvm/third-party/unittest/googletest/include/gtest/gtest-matchers.h:646:10:   required from here
/home/buildbot/buildbot-root/abi-test/llvm/third-party/unittest/googlemock/include/gmock/gmock-more-matchers.h:73:40: error: ‘const class llvm::iterator_range<llvm::EquivalenceClasses<int>::member_iterator>’ has no member named ‘size’
   73 |     *listener << "whose size is " << c.size();
      |                                      ~~^~~~
7.413 [6062/6/1025] Building RISCVTargetParserDef.inc...
9.343 [6062/5/1026] Building CXX object unittests/Passes/Plugins/TestPlugin/CMakeFiles/TestPlugin.dir/TestPlugin.cpp.o
9.620 [6062/4/1027] Building CXX object unittests/Analysis/InlineAdvisorPlugin/CMakeFiles/InlineAdvisorPlugin.dir/InlineAdvisorPlugin.cpp.o
10.324 [6062/3/1028] Building CXX object unittests/Analysis/InlineOrderPlugin/CMakeFiles/InlineOrderPlugin.dir/InlineOrderPlugin.cpp.o
10.329 [6062/2/1029] Building CXX object unittests/Passes/Plugins/DoublerPlugin/CMakeFiles/DoublerPlugin.dir/DoublerPlugin.cpp.o
11.872 [6062/1/1030] Building CXX object utils/TableGen/CMakeFiles/llvm-tblgen.dir/GlobalISelCombinerEmitter.cpp.o
ninja: build stopped: subcommand failed.

@llvm-ci
Copy link
Collaborator

llvm-ci commented Mar 7, 2025

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

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

Here is the relevant piece of the build log for the reference
Step 8 (Add check check-llvm) failure: test (failure)
...
                 from /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/llvm/unittests/ProfileData/BPFunctionNodeTest.cpp:9:
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/llvm/include/llvm/ProfileData/InstrProf.h: In member function ‘llvm::ArrayRef<llvm::InstrProfValueSiteRecord> llvm::InstrProfRecord::getValueSitesForKind(uint32_t) const’:
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/llvm/include/llvm/ProfileData/InstrProf.h:968:23: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits]
     assert(IPVK_First <= ValueKind && ValueKind <= IPVK_Last &&
            ~~~~~~~~~~~^~~~
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/llvm/include/llvm/ProfileData/InstrProf.h: In member function ‘std::vector<llvm::InstrProfValueSiteRecord>& llvm::InstrProfRecord::getOrCreateValueSitesForKind(uint32_t)’:
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/llvm/include/llvm/ProfileData/InstrProf.h:977:23: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits]
     assert(IPVK_First <= ValueKind && ValueKind <= IPVK_Last &&
            ~~~~~~~~~~~^~~~
[406/696] Building CXX object unittests/ADT/CMakeFiles/ADTTests.dir/EquivalenceClassesTest.cpp.o
FAILED: unittests/ADT/CMakeFiles/ADTTests.dir/EquivalenceClassesTest.cpp.o 
ccache /usr/bin/c++ -DGTEST_HAS_RTTI=0 -DLLVM_BUILD_STATIC -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Iunittests/ADT -I/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/llvm/unittests/ADT -Iinclude -I/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/llvm/include -I/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/third-party/unittest/googletest/include -I/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/third-party/unittest/googlemock/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -fno-lifetime-dse -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wno-comment -Wno-misleading-indentation -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG  -Wno-dangling-else -Wno-variadic-macros -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -Wno-suggest-override -std=c++1z -MD -MT unittests/ADT/CMakeFiles/ADTTests.dir/EquivalenceClassesTest.cpp.o -MF unittests/ADT/CMakeFiles/ADTTests.dir/EquivalenceClassesTest.cpp.o.d -o unittests/ADT/CMakeFiles/ADTTests.dir/EquivalenceClassesTest.cpp.o -c /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/llvm/unittests/ADT/EquivalenceClassesTest.cpp
In file included from /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/third-party/unittest/googlemock/include/gmock/gmock.h:61:0,
                 from /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/llvm/unittests/ADT/EquivalenceClassesTest.cpp:10:
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/third-party/unittest/googlemock/include/gmock/gmock-more-matchers.h: In instantiation of ‘bool testing::internal::IsEmptyMatcher::MatchAndExplain(const MatcheeContainerType&, testing::MatchResultListener*) const [with MatcheeContainerType = llvm::iterator_range<llvm::EquivalenceClasses<int>::member_iterator>]’:
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/third-party/unittest/googletest/include/gtest/gtest-matchers.h:647:47:   required from ‘bool testing::PolymorphicMatcher<Impl>::MonomorphicImpl<T>::MatchAndExplain(T, testing::MatchResultListener*) const [with T = const llvm::iterator_range<llvm::EquivalenceClasses<int>::member_iterator>&; Impl = testing::internal::IsEmptyMatcher]’
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/llvm/unittests/ADT/EquivalenceClassesTest.cpp:130:1:   required from here
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/third-party/unittest/googlemock/include/gmock/gmock-more-matchers.h:73:40: error: ‘const class llvm::iterator_range<llvm::EquivalenceClasses<int>::member_iterator>’ has no member named ‘size’
     *listener << "whose size is " << c.size();
                                      ~~^~~~
[407/696] Linking CXX executable unittests/Option/OptionTests
[408/696] Linking CXX executable unittests/MC/MCTests
[409/696] Linking CXX executable unittests/ObjCopy/ObjCopyTests
[410/696] Linking CXX executable unittests/Remarks/RemarksTests
[411/696] Linking CXX executable unittests/ObjectYAML/ObjectYAMLTests
[412/696] Linking CXX executable unittests/Object/ObjectTests
[413/696] Linking CXX executable unittests/MC/AMDGPU/AMDGPUMCTests
[414/696] Linking CXX executable unittests/ExecutionEngine/Orc/OrcJITTests
[415/696] Linking CXX executable unittests/CodeGen/GlobalISel/GlobalISelTests
[416/696] Linking CXX executable unittests/ExecutionEngine/MCJIT/MCJITTests
[417/696] Linking CXX executable unittests/DebugInfo/DWARF/DebugInfoDWARFTests
[418/696] Linking CXX executable unittests/DebugInfo/LogicalView/DebugInfoLogicalViewTests
[419/696] Linking CXX executable unittests/MIR/MIRTests
[420/696] Linking CXX executable unittests/MI/MITests
[421/696] Linking CXX executable unittests/Passes/PassBuilderBindings/PassesBindingsTests
[422/696] Building CXX object unittests/Analysis/CMakeFiles/AnalysisTests.dir/DDGTest.cpp.o
[423/696] Building CXX object unittests/Analysis/CMakeFiles/AnalysisTests.dir/VectorUtilsTest.cpp.o
[424/696] Building CXX object unittests/Analysis/CMakeFiles/AnalysisTests.dir/LastRunTrackingAnalysisTest.cpp.o
[425/696] Building CXX object unittests/Transforms/Vectorize/SandboxVectorizer/CMakeFiles/SandboxVectorizerTests.dir/InstrMapsTest.cpp.o
[426/696] Building CXX object unittests/Analysis/CMakeFiles/AnalysisTests.dir/ReplaceWithVecLibTest.cpp.o
[427/696] Building CXX object unittests/IR/CMakeFiles/IRTests.dir/VFABIDemanglerTest.cpp.o
[428/696] Building CXX object unittests/Analysis/CMakeFiles/AnalysisTests.dir/PluginInlineOrderAnalysisTest.cpp.o
[429/696] Building CXX object unittests/Analysis/CMakeFiles/AnalysisTests.dir/CtxProfAnalysisTest.cpp.o
In file included from /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/llvm/include/llvm/Analysis/CtxProfAnalysis.h:17:0,
                 from /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/llvm/unittests/Analysis/CtxProfAnalysisTest.cpp:9:
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/llvm/include/llvm/ProfileData/PGOCtxProfReader.h: In member function ‘void llvm::PGOCtxProfContext::ingestAllContexts(uint32_t, llvm::PGOCtxProfContext::CallTargetMapTy&&)’:
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/llvm/include/llvm/ProfileData/PGOCtxProfReader.h:133:22: warning: unused variable ‘_’ [-Wunused-variable]
     auto [_, Inserted] = callsites().try_emplace(CSId, std::move(Other));
                      ^

artagnon added a commit to artagnon/llvm-project that referenced this pull request Mar 7, 2025
This reverts commit 259624b, as it causes a build failure.
@llvm-ci
Copy link
Collaborator

llvm-ci commented Mar 7, 2025

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

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

Here is the relevant piece of the build log for the reference
Step 5 (build-unified-tree) failure: build (failure)
0.017 [1916/8/1] Building CXX object tools/llvm-config/CMakeFiles/llvm-config.dir/llvm-config.cpp.o
0.019 [1915/8/2] Generating VCSRevision.h
0.081 [1888/34/3] Linking CXX executable bin/llvm-config
2.627 [1887/34/4] Building CXX object unittests/ADT/CMakeFiles/ADTTests.dir/EquivalenceClassesTest.cpp.o
FAILED: unittests/ADT/CMakeFiles/ADTTests.dir/EquivalenceClassesTest.cpp.o 
/opt/ccache/bin/g++ -DGTEST_HAS_RTTI=0 -DLLVM_BUILD_STATIC -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/unittests/ADT -I/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/unittests/ADT -I/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/include -I/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/include -I/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/third-party/unittest/googletest/include -I/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/third-party/unittest/googlemock/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -fno-lifetime-dse -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG  -Wno-dangling-else -Wno-variadic-macros -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -Wno-suggest-override -std=c++17 -MD -MT unittests/ADT/CMakeFiles/ADTTests.dir/EquivalenceClassesTest.cpp.o -MF unittests/ADT/CMakeFiles/ADTTests.dir/EquivalenceClassesTest.cpp.o.d -o unittests/ADT/CMakeFiles/ADTTests.dir/EquivalenceClassesTest.cpp.o -c /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/unittests/ADT/EquivalenceClassesTest.cpp
In file included from /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/third-party/unittest/googlemock/include/gmock/gmock.h:61,
                 from /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/unittests/ADT/EquivalenceClassesTest.cpp:10:
/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/third-party/unittest/googlemock/include/gmock/gmock-more-matchers.h: In instantiation of ‘bool testing::internal::IsEmptyMatcher::MatchAndExplain(const MatcheeContainerType&, testing::MatchResultListener*) const [with MatcheeContainerType = llvm::iterator_range<llvm::EquivalenceClasses<int>::member_iterator>]’:
/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/third-party/unittest/googletest/include/gtest/gtest-matchers.h:647:47:   required from ‘bool testing::PolymorphicMatcher<Impl>::MonomorphicImpl<T>::MatchAndExplain(T, testing::MatchResultListener*) const [with T = const llvm::iterator_range<llvm::EquivalenceClasses<int>::member_iterator>&; Impl = testing::internal::IsEmptyMatcher]’
/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/third-party/unittest/googletest/include/gtest/gtest-matchers.h:646:10:   required from here
/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/third-party/unittest/googlemock/include/gmock/gmock-more-matchers.h:73:40: error: ‘const class llvm::iterator_range<llvm::EquivalenceClasses<int>::member_iterator>’ has no member named ‘size’
   73 |     *listener << "whose size is " << c.size();
      |                                      ~~^~~~
5.262 [1887/33/5] Building CXX object lib/Transforms/Utils/CMakeFiles/LLVMTransformUtils.dir/InjectTLIMappings.cpp.o
5.980 [1887/32/6] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/ExpandReductions.cpp.o
6.864 [1887/31/7] Building CXX object lib/Transforms/Utils/CMakeFiles/LLVMTransformUtils.dir/ModuleUtils.cpp.o
7.001 [1887/30/8] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/ExpandVectorPredication.cpp.o
7.787 [1887/29/9] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/ReplaceWithVeclib.cpp.o
8.042 [1887/28/10] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/HardwareLoops.cpp.o
8.377 [1887/27/11] Building CXX object unittests/Analysis/InlineOrderPlugin/CMakeFiles/InlineOrderPlugin.dir/InlineOrderPlugin.cpp.o
8.416 [1887/26/12] Building CXX object unittests/Passes/Plugins/TestPlugin/CMakeFiles/TestPlugin.dir/TestPlugin.cpp.o
8.491 [1887/25/13] Building CXX object lib/Transforms/Utils/CMakeFiles/LLVMTransformUtils.dir/LoopConstrainer.cpp.o
8.824 [1887/24/14] Building CXX object unittests/Passes/Plugins/DoublerPlugin/CMakeFiles/DoublerPlugin.dir/DoublerPlugin.cpp.o
9.018 [1887/23/15] Building CXX object lib/Transforms/Utils/CMakeFiles/LLVMTransformUtils.dir/LoopVersioning.cpp.o
9.240 [1887/22/16] Building CXX object unittests/Analysis/InlineAdvisorPlugin/CMakeFiles/InlineAdvisorPlugin.dir/InlineAdvisorPlugin.cpp.o
9.296 [1887/21/17] Building CXX object lib/Transforms/Utils/CMakeFiles/LLVMTransformUtils.dir/LoopUnrollRuntime.cpp.o
9.319 [1887/20/18] Building CXX object lib/Transforms/Utils/CMakeFiles/LLVMTransformUtils.dir/LCSSA.cpp.o
9.517 [1887/19/19] Building CXX object lib/Transforms/Utils/CMakeFiles/LLVMTransformUtils.dir/LoopPeel.cpp.o
9.552 [1887/18/20] Building CXX object lib/Transforms/Utils/CMakeFiles/LLVMTransformUtils.dir/LoopSimplify.cpp.o
10.143 [1887/17/21] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/BasicTargetTransformInfo.cpp.o
10.265 [1887/16/22] Building CXX object lib/CodeGen/SelectionDAG/CMakeFiles/LLVMSelectionDAG.dir/LegalizeVectorOps.cpp.o
10.281 [1887/15/23] Building CXX object lib/Transforms/Utils/CMakeFiles/LLVMTransformUtils.dir/LoopUnrollAndJam.cpp.o
10.543 [1887/14/24] Building CXX object lib/Transforms/Utils/CMakeFiles/LLVMTransformUtils.dir/LoopUnroll.cpp.o
11.697 [1887/13/25] Building CXX object lib/Transforms/Utils/CMakeFiles/LLVMTransformUtils.dir/LoopUtils.cpp.o
12.967 [1887/12/26] Building CXX object utils/TableGen/CMakeFiles/llvm-tblgen.dir/GlobalISelCombinerEmitter.cpp.o
13.247 [1887/11/27] Building CXX object lib/Transforms/Utils/CMakeFiles/LLVMTransformUtils.dir/Local.cpp.o
13.946 [1887/10/28] Building CXX object lib/Transforms/Utils/CMakeFiles/LLVMTransformUtils.dir/InlineFunction.cpp.o
14.947 [1887/9/29] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/CodeGenTargetMachineImpl.cpp.o
15.268 [1887/8/30] Building CXX object lib/CodeGen/SelectionDAG/CMakeFiles/LLVMSelectionDAG.dir/LegalizeVectorTypes.cpp.o
16.501 [1887/7/31] Building CXX object lib/CodeGen/GlobalISel/CMakeFiles/LLVMGlobalISel.dir/IRTranslator.cpp.o
17.662 [1887/6/32] Building CXX object lib/CodeGen/AsmPrinter/CMakeFiles/LLVMAsmPrinter.dir/AsmPrinter.cpp.o
19.072 [1887/5/33] Building CXX object lib/CodeGen/SelectionDAG/CMakeFiles/LLVMSelectionDAG.dir/TargetLowering.cpp.o
20.492 [1887/4/34] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/CodeGenPrepare.cpp.o
22.283 [1887/3/35] Building CXX object lib/CodeGen/SelectionDAG/CMakeFiles/LLVMSelectionDAG.dir/SelectionDAG.cpp.o
24.127 [1887/2/36] Building CXX object lib/CodeGen/SelectionDAG/CMakeFiles/LLVMSelectionDAG.dir/SelectionDAGBuilder.cpp.o
33.914 [1887/1/37] Building CXX object lib/CodeGen/SelectionDAG/CMakeFiles/LLVMSelectionDAG.dir/DAGCombiner.cpp.o
ninja: build stopped: subcommand failed.

@llvm-ci
Copy link
Collaborator

llvm-ci commented Mar 7, 2025

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

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

Here is the relevant piece of the build log for the reference
Step 5 (ninja check 1) failure: stage 1 checked (failure)
...
----------------------------------------------------------------------
Ran 154 tests in 2.317s

OK
[20/126] Linking CXX executable unittests/DebugInfo/GSYM/DebugInfoGSYMTests
[21/126] Linking CXX executable unittests/Bitcode/BitcodeTests
[22/126] Linking CXX executable tools/clang/tools/extra/unittests/clang-tidy/ClangTidyTests
[23/126] Linking CXX executable tools/clang/unittests/Format/FormatTests
[24/126] Linking CXX executable unittests/DebugInfo/PDB/DebugInfoPDBTests
[25/126] Building CXX object unittests/ADT/CMakeFiles/ADTTests.dir/EquivalenceClassesTest.cpp.o
FAILED: unittests/ADT/CMakeFiles/ADTTests.dir/EquivalenceClassesTest.cpp.o 
/usr/local/bin/c++ -DGTEST_HAS_RTTI=0 -DLLVM_BUILD_STATIC -D_DEBUG -D_FILE_OFFSET_BITS=64 -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/tcwg-buildbot/worker/clang-armv8-quick/stage1/unittests/ADT -I/home/tcwg-buildbot/worker/clang-armv8-quick/llvm/llvm/unittests/ADT -I/home/tcwg-buildbot/worker/clang-armv8-quick/stage1/include -I/home/tcwg-buildbot/worker/clang-armv8-quick/llvm/llvm/include -I/home/tcwg-buildbot/worker/clang-armv8-quick/llvm/third-party/unittest/googletest/include -I/home/tcwg-buildbot/worker/clang-armv8-quick/llvm/third-party/unittest/googlemock/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=c++17  -Wno-variadic-macros -Wno-gnu-zero-variadic-macro-arguments -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -Wno-suggest-override -MD -MT unittests/ADT/CMakeFiles/ADTTests.dir/EquivalenceClassesTest.cpp.o -MF unittests/ADT/CMakeFiles/ADTTests.dir/EquivalenceClassesTest.cpp.o.d -o unittests/ADT/CMakeFiles/ADTTests.dir/EquivalenceClassesTest.cpp.o -c /home/tcwg-buildbot/worker/clang-armv8-quick/llvm/llvm/unittests/ADT/EquivalenceClassesTest.cpp
In file included from ../llvm/llvm/unittests/ADT/EquivalenceClassesTest.cpp:10:
In file included from ../llvm/third-party/unittest/googlemock/include/gmock/gmock.h:61:
../llvm/third-party/unittest/googlemock/include/gmock/gmock-more-matchers.h:73:40: error: no member named 'size' in 'llvm::iterator_range<llvm::EquivalenceClasses<int>::member_iterator>'
   73 |     *listener << "whose size is " << c.size();
      |                                      ~ ^
../llvm/third-party/unittest/googletest/include/gtest/gtest-matchers.h:647:20: note: in instantiation of function template specialization 'testing::internal::IsEmptyMatcher::MatchAndExplain<llvm::iterator_range<llvm::EquivalenceClasses<int>::member_iterator>>' requested here
  647 |       return impl_.MatchAndExplain(x, listener);
      |                    ^
../llvm/third-party/unittest/googletest/include/gtest/gtest-matchers.h:638:14: note: in instantiation of member function 'testing::PolymorphicMatcher<testing::internal::IsEmptyMatcher>::MonomorphicImpl<const llvm::iterator_range<llvm::EquivalenceClasses<int>::member_iterator> &>::MatchAndExplain' requested here
  638 |     explicit MonomorphicImpl(const Impl& impl) : impl_(impl) {}
      |              ^
../llvm/third-party/unittest/googletest/include/gtest/gtest-matchers.h:631:27: note: in instantiation of member function 'testing::PolymorphicMatcher<testing::internal::IsEmptyMatcher>::MonomorphicImpl<const llvm::iterator_range<llvm::EquivalenceClasses<int>::member_iterator> &>::MonomorphicImpl' requested here
  631 |     return Matcher<T>(new MonomorphicImpl<const T&>(impl_));
      |                           ^
../llvm/third-party/unittest/googlemock/include/gmock/gmock-matchers.h:373:12: note: in instantiation of function template specialization 'testing::PolymorphicMatcher<testing::internal::IsEmptyMatcher>::operator Matcher<const llvm::iterator_range<llvm::EquivalenceClasses<int>::member_iterator> &>' requested here
  373 |     return polymorphic_matcher_or_value;
      |            ^
../llvm/third-party/unittest/googlemock/include/gmock/gmock-matchers.h:355:12: note: in instantiation of function template specialization 'testing::internal::MatcherCastImpl<const llvm::iterator_range<llvm::EquivalenceClasses<int>::member_iterator> &, testing::PolymorphicMatcher<testing::internal::IsEmptyMatcher>>::CastImpl<false>' requested here
  355 |     return CastImpl(polymorphic_matcher_or_value,
      |            ^
../llvm/third-party/unittest/googlemock/include/gmock/gmock-matchers.h:515:43: note: in instantiation of member function 'testing::internal::MatcherCastImpl<const llvm::iterator_range<llvm::EquivalenceClasses<int>::member_iterator> &, testing::PolymorphicMatcher<testing::internal::IsEmptyMatcher>>::Cast' requested here
  515 |   return internal::MatcherCastImpl<T, M>::Cast(matcher);
      |                                           ^
../llvm/third-party/unittest/googlemock/include/gmock/gmock-matchers.h:522:10: note: in instantiation of function template specialization 'testing::MatcherCast<const llvm::iterator_range<llvm::EquivalenceClasses<int>::member_iterator> &, testing::PolymorphicMatcher<testing::internal::IsEmptyMatcher>>' requested here
  522 |   return MatcherCast<T>(polymorphic_matcher_or_value);
      |          ^
../llvm/third-party/unittest/googlemock/include/gmock/gmock-matchers.h:1591:39: note: in instantiation of function template specialization 'testing::SafeMatcherCast<const llvm::iterator_range<llvm::EquivalenceClasses<int>::member_iterator> &, testing::PolymorphicMatcher<testing::internal::IsEmptyMatcher>>' requested here
 1591 |     const Matcher<const T&> matcher = SafeMatcherCast<const T&>(matcher_);
      |                                       ^
../llvm/llvm/unittests/ADT/EquivalenceClassesTest.cpp:80:3: note: in instantiation of function template specialization 'testing::internal::PredicateFormatterFromMatcher<testing::PolymorphicMatcher<testing::internal::IsEmptyMatcher>>::operator()<llvm::iterator_range<llvm::EquivalenceClasses<int>::member_iterator>>' requested here
   80 |   EXPECT_THAT(EC.members(EC.end()), testing::IsEmpty());
      |   ^
../llvm/third-party/unittest/googlemock/include/gmock/gmock-matchers.h:5495:3: note: expanded from macro 'EXPECT_THAT'
 5495 |   EXPECT_PRED_FORMAT1(              \
      |   ^
../llvm/third-party/unittest/googletest/include/gtest/gtest_pred_impl.h:109:3: note: expanded from macro 'EXPECT_PRED_FORMAT1'
  109 |   GTEST_PRED_FORMAT1_(pred_format, v1, GTEST_NONFATAL_FAILURE_)

@llvm-ci
Copy link
Collaborator

llvm-ci commented Mar 7, 2025

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

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

Here is the relevant piece of the build log for the reference
Step 7 (test-build-unified-tree-check-all) failure: test (failure)
...
[675/1149] Building CXX object unittests\ExecutionEngine\Orc\CMakeFiles\OrcJITTests.dir\LazyCallThroughAndReexportsTest.cpp.obj
[676/1149] Linking CXX executable unittests\Debuginfod\DebuginfodTests.exe
[677/1149] Building CXX object unittests\ExecutionEngine\Orc\CMakeFiles\OrcJITTests.dir\MemoryFlagsTest.cpp.obj
[678/1149] Building CXX object unittests\ExecutionEngine\Orc\CMakeFiles\OrcJITTests.dir\MapperJITLinkMemoryManagerTest.cpp.obj
[679/1149] Building CXX object unittests\ExecutionEngine\Orc\CMakeFiles\OrcJITTests.dir\MemoryMapperTest.cpp.obj
[680/1149] Building CXX object unittests\ExecutionEngine\Orc\CMakeFiles\OrcJITTests.dir\ObjectFormatsTest.cpp.obj
[681/1149] Building CXX object unittests\ExecutionEngine\Orc\CMakeFiles\OrcJITTests.dir\ObjectLinkingLayerTest.cpp.obj
[682/1149] Building CXX object unittests\ExecutionEngine\Orc\CMakeFiles\OrcJITTests.dir\OrcCAPITest.cpp.obj
[683/1149] Building CXX object unittests\ExecutionEngine\Orc\CMakeFiles\OrcJITTests.dir\OrcTestCommon.cpp.obj
[684/1149] Building CXX object unittests\ADT\CMakeFiles\ADTTests.dir\EquivalenceClassesTest.cpp.obj
FAILED: unittests/ADT/CMakeFiles/ADTTests.dir/EquivalenceClassesTest.cpp.obj 
C:\bin\ccache.exe C:\PROGRA~2\MICROS~1\2019\BUILDT~1\VC\Tools\MSVC\1429~1.301\bin\HostX64\x64\cl.exe  /nologo /TP -DGTEST_HAS_RTTI=0 -DLLVM_BUILD_STATIC -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 -Iunittests\ADT -IZ:\b\llvm-clang-x86_64-sie-win\llvm-project\llvm\unittests\ADT -Iinclude -IZ:\b\llvm-clang-x86_64-sie-win\llvm-project\llvm\include -IZ:\b\llvm-clang-x86_64-sie-win\llvm-project\third-party\unittest\googletest\include -IZ:\b\llvm-clang-x86_64-sie-win\llvm-project\third-party\unittest\googlemock\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  -MD  /EHs-c- /GR- -UNDEBUG -std:c++17 /showIncludes /Founittests\ADT\CMakeFiles\ADTTests.dir\EquivalenceClassesTest.cpp.obj /Fdunittests\ADT\CMakeFiles\ADTTests.dir\ /FS -c Z:\b\llvm-clang-x86_64-sie-win\llvm-project\llvm\unittests\ADT\EquivalenceClassesTest.cpp
Z:\b\llvm-clang-x86_64-sie-win\llvm-project\third-party\unittest\googlemock\include\gmock/gmock-more-matchers.h(73): error C2039: 'size': is not a member of 'llvm::iterator_range<llvm::EquivalenceClasses<int,std::less<ElemTy>>::member_iterator>'
        with
        [
            ElemTy=int
        ]
Z:\b\llvm-clang-x86_64-sie-win\llvm-project\llvm\include\llvm/ADT/EquivalenceClasses.h(182): note: see declaration of 'llvm::iterator_range<llvm::EquivalenceClasses<int,std::less<ElemTy>>::member_iterator>'
        with
        [
            ElemTy=int
        ]
Z:\b\llvm-clang-x86_64-sie-win\llvm-project\third-party\unittest\googletest\include\gtest/gtest-matchers.h(647): note: see reference to function template instantiation 'bool testing::internal::IsEmptyMatcher::MatchAndExplain<T>(const MatcheeContainerType &,testing::MatchResultListener *) const' being compiled
        with
        [
            T=llvm::iterator_range<llvm::EquivalenceClasses<int,std::less<int>>::member_iterator>,
            MatcheeContainerType=llvm::iterator_range<llvm::EquivalenceClasses<int,std::less<int>>::member_iterator>
        ]
Z:\b\llvm-clang-x86_64-sie-win\llvm-project\third-party\unittest\googletest\include\gtest/gtest-matchers.h(646): note: while compiling class template member function 'bool testing::PolymorphicMatcher<testing::internal::IsEmptyMatcher>::MonomorphicImpl<T>::MatchAndExplain(T,testing::MatchResultListener *) const'
        with
        [
            T=const llvm::iterator_range<llvm::EquivalenceClasses<int,std::less<int>>::member_iterator> &
        ]
Z:\b\llvm-clang-x86_64-sie-win\llvm-project\third-party\unittest\googletest\include\gtest/gtest-matchers.h(631): note: see reference to class template instantiation 'testing::PolymorphicMatcher<testing::internal::IsEmptyMatcher>::MonomorphicImpl<T>' being compiled
        with
        [
            T=const llvm::iterator_range<llvm::EquivalenceClasses<int,std::less<int>>::member_iterator> &
        ]
Z:\b\llvm-clang-x86_64-sie-win\llvm-project\third-party\unittest\googlemock\include\gmock/gmock-matchers.h(373): note: see reference to function template instantiation 'testing::PolymorphicMatcher<testing::internal::IsEmptyMatcher>::operator testing::Matcher<const T &>(void) const<const T&>' being compiled
        with
        [
            T=llvm::iterator_range<llvm::EquivalenceClasses<int,std::less<int>>::member_iterator>
        ]
Z:\b\llvm-clang-x86_64-sie-win\llvm-project\third-party\unittest\googlemock\include\gmock/gmock-matchers.h(373): note: see reference to function template instantiation 'testing::PolymorphicMatcher<testing::internal::IsEmptyMatcher>::operator testing::Matcher<const T &>(void) const<const T&>' being compiled
        with
        [
            T=llvm::iterator_range<llvm::EquivalenceClasses<int,std::less<int>>::member_iterator>
        ]
Z:\b\llvm-clang-x86_64-sie-win\llvm-project\third-party\unittest\googlemock\include\gmock/gmock-matchers.h(357): note: see reference to function template instantiation 'testing::Matcher<const T &> testing::internal::MatcherCastImpl<const llvm::iterator_range<llvm::EquivalenceClasses<int,std::less<ElemTy>>::member_iterator>&,M>::CastImpl<false>(const M &,std::true_type,std::integral_constant<bool,false>)' being compiled

@llvm-ci
Copy link
Collaborator

llvm-ci commented Mar 7, 2025

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

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

Here is the relevant piece of the build log for the reference
Step 7 (test-build-unified-tree-check-llvm) failure: test (failure)
...
[178/763] Building RC object unittests\ExecutionEngine\CMakeFiles\ExecutionEngineTests.dir\__\__\resources\windows_version_resource.rc.res
[179/763] Linking CXX executable unittests\BinaryFormat\BinaryFormatTests.exe
[180/763] Linking CXX executable unittests\AsmParser\AsmParserTests.exe
[181/763] Building CXX object unittests\CodeGen\CMakeFiles\CodeGenTests.dir\ScalableVectorMVTsTest.cpp.obj
[182/763] Building CXX object unittests\DebugInfo\DWARF\CMakeFiles\DebugInfoDWARFTests.dir\DwarfUtils.cpp.obj
[183/763] Building CXX object unittests\DebugInfo\CodeView\CMakeFiles\DebugInfoCodeViewTests.dir\GUIDFormatTest.cpp.obj
[184/763] Building CXX object unittests\DebugInfo\LogicalView\CMakeFiles\DebugInfoLogicalViewTests.dir\__\DWARF\DwarfUtils.cpp.obj
[185/763] Building CXX object unittests\DebugInfo\LogicalView\CMakeFiles\DebugInfoLogicalViewTests.dir\StringPoolTest.cpp.obj
[186/763] Building RC object unittests\ExecutionEngine\JITLink\CMakeFiles\JITLinkTests.dir\__\__\__\resources\windows_version_resource.rc.res
[187/763] Building CXX object unittests\ADT\CMakeFiles\ADTTests.dir\EquivalenceClassesTest.cpp.obj
FAILED: unittests/ADT/CMakeFiles/ADTTests.dir/EquivalenceClassesTest.cpp.obj 
C:\ninja\ccache.exe C:\PROGRA~1\MICROS~2\2022\COMMUN~1\VC\Tools\MSVC\1443~1.348\bin\Hostx64\x64\cl.exe  /nologo /TP -DGTEST_HAS_RTTI=0 -DLLVM_BUILD_STATIC -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-8\llvm-nvptx64-nvidia-win\build\unittests\ADT -IC:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\llvm-project\llvm\unittests\ADT -IC:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\build\include -IC:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\llvm-project\llvm\include -IC:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\llvm-project\third-party\unittest\googletest\include -IC:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\llvm-project\third-party\unittest\googlemock\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  -MD  /EHs-c- /GR- -UNDEBUG -std:c++17 /showIncludes /Founittests\ADT\CMakeFiles\ADTTests.dir\EquivalenceClassesTest.cpp.obj /Fdunittests\ADT\CMakeFiles\ADTTests.dir\ /FS -c C:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\llvm-project\llvm\unittests\ADT\EquivalenceClassesTest.cpp
C:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\llvm-project\third-party\unittest\googlemock\include\gmock/gmock-more-matchers.h(73): error C2039: 'size': is not a member of 'llvm::iterator_range<llvm::EquivalenceClasses<int,std::less<int>>::member_iterator>'
C:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\llvm-project\llvm\include\llvm/ADT/iterator_range.h(42): note: see declaration of 'llvm::iterator_range<llvm::EquivalenceClasses<int,std::less<int>>::member_iterator>'
C:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\llvm-project\third-party\unittest\googlemock\include\gmock/gmock-more-matchers.h(73): note: the template instantiation context (the oldest one first) is
C:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\llvm-project\llvm\unittests\ADT\EquivalenceClassesTest.cpp(80): note: see reference to function template instantiation 'testing::AssertionResult testing::internal::PredicateFormatterFromMatcher<testing::PolymorphicMatcher<testing::internal::IsEmptyMatcher>>::operator ()<llvm::iterator_range<llvm::EquivalenceClasses<int,std::less<int>>::member_iterator>>(const char *,const T &) const' being compiled
        with
        [
            T=llvm::iterator_range<llvm::EquivalenceClasses<int,std::less<int>>::member_iterator>
        ]
C:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\llvm-project\llvm\unittests\ADT\EquivalenceClassesTest.cpp(80): note: see the first reference to 'testing::internal::PredicateFormatterFromMatcher<testing::PolymorphicMatcher<testing::internal::IsEmptyMatcher>>::operator ()' in 'llvm::EquivalenceClassesTest_MembersIterator_Test::TestBody'
C:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\llvm-project\third-party\unittest\googlemock\include\gmock/gmock-matchers.h(1591): note: see reference to function template instantiation 'testing::Matcher<const llvm::iterator_range<llvm::EquivalenceClasses<int,std::less<int>>::member_iterator> &> testing::SafeMatcherCast<const llvm::iterator_range<llvm::EquivalenceClasses<int,std::less<int>>::member_iterator>&,M>(const M &)' being compiled
        with
        [
            M=testing::PolymorphicMatcher<testing::internal::IsEmptyMatcher>
        ]
C:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\llvm-project\third-party\unittest\googlemock\include\gmock/gmock-matchers.h(522): note: see reference to function template instantiation 'testing::Matcher<const llvm::iterator_range<llvm::EquivalenceClasses<int,std::less<int>>::member_iterator> &> testing::MatcherCast<const llvm::iterator_range<llvm::EquivalenceClasses<int,std::less<int>>::member_iterator>&,M>(const M &)' being compiled
        with
        [
            M=testing::PolymorphicMatcher<testing::internal::IsEmptyMatcher>
        ]
C:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\llvm-project\third-party\unittest\googlemock\include\gmock/gmock-matchers.h(515): note: see reference to class template instantiation 'testing::internal::MatcherCastImpl<const llvm::iterator_range<llvm::EquivalenceClasses<int,std::less<int>>::member_iterator> &,M>' being compiled
        with
        [
            M=testing::PolymorphicMatcher<testing::internal::IsEmptyMatcher>
        ]
C:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\llvm-project\third-party\unittest\googlemock\include\gmock/gmock-matchers.h(341): note: while compiling class template member function 'testing::Matcher<const llvm::iterator_range<llvm::EquivalenceClasses<int,std::less<int>>::member_iterator> &> testing::internal::MatcherCastImpl<const llvm::iterator_range<llvm::EquivalenceClasses<int,std::less<int>>::member_iterator> &,M>::Cast(const M &)'
        with
        [
            M=testing::PolymorphicMatcher<testing::internal::IsEmptyMatcher>
        ]
C:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\llvm-project\third-party\unittest\googlemock\include\gmock/gmock-matchers.h(515): note: see the first reference to 'testing::internal::MatcherCastImpl<const llvm::iterator_range<llvm::EquivalenceClasses<int,std::less<int>>::member_iterator> &,M>::Cast' in 'testing::MatcherCast'
        with
        [
            M=testing::PolymorphicMatcher<testing::internal::IsEmptyMatcher>
        ]
C:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\llvm-project\third-party\unittest\googlemock\include\gmock/gmock-matchers.h(522): note: see the first reference to 'testing::MatcherCast' in 'testing::SafeMatcherCast'
C:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\llvm-project\third-party\unittest\googlemock\include\gmock/gmock-matchers.h(1591): note: see the first reference to 'testing::SafeMatcherCast' in 'testing::internal::PredicateFormatterFromMatcher<testing::PolymorphicMatcher<testing::internal::IsEmptyMatcher>>::operator ()'
C:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\llvm-project\llvm\unittests\ADT\EquivalenceClassesTest.cpp(80): note: see the first reference to 'testing::internal::PredicateFormatterFromMatcher<testing::PolymorphicMatcher<testing::internal::IsEmptyMatcher>>::operator ()' in 'llvm::EquivalenceClassesTest_MembersIterator_Test::TestBody'

@llvm-ci
Copy link
Collaborator

llvm-ci commented Mar 7, 2025

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

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

Here is the relevant piece of the build log for the reference
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
...
28.097 [606/17/589] Building CXX object unittests/Analysis/CMakeFiles/AnalysisTests.dir/ValueLatticeTest.cpp.o
28.118 [605/17/590] Building CXX object unittests/Analysis/CMakeFiles/AnalysisTests.dir/ValueTrackingTest.cpp.o
28.921 [604/17/591] Linking CXX executable tools/clang/unittests/Support/ClangSupportTests
28.976 [603/17/592] Building CXX object unittests/AsmParser/CMakeFiles/AsmParserTests.dir/AsmParserTest.cpp.o
29.060 [602/17/593] Linking CXX executable tools/clang/unittests/Index/IndexTests
29.119 [601/17/594] Building CXX object unittests/BinaryFormat/CMakeFiles/BinaryFormatTests.dir/DwarfTest.cpp.o
29.153 [600/17/595] Building CXX object unittests/BinaryFormat/CMakeFiles/BinaryFormatTests.dir/ELFTest.cpp.o
29.213 [599/17/596] Building CXX object unittests/BinaryFormat/CMakeFiles/BinaryFormatTests.dir/MachOTest.cpp.o
29.259 [598/17/597] Building CXX object unittests/BinaryFormat/CMakeFiles/BinaryFormatTests.dir/MsgPackDocumentTest.cpp.o
29.263 [597/17/598] Building CXX object unittests/ADT/CMakeFiles/ADTTests.dir/EquivalenceClassesTest.cpp.o
FAILED: unittests/ADT/CMakeFiles/ADTTests.dir/EquivalenceClassesTest.cpp.o 
ccache /usr/bin/clang++-17 -DGTEST_HAS_RTTI=0 -DLLVM_BUILD_STATIC -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/vol/worker/clang-debian-cpp20/clang-debian-cpp20/build/unittests/ADT -I/vol/worker/clang-debian-cpp20/clang-debian-cpp20/llvm-project/llvm/unittests/ADT -I/vol/worker/clang-debian-cpp20/clang-debian-cpp20/build/include -I/vol/worker/clang-debian-cpp20/clang-debian-cpp20/llvm-project/llvm/include -I/vol/worker/clang-debian-cpp20/clang-debian-cpp20/llvm-project/third-party/unittest/googletest/include -I/vol/worker/clang-debian-cpp20/clang-debian-cpp20/llvm-project/third-party/unittest/googlemock/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 -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=c++20  -Wno-variadic-macros -Wno-gnu-zero-variadic-macro-arguments -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -Wno-suggest-override -MD -MT unittests/ADT/CMakeFiles/ADTTests.dir/EquivalenceClassesTest.cpp.o -MF unittests/ADT/CMakeFiles/ADTTests.dir/EquivalenceClassesTest.cpp.o.d -o unittests/ADT/CMakeFiles/ADTTests.dir/EquivalenceClassesTest.cpp.o -c /vol/worker/clang-debian-cpp20/clang-debian-cpp20/llvm-project/llvm/unittests/ADT/EquivalenceClassesTest.cpp
In file included from /vol/worker/clang-debian-cpp20/clang-debian-cpp20/llvm-project/llvm/unittests/ADT/EquivalenceClassesTest.cpp:10:
In file included from /vol/worker/clang-debian-cpp20/clang-debian-cpp20/llvm-project/third-party/unittest/googlemock/include/gmock/gmock.h:61:
/vol/worker/clang-debian-cpp20/clang-debian-cpp20/llvm-project/third-party/unittest/googlemock/include/gmock/gmock-more-matchers.h:73:40: error: no member named 'size' in 'llvm::iterator_range<llvm::EquivalenceClasses<int>::member_iterator>'
   73 |     *listener << "whose size is " << c.size();
      |                                      ~ ^
/vol/worker/clang-debian-cpp20/clang-debian-cpp20/llvm-project/third-party/unittest/googletest/include/gtest/gtest-matchers.h:647:20: note: in instantiation of function template specialization 'testing::internal::IsEmptyMatcher::MatchAndExplain<llvm::iterator_range<llvm::EquivalenceClasses<int>::member_iterator>>' requested here
  647 |       return impl_.MatchAndExplain(x, listener);
      |                    ^
/vol/worker/clang-debian-cpp20/clang-debian-cpp20/llvm-project/third-party/unittest/googletest/include/gtest/gtest-matchers.h:636:9: note: in instantiation of member function 'testing::PolymorphicMatcher<testing::internal::IsEmptyMatcher>::MonomorphicImpl<const llvm::iterator_range<llvm::EquivalenceClasses<int>::member_iterator> &>::MatchAndExplain' requested here
  636 |   class MonomorphicImpl : public MatcherInterface<T> {
      |         ^
/vol/worker/clang-debian-cpp20/clang-debian-cpp20/llvm-project/third-party/unittest/googlemock/include/gmock/gmock-matchers.h:373:12: note: in instantiation of function template specialization 'testing::PolymorphicMatcher<testing::internal::IsEmptyMatcher>::operator Matcher<const llvm::iterator_range<llvm::EquivalenceClasses<int>::member_iterator> &>' requested here
  373 |     return polymorphic_matcher_or_value;
      |            ^
/vol/worker/clang-debian-cpp20/clang-debian-cpp20/llvm-project/third-party/unittest/googlemock/include/gmock/gmock-matchers.h:355:12: note: in instantiation of function template specialization 'testing::internal::MatcherCastImpl<const llvm::iterator_range<llvm::EquivalenceClasses<int>::member_iterator> &, testing::PolymorphicMatcher<testing::internal::IsEmptyMatcher>>::CastImpl<false>' requested here
  355 |     return CastImpl(polymorphic_matcher_or_value,
      |            ^
/vol/worker/clang-debian-cpp20/clang-debian-cpp20/llvm-project/third-party/unittest/googlemock/include/gmock/gmock-matchers.h:515:43: note: in instantiation of member function 'testing::internal::MatcherCastImpl<const llvm::iterator_range<llvm::EquivalenceClasses<int>::member_iterator> &, testing::PolymorphicMatcher<testing::internal::IsEmptyMatcher>>::Cast' requested here
  515 |   return internal::MatcherCastImpl<T, M>::Cast(matcher);
      |                                           ^
/vol/worker/clang-debian-cpp20/clang-debian-cpp20/llvm-project/third-party/unittest/googlemock/include/gmock/gmock-matchers.h:522:10: note: in instantiation of function template specialization 'testing::MatcherCast<const llvm::iterator_range<llvm::EquivalenceClasses<int>::member_iterator> &, testing::PolymorphicMatcher<testing::internal::IsEmptyMatcher>>' requested here
  522 |   return MatcherCast<T>(polymorphic_matcher_or_value);
      |          ^
/vol/worker/clang-debian-cpp20/clang-debian-cpp20/llvm-project/third-party/unittest/googlemock/include/gmock/gmock-matchers.h:1591:39: note: in instantiation of function template specialization 'testing::SafeMatcherCast<const llvm::iterator_range<llvm::EquivalenceClasses<int>::member_iterator> &, testing::PolymorphicMatcher<testing::internal::IsEmptyMatcher>>' requested here
 1591 |     const Matcher<const T&> matcher = SafeMatcherCast<const T&>(matcher_);
      |                                       ^
/vol/worker/clang-debian-cpp20/clang-debian-cpp20/llvm-project/llvm/unittests/ADT/EquivalenceClassesTest.cpp:80:3: note: in instantiation of function template specialization 'testing::internal::PredicateFormatterFromMatcher<testing::PolymorphicMatcher<testing::internal::IsEmptyMatcher>>::operator()<llvm::iterator_range<llvm::EquivalenceClasses<int>::member_iterator>>' requested here
   80 |   EXPECT_THAT(EC.members(EC.end()), testing::IsEmpty());
      |   ^
/vol/worker/clang-debian-cpp20/clang-debian-cpp20/llvm-project/third-party/unittest/googlemock/include/gmock/gmock-matchers.h:5495:3: note: expanded from macro 'EXPECT_THAT'
 5495 |   EXPECT_PRED_FORMAT1(              \
      |   ^
/vol/worker/clang-debian-cpp20/clang-debian-cpp20/llvm-project/third-party/unittest/googletest/include/gtest/gtest_pred_impl.h:109:3: note: expanded from macro 'EXPECT_PRED_FORMAT1'
  109 |   GTEST_PRED_FORMAT1_(pred_format, v1, GTEST_NONFATAL_FAILURE_)
      |   ^
/vol/worker/clang-debian-cpp20/clang-debian-cpp20/llvm-project/third-party/unittest/googletest/include/gtest/gtest_pred_impl.h:100:28: note: expanded from macro 'GTEST_PRED_FORMAT1_'
  100 |   GTEST_ASSERT_(pred_format(#v1, v1), on_failure)

@llvm-ci
Copy link
Collaborator

llvm-ci commented Mar 7, 2025

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

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

Here is the relevant piece of the build log for the reference
Step 7 (ninja check 1) failure: stage 1 checked (failure)
...
Call Stack (most recent call first):
  /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/compiler-rt/CMakeLists.txt:12 (include)


-- Compiler-RT supported architectures: x86_64;i386
-- check-shadowcallstack does nothing.
-- Configuring done (2.0s)
-- Generating done (0.5s)
-- Build files have been written to: /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/stage1/runtimes/runtimes-bins
[38/129] Building CXX object unittests/ADT/CMakeFiles/ADTTests.dir/EquivalenceClassesTest.cpp.o
FAILED: unittests/ADT/CMakeFiles/ADTTests.dir/EquivalenceClassesTest.cpp.o 
/usr/bin/c++ -DGTEST_HAS_RTTI=0 -DLLVM_BUILD_STATIC -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/stage1/unittests/ADT -I/localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/llvm/unittests/ADT -I/localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/stage1/include -I/localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/llvm/include -I/localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/third-party/unittest/googletest/include -I/localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/third-party/unittest/googlemock/include -march=cascadelake -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -fno-lifetime-dse -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=c++17  -Wno-dangling-else -Wno-variadic-macros -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -Wno-suggest-override -MD -MT unittests/ADT/CMakeFiles/ADTTests.dir/EquivalenceClassesTest.cpp.o -MF unittests/ADT/CMakeFiles/ADTTests.dir/EquivalenceClassesTest.cpp.o.d -o unittests/ADT/CMakeFiles/ADTTests.dir/EquivalenceClassesTest.cpp.o -c /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/llvm/unittests/ADT/EquivalenceClassesTest.cpp
In file included from /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/third-party/unittest/googlemock/include/gmock/gmock.h:61,
                 from /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/llvm/unittests/ADT/EquivalenceClassesTest.cpp:10:
/localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/third-party/unittest/googlemock/include/gmock/gmock-more-matchers.h: In instantiation of ‘bool testing::internal::IsEmptyMatcher::MatchAndExplain(const MatcheeContainerType&, testing::MatchResultListener*) const [with MatcheeContainerType = llvm::iterator_range<llvm::EquivalenceClasses<int>::member_iterator>]’:
/localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/third-party/unittest/googletest/include/gtest/gtest-matchers.h:647:35:   required from ‘bool testing::PolymorphicMatcher<Impl>::MonomorphicImpl<T>::MatchAndExplain(T, testing::MatchResultListener*) const [with T = const llvm::iterator_range<llvm::EquivalenceClasses<int>::member_iterator>&; Impl = testing::internal::IsEmptyMatcher]’
/localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/third-party/unittest/googletest/include/gtest/gtest-matchers.h:646:10:   required from here
/localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/third-party/unittest/googlemock/include/gmock/gmock-more-matchers.h:73:40: error: ‘const class llvm::iterator_range<llvm::EquivalenceClasses<int>::member_iterator>’ has no member named ‘size’
   73 |     *listener << "whose size is " << c.size();
      |                                      ~~^~~~
[39/129] cd /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/clang/bindings/python && /usr/bin/cmake -E env CLANG_NO_DEFAULT_CONFIG=1 CLANG_LIBRARY_PATH=/localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/stage1/lib /localdisk2/buildbot/sandbox/bin/python3.9 -m unittest discover
..........................................................................................................................................................
----------------------------------------------------------------------
Ran 154 tests in 2.418s

OK
[41/129] Linking CXX executable unittests/Transforms/IPO/IPOTests
[42/129] Linking CXX executable unittests/Target/TargetMachineCTests
[43/129] Linking CXX executable unittests/CodeGen/GlobalISel/GlobalISelTests
[44/129] Linking CXX executable unittests/MIR/MIRTests
[45/129] Linking CXX executable unittests/DebugInfo/DWARF/DebugInfoDWARFTests
[46/129] Linking CXX executable unittests/MI/MITests
[47/129] Linking CXX executable tools/clang/unittests/Lex/LexTests
[48/129] Linking CXX executable unittests/DebugInfo/LogicalView/DebugInfoLogicalViewTests
[49/129] Linking CXX executable unittests/ExecutionEngine/Orc/OrcJITTests
[50/129] Linking CXX executable tools/clang/unittests/Index/IndexTests
[51/129] Linking CXX executable tools/clang/unittests/Support/ClangSupportTests
[52/129] Linking CXX executable tools/clang/unittests/Tooling/Syntax/SyntaxTests
[53/129] Linking CXX executable unittests/Passes/PassBuilderBindings/PassesBindingsTests
[54/129] Linking CXX executable tools/clang/unittests/Sema/SemaTests
[55/129] Linking CXX executable tools/clang/unittests/CrossTU/CrossTUTests
[56/129] Linking CXX executable tools/clang/unittests/AST/ByteCode/InterpTests
[57/129] Linking CXX executable tools/clang/unittests/ASTMatchers/Dynamic/DynamicASTMatchersTests
[58/129] Linking CXX executable tools/clang/unittests/Serialization/SerializationTests
[59/129] Linking CXX executable tools/clang/unittests/Analysis/ClangAnalysisTests
[60/129] Linking CXX executable tools/clang/unittests/Analysis/FlowSensitive/ClangAnalysisFlowSensitiveTests
[61/129] Building CXX object unittests/Analysis/CMakeFiles/AnalysisTests.dir/DDGTest.cpp.o
[62/129] Linking CXX executable unittests/ExecutionEngine/MCJIT/MCJITTests
[63/129] Linking CXX executable tools/clang/unittests/Rewrite/RewriteTests

@llvm-ci
Copy link
Collaborator

llvm-ci commented Mar 7, 2025

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

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

Here is the relevant piece of the build log for the reference
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
...
23.377 [674/26/51] Building CXX object unittests/ADT/CMakeFiles/ADTTests.dir/BumpPtrListTest.cpp.o
23.731 [673/26/52] Building CXX object unittests/ADT/CMakeFiles/ADTTests.dir/DAGDeltaAlgorithmTest.cpp.o
23.761 [672/26/53] Building CXX object unittests/XRay/CMakeFiles/XRayTests.dir/ProfileTest.cpp.o
24.048 [671/26/54] Building CXX object unittests/ADT/CMakeFiles/ADTTests.dir/DeltaAlgorithmTest.cpp.o
24.175 [670/26/55] Building CXX object unittests/ADT/CMakeFiles/ADTTests.dir/DepthFirstIteratorTest.cpp.o
24.388 [669/26/56] Building CXX object unittests/tools/llvm-mca/CMakeFiles/LLVMMCATests.dir/X86/TestIncrementalMCA.cpp.o
24.581 [668/26/57] Building CXX object unittests/ExecutionEngine/Orc/CMakeFiles/OrcJITTests.dir/JITLinkRedirectionManagerTest.cpp.o
25.015 [667/26/58] Building CXX object unittests/ADT/CMakeFiles/ADTTests.dir/EditDistanceTest.cpp.o
25.219 [666/26/59] Building CXX object unittests/ADT/CMakeFiles/ADTTests.dir/CombinationGeneratorTest.cpp.o
25.441 [665/26/60] Building CXX object unittests/ADT/CMakeFiles/ADTTests.dir/EquivalenceClassesTest.cpp.o
FAILED: unittests/ADT/CMakeFiles/ADTTests.dir/EquivalenceClassesTest.cpp.o 
ccache /usr/bin/c++ -DGTEST_HAS_RTTI=0 -DLLVM_BUILD_STATIC -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/b/ml-opt-devrel-x86-64-b1/build/unittests/ADT -I/b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/unittests/ADT -I/var/lib/buildbot/.local/lib/python3.7/site-packages/tensorflow/include -I/b/ml-opt-devrel-x86-64-b1/build/include -I/b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/include -I/b/ml-opt-devrel-x86-64-b1/llvm-project/third-party/unittest/googletest/include -I/b/ml-opt-devrel-x86-64-b1/llvm-project/third-party/unittest/googlemock/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -fno-lifetime-dse -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG  -Wno-dangling-else -Wno-variadic-macros -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -Wno-suggest-override -std=c++17 -MD -MT unittests/ADT/CMakeFiles/ADTTests.dir/EquivalenceClassesTest.cpp.o -MF unittests/ADT/CMakeFiles/ADTTests.dir/EquivalenceClassesTest.cpp.o.d -o unittests/ADT/CMakeFiles/ADTTests.dir/EquivalenceClassesTest.cpp.o -c /b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/unittests/ADT/EquivalenceClassesTest.cpp
In file included from /b/ml-opt-devrel-x86-64-b1/llvm-project/third-party/unittest/googlemock/include/gmock/gmock.h:61,
                 from /b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/unittests/ADT/EquivalenceClassesTest.cpp:10:
/b/ml-opt-devrel-x86-64-b1/llvm-project/third-party/unittest/googlemock/include/gmock/gmock-more-matchers.h: In instantiation of ‘bool testing::internal::IsEmptyMatcher::MatchAndExplain(const MatcheeContainerType&, testing::MatchResultListener*) const [with MatcheeContainerType = llvm::iterator_range<llvm::EquivalenceClasses<int>::member_iterator>]’:
/b/ml-opt-devrel-x86-64-b1/llvm-project/third-party/unittest/googletest/include/gtest/gtest-matchers.h:647:35:   required from ‘bool testing::PolymorphicMatcher<Impl>::MonomorphicImpl<T>::MatchAndExplain(T, testing::MatchResultListener*) const [with T = const llvm::iterator_range<llvm::EquivalenceClasses<int>::member_iterator>&; Impl = testing::internal::IsEmptyMatcher]’
/b/ml-opt-devrel-x86-64-b1/llvm-project/third-party/unittest/googletest/include/gtest/gtest-matchers.h:646:10:   required from here
/b/ml-opt-devrel-x86-64-b1/llvm-project/third-party/unittest/googlemock/include/gmock/gmock-more-matchers.h:73:40: error: ‘const class llvm::iterator_range<llvm::EquivalenceClasses<int>::member_iterator>’ has no member named ‘size’
   73 |     *listener << "whose size is " << c.size();
      |                                      ~~^~~~
25.674 [665/25/61] Building CXX object unittests/TargetParser/CMakeFiles/TargetParserTests.dir/CSKYTargetParserTest.cpp.o
25.687 [665/24/62] Building CXX object unittests/ADT/CMakeFiles/ADTTests.dir/ConcurrentHashtableTest.cpp.o
26.631 [665/23/63] Building CXX object unittests/ADT/CMakeFiles/ADTTests.dir/FunctionRefTest.cpp.o
26.967 [665/22/64] Building CXX object unittests/Target/AMDGPU/CMakeFiles/AMDGPUTests.dir/DwarfRegMappings.cpp.o
27.112 [665/21/65] Building CXX object unittests/ADT/CMakeFiles/ADTTests.dir/DirectedGraphTest.cpp.o
27.328 [665/20/66] Building CXX object unittests/ADT/CMakeFiles/ADTTests.dir/CoalescingBitVectorTest.cpp.o
27.469 [665/19/67] Building CXX object unittests/ExecutionEngine/Orc/CMakeFiles/OrcJITTests.dir/ReOptimizeLayerTest.cpp.o
27.609 [665/18/68] Building CXX object unittests/TargetParser/CMakeFiles/TargetParserTests.dir/RISCVISAInfoTest.cpp.o
27.621 [665/17/69] Building CXX object unittests/ExecutionEngine/Orc/CMakeFiles/OrcJITTests.dir/CoreAPIsTest.cpp.o
27.777 [665/16/70] Building CXX object third-party/unittest/CMakeFiles/llvm_gtest.dir/googletest/src/gtest-all.cc.o
27.846 [665/15/71] Building CXX object unittests/ADT/CMakeFiles/ADTTests.dir/EnumeratedArrayTest.cpp.o
27.876 [665/14/72] Building CXX object unittests/ADT/CMakeFiles/ADTTests.dir/FloatingPointMode.cpp.o
28.046 [665/13/73] Building CXX object unittests/ADT/CMakeFiles/ADTTests.dir/IListIteratorBitsTest.cpp.o
28.070 [665/12/74] Building CXX object unittests/ADT/CMakeFiles/ADTTests.dir/FoldingSet.cpp.o
28.639 [665/11/75] Building CXX object unittests/ADT/CMakeFiles/ADTTests.dir/IListIteratorTest.cpp.o
28.931 [665/10/76] Building CXX object unittests/ADT/CMakeFiles/ADTTests.dir/IListBaseTest.cpp.o
29.009 [665/9/77] Building CXX object unittests/ADT/CMakeFiles/ADTTests.dir/FunctionExtrasTest.cpp.o
29.049 [665/8/78] Building CXX object unittests/ADT/CMakeFiles/ADTTests.dir/FallibleIteratorTest.cpp.o
29.379 [665/7/79] Building CXX object unittests/ADT/CMakeFiles/ADTTests.dir/HashingTest.cpp.o
29.560 [665/6/80] Building CXX object unittests/ADT/CMakeFiles/ADTTests.dir/DenseSetTest.cpp.o
30.505 [665/5/81] Building CXX object unittests/ADT/CMakeFiles/ADTTests.dir/DynamicAPIntTest.cpp.o
33.177 [665/4/82] Building CXX object unittests/ADT/CMakeFiles/ADTTests.dir/BitVectorTest.cpp.o
37.857 [665/3/83] Building CXX object unittests/ADT/CMakeFiles/ADTTests.dir/APIntTest.cpp.o
40.846 [665/2/84] Building CXX object unittests/ADT/CMakeFiles/ADTTests.dir/DenseMapTest.cpp.o
48.118 [665/1/85] Building CXX object unittests/ADT/CMakeFiles/ADTTests.dir/APFloatTest.cpp.o
ninja: build stopped: subcommand failed.

@kuhar
Copy link
Member

kuhar commented Mar 7, 2025

@artagnon there are test failures around .size()

@llvm-ci
Copy link
Collaborator

llvm-ci commented Mar 7, 2025

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

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

Here is the relevant piece of the build log for the reference
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
...
2.940 [58/66/631] Building CXX object unittests/XRay/CMakeFiles/XRayTests.dir/FDRBlockVerifierTest.cpp.o
2.954 [57/66/632] Linking CXX executable unittests/FuzzMutate/FuzzMutateTests
2.966 [56/66/633] Building CXX object unittests/XRay/CMakeFiles/XRayTests.dir/FDRProducerConsumerTest.cpp.o
2.973 [55/66/634] Linking CXX executable unittests/Support/SupportTests
2.990 [54/66/635] Building CXX object unittests/XRay/CMakeFiles/XRayTests.dir/FDRRecordPrinterTest.cpp.o
2.996 [53/66/636] Building CXX object unittests/XRay/CMakeFiles/XRayTests.dir/FDRTraceWriterTest.cpp.o
3.011 [52/66/637] Building CXX object unittests/XRay/CMakeFiles/XRayTests.dir/GraphTest.cpp.o
3.012 [51/66/638] Building CXX object unittests/XRay/CMakeFiles/XRayTests.dir/FDRRecordsTest.cpp.o
3.021 [50/66/639] Building CXX object unittests/XRay/CMakeFiles/XRayTests.dir/ProfileTest.cpp.o
3.029 [49/66/640] Building CXX object unittests/ADT/CMakeFiles/ADTTests.dir/EquivalenceClassesTest.cpp.o
FAILED: unittests/ADT/CMakeFiles/ADTTests.dir/EquivalenceClassesTest.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes /usr/bin/ccache /usr/bin/c++ -DGTEST_HAS_RTTI=0 -DLLVM_BUILD_STATIC -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/build/unittests/ADT -I/home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/unittests/ADT -I/home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/build/include -I/home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/include -I/home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/third-party/unittest/googletest/include -I/home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/third-party/unittest/googlemock/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -fno-lifetime-dse -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG  -Wno-dangling-else -Wno-variadic-macros -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -Wno-suggest-override -std=c++17 -MD -MT unittests/ADT/CMakeFiles/ADTTests.dir/EquivalenceClassesTest.cpp.o -MF unittests/ADT/CMakeFiles/ADTTests.dir/EquivalenceClassesTest.cpp.o.d -o unittests/ADT/CMakeFiles/ADTTests.dir/EquivalenceClassesTest.cpp.o -c /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/unittests/ADT/EquivalenceClassesTest.cpp
In file included from /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/third-party/unittest/googlemock/include/gmock/gmock.h:61,
                 from /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/unittests/ADT/EquivalenceClassesTest.cpp:10:
/home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/third-party/unittest/googlemock/include/gmock/gmock-more-matchers.h: In instantiation of ‘bool testing::internal::IsEmptyMatcher::MatchAndExplain(const MatcheeContainerType&, testing::MatchResultListener*) const [with MatcheeContainerType = llvm::iterator_range<llvm::EquivalenceClasses<int>::member_iterator>]’:
/home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/third-party/unittest/googletest/include/gtest/gtest-matchers.h:647:35:   required from ‘bool testing::PolymorphicMatcher<Impl>::MonomorphicImpl<T>::MatchAndExplain(T, testing::MatchResultListener*) const [with T = const llvm::iterator_range<llvm::EquivalenceClasses<int>::member_iterator>&; Impl = testing::internal::IsEmptyMatcher]’
/home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/third-party/unittest/googletest/include/gtest/gtest-matchers.h:646:10:   required from here
/home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/third-party/unittest/googlemock/include/gmock/gmock-more-matchers.h:73:40: error: ‘const class llvm::iterator_range<llvm::EquivalenceClasses<int>::member_iterator>’ has no member named ‘size’
   73 |     *listener << "whose size is " << c.size();
      |                                      ~~^~~~
3.043 [49/65/641] Building CXX object unittests/tools/llvm-cfi-verify/CMakeFiles/CFIVerifyTests.dir/GraphBuilder.cpp.o
3.056 [49/64/642] Building CXX object unittests/tools/llvm-cfi-verify/CMakeFiles/CFIVerifyTests.dir/FileAnalysis.cpp.o
3.178 [49/63/643] Linking CXX executable unittests/ProfileData/ProfileDataTests
3.639 [49/62/644] Linking CXX executable unittests/XRay/XRayTests
3.802 [49/61/645] Linking CXX executable unittests/MC/MCTests
4.847 [49/60/646] Linking CXX executable unittests/Transforms/IPO/IPOTests
6.224 [49/59/647] Linking CXX executable unittests/Target/WebAssembly/WebAssemblyTests
6.463 [49/58/648] Linking CXX executable unittests/Target/PowerPC/PowerPCTests
6.866 [49/57/649] Linking CXX executable unittests/Target/ARM/ARMTests
6.889 [49/56/650] Linking CXX executable unittests/Target/LoongArch/LoongArchTests
7.043 [49/55/651] Linking CXX executable unittests/Target/VE/VETests
7.545 [49/54/652] Linking CXX executable unittests/Target/SPIRV/SPIRVTests
7.671 [49/53/653] Linking CXX executable unittests/Target/RISCV/RISCVTests
7.889 [49/52/654] Linking CXX executable unittests/Target/AArch64/AArch64Tests
8.368 [49/51/655] Linking CXX executable unittests/Passes/PassBuilderBindings/PassesBindingsTests
8.491 [49/50/656] Linking CXX executable unittests/ExecutionEngine/Orc/OrcJITTests
8.593 [49/49/657] Building CXX object unittests/Analysis/CMakeFiles/AnalysisTests.dir/DDGTest.cpp.o
9.219 [49/48/658] Building CXX object unittests/Transforms/Utils/CMakeFiles/UtilsTests.dir/LoopUtilsTest.cpp.o
10.121 [49/47/659] Linking CXX executable unittests/MC/AMDGPU/AMDGPUMCTests
10.608 [49/46/660] Linking CXX executable unittests/ExecutionEngine/MCJIT/MCJITTests
11.260 [49/45/661] Building CXX object unittests/Analysis/CMakeFiles/AnalysisTests.dir/VectorUtilsTest.cpp.o
11.531 [49/44/662] Building CXX object unittests/Analysis/CMakeFiles/AnalysisTests.dir/ReplaceWithVecLibTest.cpp.o
11.967 [49/43/663] Building CXX object unittests/Transforms/Vectorize/CMakeFiles/VectorizeTests.dir/VPlanHCFGTest.cpp.o
12.197 [49/42/664] Building CXX object unittests/Analysis/CMakeFiles/AnalysisTests.dir/LastRunTrackingAnalysisTest.cpp.o
12.469 [49/41/665] Building CXX object unittests/SandboxIR/CMakeFiles/SandboxIRTests.dir/UtilsTest.cpp.o
12.779 [49/40/666] Building CXX object unittests/IR/CMakeFiles/IRTests.dir/VFABIDemanglerTest.cpp.o
12.953 [49/39/667] Building CXX object unittests/Transforms/Utils/CMakeFiles/UtilsTests.dir/MemTransferLowering.cpp.o
13.183 [49/38/668] Building CXX object unittests/Analysis/CMakeFiles/AnalysisTests.dir/PluginInlineAdvisorAnalysisTest.cpp.o
13.234 [49/37/669] Building CXX object unittests/Transforms/Scalar/CMakeFiles/ScalarTests.dir/LICMTest.cpp.o

@llvm-ci
Copy link
Collaborator

llvm-ci commented Mar 7, 2025

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

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

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

OK
6.051 [56/58/110] Building CXX object unittests/ADT/CMakeFiles/ADTTests.dir/EquivalenceClassesTest.cpp.o
FAILED: unittests/ADT/CMakeFiles/ADTTests.dir/EquivalenceClassesTest.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes /usr/bin/ccache /usr/bin/clang++ -DGTEST_HAS_RTTI=0 -DLLVM_BUILD_STATIC -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/build/buildbot/premerge-monolithic-linux/build/unittests/ADT -I/build/buildbot/premerge-monolithic-linux/llvm-project/llvm/unittests/ADT -I/build/buildbot/premerge-monolithic-linux/build/include -I/build/buildbot/premerge-monolithic-linux/llvm-project/llvm/include -I/build/buildbot/premerge-monolithic-linux/llvm-project/third-party/unittest/googletest/include -I/build/buildbot/premerge-monolithic-linux/llvm-project/third-party/unittest/googlemock/include -gmlt -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG  -Wno-variadic-macros -Wno-gnu-zero-variadic-macro-arguments -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -Wno-suggest-override -std=c++17 -MD -MT unittests/ADT/CMakeFiles/ADTTests.dir/EquivalenceClassesTest.cpp.o -MF unittests/ADT/CMakeFiles/ADTTests.dir/EquivalenceClassesTest.cpp.o.d -o unittests/ADT/CMakeFiles/ADTTests.dir/EquivalenceClassesTest.cpp.o -c /build/buildbot/premerge-monolithic-linux/llvm-project/llvm/unittests/ADT/EquivalenceClassesTest.cpp
In file included from /build/buildbot/premerge-monolithic-linux/llvm-project/llvm/unittests/ADT/EquivalenceClassesTest.cpp:10:
In file included from /build/buildbot/premerge-monolithic-linux/llvm-project/third-party/unittest/googlemock/include/gmock/gmock.h:61:
/build/buildbot/premerge-monolithic-linux/llvm-project/third-party/unittest/googlemock/include/gmock/gmock-more-matchers.h:73:40: error: no member named 'size' in 'llvm::iterator_range<llvm::EquivalenceClasses<int>::member_iterator>'
    *listener << "whose size is " << c.size();
                                     ~ ^
/build/buildbot/premerge-monolithic-linux/llvm-project/third-party/unittest/googletest/include/gtest/gtest-matchers.h:647:20: note: in instantiation of function template specialization 'testing::internal::IsEmptyMatcher::MatchAndExplain<llvm::iterator_range<llvm::EquivalenceClasses<int>::member_iterator>>' requested here
      return impl_.MatchAndExplain(x, listener);
                   ^
/build/buildbot/premerge-monolithic-linux/llvm-project/third-party/unittest/googletest/include/gtest/gtest-matchers.h:638:14: note: in instantiation of member function 'testing::PolymorphicMatcher<testing::internal::IsEmptyMatcher>::MonomorphicImpl<const llvm::iterator_range<llvm::EquivalenceClasses<int>::member_iterator> &>::MatchAndExplain' requested here
    explicit MonomorphicImpl(const Impl& impl) : impl_(impl) {}
             ^
/build/buildbot/premerge-monolithic-linux/llvm-project/third-party/unittest/googletest/include/gtest/gtest-matchers.h:631:27: note: in instantiation of member function 'testing::PolymorphicMatcher<testing::internal::IsEmptyMatcher>::MonomorphicImpl<const llvm::iterator_range<llvm::EquivalenceClasses<int>::member_iterator> &>::MonomorphicImpl' requested here
    return Matcher<T>(new MonomorphicImpl<const T&>(impl_));
                          ^
/build/buildbot/premerge-monolithic-linux/llvm-project/third-party/unittest/googlemock/include/gmock/gmock-matchers.h:373:12: note: in instantiation of function template specialization 'testing::PolymorphicMatcher<testing::internal::IsEmptyMatcher>::operator Matcher<const llvm::iterator_range<llvm::EquivalenceClasses<int>::member_iterator> &>' requested here
    return polymorphic_matcher_or_value;
           ^
/build/buildbot/premerge-monolithic-linux/llvm-project/third-party/unittest/googlemock/include/gmock/gmock-matchers.h:355:12: note: in instantiation of function template specialization 'testing::internal::MatcherCastImpl<const llvm::iterator_range<llvm::EquivalenceClasses<int>::member_iterator> &, testing::PolymorphicMatcher<testing::internal::IsEmptyMatcher>>::CastImpl<false>' requested here
    return CastImpl(polymorphic_matcher_or_value,
           ^
/build/buildbot/premerge-monolithic-linux/llvm-project/third-party/unittest/googlemock/include/gmock/gmock-matchers.h:515:43: note: in instantiation of member function 'testing::internal::MatcherCastImpl<const llvm::iterator_range<llvm::EquivalenceClasses<int>::member_iterator> &, testing::PolymorphicMatcher<testing::internal::IsEmptyMatcher>>::Cast' requested here
  return internal::MatcherCastImpl<T, M>::Cast(matcher);
                                          ^
/build/buildbot/premerge-monolithic-linux/llvm-project/third-party/unittest/googlemock/include/gmock/gmock-matchers.h:522:10: note: in instantiation of function template specialization 'testing::MatcherCast<const llvm::iterator_range<llvm::EquivalenceClasses<int>::member_iterator> &, testing::PolymorphicMatcher<testing::internal::IsEmptyMatcher>>' requested here
  return MatcherCast<T>(polymorphic_matcher_or_value);
         ^
/build/buildbot/premerge-monolithic-linux/llvm-project/third-party/unittest/googlemock/include/gmock/gmock-matchers.h:1591:39: note: in instantiation of function template specialization 'testing::SafeMatcherCast<const llvm::iterator_range<llvm::EquivalenceClasses<int>::member_iterator> &, testing::PolymorphicMatcher<testing::internal::IsEmptyMatcher>>' requested here
    const Matcher<const T&> matcher = SafeMatcherCast<const T&>(matcher_);
                                      ^
/build/buildbot/premerge-monolithic-linux/llvm-project/llvm/unittests/ADT/EquivalenceClassesTest.cpp:80:3: note: in instantiation of function template specialization 'testing::internal::PredicateFormatterFromMatcher<testing::PolymorphicMatcher<testing::internal::IsEmptyMatcher>>::operator()<llvm::iterator_range<llvm::EquivalenceClasses<int>::member_iterator>>' requested here
  EXPECT_THAT(EC.members(EC.end()), testing::IsEmpty());
  ^
/build/buildbot/premerge-monolithic-linux/llvm-project/third-party/unittest/googlemock/include/gmock/gmock-matchers.h:5495:3: note: expanded from macro 'EXPECT_THAT'
  EXPECT_PRED_FORMAT1(              \
  ^
/build/buildbot/premerge-monolithic-linux/llvm-project/third-party/unittest/googletest/include/gtest/gtest_pred_impl.h:109:3: note: expanded from macro 'EXPECT_PRED_FORMAT1'
  GTEST_PRED_FORMAT1_(pred_format, v1, GTEST_NONFATAL_FAILURE_)

@llvm-ci
Copy link
Collaborator

llvm-ci commented Mar 7, 2025

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

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

Here is the relevant piece of the build log for the reference
Step 7 (test-build-unified-tree-check-llvm) failure: test (failure)
...
0.633 [16/51/672] Linking CXX executable unittests/tools/llvm-profdata/LLVMProfdataTests
0.845 [16/50/673] Linking CXX executable unittests/Support/SupportTests
1.448 [16/49/674] Linking CXX executable unittests/Target/VE/VETests
1.461 [16/48/675] Linking CXX executable unittests/Target/WebAssembly/WebAssemblyTests
1.606 [16/47/676] Linking CXX executable unittests/Target/SPIRV/SPIRVTests
1.637 [16/46/677] Linking CXX executable unittests/Target/RISCV/RISCVTests
1.762 [16/45/678] Linking CXX executable unittests/Target/LoongArch/LoongArchTests
1.773 [16/44/679] Linking CXX executable unittests/Target/AArch64/AArch64Tests
1.839 [16/43/680] Linking CXX executable unittests/tools/llvm-mca/LLVMMCATests
2.016 [16/42/681] Building CXX object unittests/ADT/CMakeFiles/ADTTests.dir/EquivalenceClassesTest.cpp.o
FAILED: unittests/ADT/CMakeFiles/ADTTests.dir/EquivalenceClassesTest.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes /usr/bin/ccache /usr/bin/clang++ -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/b/1/llvm-x86_64-debian-dylib/build/unittests/ADT -I/b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/unittests/ADT -I/b/1/llvm-x86_64-debian-dylib/build/include -I/b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/include -I/b/1/llvm-x86_64-debian-dylib/llvm-project/third-party/unittest/googletest/include -I/b/1/llvm-x86_64-debian-dylib/llvm-project/third-party/unittest/googlemock/include -fPIC -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG  -Wno-variadic-macros -Wno-gnu-zero-variadic-macro-arguments -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -Wno-suggest-override -std=c++17 -MD -MT unittests/ADT/CMakeFiles/ADTTests.dir/EquivalenceClassesTest.cpp.o -MF unittests/ADT/CMakeFiles/ADTTests.dir/EquivalenceClassesTest.cpp.o.d -o unittests/ADT/CMakeFiles/ADTTests.dir/EquivalenceClassesTest.cpp.o -c /b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/unittests/ADT/EquivalenceClassesTest.cpp
In file included from /b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/unittests/ADT/EquivalenceClassesTest.cpp:10:
In file included from /b/1/llvm-x86_64-debian-dylib/llvm-project/third-party/unittest/googlemock/include/gmock/gmock.h:61:
/b/1/llvm-x86_64-debian-dylib/llvm-project/third-party/unittest/googlemock/include/gmock/gmock-more-matchers.h:73:40: error: no member named 'size' in 'llvm::iterator_range<llvm::EquivalenceClasses<int, std::less<int>>::member_iterator>'
    *listener << "whose size is " << c.size();
                                     ~ ^
/b/1/llvm-x86_64-debian-dylib/llvm-project/third-party/unittest/googletest/include/gtest/gtest-matchers.h:647:20: note: in instantiation of function template specialization 'testing::internal::IsEmptyMatcher::MatchAndExplain<llvm::iterator_range<llvm::EquivalenceClasses<int, std::less<int>>::member_iterator>>' requested here
      return impl_.MatchAndExplain(x, listener);
                   ^
/b/1/llvm-x86_64-debian-dylib/llvm-project/third-party/unittest/googletest/include/gtest/gtest-matchers.h:638:14: note: in instantiation of member function 'testing::PolymorphicMatcher<testing::internal::IsEmptyMatcher>::MonomorphicImpl<const llvm::iterator_range<llvm::EquivalenceClasses<int, std::less<int>>::member_iterator> &>::MatchAndExplain' requested here
    explicit MonomorphicImpl(const Impl& impl) : impl_(impl) {}
             ^
/b/1/llvm-x86_64-debian-dylib/llvm-project/third-party/unittest/googletest/include/gtest/gtest-matchers.h:631:27: note: in instantiation of member function 'testing::PolymorphicMatcher<testing::internal::IsEmptyMatcher>::MonomorphicImpl<const llvm::iterator_range<llvm::EquivalenceClasses<int, std::less<int>>::member_iterator> &>::MonomorphicImpl' requested here
    return Matcher<T>(new MonomorphicImpl<const T&>(impl_));
                          ^
/b/1/llvm-x86_64-debian-dylib/llvm-project/third-party/unittest/googlemock/include/gmock/gmock-matchers.h:373:12: note: in instantiation of function template specialization 'testing::PolymorphicMatcher<testing::internal::IsEmptyMatcher>::operator Matcher<const llvm::iterator_range<llvm::EquivalenceClasses<int, std::less<int>>::member_iterator> &>' requested here
    return polymorphic_matcher_or_value;
           ^
/b/1/llvm-x86_64-debian-dylib/llvm-project/third-party/unittest/googlemock/include/gmock/gmock-matchers.h:355:12: note: in instantiation of function template specialization 'testing::internal::MatcherCastImpl<const llvm::iterator_range<llvm::EquivalenceClasses<int, std::less<int>>::member_iterator> &, testing::PolymorphicMatcher<testing::internal::IsEmptyMatcher>>::CastImpl<false>' requested here
    return CastImpl(polymorphic_matcher_or_value,
           ^
/b/1/llvm-x86_64-debian-dylib/llvm-project/third-party/unittest/googlemock/include/gmock/gmock-matchers.h:515:43: note: in instantiation of member function 'testing::internal::MatcherCastImpl<const llvm::iterator_range<llvm::EquivalenceClasses<int, std::less<int>>::member_iterator> &, testing::PolymorphicMatcher<testing::internal::IsEmptyMatcher>>::Cast' requested here
  return internal::MatcherCastImpl<T, M>::Cast(matcher);
                                          ^
/b/1/llvm-x86_64-debian-dylib/llvm-project/third-party/unittest/googlemock/include/gmock/gmock-matchers.h:522:10: note: in instantiation of function template specialization 'testing::MatcherCast<const llvm::iterator_range<llvm::EquivalenceClasses<int, std::less<int>>::member_iterator> &, testing::PolymorphicMatcher<testing::internal::IsEmptyMatcher>>' requested here
  return MatcherCast<T>(polymorphic_matcher_or_value);
         ^
/b/1/llvm-x86_64-debian-dylib/llvm-project/third-party/unittest/googlemock/include/gmock/gmock-matchers.h:1591:39: note: in instantiation of function template specialization 'testing::SafeMatcherCast<const llvm::iterator_range<llvm::EquivalenceClasses<int, std::less<int>>::member_iterator> &, testing::PolymorphicMatcher<testing::internal::IsEmptyMatcher>>' requested here
    const Matcher<const T&> matcher = SafeMatcherCast<const T&>(matcher_);
                                      ^
/b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/unittests/ADT/EquivalenceClassesTest.cpp:80:3: note: in instantiation of function template specialization 'testing::internal::PredicateFormatterFromMatcher<testing::PolymorphicMatcher<testing::internal::IsEmptyMatcher>>::operator()<llvm::iterator_range<llvm::EquivalenceClasses<int, std::less<int>>::member_iterator>>' requested here
  EXPECT_THAT(EC.members(EC.end()), testing::IsEmpty());
  ^
/b/1/llvm-x86_64-debian-dylib/llvm-project/third-party/unittest/googlemock/include/gmock/gmock-matchers.h:5495:3: note: expanded from macro 'EXPECT_THAT'
  EXPECT_PRED_FORMAT1(              \
  ^
/b/1/llvm-x86_64-debian-dylib/llvm-project/third-party/unittest/googletest/include/gtest/gtest_pred_impl.h:109:3: note: expanded from macro 'EXPECT_PRED_FORMAT1'
  GTEST_PRED_FORMAT1_(pred_format, v1, GTEST_NONFATAL_FAILURE_)

@llvm-ci
Copy link
Collaborator

llvm-ci commented Mar 30, 2025

LLVM Buildbot has detected a new failure on builder llvm-clang-x86_64-win-fast running on as-builder-3 while building llvm at step 7 "test-build-unified-tree-check-llvm-unit".

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

Here is the relevant piece of the build log for the reference
Step 7 (test-build-unified-tree-check-llvm-unit) failure: test (failure)

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

Labels

llvm:adt llvm:analysis Includes value tracking, cost tables and constant folding

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants