[llvm] [YAML] Make `std::array` available (PR #116059)
LLVM Continuous Integration via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 13 18:31:06 PST 2024
llvm-ci wrote:
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
<details>
<summary>Here is the relevant piece of the build log for the reference</summary>
```
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.
```
</details>
https://github.com/llvm/llvm-project/pull/116059
More information about the llvm-commits
mailing list