[llvm] [YAML] Make `std::array` available (PR #116059)

LLVM Continuous Integration via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 13 19:51:58 PST 2024


llvm-ci wrote:

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

<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)
...
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

```

</details>

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


More information about the llvm-commits mailing list