Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

[YAML] Make std::array available #116059

Merged
merged 3 commits into from
Nov 14, 2024
Merged

[YAML] Make std::array available #116059

merged 3 commits into from
Nov 14, 2024

Conversation

chapuni
Copy link
Contributor

@chapuni chapuni commented Nov 13, 2024

std::array will be handled like MutableArrayRef;

  • Extending elements is not acceptable.
  • For applying fewer sequence, trailing elements will be initialized by default.

Not like;

  • std::array is not the reference but holds values. Supposing to hold small count of elements.

@llvmbot
Copy link

llvmbot commented Nov 13, 2024

@llvm/pr-subscribers-llvm-support

Author: NAKAMURA Takumi (chapuni)

Changes

std::array will be handled like MutableArrayRef;

  • Extending elements is not acceptable.
  • For applying fewer sequence, trailing elements will be initialized by default.

Not like;

  • std::array is not the reference but holds values. Supposing to hold small count of elements.

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

2 Files Affected:

  • (modified) llvm/include/llvm/Support/YAMLTraits.h (+5)
  • (modified) llvm/unittests/Support/YAMLIOTest.cpp (+32-15)
diff --git a/llvm/include/llvm/Support/YAMLTraits.h b/llvm/include/llvm/Support/YAMLTraits.h
index 1d04783753d5cd..45d82f3ebefa9c 100644
--- a/llvm/include/llvm/Support/YAMLTraits.h
+++ b/llvm/include/llvm/Support/YAMLTraits.h
@@ -2006,6 +2006,11 @@ struct SequenceTraits<
     std::enable_if_t<CheckIsBool<SequenceElementTraits<T>::flow>::value>>
     : SequenceTraitsImpl<std::vector<T>, SequenceElementTraits<T>::flow> {};
 template <typename T, unsigned N>
+struct SequenceTraits<
+    std::array<T, N>,
+    std::enable_if_t<CheckIsBool<SequenceElementTraits<T>::flow>::value>>
+    : SequenceTraitsImpl<std::array<T, N>, SequenceElementTraits<T>::flow> {};
+template <typename T, unsigned N>
 struct SequenceTraits<
     SmallVector<T, N>,
     std::enable_if_t<CheckIsBool<SequenceElementTraits<T>::flow>::value>>
diff --git a/llvm/unittests/Support/YAMLIOTest.cpp b/llvm/unittests/Support/YAMLIOTest.cpp
index e10fe099a30adb..a7d1b338719f3b 100644
--- a/llvm/unittests/Support/YAMLIOTest.cpp
+++ b/llvm/unittests/Support/YAMLIOTest.cpp
@@ -3366,20 +3366,38 @@ struct FixedArray {
   int values[4];
 };
 
+struct StdArray {
+  StdArray() {
+    // Initialize to int max as a sentinel value.
+    for (auto &v : values)
+      v = std::numeric_limits<int>::max();
+  }
+  std::array<int, 4> values;
+};
+
 namespace llvm {
 namespace yaml {
-  template <>
-  struct MappingTraits<FixedArray> {
-    static void mapping(IO &io, FixedArray& st) {
-      MutableArrayRef<int> array = st.values;
-      io.mapRequired("Values", array);
-    }
-  };
-}
-}
+template <> struct MappingTraits<FixedArray> {
+  static void mapping(IO &io, FixedArray &st) {
+    MutableArrayRef<int> array = st.values;
+    io.mapRequired("Values", array);
+  }
+};
+template <> struct MappingTraits<StdArray> {
+  static void mapping(IO &io, StdArray &st) {
+    io.mapRequired("Values", st.values);
+  }
+};
+} // namespace yaml
+} // namespace llvm
+
+using TestTypes = ::testing::Types<FixedArray, StdArray>;
 
