[llvm] [YAML] Make `std::array` available (PR #116059)
LLVM Continuous Integration via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 13 18:30:59 PST 2024
llvm-ci wrote:
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
<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.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.
```
</details>
https://github.com/llvm/llvm-project/pull/116059
More information about the llvm-commits
mailing list