-TEST(YAMLIO, FixedSizeArray) {
-  FixedArray faval;
+template <typename T> class YAMLIO : public testing::Test {};
+TYPED_TEST_SUITE(YAMLIO, TestTypes, );
+
+TYPED_TEST(YAMLIO, FixedSizeArray) {
+  TypeParam faval;
   Input yin("---\nValues:  [ 1, 2, 3, 4 ]\n...\n");
   yin >> faval;
 
@@ -3401,9 +3419,9 @@ TEST(YAMLIO, FixedSizeArray) {
   ASSERT_EQ(serialized, expected);
 }
 
-TEST(YAMLIO, FixedSizeArrayMismatch) {
+TYPED_TEST(YAMLIO, FixedSizeArrayMismatch) {
   {
-    FixedArray faval;
+    TypeParam faval;
     Input yin("---\nValues:  [ 1, 2, 3 ]\n...\n");
     yin >> faval;
 
@@ -3416,12 +3434,11 @@ TEST(YAMLIO, FixedSizeArrayMismatch) {
   }
 
   {
-    FixedArray faval;
+    TypeParam faval;
     Input yin("---\nValues:  [ 1, 2, 3, 4, 5 ]\n...\n");
     yin >> faval;
 
     // Error for too many elements.
     EXPECT_TRUE(!!yin.error());
   }
-
 }

@chapuni chapuni merged commit 941f704 into main Nov 14, 2024
5 of 7 checks passed
@chapuni chapuni deleted the users/chapuni/yaml/array branch November 14, 2024 02:21
@llvm-ci
Copy link
Collaborator

llvm-ci commented Nov 14, 2024

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

Here is the relevant piece of the build log for the reference
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
...
10.066 [30/26/671] Linking CXX executable unittests/Transforms/Vectorize/SandboxVectorizer/SandboxVectorizerTests
10.177 [29/26/672] Linking CXX executable unittests/Target/AMDGPU/AMDGPUTests
11.019 [28/26/673] Linking CXX executable unittests/Transforms/Coroutines/CoroTests
11.051 [27/26/674] Building CXX object unittests/Object/CMakeFiles/ObjectTests.dir/DXContainerTest.cpp.o
11.063 [26/26/675] Linking CXX executable unittests/Transforms/Instrumentation/InstrumentationTests
11.685 [25/26/676] Building CXX object unittests/ObjectYAML/CMakeFiles/ObjectYAMLTests.dir/DWARFYAMLTest.cpp.o
11.689 [24/26/677] Linking CXX executable unittests/Target/X86/X86Tests
11.800 [23/26/678] Linking CXX executable unittests/Transforms/Utils/UtilsTests
12.058 [22/26/679] Linking CXX executable unittests/tools/llvm-cfi-verify/CFIVerifyTests
12.108 [21/26/680] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/YAMLIOTest.cpp.o
FAILED: unittests/Support/CMakeFiles/SupportTests.dir/YAMLIOTest.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/Support -I/b/ml-opt-dev-x86-64-b1/llvm-project/llvm/unittests/Support -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/Support/CMakeFiles/SupportTests.dir/YAMLIOTest.cpp.o -MF unittests/Support/CMakeFiles/SupportTests.dir/YAMLIOTest.cpp.o.d -o unittests/Support/CMakeFiles/SupportTests.dir/YAMLIOTest.cpp.o -c /b/ml-opt-dev-x86-64-b1/llvm-project/llvm/unittests/Support/YAMLIOTest.cpp
In file included from /b/ml-opt-dev-x86-64-b1/llvm-project/llvm/unittests/Support/YAMLIOTest.cpp:17:
/b/ml-opt-dev-x86-64-b1/llvm-project/llvm/include/llvm/Support/YAMLTraits.h: In instantiation of ‘std::enable_if_t<llvm::yaml::missingTraits<T, llvm::yaml::EmptyContext>::value, void> llvm::yaml::yamlize(llvm::yaml::IO&, T&, bool, llvm::yaml::EmptyContext&) [with T = std::array<int, 4>; std::enable_if_t<llvm::yaml::missingTraits<T, llvm::yaml::EmptyContext>::value, void> = void]’:
/b/ml-opt-dev-x86-64-b1/llvm-project/llvm/include/llvm/Support/YAMLTraits.h:960:14:   required from ‘void llvm::yaml::IO::processKey(const char*, T&, bool, Context&) [with T = std::array<int, 4>; Context = llvm::yaml::EmptyContext]’
/b/ml-opt-dev-x86-64-b1/llvm-project/llvm/include/llvm/Support/YAMLTraits.h:882:21:   required from ‘void llvm::yaml::IO::mapRequired(const char*, T&) [with T = std::array<int, 4>]’
/b/ml-opt-dev-x86-64-b1/llvm-project/llvm/unittests/Support/YAMLIOTest.cpp:3388:39:   required from here
/b/ml-opt-dev-x86-64-b1/llvm-project/llvm/include/llvm/Support/YAMLTraits.h:1172:36: error: invalid application of ‘sizeof’ to incomplete type ‘llvm::yaml::MissingTrait<std::array<int, 4> >’
 1172 |   char missing_yaml_trait_for_type[sizeof(MissingTrait<T>)];
      |                                    ^~~~~~~~~~~~~~~~~~~~~~~
12.292 [21/25/681] Linking CXX executable unittests/Transforms/Scalar/ScalarTests
12.630 [21/24/682] Linking CXX executable unittests/Target/TargetMachineCTests
12.650 [21/23/683] Building CXX object unittests/ObjectYAML/CMakeFiles/ObjectYAMLTests.dir/DXContainerYAMLTest.cpp.o
12.845 [21/22/684] Building CXX object unittests/DebugInfo/BTF/CMakeFiles/DebugInfoBTFTests.dir/BTFParserTest.cpp.o
14.510 [21/21/685] Building CXX object unittests/ObjectYAML/CMakeFiles/ObjectYAMLTests.dir/ELFYAMLTest.cpp.o
16.650 [21/20/686] Building CXX object unittests/tools/llvm-exegesis/CMakeFiles/LLVMExegesisTests.dir/ResultAggregatorTest.cpp.o
17.005 [21/19/687] Building CXX object unittests/tools/llvm-exegesis/CMakeFiles/LLVMExegesisTests.dir/X86/SubprocessMemoryTest.cpp.o
18.982 [21/18/688] Building CXX object unittests/tools/llvm-exegesis/CMakeFiles/LLVMExegesisTests.dir/X86/SchedClassResolutionTest.cpp.o
19.616 [21/17/689] Building CXX object unittests/tools/llvm-exegesis/CMakeFiles/LLVMExegesisTests.dir/ClusteringTest.cpp.o
20.328 [21/16/690] Building CXX object unittests/Object/CMakeFiles/ObjectTests.dir/ELFObjectFileTest.cpp.o
20.657 [21/15/691] Building CXX object unittests/ProfileData/CMakeFiles/ProfileDataTests.dir/MemProfTest.cpp.o
21.178 [21/14/692] Building CXX object unittests/Target/ARM/CMakeFiles/ARMTests.dir/MachineInstrTest.cpp.o
21.383 [21/13/693] Building CXX object unittests/ProfileData/CMakeFiles/ProfileDataTests.dir/CoverageMappingTest.cpp.o
21.976 [21/12/694] Building CXX object unittests/tools/llvm-exegesis/CMakeFiles/LLVMExegesisTests.dir/PowerPC/AnalysisTest.cpp.o
23.845 [21/11/695] Building CXX object unittests/Target/ARM/CMakeFiles/ARMTests.dir/InstSizes.cpp.o
23.867 [21/10/696] Building CXX object unittests/tools/llvm-exegesis/CMakeFiles/LLVMExegesisTests.dir/BenchmarkRunnerTest.cpp.o
24.239 [21/9/697] Building CXX object unittests/tools/llvm-exegesis/CMakeFiles/LLVMExegesisTests.dir/X86/BenchmarkResultTest.cpp.o
27.572 [21/8/698] Building CXX object unittests/tools/llvm-exegesis/CMakeFiles/LLVMExegesisTests.dir/PowerPC/TargetTest.cpp.o
27.573 [21/7/699] Building CXX object unittests/tools/llvm-exegesis/CMakeFiles/LLVMExegesisTests.dir/AArch64/TargetTest.cpp.o
28.995 [21/6/700] Building CXX object unittests/tools/llvm-exegesis/CMakeFiles/LLVMExegesisTests.dir/PowerPC/SnippetGeneratorTest.cpp.o
30.852 [21/5/701] Building CXX object unittests/ProfileData/CMakeFiles/ProfileDataTests.dir/InstrProfTest.cpp.o
31.489 [21/4/702] Building CXX object unittests/tools/llvm-exegesis/CMakeFiles/LLVMExegesisTests.dir/X86/SnippetRepetitorTest.cpp.o
32.003 [21/3/703] Building CXX object unittests/tools/llvm-exegesis/CMakeFiles/LLVMExegesisTests.dir/X86/TargetTest.cpp.o
32.108 [21/2/704] Building CXX object unittests/tools/llvm-exegesis/CMakeFiles/LLVMExegesisTests.dir/X86/SnippetFileTest.cpp.o
34.464 [21/1/705] Building CXX object unittests/tools/llvm-exegesis/CMakeFiles/LLVMExegesisTests.dir/X86/SnippetGeneratorTest.cpp.o
ninja: build stopped: subcommand failed.

@llvm-ci
Copy link
Collaborator

llvm-ci commented Nov 14, 2024

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

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

Here is the relevant piece of the build log for the reference
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
...
10.966 [29/26/672] Linking CXX executable unittests/Transforms/Vectorize/VectorizeTests
10.971 [28/26/673] Linking CXX executable unittests/Transforms/Vectorize/SandboxVectorizer/SandboxVectorizerTests
11.046 [27/26/674] Linking CXX executable unittests/Target/AMDGPU/AMDGPUTests
11.098 [26/26/675] Building CXX object unittests/ObjectYAML/CMakeFiles/ObjectYAMLTests.dir/ELFYAMLTest.cpp.o
11.805 [25/26/676] Linking CXX executable unittests/Target/X86/X86Tests
11.906 [24/26/677] Linking CXX executable unittests/Transforms/Coroutines/CoroTests
11.919 [23/26/678] Linking CXX executable unittests/ObjectYAML/ObjectYAMLTests
11.957 [22/26/679] Linking CXX executable unittests/Transforms/Instrumentation/InstrumentationTests
12.454 [21/26/680] Building CXX object unittests/Object/CMakeFiles/ObjectTests.dir/DXContainerTest.cpp.o
12.553 [20/26/681] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/YAMLIOTest.cpp.o
FAILED: unittests/Support/CMakeFiles/SupportTests.dir/YAMLIOTest.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/Support -I/b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/unittests/Support -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/Support/CMakeFiles/SupportTests.dir/YAMLIOTest.cpp.o -MF unittests/Support/CMakeFiles/SupportTests.dir/YAMLIOTest.cpp.o.d -o unittests/Support/CMakeFiles/SupportTests.dir/YAMLIOTest.cpp.o -c /b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/unittests/Support/YAMLIOTest.cpp
In file included from /b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/unittests/Support/YAMLIOTest.cpp:17:
/b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/include/llvm/Support/YAMLTraits.h: In instantiation of ‘std::enable_if_t<llvm::yaml::missingTraits<T, llvm::yaml::EmptyContext>::value, void> llvm::yaml::yamlize(llvm::yaml::IO&, T&, bool, llvm::yaml::EmptyContext&) [with T = std::array<int, 4>; std::enable_if_t<llvm::yaml::missingTraits<T, llvm::yaml::EmptyContext>::value, void> = void]’:
/b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/include/llvm/Support/YAMLTraits.h:960:14:   required from ‘void llvm::yaml::IO::processKey(const char*, T&, bool, Context&) [with T = std::array<int, 4>; Context = llvm::yaml::EmptyContext]’
/b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/include/llvm/Support/YAMLTraits.h:882:21:   required from ‘void llvm::yaml::IO::mapRequired(const char*, T&) [with T = std::array<int, 4>]’
/b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/unittests/Support/YAMLIOTest.cpp:3388:39:   required from here
/b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/include/llvm/Support/YAMLTraits.h:1172:36: error: invalid application of ‘sizeof’ to incomplete type ‘llvm::yaml::MissingTrait<std::array<int, 4> >’
 1172 |   char missing_yaml_trait_for_type[sizeof(MissingTrait<T>)];
      |                                    ^~~~~~~~~~~~~~~~~~~~~~~
12.728 [20/25/682] Linking CXX executable unittests/tools/llvm-cfi-verify/CFIVerifyTests
12.748 [20/24/683] Linking CXX executable unittests/Transforms/Utils/UtilsTests
12.799 [20/23/684] Building CXX object unittests/DebugInfo/BTF/CMakeFiles/DebugInfoBTFTests.dir/BTFParserTest.cpp.o
13.241 [20/22/685] Linking CXX executable unittests/Transforms/Scalar/ScalarTests
13.549 [20/21/686] Linking CXX executable unittests/Target/TargetMachineCTests
17.158 [20/20/687] Building CXX object unittests/tools/llvm-exegesis/CMakeFiles/LLVMExegesisTests.dir/ResultAggregatorTest.cpp.o
17.826 [20/19/688] Building CXX object unittests/Target/ARM/CMakeFiles/ARMTests.dir/InstSizes.cpp.o
18.999 [20/18/689] Building CXX object unittests/tools/llvm-exegesis/CMakeFiles/LLVMExegesisTests.dir/X86/SubprocessMemoryTest.cpp.o
19.025 [20/17/690] Building CXX object unittests/Object/CMakeFiles/ObjectTests.dir/ELFObjectFileTest.cpp.o
20.153 [20/16/691] Building CXX object unittests/tools/llvm-exegesis/CMakeFiles/LLVMExegesisTests.dir/ClusteringTest.cpp.o
20.951 [20/15/692] Building CXX object unittests/tools/llvm-exegesis/CMakeFiles/LLVMExegesisTests.dir/X86/SchedClassResolutionTest.cpp.o
21.198 [20/14/693] Building CXX object unittests/ProfileData/CMakeFiles/ProfileDataTests.dir/CoverageMappingTest.cpp.o
21.909 [20/13/694] Building CXX object unittests/tools/llvm-exegesis/CMakeFiles/LLVMExegesisTests.dir/PowerPC/AnalysisTest.cpp.o
23.712 [20/12/695] Building CXX object unittests/ProfileData/CMakeFiles/ProfileDataTests.dir/MemProfTest.cpp.o
24.506 [20/11/696] Building CXX object unittests/Target/ARM/CMakeFiles/ARMTests.dir/MachineInstrTest.cpp.o
25.118 [20/10/697] Building CXX object unittests/tools/llvm-exegesis/CMakeFiles/LLVMExegesisTests.dir/BenchmarkRunnerTest.cpp.o
26.196 [20/9/698] Building CXX object unittests/tools/llvm-exegesis/CMakeFiles/LLVMExegesisTests.dir/X86/BenchmarkResultTest.cpp.o
27.460 [20/8/699] Building CXX object unittests/tools/llvm-exegesis/CMakeFiles/LLVMExegesisTests.dir/PowerPC/TargetTest.cpp.o
28.129 [20/7/700] Building CXX object unittests/tools/llvm-exegesis/CMakeFiles/LLVMExegesisTests.dir/PowerPC/SnippetGeneratorTest.cpp.o
28.291 [20/6/701] Building CXX object unittests/tools/llvm-exegesis/CMakeFiles/LLVMExegesisTests.dir/AArch64/TargetTest.cpp.o
29.444 [20/5/702] Building CXX object unittests/ProfileData/CMakeFiles/ProfileDataTests.dir/InstrProfTest.cpp.o
29.998 [20/4/703] Building CXX object unittests/tools/llvm-exegesis/CMakeFiles/LLVMExegesisTests.dir/X86/SnippetRepetitorTest.cpp.o
32.778 [20/3/704] Building CXX object unittests/tools/llvm-exegesis/CMakeFiles/LLVMExegesisTests.dir/X86/SnippetFileTest.cpp.o
33.032 [20/2/705] Building CXX object unittests/tools/llvm-exegesis/CMakeFiles/LLVMExegesisTests.dir/X86/TargetTest.cpp.o
33.745 [20/1/706] Building CXX object unittests/tools/llvm-exegesis/CMakeFiles/LLVMExegesisTests.dir/X86/SnippetGeneratorTest.cpp.o
ninja: build stopped: subcommand failed.

@llvm-ci
Copy link
Collaborator

llvm-ci commented Nov 14, 2024

LLVM Buildbot has detected a new failure on builder ml-opt-rel-x86-64 running on ml-opt-rel-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/185/builds/8471

Here is the relevant piece of the build log for the reference
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
...
10.623 [32/26/668] Linking CXX executable unittests/Target/AMDGPU/AMDGPUTests
10.647 [31/26/669] Linking CXX executable unittests/Target/WebAssembly/WebAssemblyTests
10.716 [30/26/670] Building CXX object unittests/tools/llvm-exegesis/CMakeFiles/LLVMExegesisTests.dir/X86/RegisterAliasingTest.cpp.o
11.169 [29/26/671] Linking CXX executable unittests/Transforms/Instrumentation/InstrumentationTests
11.342 [28/26/672] Linking CXX executable unittests/Transforms/Coroutines/CoroTests
11.667 [27/26/673] Building CXX object unittests/Object/CMakeFiles/ObjectTests.dir/DXContainerTest.cpp.o
11.731 [26/26/674] Building CXX object unittests/ObjectYAML/CMakeFiles/ObjectYAMLTests.dir/DWARFYAMLTest.cpp.o
12.165 [25/26/675] Linking CXX executable unittests/Target/X86/X86Tests
12.201 [24/26/676] Linking CXX executable unittests/Transforms/Utils/UtilsTests
12.526 [23/26/677] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/YAMLIOTest.cpp.o
FAILED: unittests/Support/CMakeFiles/SupportTests.dir/YAMLIOTest.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/Support -I/b/ml-opt-rel-x86-64-b1/llvm-project/llvm/unittests/Support -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/Support/CMakeFiles/SupportTests.dir/YAMLIOTest.cpp.o -MF unittests/Support/CMakeFiles/SupportTests.dir/YAMLIOTest.cpp.o.d -o unittests/Support/CMakeFiles/SupportTests.dir/YAMLIOTest.cpp.o -c /b/ml-opt-rel-x86-64-b1/llvm-project/llvm/unittests/Support/YAMLIOTest.cpp
In file included from /b/ml-opt-rel-x86-64-b1/llvm-project/llvm/unittests/Support/YAMLIOTest.cpp:17:
/b/ml-opt-rel-x86-64-b1/llvm-project/llvm/include/llvm/Support/YAMLTraits.h: In instantiation of ‘std::enable_if_t<llvm::yaml::missingTraits<T, llvm::yaml::EmptyContext>::value, void> llvm::yaml::yamlize(llvm::yaml::IO&, T&, bool, llvm::yaml::EmptyContext&) [with T = std::array<int, 4>; std::enable_if_t<llvm::yaml::missingTraits<T, llvm::yaml::EmptyContext>::value, void> = void]’:
/b/ml-opt-rel-x86-64-b1/llvm-project/llvm/include/llvm/Support/YAMLTraits.h:960:14:   required from ‘void llvm::yaml::IO::processKey(const char*, T&, bool, Context&) [with T = std::array<int, 4>; Context = llvm::yaml::EmptyContext]’
/b/ml-opt-rel-x86-64-b1/llvm-project/llvm/include/llvm/Support/YAMLTraits.h:882:21:   required from ‘void llvm::yaml::IO::mapRequired(const char*, T&) [with T = std::array<int, 4>]’
/b/ml-opt-rel-x86-64-b1/llvm-project/llvm/unittests/Support/YAMLIOTest.cpp:3388:39:   required from here
/b/ml-opt-rel-x86-64-b1/llvm-project/llvm/include/llvm/Support/YAMLTraits.h:1172:36: error: invalid application of ‘sizeof’ to incomplete type ‘llvm::yaml::MissingTrait<std::array<int, 4> >’
 1172 |   char missing_yaml_trait_for_type[sizeof(MissingTrait<T>)];
      |                                    ^~~~~~~~~~~~~~~~~~~~~~~
12.653 [23/25/678] Linking CXX executable unittests/tools/llvm-cfi-verify/CFIVerifyTests
12.721 [23/24/679] Linking CXX executable unittests/Transforms/Scalar/ScalarTests
13.077 [23/23/680] Building CXX object unittests/ObjectYAML/CMakeFiles/ObjectYAMLTests.dir/DXContainerYAMLTest.cpp.o
13.137 [23/22/681] Linking CXX executable unittests/Target/TargetMachineCTests
13.676 [23/21/682] Building CXX object unittests/DebugInfo/BTF/CMakeFiles/DebugInfoBTFTests.dir/BTFParserTest.cpp.o
13.723 [23/20/683] Building CXX object unittests/ObjectYAML/CMakeFiles/ObjectYAMLTests.dir/MinidumpYAMLTest.cpp.o
14.090 [23/19/684] Building CXX object unittests/ObjectYAML/CMakeFiles/ObjectYAMLTests.dir/ELFYAMLTest.cpp.o
17.394 [23/18/685] Building CXX object unittests/tools/llvm-exegesis/CMakeFiles/LLVMExegesisTests.dir/ResultAggregatorTest.cpp.o
18.582 [23/17/686] Building CXX object unittests/Object/CMakeFiles/ObjectTests.dir/ELFObjectFileTest.cpp.o
19.361 [23/16/687] Building CXX object unittests/ProfileData/CMakeFiles/ProfileDataTests.dir/CoverageMappingTest.cpp.o
19.655 [23/15/688] Building CXX object unittests/Target/ARM/CMakeFiles/ARMTests.dir/InstSizes.cpp.o
19.913 [23/14/689] Building CXX object unittests/tools/llvm-exegesis/CMakeFiles/LLVMExegesisTests.dir/X86/SubprocessMemoryTest.cpp.o
20.168 [23/13/690] Building CXX object unittests/tools/llvm-exegesis/CMakeFiles/LLVMExegesisTests.dir/ClusteringTest.cpp.o
21.032 [23/12/691] Building CXX object unittests/tools/llvm-exegesis/CMakeFiles/LLVMExegesisTests.dir/X86/SchedClassResolutionTest.cpp.o
21.920 [23/11/692] Building CXX object unittests/tools/llvm-exegesis/CMakeFiles/LLVMExegesisTests.dir/PowerPC/AnalysisTest.cpp.o
22.185 [23/10/693] Building CXX object unittests/Target/ARM/CMakeFiles/ARMTests.dir/MachineInstrTest.cpp.o
23.564 [23/9/694] Building CXX object unittests/ProfileData/CMakeFiles/ProfileDataTests.dir/MemProfTest.cpp.o
23.872 [23/8/695] Building CXX object unittests/tools/llvm-exegesis/CMakeFiles/LLVMExegesisTests.dir/X86/BenchmarkResultTest.cpp.o
25.142 [23/7/696] Building CXX object unittests/tools/llvm-exegesis/CMakeFiles/LLVMExegesisTests.dir/BenchmarkRunnerTest.cpp.o
26.391 [23/6/697] Building CXX object unittests/tools/llvm-exegesis/CMakeFiles/LLVMExegesisTests.dir/AArch64/TargetTest.cpp.o
30.931 [23/5/698] Building CXX object unittests/tools/llvm-exegesis/CMakeFiles/LLVMExegesisTests.dir/X86/TargetTest.cpp.o
31.707 [23/4/699] Building CXX object unittests/tools/llvm-exegesis/CMakeFiles/LLVMExegesisTests.dir/X86/SnippetRepetitorTest.cpp.o
32.414 [23/3/700] Building CXX object unittests/ProfileData/CMakeFiles/ProfileDataTests.dir/InstrProfTest.cpp.o
32.803 [23/2/701] Building CXX object unittests/tools/llvm-exegesis/CMakeFiles/LLVMExegesisTests.dir/X86/SnippetFileTest.cpp.o
33.550 [23/1/702] Building CXX object unittests/tools/llvm-exegesis/CMakeFiles/LLVMExegesisTests.dir/X86/SnippetGeneratorTest.cpp.o
ninja: build stopped: subcommand failed.

@llvm-ci
Copy link
Collaborator

llvm-ci commented Nov 14, 2024

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

Here is the relevant piece of the build log for the reference
Step 6 (test-build-unified-tree-check-llvm) failure: test (failure)
...
1.234 [9/28/649] Linking CXX executable unittests/Analysis/AnalysisTests
4.778 [9/27/650] Building CXX object unittests/CGData/CMakeFiles/CGDataTests.dir/StableFunctionMapRecordTest.cpp.o
4.795 [9/26/651] Building CXX object unittests/CGData/CMakeFiles/CGDataTests.dir/OutlinedHashTreeRecordTest.cpp.o
5.023 [9/25/652] Building CXX object unittests/Remarks/CMakeFiles/RemarksTests.dir/YAMLRemarksSerializerTest.cpp.o
5.108 [8/25/653] Linking CXX executable unittests/Remarks/RemarksTests
5.532 [8/24/654] Building CXX object unittests/ObjectYAML/CMakeFiles/ObjectYAMLTests.dir/YAMLTest.cpp.o
5.552 [8/23/655] Building CXX object unittests/CGData/CMakeFiles/CGDataTests.dir/OutlinedHashTreeTest.cpp.o
5.603 [7/23/656] Linking CXX executable unittests/CGData/CGDataTests
5.823 [7/22/657] Building CXX object unittests/ObjectYAML/CMakeFiles/ObjectYAMLTests.dir/YAML2ObjTest.cpp.o
6.153 [7/21/658] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/YAMLIOTest.cpp.o
FAILED: unittests/Support/CMakeFiles/SupportTests.dir/YAMLIOTest.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/Support -I/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/unittests/Support -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/Support/CMakeFiles/SupportTests.dir/YAMLIOTest.cpp.o -MF unittests/Support/CMakeFiles/SupportTests.dir/YAMLIOTest.cpp.o.d -o unittests/Support/CMakeFiles/SupportTests.dir/YAMLIOTest.cpp.o -c /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/unittests/Support/YAMLIOTest.cpp
In file included from /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/unittests/Support/YAMLIOTest.cpp:17:
/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/include/llvm/Support/YAMLTraits.h: In instantiation of ‘std::enable_if_t<llvm::yaml::missingTraits<T, llvm::yaml::EmptyContext>::value, void> llvm::yaml::yamlize(llvm::yaml::IO&, T&, bool, llvm::yaml::EmptyContext&) [with T = std::array<int, 4>; std::enable_if_t<llvm::yaml::missingTraits<T, llvm::yaml::EmptyContext>::value, void> = void]’:
/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/include/llvm/Support/YAMLTraits.h:960:14:   required from ‘void llvm::yaml::IO::processKey(const char*, T&, bool, Context&) [with T = std::array<int, 4>; Context = llvm::yaml::EmptyContext]’
/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/include/llvm/Support/YAMLTraits.h:882:21:   required from ‘void llvm::yaml::IO::mapRequired(const char*, T&) [with T = std::array<int, 4>]’
/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/unittests/Support/YAMLIOTest.cpp:3388:19:   required from here
/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/include/llvm/Support/YAMLTraits.h:1172:36: error: invalid application of ‘sizeof’ to incomplete type ‘llvm::yaml::MissingTrait<std::array<int, 4> >’
 1172 |   char missing_yaml_trait_for_type[sizeof(MissingTrait<T>)];
      |                                    ^~~~~~~~~~~~~~~~~~~~~~~
6.601 [7/20/659] Building CXX object unittests/tools/llvm-exegesis/CMakeFiles/LLVMExegesisTests.dir/ResultAggregatorTest.cpp.o
6.931 [7/19/660] Building CXX object unittests/tools/llvm-exegesis/CMakeFiles/LLVMExegesisTests.dir/X86/SubprocessMemoryTest.cpp.o
7.903 [7/18/661] Building CXX object unittests/Object/CMakeFiles/ObjectTests.dir/DXContainerTest.cpp.o
7.937 [7/17/662] Building CXX object unittests/tools/llvm-exegesis/CMakeFiles/LLVMExegesisTests.dir/ClusteringTest.cpp.o
7.984 [7/16/663] Building CXX object unittests/ObjectYAML/CMakeFiles/ObjectYAMLTests.dir/DXContainerYAMLTest.cpp.o
8.239 [7/15/664] Building CXX object unittests/ObjectYAML/CMakeFiles/ObjectYAMLTests.dir/DWARFYAMLTest.cpp.o
8.254 [7/14/665] Building CXX object unittests/ObjectYAML/CMakeFiles/ObjectYAMLTests.dir/MinidumpYAMLTest.cpp.o
8.614 [7/13/666] Building CXX object unittests/DebugInfo/BTF/CMakeFiles/DebugInfoBTFTests.dir/BTFParserTest.cpp.o
9.030 [7/12/667] Building CXX object unittests/tools/llvm-exegesis/CMakeFiles/LLVMExegesisTests.dir/X86/SchedClassResolutionTest.cpp.o
9.901 [7/11/668] Building CXX object unittests/ObjectYAML/CMakeFiles/ObjectYAMLTests.dir/ELFYAMLTest.cpp.o
12.335 [7/10/669] Building CXX object unittests/tools/llvm-exegesis/CMakeFiles/LLVMExegesisTests.dir/BenchmarkRunnerTest.cpp.o
12.426 [7/9/670] Building CXX object unittests/Object/CMakeFiles/ObjectTests.dir/ELFObjectFileTest.cpp.o
12.506 [7/8/671] Building CXX object unittests/ProfileData/CMakeFiles/ProfileDataTests.dir/CoverageMappingTest.cpp.o
14.323 [7/7/672] Building CXX object unittests/tools/llvm-exegesis/CMakeFiles/LLVMExegesisTests.dir/X86/BenchmarkResultTest.cpp.o
14.668 [7/6/673] Building CXX object unittests/ProfileData/CMakeFiles/ProfileDataTests.dir/MemProfTest.cpp.o
15.904 [7/5/674] Building CXX object unittests/tools/llvm-exegesis/CMakeFiles/LLVMExegesisTests.dir/X86/SnippetRepetitorTest.cpp.o
17.182 [7/4/675] Building CXX object unittests/tools/llvm-exegesis/CMakeFiles/LLVMExegesisTests.dir/X86/TargetTest.cpp.o
17.918 [7/3/676] Building CXX object unittests/tools/llvm-exegesis/CMakeFiles/LLVMExegesisTests.dir/X86/SnippetFileTest.cpp.o
18.900 [7/2/677] Building CXX object unittests/ProfileData/CMakeFiles/ProfileDataTests.dir/InstrProfTest.cpp.o
19.218 [7/1/678] Building CXX object unittests/tools/llvm-exegesis/CMakeFiles/LLVMExegesisTests.dir/X86/SnippetGeneratorTest.cpp.o
ninja: build stopped: subcommand failed.

@llvm-ci
Copy link
Collaborator

llvm-ci commented Nov 14, 2024

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

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

Here is the relevant piece of the build log for the reference
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
...
20.854 [16/34/140] Linking CXX executable unittests/Remarks/RemarksTests
21.067 [15/34/141] Building CXX object tools/clang/unittests/Format/CMakeFiles/FormatTests.dir/QualifierFixerTest.cpp.o
21.144 [14/34/142] Linking CXX executable unittests/tools/llvm-profdata/LLVMProfdataTests
21.922 [14/33/143] Building CXX object tools/clang/tools/extra/unittests/clang-include-fixer/find-all-symbols/CMakeFiles/FindAllSymbolsTests.dir/FindAllSymbolsTests.cpp.o
22.376 [13/33/144] Building CXX object unittests/ObjectYAML/CMakeFiles/ObjectYAMLTests.dir/DWARFYAMLTest.cpp.o
22.429 [13/32/145] Building CXX object unittests/ObjectYAML/CMakeFiles/ObjectYAMLTests.dir/DXContainerYAMLTest.cpp.o
22.510 [13/31/146] Linking CXX executable unittests/tools/llvm-mca/LLVMMCATests
22.558 [13/30/147] Building CXX object tools/clang/tools/extra/unittests/clang-change-namespace/CMakeFiles/ClangChangeNamespaceTests.dir/ChangeNamespaceTests.cpp.o
22.572 [12/30/148] Building CXX object unittests/Object/CMakeFiles/ObjectTests.dir/DXContainerTest.cpp.o
22.771 [12/29/149] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/YAMLIOTest.cpp.o
FAILED: unittests/Support/CMakeFiles/SupportTests.dir/YAMLIOTest.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/Support -I/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/unittests/Support -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/Support/CMakeFiles/SupportTests.dir/YAMLIOTest.cpp.o -MF unittests/Support/CMakeFiles/SupportTests.dir/YAMLIOTest.cpp.o.d -o unittests/Support/CMakeFiles/SupportTests.dir/YAMLIOTest.cpp.o -c /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/unittests/Support/YAMLIOTest.cpp
In file included from /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/unittests/Support/YAMLIOTest.cpp:17:
/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/include/llvm/Support/YAMLTraits.h: In instantiation of ‘std::enable_if_t<llvm::yaml::missingTraits<T, llvm::yaml::EmptyContext>::value, void> llvm::yaml::yamlize(llvm::yaml::IO&, T&, bool, llvm::yaml::EmptyContext&) [with T = std::array<int, 4>; std::enable_if_t<llvm::yaml::missingTraits<T, llvm::yaml::EmptyContext>::value, void> = void]’:
/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/include/llvm/Support/YAMLTraits.h:960:14:   required from ‘void llvm::yaml::IO::processKey(const char*, T&, bool, Context&) [with T = std::array<int, 4>; Context = llvm::yaml::EmptyContext]’
/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/include/llvm/Support/YAMLTraits.h:882:21:   required from ‘void llvm::yaml::IO::mapRequired(const char*, T&) [with T = std::array<int, 4>]’
/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/unittests/Support/YAMLIOTest.cpp:3388:19:   required from here
/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/include/llvm/Support/YAMLTraits.h:1172:36: error: invalid application of ‘sizeof’ to incomplete type ‘llvm::yaml::MissingTrait<std::array<int, 4> >’
 1172 |   char missing_yaml_trait_for_type[sizeof(MissingTrait<T>)];
      |                                    ^~~~~~~~~~~~~~~~~~~~~~~
23.057 [12/28/150] Building CXX object unittests/DebugInfo/BTF/CMakeFiles/DebugInfoBTFTests.dir/BTFParserTest.cpp.o
23.158 [12/27/151] Building CXX object unittests/ObjectYAML/CMakeFiles/ObjectYAMLTests.dir/MinidumpYAMLTest.cpp.o
23.720 [12/26/152] Building CXX object unittests/ObjectYAML/CMakeFiles/ObjectYAMLTests.dir/ELFYAMLTest.cpp.o
24.079 [12/25/153] Linking CXX executable tools/clang/tools/extra/unittests/clang-include-fixer/find-all-symbols/FindAllSymbolsTests
24.305 [12/24/154] Building CXX object tools/clang/tools/extra/unittests/clang-move/CMakeFiles/ClangMoveTests.dir/ClangMoveTests.cpp.o
24.424 [12/23/155] Building CXX object unittests/tools/llvm-exegesis/CMakeFiles/LLVMExegesisTests.dir/ResultAggregatorTest.cpp.o
24.542 [12/22/156] Linking CXX executable tools/clang/tools/extra/unittests/clang-change-namespace/ClangChangeNamespaceTests
25.190 [12/21/157] Building CXX object unittests/tools/llvm-exegesis/CMakeFiles/LLVMExegesisTests.dir/X86/SubprocessMemoryTest.cpp.o
25.327 [12/20/158] Building CXX object unittests/tools/llvm-exegesis/CMakeFiles/LLVMExegesisTests.dir/ClusteringTest.cpp.o
26.671 [12/19/159] Building CXX object unittests/tools/llvm-exegesis/CMakeFiles/LLVMExegesisTests.dir/X86/SchedClassResolutionTest.cpp.o
27.494 [12/18/160] Building CXX object tools/clang/tools/extra/include-cleaner/unittests/CMakeFiles/ClangIncludeCleanerTests.dir/LocateSymbolTest.cpp.o
27.514 [12/17/161] Building CXX object unittests/ProfileData/CMakeFiles/ProfileDataTests.dir/CoverageMappingTest.cpp.o
27.546 [12/16/162] Building CXX object tools/clang/tools/extra/unittests/clang-tidy/CMakeFiles/ClangTidyTests.dir/TransformerClangTidyCheckTest.cpp.o
27.807 [12/15/163] Building CXX object unittests/Object/CMakeFiles/ObjectTests.dir/ELFObjectFileTest.cpp.o
29.141 [12/14/164] Building CXX object unittests/tools/llvm-exegesis/CMakeFiles/LLVMExegesisTests.dir/BenchmarkRunnerTest.cpp.o
29.262 [12/13/165] Building CXX object unittests/ProfileData/CMakeFiles/ProfileDataTests.dir/MemProfTest.cpp.o
29.527 [12/12/166] Building CXX object tools/clang/unittests/Tooling/CMakeFiles/ToolingTests.dir/TransformerTest.cpp.o
30.857 [12/11/167] Building CXX object unittests/tools/llvm-exegesis/CMakeFiles/LLVMExegesisTests.dir/X86/BenchmarkResultTest.cpp.o
33.186 [12/10/168] Building CXX object unittests/tools/llvm-exegesis/CMakeFiles/LLVMExegesisTests.dir/X86/SnippetRepetitorTest.cpp.o
33.626 [12/9/169] Building CXX object unittests/ProfileData/CMakeFiles/ProfileDataTests.dir/InstrProfTest.cpp.o
33.963 [12/8/170] Building CXX object tools/clang/unittests/Format/CMakeFiles/FormatTests.dir/ConfigParseTest.cpp.o
34.114 [12/7/171] Building CXX object unittests/tools/llvm-exegesis/CMakeFiles/LLVMExegesisTests.dir/X86/SnippetFileTest.cpp.o
34.119 [12/6/172] Building CXX object unittests/tools/llvm-exegesis/CMakeFiles/LLVMExegesisTests.dir/X86/TargetTest.cpp.o
35.147 [12/5/173] Building CXX object tools/clang/tools/extra/include-cleaner/unittests/CMakeFiles/ClangIncludeCleanerTests.dir/FindHeadersTest.cpp.o
36.202 [12/4/174] Building CXX object unittests/tools/llvm-exegesis/CMakeFiles/LLVMExegesisTests.dir/X86/SnippetGeneratorTest.cpp.o
37.831 [12/3/175] Building CXX object tools/clang/unittests/Format/CMakeFiles/FormatTests.dir/FormatTest.cpp.o
39.631 [12/2/176] Building CXX object tools/clang/unittests/Tooling/CMakeFiles/ToolingTests.dir/RefactoringTest.cpp.o
45.617 [12/1/177] Building CXX object tools/clang/unittests/Format/CMakeFiles/FormatTests.dir/TokenAnnotatorTest.cpp.o
ninja: build stopped: subcommand failed.

@llvm-ci
Copy link
Collaborator

llvm-ci commented Nov 14, 2024

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

Here is the relevant piece of the build log for the reference
Step 8 (Add check check-llvm) failure: test (failure)
...
[647/680] Building CXX object unittests/ObjectYAML/CMakeFiles/ObjectYAMLTests.dir/MinidumpYAMLTest.cpp.o
[648/680] Linking CXX executable unittests/Transforms/Instrumentation/InstrumentationTests
[649/680] Linking CXX executable unittests/Transforms/Coroutines/CoroTests
[650/680] Linking CXX executable unittests/Transforms/Utils/UtilsTests
[651/680] Building CXX object unittests/DebugInfo/BTF/CMakeFiles/DebugInfoBTFTests.dir/BTFParserTest.cpp.o
[652/680] Linking CXX executable unittests/Target/X86/X86Tests
[653/680] Linking CXX executable unittests/Transforms/Scalar/ScalarTests
[654/680] Building CXX object unittests/ObjectYAML/CMakeFiles/ObjectYAMLTests.dir/DXContainerYAMLTest.cpp.o
[655/680] Linking CXX executable unittests/Target/TargetMachineCTests
[656/680] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/YAMLIOTest.cpp.o
FAILED: unittests/Support/CMakeFiles/SupportTests.dir/YAMLIOTest.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/Support -I/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/llvm/unittests/Support -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/Support/CMakeFiles/SupportTests.dir/YAMLIOTest.cpp.o -MF unittests/Support/CMakeFiles/SupportTests.dir/YAMLIOTest.cpp.o.d -o unittests/Support/CMakeFiles/SupportTests.dir/YAMLIOTest.cpp.o -c /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/llvm/unittests/Support/YAMLIOTest.cpp
In file included from /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/llvm/unittests/Support/YAMLIOTest.cpp:17:0:
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/llvm/include/llvm/Support/YAMLTraits.h: In instantiation of ‘std::enable_if_t<llvm::yaml::missingTraits<T, llvm::yaml::EmptyContext>::value, void> llvm::yaml::yamlize(llvm::yaml::IO&, T&, bool, llvm::yaml::EmptyContext&) [with T = std::array<int, 4>; std::enable_if_t<llvm::yaml::missingTraits<T, llvm::yaml::EmptyContext>::value, void> = void]’:
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/llvm/include/llvm/Support/YAMLTraits.h:960:14:   required from ‘void llvm::yaml::IO::processKey(const char*, T&, bool, Context&) [with T = std::array<int, 4>; Context = llvm::yaml::EmptyContext]’
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/llvm/include/llvm/Support/YAMLTraits.h:882:5:   required from ‘void llvm::yaml::IO::mapRequired(const char*, T&) [with T = std::array<int, 4>]’
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/llvm/unittests/Support/YAMLIOTest.cpp:3388:39:   required from here
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/llvm/include/llvm/Support/YAMLTraits.h:1172:42: error: invalid application of ‘sizeof’ to incomplete type ‘llvm::yaml::MissingTrait<std::array<int, 4> >’
   char missing_yaml_trait_for_type[sizeof(MissingTrait<T>)];
                                          ^
[657/680] Linking CXX executable unittests/DebugInfo/BTF/DebugInfoBTFTests
[658/680] Building CXX object unittests/ObjectYAML/CMakeFiles/ObjectYAMLTests.dir/ELFYAMLTest.cpp.o
[659/680] Linking CXX executable unittests/tools/llvm-mca/LLVMMCATests
[660/680] Linking CXX executable unittests/Target/AMDGPU/AMDGPUTests
[661/680] Building CXX object unittests/tools/llvm-exegesis/CMakeFiles/LLVMExegesisTests.dir/ResultAggregatorTest.cpp.o
[662/680] Building CXX object unittests/tools/llvm-exegesis/CMakeFiles/LLVMExegesisTests.dir/X86/SubprocessMemoryTest.cpp.o
[663/680] Building CXX object unittests/tools/llvm-exegesis/CMakeFiles/LLVMExegesisTests.dir/ClusteringTest.cpp.o
[664/680] Building CXX object unittests/Object/CMakeFiles/ObjectTests.dir/ELFObjectFileTest.cpp.o
[665/680] Building CXX object unittests/ProfileData/CMakeFiles/ProfileDataTests.dir/CoverageMappingTest.cpp.o
In file included from /usr/include/c++/7/cassert:44:0,
                 from /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/llvm/include/llvm/ProfileData/InstrProf.h:39,
                 from /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/llvm/include/llvm/ProfileData/Coverage/CoverageMapping.h:27,
                 from /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/llvm/unittests/ProfileData/CoverageMappingTest.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:966: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:975:23: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits]
     assert(IPVK_First <= ValueKind && ValueKind <= IPVK_Last &&
            ~~~~~~~~~~~^~~~
[666/680] Building CXX object unittests/tools/llvm-exegesis/CMakeFiles/LLVMExegesisTests.dir/X86/SchedClassResolutionTest.cpp.o
[667/680] Building CXX object unittests/ProfileData/CMakeFiles/ProfileDataTests.dir/MemProfTest.cpp.o
In file included from /usr/include/c++/7/cassert:44:0,
                 from /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/llvm/include/llvm/ProfileData/InstrProf.h:39,
                 from /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/llvm/include/llvm/ProfileData/InstrProfReader.h:21,
                 from /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/llvm/include/llvm/ProfileData/MemProfReader.h:24,
                 from /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/llvm/unittests/ProfileData/MemProfTest.cpp:18:
/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’:

@llvm-ci
Copy link
Collaborator

llvm-ci commented Nov 14, 2024

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

Here is the relevant piece of the build log for the reference
Step 6 (test-build-unified-tree-check-llvm) failure: test (failure)
...
1.223 [9/28/649] Linking CXX executable unittests/ADT/ADTTests
3.976 [9/27/650] Building CXX object unittests/ObjectYAML/CMakeFiles/ObjectYAMLTests.dir/YAMLTest.cpp.o
4.067 [9/26/651] Building CXX object unittests/CGData/CMakeFiles/CGDataTests.dir/OutlinedHashTreeRecordTest.cpp.o
4.130 [9/25/652] Building CXX object unittests/CGData/CMakeFiles/CGDataTests.dir/OutlinedHashTreeTest.cpp.o
4.480 [9/24/653] Building CXX object unittests/CGData/CMakeFiles/CGDataTests.dir/StableFunctionMapRecordTest.cpp.o
4.541 [8/24/654] Building CXX object unittests/Remarks/CMakeFiles/RemarksTests.dir/YAMLRemarksSerializerTest.cpp.o
4.563 [7/24/655] Building CXX object unittests/ObjectYAML/CMakeFiles/ObjectYAMLTests.dir/YAML2ObjTest.cpp.o
4.592 [7/23/656] Linking CXX executable unittests/CGData/CGDataTests
4.630 [7/22/657] Linking CXX executable unittests/Remarks/RemarksTests
5.126 [7/21/658] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/YAMLIOTest.cpp.o
FAILED: unittests/Support/CMakeFiles/SupportTests.dir/YAMLIOTest.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/Support -I/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/unittests/Support -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/Support/CMakeFiles/SupportTests.dir/YAMLIOTest.cpp.o -MF unittests/Support/CMakeFiles/SupportTests.dir/YAMLIOTest.cpp.o.d -o unittests/Support/CMakeFiles/SupportTests.dir/YAMLIOTest.cpp.o -c /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/unittests/Support/YAMLIOTest.cpp
In file included from /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/unittests/Support/YAMLIOTest.cpp:17:
/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/include/llvm/Support/YAMLTraits.h: In instantiation of ‘std::enable_if_t<llvm::yaml::missingTraits<T, llvm::yaml::EmptyContext>::value, void> llvm::yaml::yamlize(llvm::yaml::IO&, T&, bool, llvm::yaml::EmptyContext&) [with T = std::array<int, 4>; std::enable_if_t<llvm::yaml::missingTraits<T, llvm::yaml::EmptyContext>::value, void> = void]’:
/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/include/llvm/Support/YAMLTraits.h:960:14:   required from ‘void llvm::yaml::IO::processKey(const char*, T&, bool, Context&) [with T = std::array<int, 4>; Context = llvm::yaml::EmptyContext]’
/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/include/llvm/Support/YAMLTraits.h:882:21:   required from ‘void llvm::yaml::IO::mapRequired(const char*, T&) [with T = std::array<int, 4>]’
/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/unittests/Support/YAMLIOTest.cpp:3388:19:   required from here
/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/include/llvm/Support/YAMLTraits.h:1172:36: error: invalid application of ‘sizeof’ to incomplete type ‘llvm::yaml::MissingTrait<std::array<int, 4> >’
 1172 |   char missing_yaml_trait_for_type[sizeof(MissingTrait<T>)];
      |                                    ^~~~~~~~~~~~~~~~~~~~~~~
5.587 [7/20/659] Building CXX object unittests/tools/llvm-exegesis/CMakeFiles/LLVMExegesisTests.dir/ResultAggregatorTest.cpp.o
6.223 [7/19/660] Building CXX object unittests/tools/llvm-exegesis/CMakeFiles/LLVMExegesisTests.dir/X86/SubprocessMemoryTest.cpp.o
6.469 [7/18/661] Building CXX object unittests/Object/CMakeFiles/ObjectTests.dir/DXContainerTest.cpp.o
6.558 [7/17/662] Building CXX object unittests/ObjectYAML/CMakeFiles/ObjectYAMLTests.dir/DWARFYAMLTest.cpp.o
6.769 [7/16/663] Building CXX object unittests/ObjectYAML/CMakeFiles/ObjectYAMLTests.dir/DXContainerYAMLTest.cpp.o
7.068 [7/15/664] Building CXX object unittests/tools/llvm-exegesis/CMakeFiles/LLVMExegesisTests.dir/ClusteringTest.cpp.o
7.099 [7/14/665] Building CXX object unittests/ObjectYAML/CMakeFiles/ObjectYAMLTests.dir/MinidumpYAMLTest.cpp.o
7.804 [7/13/666] Building CXX object unittests/DebugInfo/BTF/CMakeFiles/DebugInfoBTFTests.dir/BTFParserTest.cpp.o
8.127 [7/12/667] Building CXX object unittests/ObjectYAML/CMakeFiles/ObjectYAMLTests.dir/ELFYAMLTest.cpp.o
8.417 [7/11/668] Building CXX object unittests/tools/llvm-exegesis/CMakeFiles/LLVMExegesisTests.dir/X86/SchedClassResolutionTest.cpp.o
10.339 [7/10/669] Building CXX object unittests/tools/llvm-exegesis/CMakeFiles/LLVMExegesisTests.dir/BenchmarkRunnerTest.cpp.o
10.825 [7/9/670] Building CXX object unittests/ProfileData/CMakeFiles/ProfileDataTests.dir/CoverageMappingTest.cpp.o
11.960 [7/8/671] Building CXX object unittests/ProfileData/CMakeFiles/ProfileDataTests.dir/MemProfTest.cpp.o
12.184 [7/7/672] Building CXX object unittests/Object/CMakeFiles/ObjectTests.dir/ELFObjectFileTest.cpp.o
12.682 [7/6/673] Building CXX object unittests/tools/llvm-exegesis/CMakeFiles/LLVMExegesisTests.dir/X86/BenchmarkResultTest.cpp.o
15.769 [7/5/674] Building CXX object unittests/tools/llvm-exegesis/CMakeFiles/LLVMExegesisTests.dir/X86/SnippetRepetitorTest.cpp.o
16.122 [7/4/675] Building CXX object unittests/tools/llvm-exegesis/CMakeFiles/LLVMExegesisTests.dir/X86/SnippetFileTest.cpp.o
17.679 [7/3/676] Building CXX object unittests/tools/llvm-exegesis/CMakeFiles/LLVMExegesisTests.dir/X86/SnippetGeneratorTest.cpp.o
17.870 [7/2/677] Building CXX object unittests/tools/llvm-exegesis/CMakeFiles/LLVMExegesisTests.dir/X86/TargetTest.cpp.o
18.151 [7/1/678] Building CXX object unittests/ProfileData/CMakeFiles/ProfileDataTests.dir/InstrProfTest.cpp.o
ninja: build stopped: subcommand failed.

@llvm-ci
Copy link
Collaborator

llvm-ci commented Nov 14, 2024

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

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

Here is the relevant piece of the build log for the reference
Step 5 (build-unified-tree) failure: build (failure)
...
283.077 [45/34/1196] Linking CXX executable unittests/Transforms/Coroutines/CoroTests
283.140 [44/34/1197] Linking CXX executable unittests/Transforms/Instrumentation/InstrumentationTests
283.776 [43/34/1198] Linking CXX executable unittests/Target/X86/X86Tests
283.815 [42/34/1199] Linking CXX executable unittests/Transforms/Utils/UtilsTests
283.984 [41/34/1200] Linking CXX executable unittests/Target/TargetMachineCTests
284.143 [40/34/1201] Linking CXX executable unittests/tools/llvm-cfi-verify/CFIVerifyTests
284.294 [39/34/1202] Building CXX object unittests/DebugInfo/BTF/CMakeFiles/DebugInfoBTFTests.dir/BTFParserTest.cpp.o
284.521 [38/34/1203] Building CXX object unittests/Object/CMakeFiles/ObjectTests.dir/DXContainerTest.cpp.o
284.613 [37/34/1204] Linking CXX executable unittests/Transforms/Scalar/ScalarTests
284.678 [36/34/1205] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/YAMLIOTest.cpp.o
FAILED: unittests/Support/CMakeFiles/SupportTests.dir/YAMLIOTest.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/Support -I/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/unittests/Support -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/Support/CMakeFiles/SupportTests.dir/YAMLIOTest.cpp.o -MF unittests/Support/CMakeFiles/SupportTests.dir/YAMLIOTest.cpp.o.d -o unittests/Support/CMakeFiles/SupportTests.dir/YAMLIOTest.cpp.o -c /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/unittests/Support/YAMLIOTest.cpp
In file included from /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/unittests/Support/YAMLIOTest.cpp:17:
/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/include/llvm/Support/YAMLTraits.h: In instantiation of ‘std::enable_if_t<llvm::yaml::missingTraits<T, llvm::yaml::EmptyContext>::value, void> llvm::yaml::yamlize(llvm::yaml::IO&, T&, bool, llvm::yaml::EmptyContext&) [with T = std::array<int, 4>; std::enable_if_t<llvm::yaml::missingTraits<T, llvm::yaml::EmptyContext>::value, void> = void]’:
/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/include/llvm/Support/YAMLTraits.h:960:14:   required from ‘void llvm::yaml::IO::processKey(const char*, T&, bool, Context&) [with T = std::array<int, 4>; Context = llvm::yaml::EmptyContext]’
/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/include/llvm/Support/YAMLTraits.h:882:5:   required from ‘void llvm::yaml::IO::mapRequired(const char*, T&) [with T = std::array<int, 4>]’
/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/unittests/Support/YAMLIOTest.cpp:3388:39:   required from here
/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/include/llvm/Support/YAMLTraits.h:1172:36: error: invalid application of ‘sizeof’ to incomplete type ‘llvm::yaml::MissingTrait<std::array<int, 4> >’
 1172 |   char missing_yaml_trait_for_type[sizeof(MissingTrait<T>)];
      |                                    ^~~~~~~~~~~~~~~~~~~~~~~
284.865 [36/33/1206] Linking CXX executable unittests/DebugInfo/BTF/DebugInfoBTFTests
285.010 [36/32/1207] Building CXX object unittests/ObjectYAML/CMakeFiles/ObjectYAMLTests.dir/DWARFYAMLTest.cpp.o
285.174 [36/31/1208] Building CXX object unittests/ObjectYAML/CMakeFiles/ObjectYAMLTests.dir/MinidumpYAMLTest.cpp.o
285.721 [36/30/1209] Building CXX object unittests/ObjectYAML/CMakeFiles/ObjectYAMLTests.dir/DXContainerYAMLTest.cpp.o
285.979 [36/29/1210] Building CXX object unittests/ObjectYAML/CMakeFiles/ObjectYAMLTests.dir/ELFYAMLTest.cpp.o
286.070 [36/28/1211] Building CXX object tools/obj2yaml/CMakeFiles/obj2yaml.dir/macho2yaml.cpp.o
286.697 [36/27/1212] Building CXX object tools/clang/unittests/Format/CMakeFiles/FormatTests.dir/FormatTest.cpp.o
287.818 [36/26/1213] Building CXX object unittests/tools/llvm-exegesis/CMakeFiles/LLVMExegesisTests.dir/ResultAggregatorTest.cpp.o
288.132 [36/25/1214] Building CXX object unittests/tools/llvm-exegesis/CMakeFiles/LLVMExegesisTests.dir/X86/SubprocessMemoryTest.cpp.o
288.368 [36/24/1215] Building CXX object tools/opt/CMakeFiles/LLVMOptDriver.dir/optdriver.cpp.o
289.778 [36/23/1216] Building CXX object unittests/tools/llvm-exegesis/CMakeFiles/LLVMExegesisTests.dir/ClusteringTest.cpp.o
289.783 [36/22/1217] Building CXX object unittests/Object/CMakeFiles/ObjectTests.dir/ELFObjectFileTest.cpp.o
290.371 [36/21/1218] Building CXX object tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/CGBuiltin.cpp.o
290.874 [36/20/1219] Building CXX object unittests/ProfileData/CMakeFiles/ProfileDataTests.dir/CoverageMappingTest.cpp.o
290.890 [36/19/1220] Building CXX object unittests/tools/llvm-exegesis/CMakeFiles/LLVMExegesisTests.dir/PowerPC/AnalysisTest.cpp.o
291.141 [36/18/1221] Building CXX object unittests/tools/llvm-exegesis/CMakeFiles/LLVMExegesisTests.dir/X86/SchedClassResolutionTest.cpp.o
291.872 [36/17/1222] Building CXX object unittests/Target/ARM/CMakeFiles/ARMTests.dir/MachineInstrTest.cpp.o
292.310 [36/16/1223] Building CXX object tools/clang/unittests/Tooling/CMakeFiles/ToolingTests.dir/RefactoringTest.cpp.o
292.758 [36/15/1224] Building CXX object unittests/ProfileData/CMakeFiles/ProfileDataTests.dir/MemProfTest.cpp.o
293.931 [36/14/1225] Building CXX object unittests/Target/ARM/CMakeFiles/ARMTests.dir/InstSizes.cpp.o
294.156 [36/13/1226] Building CXX object unittests/tools/llvm-exegesis/CMakeFiles/LLVMExegesisTests.dir/Mips/BenchmarkResultTest.cpp.o
294.283 [36/12/1227] Building CXX object tools/obj2yaml/CMakeFiles/obj2yaml.dir/elf2yaml.cpp.o
294.422 [36/11/1228] Building CXX object unittests/tools/llvm-exegesis/CMakeFiles/LLVMExegesisTests.dir/BenchmarkRunnerTest.cpp.o
294.860 [36/10/1229] Building CXX object unittests/tools/llvm-exegesis/CMakeFiles/LLVMExegesisTests.dir/X86/BenchmarkResultTest.cpp.o
295.731 [36/9/1230] Building CXX object tools/clang/unittests/Format/CMakeFiles/FormatTests.dir/TokenAnnotatorTest.cpp.o
296.252 [36/8/1231] Building CXX object unittests/tools/llvm-exegesis/CMakeFiles/LLVMExegesisTests.dir/PowerPC/TargetTest.cpp.o
296.447 [36/7/1232] Building CXX object unittests/tools/llvm-exegesis/CMakeFiles/LLVMExegesisTests.dir/AArch64/TargetTest.cpp.o
297.476 [36/6/1233] Building CXX object unittests/tools/llvm-exegesis/CMakeFiles/LLVMExegesisTests.dir/PowerPC/SnippetGeneratorTest.cpp.o
298.823 [36/5/1234] Building CXX object unittests/ProfileData/CMakeFiles/ProfileDataTests.dir/InstrProfTest.cpp.o

chapuni added a commit that referenced this pull request Nov 14, 2024
Compilation failed on gcc hosts.

This reverts commit 941f704.
(llvmorg-20-init-12117-g941f704f0892)
@llvm-ci
Copy link
Collaborator

llvm-ci commented Nov 14, 2024

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

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

Here is the relevant piece of the build log for the reference
Step 7 (ninja check 1) failure: stage 1 checked (failure)
...
[120/181] Building CXX object tools/clang/unittests/Tooling/CMakeFiles/ToolingTests.dir/ReplacementsYamlTest.cpp.o
[121/181] Linking CXX executable unittests/MIR/MIRTests
[122/181] Building CXX object unittests/Remarks/CMakeFiles/RemarksTests.dir/YAMLRemarksSerializerTest.cpp.o
[123/181] Linking CXX executable unittests/MI/MITests
[124/181] Linking CXX executable unittests/Frontend/LLVMFrontendTests
[125/181] Building CXX object tools/clang/unittests/Format/CMakeFiles/FormatTests.dir/MacroCallReconstructorTest.cpp.o
[126/181] Linking CXX executable unittests/Remarks/RemarksTests
[127/181] Linking CXX executable unittests/ExecutionEngine/Orc/OrcJITTests
[128/181] Linking CXX executable tools/clang/unittests/CodeGen/ClangCodeGenTests
[129/181] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/YAMLIOTest.cpp.o
FAILED: unittests/Support/CMakeFiles/SupportTests.dir/YAMLIOTest.cpp.o 
/usr/bin/c++ -DGTEST_HAS_RTTI=0 -DLLVM_BUILD_STATIC -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Iunittests/Support -I/localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/llvm/unittests/Support -Iinclude -I/localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/llvm/include -I/localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/third-party/unittest/googletest/include -I/localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/third-party/unittest/googlemock/include -march=cascadelake -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -fno-lifetime-dse -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG  -Wno-dangling-else -Wno-variadic-macros -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -Wno-suggest-override -std=c++17 -MD -MT unittests/Support/CMakeFiles/SupportTests.dir/YAMLIOTest.cpp.o -MF unittests/Support/CMakeFiles/SupportTests.dir/YAMLIOTest.cpp.o.d -o unittests/Support/CMakeFiles/SupportTests.dir/YAMLIOTest.cpp.o -c /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/llvm/unittests/Support/YAMLIOTest.cpp
In file included from /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/llvm/unittests/Support/YAMLIOTest.cpp:17:
/localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/llvm/include/llvm/Support/YAMLTraits.h: In instantiation of ‘std::enable_if_t<llvm::yaml::missingTraits<T, llvm::yaml::EmptyContext>::value, void> llvm::yaml::yamlize(llvm::yaml::IO&, T&, bool, llvm::yaml::EmptyContext&) [with T = std::array<int, 4>; std::enable_if_t<llvm::yaml::missingTraits<T, llvm::yaml::EmptyContext>::value, void> = void]’:
/localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/llvm/include/llvm/Support/YAMLTraits.h:960:14:   required from ‘void llvm::yaml::IO::processKey(const char*, T&, bool, Context&) [with T = std::array<int, 4>; Context = llvm::yaml::EmptyContext]’
/localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/llvm/include/llvm/Support/YAMLTraits.h:882:21:   required from ‘void llvm::yaml::IO::mapRequired(const char*, T&) [with T = std::array<int, 4>]’
/localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/llvm/unittests/Support/YAMLIOTest.cpp:3388:19:   required from here
/localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/llvm/include/llvm/Support/YAMLTraits.h:1172:36: error: invalid application of ‘sizeof’ to incomplete type ‘llvm::yaml::MissingTrait<std::array<int, 4> >’
 1172 |   char missing_yaml_trait_for_type[sizeof(MissingTrait<T>)];
      |                                    ^~~~~~~~~~~~~~~~~~~~~~~
[130/181] Linking CXX executable unittests/IR/IRTests
[131/181] Linking CXX executable unittests/Target/TargetMachineCTests
[132/181] Linking CXX executable unittests/ExecutionEngine/MCJIT/MCJITTests
[133/181] Linking CXX executable unittests/Transforms/Coroutines/CoroTests
[134/181] Linking CXX executable unittests/tools/llvm-mca/LLVMMCATests
[135/181] Building CXX object unittests/tools/llvm-exegesis/CMakeFiles/LLVMExegesisTests.dir/ResultAggregatorTest.cpp.o
[136/181] Linking CXX executable unittests/Transforms/Utils/UtilsTests
[137/181] Linking CXX executable unittests/Transforms/Scalar/ScalarTests
[138/181] Linking CXX executable unittests/Transforms/Instrumentation/InstrumentationTests
[139/181] Building CXX object tools/clang/unittests/Tooling/CMakeFiles/ToolingTests.dir/RefactoringActionRulesTest.cpp.o
[140/181] Linking CXX executable unittests/Target/X86/X86Tests
[141/181] Linking CXX executable unittests/Passes/Plugins/PluginsTests
[142/181] Linking CXX executable unittests/Passes/PassBuilderBindings/PassesBindingsTests
[143/181] Building CXX object unittests/ObjectYAML/CMakeFiles/ObjectYAMLTests.dir/DWARFYAMLTest.cpp.o
[144/181] Building CXX object tools/clang/unittests/Tooling/CMakeFiles/ToolingTests.dir/DiagnosticsYamlTest.cpp.o
[145/181] Building CXX object unittests/tools/llvm-exegesis/CMakeFiles/LLVMExegesisTests.dir/X86/SubprocessMemoryTest.cpp.o
[146/181] Building CXX object unittests/ObjectYAML/CMakeFiles/ObjectYAMLTests.dir/DXContainerYAMLTest.cpp.o
[147/181] Building CXX object unittests/DebugInfo/BTF/CMakeFiles/DebugInfoBTFTests.dir/BTFParserTest.cpp.o
[148/181] Building CXX object unittests/Object/CMakeFiles/ObjectTests.dir/DXContainerTest.cpp.o
[149/181] Building CXX object unittests/ObjectYAML/CMakeFiles/ObjectYAMLTests.dir/ELFYAMLTest.cpp.o
[150/181] Building CXX object tools/clang/unittests/Format/CMakeFiles/FormatTests.dir/QualifierFixerTest.cpp.o
[151/181] Building CXX object unittests/tools/llvm-exegesis/CMakeFiles/LLVMExegesisTests.dir/ClusteringTest.cpp.o
[152/181] Building CXX object unittests/ObjectYAML/CMakeFiles/ObjectYAMLTests.dir/MinidumpYAMLTest.cpp.o
[153/181] Linking CXX executable tools/clang/unittests/Frontend/FrontendTests
[154/181] Linking CXX executable tools/clang/unittests/Interpreter/ClangReplInterpreterTests
[155/181] Linking CXX executable tools/clang/unittests/Interpreter/ExceptionTests/ClangReplInterpreterExceptionTests
[156/181] Building CXX object unittests/tools/llvm-exegesis/CMakeFiles/LLVMExegesisTests.dir/X86/SchedClassResolutionTest.cpp.o
[157/181] Building CXX object tools/clang/unittests/Format/CMakeFiles/FormatTests.dir/FormatTestComments.cpp.o
[158/181] Building CXX object unittests/tools/llvm-exegesis/CMakeFiles/LLVMExegesisTests.dir/BenchmarkRunnerTest.cpp.o

@llvm-ci
Copy link
Collaborator

llvm-ci commented Nov 14, 2024

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

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

Here is the relevant piece of the build log for the reference
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
...
5.919 [8/62/661] Linking CXX executable unittests/Remarks/RemarksTests
6.247 [8/61/662] Linking CXX executable unittests/CGData/CGDataTests
6.268 [8/60/663] Linking CXX executable unittests/Target/VE/VETests
6.669 [8/59/664] Linking CXX executable unittests/Target/LoongArch/LoongArchTests
6.690 [8/58/665] Linking CXX executable unittests/Target/WebAssembly/WebAssemblyTests
6.696 [8/57/666] Linking CXX executable unittests/tools/llvm-cfi-verify/CFIVerifyTests
6.901 [8/56/667] Linking CXX executable unittests/Target/PowerPC/PowerPCTests
7.070 [8/55/668] Linking CXX executable unittests/Target/RISCV/RISCVTests
7.211 [8/54/669] Linking CXX executable unittests/Frontend/LLVMFrontendTests
7.353 [8/53/670] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/YAMLIOTest.cpp.o
FAILED: unittests/Support/CMakeFiles/SupportTests.dir/YAMLIOTest.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/Support -I/home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/unittests/Support -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/Support/CMakeFiles/SupportTests.dir/YAMLIOTest.cpp.o -MF unittests/Support/CMakeFiles/SupportTests.dir/YAMLIOTest.cpp.o.d -o unittests/Support/CMakeFiles/SupportTests.dir/YAMLIOTest.cpp.o -c /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/unittests/Support/YAMLIOTest.cpp
In file included from /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/unittests/Support/YAMLIOTest.cpp:17:
/home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/include/llvm/Support/YAMLTraits.h: In instantiation of ‘std::enable_if_t<llvm::yaml::missingTraits<T, llvm::yaml::EmptyContext>::value, void> llvm::yaml::yamlize(llvm::yaml::IO&, T&, bool, llvm::yaml::EmptyContext&) [with T = std::array<int, 4>; std::enable_if_t<llvm::yaml::missingTraits<T, llvm::yaml::EmptyContext>::value, void> = void]’:
/home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/include/llvm/Support/YAMLTraits.h:960:14:   required from ‘void llvm::yaml::IO::processKey(const char*, T&, bool, Context&) [with T = std::array<int, 4>; Context = llvm::yaml::EmptyContext]’
/home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/include/llvm/Support/YAMLTraits.h:882:21:   required from ‘void llvm::yaml::IO::mapRequired(const char*, T&) [with T = std::array<int, 4>]’
/home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/unittests/Support/YAMLIOTest.cpp:3388:19:   required from here
/home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/include/llvm/Support/YAMLTraits.h:1172:36: error: invalid application of ‘sizeof’ to incomplete type ‘llvm::yaml::MissingTrait<std::array<int, 4> >’
 1172 |   char missing_yaml_trait_for_type[sizeof(MissingTrait<T>)];
      |                                    ^~~~~~~~~~~~~~~~~~~~~~~
7.353 [8/52/671] Linking CXX executable unittests/Target/AArch64/AArch64Tests
7.760 [8/51/672] Linking CXX executable unittests/Transforms/Coroutines/CoroTests
7.840 [8/50/673] Building CXX object unittests/tools/llvm-exegesis/CMakeFiles/LLVMExegesisTests.dir/ResultAggregatorTest.cpp.o
7.875 [8/49/674] Linking CXX executable unittests/Transforms/Instrumentation/InstrumentationTests
8.336 [8/48/675] Linking CXX executable unittests/Transforms/Utils/UtilsTests
8.618 [8/47/676] Linking CXX executable unittests/Passes/PassBuilderBindings/PassesBindingsTests
8.938 [8/46/677] Linking CXX executable unittests/Passes/Plugins/PluginsTests
9.092 [8/45/678] Linking CXX executable unittests/ExecutionEngine/Orc/OrcJITTests
9.450 [8/44/679] Building CXX object unittests/ObjectYAML/CMakeFiles/ObjectYAMLTests.dir/MinidumpYAMLTest.cpp.o
9.552 [8/43/680] Building CXX object unittests/ObjectYAML/CMakeFiles/ObjectYAMLTests.dir/DWARFYAMLTest.cpp.o
9.573 [8/42/681] Linking CXX executable unittests/Transforms/Scalar/ScalarTests
9.689 [8/41/682] Building CXX object unittests/ObjectYAML/CMakeFiles/ObjectYAMLTests.dir/ELFYAMLTest.cpp.o
9.799 [8/40/683] Linking CXX executable unittests/IR/IRTests
9.830 [8/39/684] Linking CXX executable unittests/MC/AMDGPU/AMDGPUMCTests
9.834 [8/38/685] Building CXX object unittests/Object/CMakeFiles/ObjectTests.dir/DXContainerTest.cpp.o
9.842 [8/37/686] Building CXX object unittests/tools/llvm-exegesis/CMakeFiles/LLVMExegesisTests.dir/X86/SubprocessMemoryTest.cpp.o
9.923 [8/36/687] Building CXX object unittests/ObjectYAML/CMakeFiles/ObjectYAMLTests.dir/DXContainerYAMLTest.cpp.o
10.102 [8/35/688] Linking CXX executable unittests/Target/X86/X86Tests
10.535 [8/34/689] Building CXX object unittests/tools/llvm-exegesis/CMakeFiles/LLVMExegesisTests.dir/ClusteringTest.cpp.o
10.569 [8/33/690] Linking CXX executable unittests/Target/AMDGPU/AMDGPUTests
10.673 [8/32/691] Linking CXX executable unittests/ExecutionEngine/MCJIT/MCJITTests
10.764 [8/31/692] Linking CXX executable unittests/Analysis/AnalysisTests
11.014 [8/30/693] Linking CXX executable unittests/tools/llvm-mca/LLVMMCATests
11.473 [8/29/694] Building CXX object unittests/tools/llvm-exegesis/CMakeFiles/LLVMExegesisTests.dir/PowerPC/AnalysisTest.cpp.o
11.790 [8/28/695] Building CXX object unittests/DebugInfo/BTF/CMakeFiles/DebugInfoBTFTests.dir/BTFParserTest.cpp.o
12.893 [8/27/696] Building CXX object unittests/tools/llvm-exegesis/CMakeFiles/LLVMExegesisTests.dir/X86/SchedClassResolutionTest.cpp.o
13.651 [8/26/697] Building CXX object unittests/Target/ARM/CMakeFiles/ARMTests.dir/MachineInstrTest.cpp.o
13.777 [8/25/698] Linking CXX executable unittests/MIR/MIRTests
13.889 [8/24/699] Building CXX object unittests/tools/llvm-exegesis/CMakeFiles/LLVMExegesisTests.dir/BenchmarkRunnerTest.cpp.o

chapuni added a commit to chapuni/llvm-project that referenced this pull request Nov 14, 2024
`std::array` will be handled like `MutableArrayRef`;

- Extending elements is not acceptable.
- For applying fewer sequence, trailing elements will be initialized by
default.

Not like;

- `std::array` is not the reference but holds values. Supposing to hold
small count of elements.

Changes since llvmorg-20-init-12117-g941f704f0892:
- Use `size_t` for `N`, instead of `unsigned`.
- include <array>
chapuni added a commit that referenced this pull request Nov 14, 2024
`std::array` will be handled like `MutableArrayRef`;

- Extending elements is not acceptable.
- For applying fewer sequence, trailing elements will be initialized by
default.

Not like;

- `std::array` is not the reference but holds values. Supposing to hold
small count of elements.

Changes since llvmorg-20-init-12117-g941f704f0892:
- Use `size_t` for `N`, instead of `unsigned`.
- include <array>
akshayrdeodhar pushed a commit to akshayrdeodhar/llvm-project that referenced this pull request Nov 18, 2024
`std::array` will be handled like `MutableArrayRef`;

- Extending elements is not acceptable.
- For applying fewer sequence, trailing elements will be initialized by
default.

Not like;

- `std::array` is not the reference but holds values. Supposing to hold
small count of elements.
akshayrdeodhar pushed a commit to akshayrdeodhar/llvm-project that referenced this pull request Nov 18, 2024
Compilation failed on gcc hosts.

This reverts commit 941f704.
(llvmorg-20-init-12117-g941f704f0892)
akshayrdeodhar pushed a commit to akshayrdeodhar/llvm-project that referenced this pull request Nov 18, 2024
`std::array` will be handled like `MutableArrayRef`;

- Extending elements is not acceptable.
- For applying fewer sequence, trailing elements will be initialized by
default.

Not like;

- `std::array` is not the reference but holds values. Supposing to hold
small count of elements.

Changes since llvmorg-20-init-12117-g941f704f0892:
- Use `size_t` for `N`, instead of `unsigned`.
- include <array>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants