llvm / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
http://llvm.org
Other
29.09k stars 12k forks source link

ninja: build stopped: subcommand failed. #75695

Open SiqinLv opened 11 months ago

SiqinLv commented 11 months ago

{X86::VXORPSZrrk, X86::VXORPSZrmbk, TB_BCAST_SS}, };

-- Command Output (stderr):

RUN: at line 6: /data/lvsiqin/out_models/llvm-project/build/bin/llvm-tblgen -gen-x86-fold-tables -asmwriternum=1 /data/lvsiqin/out_models/llvm-project/llvm/test/TableGen/../../lib/Target/X86/X86.td -I /data/lvsiqin/out_models/llvm-project/llvm/test/TableGen/../../lib/Target/X86 -I /data/lvsiqin/out_models/llvm-project/llvm/test/TableGen/../../include -o /data/lvsiqin/out_models/llvm-project/build/test/TableGen/Output/x86-fold-tables.td.tmp
+ /data/lvsiqin/out_models/llvm-project/build/bin/llvm-tblgen -gen-x86-fold-tables -asmwriternum=1 /data/lvsiqin/out_models/llvm-project/llvm/test/TableGen/../../lib/Target/X86/X86.td -I /data/lvsiqin/out_models/llvm-project/llvm/test/TableGen/../../lib/Target/X86 -I /data/lvsiqin/out_models/llvm-project/llvm/test/TableGen/../../include -o /data/lvsiqin/out_models/llvm-project/build/test/TableGen/Output/x86-fold-tables.td.tmp
RUN: at line 7: diff /data/lvsiqin/out_models/llvm-project/llvm/test/TableGen/x86-fold-tables.inc /data/lvsiqin/out_models/llvm-project/build/test/TableGen/Output/x86-fold-tables.td.tmp
+ diff /data/lvsiqin/out_models/llvm-project/llvm/test/TableGen/x86-fold-tables.inc /data/lvsiqin/out_models/llvm-project/build/test/TableGen/Output/x86-fold-tables.td.tmp

--

********************
********************
Failed Tests (136):
  LLVM :: Bindings/llvm-c/ARM/disassemble.test
  LLVM :: Bindings/llvm-c/X86/disassemble.test
  LLVM :: MC/ARM/inline-comments-arm.ll
  LLVM :: MC/AsmParser/inline-comments.ll
  LLVM :: Other/can-execute.txt
  LLVM :: TableGen/x86-fold-tables.td
  LLVM :: tools/UpdateTestChecks/update_analyze_test_checks/branch-probability-analysis.test
  LLVM :: tools/UpdateTestChecks/update_analyze_test_checks/dotvariable-laa.test
  LLVM :: tools/UpdateTestChecks/update_analyze_test_checks/filter-with-spaces.test
  LLVM :: tools/UpdateTestChecks/update_analyze_test_checks/filter.test
  LLVM :: tools/UpdateTestChecks/update_analyze_test_checks/loop-access-analysis.test
  LLVM :: tools/UpdateTestChecks/update_analyze_test_checks/loopvectorize-costmodel.test
  LLVM :: tools/UpdateTestChecks/update_analyze_test_checks/scev.test
  LLVM :: tools/UpdateTestChecks/update_llc_test_checks/aarch64-function-name.test
  LLVM :: tools/UpdateTestChecks/update_llc_test_checks/aarch64_generated_funcs.test
  LLVM :: tools/UpdateTestChecks/update_llc_test_checks/amdgpu-function-name.test
  LLVM :: tools/UpdateTestChecks/update_llc_test_checks/amdgpu-isel-support.test
  LLVM :: tools/UpdateTestChecks/update_llc_test_checks/amdgpu-no-merge-comments.test
  LLVM :: tools/UpdateTestChecks/update_llc_test_checks/amdgpu_generated_funcs.test
  LLVM :: tools/UpdateTestChecks/update_llc_test_checks/arm-function-name.test
  LLVM :: tools/UpdateTestChecks/update_llc_test_checks/arm_generated_funcs.test
  LLVM :: tools/UpdateTestChecks/update_llc_test_checks/asm-show-inst.test
  LLVM :: tools/UpdateTestChecks/update_llc_test_checks/avr-function-name.test
  LLVM :: tools/UpdateTestChecks/update_llc_test_checks/basic.test
  LLVM :: tools/UpdateTestChecks/update_llc_test_checks/hexagon-function-name.test
  LLVM :: tools/UpdateTestChecks/update_llc_test_checks/hexagon_generated_funcs.test
  LLVM :: tools/UpdateTestChecks/update_llc_test_checks/lanai-function-name.test
  LLVM :: tools/UpdateTestChecks/update_llc_test_checks/lanai-isel-support.test
  LLVM :: tools/UpdateTestChecks/update_llc_test_checks/lanai_generated_funcs.test
  LLVM :: tools/UpdateTestChecks/update_llc_test_checks/loongarch-function-name.test
  LLVM :: tools/UpdateTestChecks/update_llc_test_checks/loongarch_generated_funcs.test
  LLVM :: tools/UpdateTestChecks/update_llc_test_checks/mips-function-name.test
  LLVM :: tools/UpdateTestChecks/update_llc_test_checks/mips64_eh.test
  LLVM :: tools/UpdateTestChecks/update_llc_test_checks/mips_generated_funcs.test
  LLVM :: tools/UpdateTestChecks/update_llc_test_checks/msp430-function-name.test
  LLVM :: tools/UpdateTestChecks/update_llc_test_checks/msp430_generated_funcs.test
  LLVM :: tools/UpdateTestChecks/update_llc_test_checks/nvptx-basic.test
  LLVM :: tools/UpdateTestChecks/update_llc_test_checks/on_the_fly_arg_change.test
  LLVM :: tools/UpdateTestChecks/update_llc_test_checks/ppc-function-name.test
  LLVM :: tools/UpdateTestChecks/update_llc_test_checks/ppc_generated_funcs.test
  LLVM :: tools/UpdateTestChecks/update_llc_test_checks/pre-process.test
  LLVM :: tools/UpdateTestChecks/update_llc_test_checks/riscv-function-name.test
  LLVM :: tools/UpdateTestChecks/update_llc_test_checks/sparc-function-name.test
  LLVM :: tools/UpdateTestChecks/update_llc_test_checks/sparc_generated_funcs.test
  LLVM :: tools/UpdateTestChecks/update_llc_test_checks/systemz-function-name.test
  LLVM :: tools/UpdateTestChecks/update_llc_test_checks/systemz-nounwind.test
  LLVM :: tools/UpdateTestChecks/update_llc_test_checks/systemz_generated_funcs.test
  LLVM :: tools/UpdateTestChecks/update_llc_test_checks/ve-basic.test
  LLVM :: tools/UpdateTestChecks/update_llc_test_checks/wasm-function-name.test
  LLVM :: tools/UpdateTestChecks/update_llc_test_checks/wasm_generated_funcs.test
  LLVM :: tools/UpdateTestChecks/update_llc_test_checks/x86-basic.test
  LLVM :: tools/UpdateTestChecks/update_llc_test_checks/x86-constant-pool.test
  LLVM :: tools/UpdateTestChecks/update_llc_test_checks/x86-filter.test
  LLVM :: tools/UpdateTestChecks/update_llc_test_checks/x86-isel-support.test
  LLVM :: tools/UpdateTestChecks/update_llc_test_checks/x86_generated_funcs.test
  LLVM :: tools/UpdateTestChecks/update_mir_test_checks/multiple-defs.test
  LLVM :: tools/UpdateTestChecks/update_mir_test_checks/print-stack.test
  LLVM :: tools/UpdateTestChecks/update_mir_test_checks/x86-MIFlags.test
  LLVM :: tools/UpdateTestChecks/update_mir_test_checks/x86-condbr.test
  LLVM :: tools/UpdateTestChecks/update_mir_test_checks/x86-dead-def.test
  LLVM :: tools/UpdateTestChecks/update_mir_test_checks/x86-multiple-prefixes.test
  LLVM :: tools/UpdateTestChecks/update_mir_test_checks/x86-simplify-mir.test
  LLVM :: tools/UpdateTestChecks/update_test_checks/argument_name_reuse.test
  LLVM :: tools/UpdateTestChecks/update_test_checks/basic.test
  LLVM :: tools/UpdateTestChecks/update_test_checks/check_attrs.test
  LLVM :: tools/UpdateTestChecks/update_test_checks/custom-tool.test
  LLVM :: tools/UpdateTestChecks/update_test_checks/function-name.test
  LLVM :: tools/UpdateTestChecks/update_test_checks/generated_funcs.test
  LLVM :: tools/UpdateTestChecks/update_test_checks/generated_funcs_prefix_reuse.test
  LLVM :: tools/UpdateTestChecks/update_test_checks/global_preserve_name.test
  LLVM :: tools/UpdateTestChecks/update_test_checks/global_regex.test
  LLVM :: tools/UpdateTestChecks/update_test_checks/named_function_arguments_split.test
  LLVM :: tools/UpdateTestChecks/update_test_checks/on_the_fly_arg_change.test
  LLVM :: tools/UpdateTestChecks/update_test_checks/pre-process.test
  LLVM :: tools/UpdateTestChecks/update_test_checks/prefix-never-matches.test
  LLVM :: tools/UpdateTestChecks/update_test_checks/scrub_attrs.test
  LLVM :: tools/UpdateTestChecks/update_test_checks/sometimes_deleted_function.test
  LLVM :: tools/UpdateTestChecks/update_test_checks/various_ir_values.test
  LLVM :: tools/llvm-ar/error-opening-permission.test
  LLVM :: tools/llvm-cov/gcov/basic.test
  LLVM :: tools/llvm-dwarfdump/X86/output.s
  LLVM :: tools/llvm-ifs/fail-file-write.test
  LLVM :: tools/llvm-nm/invalid-tapi-files.test
  LLVM :: tools/llvm-nm/tapi-files.test
  LLVM :: tools/llvm-profgen/callback-external-addr.test
  LLVM :: tools/llvm-profgen/cold-profile-trimming-symbolized.test
  LLVM :: tools/llvm-profgen/cold-profile-trimming.test
  LLVM :: tools/llvm-profgen/cs-extbinary.test
  LLVM :: tools/llvm-profgen/cs-external-address.test
  LLVM :: tools/llvm-profgen/cs-interrupt.test
  LLVM :: tools/llvm-profgen/cs-invalid-ret-addr.test
  LLVM :: tools/llvm-profgen/cs-preinline-cost.test
  LLVM :: tools/llvm-profgen/cs-preinline-sample-profile.test
  LLVM :: tools/llvm-profgen/cs-preinline.test
  LLVM :: tools/llvm-profgen/cs-tailcall.test
  LLVM :: tools/llvm-profgen/fname-canonicalization.test
  LLVM :: tools/llvm-profgen/fs-discriminator-probe.test
  LLVM :: tools/llvm-profgen/fs-discriminator.test
  LLVM :: tools/llvm-profgen/func-split.test
  LLVM :: tools/llvm-profgen/inline-cs-noprobe.test
  LLVM :: tools/llvm-profgen/inline-cs-pseudoprobe.test
  LLVM :: tools/llvm-profgen/inline-noprobe.test
  LLVM :: tools/llvm-profgen/invalid-range.test
  LLVM :: tools/llvm-profgen/merge-cold-profile.test
  LLVM :: tools/llvm-profgen/mmapEvent.test
  LLVM :: tools/llvm-profgen/multi-load-segs.test
  LLVM :: tools/llvm-profgen/noinline-cs-noprobe.test
  LLVM :: tools/llvm-profgen/noinline-cs-pseudoprobe.test
  LLVM :: tools/llvm-profgen/noinline-noprobe.test
  LLVM :: tools/llvm-profgen/noinline-pseudoprobe.test
  LLVM :: tools/llvm-profgen/profile-density.test
  LLVM :: tools/llvm-profgen/recursion-compression-noprobe.test
  LLVM :: tools/llvm-profgen/recursion-compression-pseudoprobe.test
  LLVM :: tools/llvm-profgen/separate-debuginfo-binary.test
  LLVM :: tools/llvm-profgen/truncated-pseudoprobe.test
  LLVM :: tools/llvm-ranlib/error-opening-permission.test
  LLVM :: tools/llvm-rc/tag-html.test
  LLVM :: tools/llvm-readtapi/compare-flags.test
  LLVM :: tools/llvm-readtapi/compare-incorrect-format.test
  LLVM :: tools/llvm-readtapi/compare-inlines.test
  LLVM :: tools/llvm-readtapi/compare-left-single-inline.test
  LLVM :: tools/llvm-readtapi/compare-matching-tapi-files.test
  LLVM :: tools/llvm-readtapi/compare-mismatched-inlines.test
  LLVM :: tools/llvm-readtapi/compare-misspelled-files.test
  LLVM :: tools/llvm-readtapi/compare-multiple-inlines.test
  LLVM :: tools/llvm-readtapi/compare-no-inlines.test
  LLVM :: tools/llvm-readtapi/compare-right-single-inline.test
  LLVM :: tools/llvm-readtapi/compare-v5.test
  LLVM :: tools/llvm-readtapi/extract-invalid.test
  LLVM :: tools/llvm-readtapi/merge-invalid.test
  LLVM :: tools/llvm-readtapi/merge.test
  LLVM :: tools/llvm-readtapi/write.test
  LLVM :: tools/opt-viewer/basic.test
  LLVM :: tools/opt-viewer/filter.test
  LLVM :: tools/opt-viewer/suppress.test
  LLVM :: tools/opt-viewer/unicode-function-name.test

Testing Time: 503.14s

Total Discovered Tests: 57608
  Skipped          :    15 (0.03%)
  Unsupported      :   807 (1.40%)
  Passed           : 56483 (98.05%)
  Expectedly Failed:   167 (0.29%)
  Failed           :   136 (0.24%)
FAILED: test/CMakeFiles/check-llvm 
cd /data/lvsiqin/out_models/llvm-project/build/test && /opt/anaconda3/bin/python3.8 /data/lvsiqin/out_models/llvm-project/build/./bin/llvm-lit -sv /data/lvsiqin/out_models/llvm-project/build/test
ninja: build stopped: subcommand failed.

这是什么问题,弄一天了,还没找到解决方案

sunflower-you commented 9 months ago

root@yyds-virtual-machine:/home/yyds/workspace/project/llvm-project/build# cmake --build . [1/2488] Building CXX object tools/mlir/tools/mlir-tblgen/CMakeFiles/mlir-tblgen.dir/EnumPythonBindingGen.cpp.o FAILED: tools/mlir/tools/mlir-tblgen/CMakeFiles/mlir-tblgen.dir/EnumPythonBindingGen.cpp.o CCACHE_CPP2=yes CCACHE_HASHDIR=yes /usr/bin/ccache /usr/bin/clang++ -DGTEST_HAS_RTTI=0 -DMLIR_CUDA_CONVERSIONS_ENABLED=0 -DMLIR_ROCM_CONVERSIONS_ENABLED=0 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -DSTDC_CONSTANT_MACROS -DSTDC_FORMAT_MACROS -DSTDC_LIMIT_MACROS -I/home/yyds/workspace/project/llvm-project/build/tools/mlir/tools/mlir-tblgen -I/home/yyds/workspace/project/llvm-project/mlir/tools/mlir-tblgen -I/home/yyds/workspace/project/llvm-project/build/include -I/home/yyds/workspace/project/llvm-project/llvm/include -I/home/yyds/workspace/project/llvm-project/mlir/include -I/home/yyds/workspace/project/llvm-project/build/tools/mlir/include -fPIC -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wstring-conversion -fdiagnostics-color -ffunction-sections -fdata-sections -Werror=mismatched-tags -O3 -DNDEBUG -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -std=c++17 -MD -MT tools/mlir/tools/mlir-tblgen/CMakeFiles/mlir-tblgen.dir/EnumPythonBindingGen.cpp.o -MF tools/mlir/tools/mlir-tblgen/CMakeFiles/mlir-tblgen.dir/EnumPythonBindingGen.cpp.o.d -o tools/mlir/tools/mlir-tblgen/CMakeFiles/mlir-tblgen.dir/EnumPythonBindingGen.cpp.o -c /home/yyds/workspace/project/llvm-project/mlir/tools/mlir-tblgen/EnumPythonBindingGen.cpp In file included from /home/yyds/workspace/project/llvm-project/mlir/tools/mlir-tblgen/EnumPythonBindingGen.cpp:13: In file included from /home/yyds/workspace/project/llvm-project/mlir/tools/mlir-tblgen/OpGenHelpers.h:16: In file included from /home/yyds/workspace/project/llvm-project/llvm/include/llvm/TableGen/Record.h:17: In file included from /home/yyds/workspace/project/llvm-project/llvm/include/llvm/ADT/ArrayRef.h:14: /home/yyds/workspace/project/llvm-project/llvm/include/llvm/ADT/STLExtras.h:2535:1: error: 'tuple_size' defined as a struct template here but previously declared as a class template [-Werror,-Wmismatched-tags] struct tuple_size<llvm::detail::enumerator_result> ^ /usr/bin/../lib/gcc/x86_64-linux-gnu/7.5.0/../../../../include/c++/7.5.0/array:342:5: note: did you mean struct here? class tuple_size; ^ In file included from /home/yyds/workspace/project/llvm-project/mlir/tools/mlir-tblgen/EnumPythonBindingGen.cpp:13: In file included from /home/yyds/workspace/project/llvm-project/mlir/tools/mlir-tblgen/OpGenHelpers.h:16: In file included from /home/yyds/workspace/project/llvm-project/llvm/include/llvm/TableGen/Record.h:17: In file included from /home/yyds/workspace/project/llvm-project/llvm/include/llvm/ADT/ArrayRef.h:14: /home/yyds/workspace/project/llvm-project/llvm/include/llvm/ADT/STLExtras.h:2539:1: error: 'tuple_element' defined as a struct template here but previously declared as a class template [-Werror,-Wmismatched-tags] struct tuple_element<I, llvm::detail::enumerator_result> ^ /usr/bin/../lib/gcc/x86_64-linux-gnu/7.5.0/../../../../include/c++/7.5.0/array:351:5: note: did you mean struct here? class tuple_element; ^ In file included from /home/yyds/workspace/project/llvm-project/mlir/tools/mlir-tblgen/EnumPythonBindingGen.cpp:13: In file included from /home/yyds/workspace/project/llvm-project/mlir/tools/mlir-tblgen/OpGenHelpers.h:16: In file included from /home/yyds/workspace/project/llvm-project/llvm/include/llvm/TableGen/Record.h:17: In file included from /home/yyds/workspace/project/llvm-project/llvm/include/llvm/ADT/ArrayRef.h:14: /home/yyds/workspace/project/llvm-project/llvm/include/llvm/ADT/STLExtras.h:2543:1: error: 'tuple_element' defined as a struct template here but previously declared as a class template [-Werror,-Wmismatched-tags] struct tuple_element<I, const llvm::detail::enumerator_result> ^ /usr/bin/../lib/gcc/x86_64-linux-gnu/7.5.0/../../../../include/c++/7.5.0/array:351:5: note: did you mean struct here? class tuple_element; ^ In file included from /home/yyds/workspace/project/llvm-project/mlir/tools/mlir-tblgen/EnumPythonBindingGen.cpp:13: In file included from /home/yyds/workspace/project/llvm-project/mlir/tools/mlir-tblgen/OpGenHelpers.h:16: In file included from /home/yyds/workspace/project/llvm-project/llvm/include/llvm/TableGen/Record.h:21: /home/yyds/workspace/project/llvm-project/llvm/include/llvm/ADT/PointerIntPair.h:283:1: error: 'tuple_size' defined as a struct template here but previously declared as a class template [-Werror,-Wmismatched-tags] struct tuple_size< ^ /usr/bin/../lib/gcc/x86_64-linux-gnu/7.5.0/../../../../include/c++/7.5.0/array:342:5: note: did you mean struct here? class tuple_size; ^ In file included from /home/yyds/workspace/project/llvm-project/mlir/tools/mlir-tblgen/EnumPythonBindingGen.cpp:13: In file included from /home/yyds/workspace/project/llvm-project/mlir/tools/mlir-tblgen/OpGenHelpers.h:16: In file included from /home/yyds/workspace/project/llvm-project/llvm/include/llvm/TableGen/Record.h:21: /home/yyds/workspace/project/llvm-project/llvm/include/llvm/ADT/PointerIntPair.h:289:1: error: 'tuple_element' defined as a struct template here but previously declared as a class template [-Werror,-Wmismatched-tags] struct tuple_element< ^ /usr/bin/../lib/gcc/x86_64-linux-gnu/7.5.0/../../../../include/c++/7.5.0/array:351:5: note: did you mean struct here? class tuple_element; ^ In file included from /home/yyds/workspace/project/llvm-project/mlir/tools/mlir-tblgen/EnumPythonBindingGen.cpp:13: In file included from /home/yyds/workspace/project/llvm-project/mlir/tools/mlir-tblgen/OpGenHelpers.h:16: In file included from /home/yyds/workspace/project/llvm-project/llvm/include/llvm/TableGen/Record.h:28: In file included from /home/yyds/workspace/project/llvm-project/llvm/include/llvm/Support/Timer.h:12: In file included from /home/yyds/workspace/project/llvm-project/llvm/include/llvm/ADT/StringMap.h:17: /home/yyds/workspace/project/llvm-project/llvm/include/llvm/ADT/StringMapEntry.h:165:1: error: 'tuple_size' defined as a struct template here but previously declared as a class template [-Werror,-Wmismatched-tags] struct tuple_size<llvm::StringMapEntry> ^ /usr/bin/../lib/gcc/x86_64-linux-gnu/7.5.0/../../../../include/c++/7.5.0/array:342:5: note: did you mean struct here? class tuple_size; ^ In file included from /home/yyds/workspace/project/llvm-project/mlir/tools/mlir-tblgen/EnumPythonBindingGen.cpp:13: In file included from /home/yyds/workspace/project/llvm-project/mlir/tools/mlir-tblgen/OpGenHelpers.h:16: In file included from /home/yyds/workspace/project/llvm-project/llvm/include/llvm/TableGen/Record.h:28: In file included from /home/yyds/workspace/project/llvm-project/llvm/include/llvm/Support/Timer.h:12: In file included from /home/yyds/workspace/project/llvm-project/llvm/include/llvm/ADT/StringMap.h:17: /home/yyds/workspace/project/llvm-project/llvm/include/llvm/ADT/StringMapEntry.h:169:1: error: 'tuple_element' defined as a struct template here but previously declared as a class template [-Werror,-Wmismatched-tags] struct tuple_element<I, llvm::StringMapEntry> ^ /usr/bin/../lib/gcc/x86_64-linux-gnu/7.5.0/../../../../include/c++/7.5.0/array:351:5: note: did you mean struct here? class tuple_element; ^ 7 errors generated. [2/2488] Building CXX object tools/mlir/tools/mlir-tblgen/CMakeFiles/mlir-tblgen.dir/AttrOrTypeFormatGen.cpp.o FAILED: tools/mlir/tools/mlir-tblgen/CMakeFiles/mlir-tblgen.dir/AttrOrTypeFormatGen.cpp.o CCACHE_CPP2=yes CCACHE_HASHDIR=yes /usr/bin/ccache /usr/bin/clang++ -DGTEST_HAS_RTTI=0 -DMLIR_CUDA_CONVERSIONS_ENABLED=0 -DMLIR_ROCM_CONVERSIONS_ENABLED=0 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -DSTDC_CONSTANT_MACROS -DSTDC_FORMAT_MACROS -DSTDC_LIMIT_MACROS -I/home/yyds/workspace/project/llvm-project/build/tools/mlir/tools/mlir-tblgen -I/home/yyds/workspace/project/llvm-project/mlir/tools/mlir-tblgen -I/home/yyds/workspace/project/llvm-project/build/include -I/home/yyds/workspace/project/llvm-project/llvm/include -I/home/yyds/workspace/project/llvm-project/mlir/include -I/home/yyds/workspace/project/llvm-project/build/tools/mlir/include -fPIC -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wstring-conversion -fdiagnostics-color -ffunction-sections -fdata-sections -Werror=mismatched-tags -O3 -DNDEBUG -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -std=c++17 -MD -MT tools/mlir/tools/mlir-tblgen/CMakeFiles/mlir-tblgen.dir/AttrOrTypeFormatGen.cpp.o -MF tools/mlir/tools/mlir-tblgen/CMakeFiles/mlir-tblgen.dir/AttrOrTypeFormatGen.cpp.o.d -o tools/mlir/tools/mlir-tblgen/CMakeFiles/mlir-tblgen.dir/AttrOrTypeFormatGen.cpp.o -c /home/yyds/workspace/project/llvm-project/mlir/tools/mlir-tblgen/AttrOrTypeFormatGen.cpp In file included from /home/yyds/workspace/project/llvm-project/mlir/tools/mlir-tblgen/AttrOrTypeFormatGen.cpp:9: In file included from /home/yyds/workspace/project/llvm-project/mlir/tools/mlir-tblgen/AttrOrTypeFormatGen.h:12: In file included from /home/yyds/workspace/project/llvm-project/mlir/include/mlir/TableGen/Class.h:28: In file included from /home/yyds/workspace/project/llvm-project/mlir/include/mlir/TableGen/CodeGenHelpers.h:18: In file included from /home/yyds/workspace/project/llvm-project/mlir/include/mlir/TableGen/Format.h:20: In file included from /home/yyds/workspace/project/llvm-project/llvm/include/llvm/ADT/StringMap.h:17: /home/yyds/workspace/project/llvm-project/llvm/include/llvm/ADT/StringMapEntry.h:165:1: error: 'tuple_size' defined as a struct template here but previously declared as a class template [-Werror,-Wmismatched-tags] struct tuple_size<llvm::StringMapEntry> ^ /usr/bin/../lib/gcc/x86_64-linux-gnu/7.5.0/../../../../include/c++/7.5.0/array:342:5: note: did you mean struct here? class tuple_size; ^ In file included from /home/yyds/workspace/project/llvm-project/mlir/tools/mlir-tblgen/AttrOrTypeFormatGen.cpp:9: In file included from /home/yyds/workspace/project/llvm-project/mlir/tools/mlir-tblgen/AttrOrTypeFormatGen.h:12: In file included from /home/yyds/workspace/project/llvm-project/mlir/include/mlir/TableGen/Class.h:28: In file included from /home/yyds/workspace/project/llvm-project/mlir/include/mlir/TableGen/CodeGenHelpers.h:18: In file included from /home/yyds/workspace/project/llvm-project/mlir/include/mlir/TableGen/Format.h:20: In file included from /home/yyds/workspace/project/llvm-project/llvm/include/llvm/ADT/StringMap.h:17: /home/yyds/workspace/project/llvm-project/llvm/include/llvm/ADT/StringMapEntry.h:169:1: error: 'tuple_element' defined as a struct template here but previously declared as a class template [-Werror,-Wmismatched-tags] struct tuple_element<I, llvm::StringMapEntry> ^ /usr/bin/../lib/gcc/x86_64-linux-gnu/7.5.0/../../../../include/c++/7.5.0/array:351:5: note: did you mean struct here? class tuple_element; ^ In file included from /home/yyds/workspace/project/llvm-project/mlir/tools/mlir-tblgen/AttrOrTypeFormatGen.cpp:9: In file included from /home/yyds/workspace/project/llvm-project/mlir/tools/mlir-tblgen/AttrOrTypeFormatGen.h:12: In file included from /home/yyds/workspace/project/llvm-project/mlir/include/mlir/TableGen/Class.h:28: In file included from /home/yyds/workspace/project/llvm-project/mlir/include/mlir/TableGen/CodeGenHelpers.h:18: In file included from /home/yyds/workspace/project/llvm-project/mlir/include/mlir/TableGen/Format.h:21: In file included from /home/yyds/workspace/project/llvm-project/llvm/include/llvm/Support/FormatVariadic.h:28: In file included from /home/yyds/workspace/project/llvm-project/llvm/include/llvm/ADT/ArrayRef.h:14: /home/yyds/workspace/project/llvm-project/llvm/include/llvm/ADT/STLExtras.h:2535:1: error: 'tuple_size' defined as a struct template here but previously declared as a class template [-Werror,-Wmismatched-tags] struct tuple_size<llvm::detail::enumerator_result> ^ /usr/bin/../lib/gcc/x86_64-linux-gnu/7.5.0/../../../../include/c++/7.5.0/array:342:5: note: did you mean struct here? class tuple_size; ^ In file included from /home/yyds/workspace/project/llvm-project/mlir/tools/mlir-tblgen/AttrOrTypeFormatGen.cpp:9: In file included from /home/yyds/workspace/project/llvm-project/mlir/tools/mlir-tblgen/AttrOrTypeFormatGen.h:12: In file included from /home/yyds/workspace/project/llvm-project/mlir/include/mlir/TableGen/Class.h:28: In file included from /home/yyds/workspace/project/llvm-project/mlir/include/mlir/TableGen/CodeGenHelpers.h:18: In file included from /home/yyds/workspace/project/llvm-project/mlir/include/mlir/TableGen/Format.h:21: In file included from /home/yyds/workspace/project/llvm-project/llvm/include/llvm/Support/FormatVariadic.h:28: In file included from /home/yyds/workspace/project/llvm-project/llvm/include/llvm/ADT/ArrayRef.h:14: /home/yyds/workspace/project/llvm-project/llvm/include/llvm/ADT/STLExtras.h:2539:1: error: 'tuple_element' defined as a struct template here but previously declared as a class template [-Werror,-Wmismatched-tags] struct tuple_element<I, llvm::detail::enumerator_result> ^ /usr/bin/../lib/gcc/x86_64-linux-gnu/7.5.0/../../../../include/c++/7.5.0/array:351:5: note: did you mean struct here? class tuple_element; ^ In file included from /home/yyds/workspace/project/llvm-project/mlir/tools/mlir-tblgen/AttrOrTypeFormatGen.cpp:9: In file included from /home/yyds/workspace/project/llvm-project/mlir/tools/mlir-tblgen/AttrOrTypeFormatGen.h:12: In file included from /home/yyds/workspace/project/llvm-project/mlir/include/mlir/TableGen/Class.h:28: In file included from /home/yyds/workspace/project/llvm-project/mlir/include/mlir/TableGen/CodeGenHelpers.h:18: In file included from /home/yyds/workspace/project/llvm-project/mlir/include/mlir/TableGen/Format.h:21: In file included from /home/yyds/workspace/project/llvm-project/llvm/include/llvm/Support/FormatVariadic.h:28: In file included from /home/yyds/workspace/project/llvm-project/llvm/include/llvm/ADT/ArrayRef.h:14: /home/yyds/workspace/project/llvm-project/llvm/include/llvm/ADT/STLExtras.h:2543:1: error: 'tuple_element' defined as a struct template here but previously declared as a class template [-Werror,-Wmismatched-tags] struct tuple_element<I, const llvm::detail::enumerator_result> ^ /usr/bin/../lib/gcc/x86_64-linux-gnu/7.5.0/../../../../include/c++/7.5.0/array:351:5: note: did you mean struct here? class tuple_element; ^ In file included from /home/yyds/workspace/project/llvm-project/mlir/tools/mlir-tblgen/AttrOrTypeFormatGen.cpp:23: In file included from /home/yyds/workspace/project/llvm-project/llvm/include/llvm/TableGen/Error.h:18: In file included from /home/yyds/workspace/project/llvm-project/llvm/include/llvm/TableGen/Record.h:21: /home/yyds/workspace/project/llvm-project/llvm/include/llvm/ADT/PointerIntPair.h:283:1: error: 'tuple_size' defined as a struct template here but previously declared as a class template [-Werror,-Wmismatched-tags] struct tuple_size< ^ /usr/bin/../lib/gcc/x86_64-linux-gnu/7.5.0/../../../../include/c++/7.5.0/array:342:5: note: did you mean struct here? class tuple_size; ^ In file included from /home/yyds/workspace/project/llvm-project/mlir/tools/mlir-tblgen/AttrOrTypeFormatGen.cpp:23: In file included from /home/yyds/workspace/project/llvm-project/llvm/include/llvm/TableGen/Error.h:18: In file included from /home/yyds/workspace/project/llvm-project/llvm/include/llvm/TableGen/Record.h:21: /home/yyds/workspace/project/llvm-project/llvm/include/llvm/ADT/PointerIntPair.h:289:1: error: 'tuple_element' defined as a struct template here but previously declared as a class template [-Werror,-Wmismatched-tags] struct tuple_element< ^ /usr/bin/../lib/gcc/x86_64-linux-gnu/7.5.0/../../../../include/c++/7.5.0/array:351:5: note: did you mean struct here? class tuple_element; ^ 7 errors generated. [3/2488] Building CXX object tools/mlir/tools/mlir-tblgen/CMakeFiles/mlir-tblgen.dir/AttrOrTypeDefGen.cpp.o FAILED: tools/mlir/tools/mlir-tblgen/CMakeFiles/mlir-tblgen.dir/AttrOrTypeDefGen.cpp.o CCACHE_CPP2=yes CCACHE_HASHDIR=yes /usr/bin/ccache /usr/bin/clang++ -DGTEST_HAS_RTTI=0 -DMLIR_CUDA_CONVERSIONS_ENABLED=0 -DMLIR_ROCM_CONVERSIONS_ENABLED=0 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -DSTDC_CONSTANT_MACROS -DSTDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/yyds/workspace/project/llvm-project/build/tools/mlir/tools/mlir-tblgen -I/home/yyds/workspace/project/llvm-project/mlir/tools/mlir-tblgen -I/home/yyds/workspace/project/llvm-project/build/include -I/home/yyds/workspace/project/llvm-project/llvm/include -I/home/yyds/workspace/project/llvm-project/mlir/include -I/home/yyds/workspace/project/llvm-project/build/tools/mlir/include -fPIC -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wstring-conversion -fdiagnostics-color -ffunction-sections -fdata-sections -Werror=mismatched-tags -O3 -DNDEBUG -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -std=c++17 -MD -MT tools/mlir/tools/mlir-tblgen/CMakeFiles/mlir-tblgen.dir/AttrOrTypeDefGen.cpp.o -MF tools/mlir/tools/mlir-tblgen/CMakeFiles/mlir-tblgen.dir/AttrOrTypeDefGen.cpp.o.d -o tools/mlir/tools/mlir-tblgen/CMakeFiles/mlir-tblgen.dir/AttrOrTypeDefGen.cpp.o -c /home/yyds/workspace/project/llvm-project/mlir/tools/mlir-tblgen/AttrOrTypeDefGen.cpp In file included from /home/yyds/workspace/project/llvm-project/mlir/tools/mlir-tblgen/AttrOrTypeDefGen.cpp:9: In file included from /home/yyds/workspace/project/llvm-project/mlir/tools/mlir-tblgen/AttrOrTypeFormatGen.h:12: In file included from /home/yyds/workspace/project/llvm-project/mlir/include/mlir/TableGen/Class.h:28: In file included from /home/yyds/workspace/project/llvm-project/mlir/include/mlir/TableGen/CodeGenHelpers.h:18: In file included from /home/yyds/workspace/project/llvm-project/mlir/include/mlir/TableGen/Format.h:20: In file included from /home/yyds/workspace/project/llvm-project/llvm/include/llvm/ADT/StringMap.h:17: /home/yyds/workspace/project/llvm-project/llvm/include/llvm/ADT/StringMapEntry.h:165:1: error: 'tuple_size' defined as a struct template here but previously declared as a class template [-Werror,-Wmismatched-tags] struct tuple_size<llvm::StringMapEntry> ^ /usr/bin/../lib/gcc/x86_64-linux-gnu/7.5.0/../../../../include/c++/7.5.0/array:342:5: note: did you mean struct here? class tuple_size; ^ In file included from /home/yyds/workspace/project/llvm-project/mlir/tools/mlir-tblgen/AttrOrTypeDefGen.cpp:9: In file included from /home/yyds/workspace/project/llvm-project/mlir/tools/mlir-tblgen/AttrOrTypeFormatGen.h:12: In file included from /home/yyds/workspace/project/llvm-project/mlir/include/mlir/TableGen/Class.h:28: In file included from /home/yyds/workspace/project/llvm-project/mlir/include/mlir/TableGen/CodeGenHelpers.h:18: In file included from /home/yyds/workspace/project/llvm-project/mlir/include/mlir/TableGen/Format.h:20: In file included from /home/yyds/workspace/project/llvm-project/llvm/include/llvm/ADT/StringMap.h:17: /home/yyds/workspace/project/llvm-project/llvm/include/llvm/ADT/StringMapEntry.h:169:1: error: 'tuple_element' defined as a struct template here but previously declared as a class template [-Werror,-Wmismatched-tags] struct tuple_element<I, llvm::StringMapEntry> ^ /usr/bin/../lib/gcc/x86_64-linux-gnu/7.5.0/../../../../include/c++/7.5.0/array:351:5: note: did you mean struct here? class tuple_element; ^ In file included from /home/yyds/workspace/project/llvm-project/mlir/tools/mlir-tblgen/AttrOrTypeDefGen.cpp:9: In file included from /home/yyds/workspace/project/llvm-project/mlir/tools/mlir-tblgen/AttrOrTypeFormatGen.h:12: In file included from /home/yyds/workspace/project/llvm-project/mlir/include/mlir/TableGen/Class.h:28: In file included from /home/yyds/workspace/project/llvm-project/mlir/include/mlir/TableGen/CodeGenHelpers.h:18: In file included from /home/yyds/workspace/project/llvm-project/mlir/include/mlir/TableGen/Format.h:21: In file included from /home/yyds/workspace/project/llvm-project/llvm/include/llvm/Support/FormatVariadic.h:28: In file included from /home/yyds/workspace/project/llvm-project/llvm/include/llvm/ADT/ArrayRef.h:14: /home/yyds/workspace/project/llvm-project/llvm/include/llvm/ADT/STLExtras.h:2535:1: error: 'tuple_size' defined as a struct template here but previously declared as a class template [-Werror,-Wmismatched-tags] struct tuple_size<llvm::detail::enumerator_result> ^ /usr/bin/../lib/gcc/x86_64-linux-gnu/7.5.0/../../../../include/c++/7.5.0/array:342:5: note: did you mean struct here? class tuple_size; ^ In file included from /home/yyds/workspace/project/llvm-project/mlir/tools/mlir-tblgen/AttrOrTypeDefGen.cpp:9: In file included from /home/yyds/workspace/project/llvm-project/mlir/tools/mlir-tblgen/AttrOrTypeFormatGen.h:12: In file included from /home/yyds/workspace/project/llvm-project/mlir/include/mlir/TableGen/Class.h:28: In file included from /home/yyds/workspace/project/llvm-project/mlir/include/mlir/TableGen/CodeGenHelpers.h:18: In file included from /home/yyds/workspace/project/llvm-project/mlir/include/mlir/TableGen/Format.h:21: In file included from /home/yyds/workspace/project/llvm-project/llvm/include/llvm/Support/FormatVariadic.h:28: In file included from /home/yyds/workspace/project/llvm-project/llvm/include/llvm/ADT/ArrayRef.h:14: /home/yyds/workspace/project/llvm-project/llvm/include/llvm/ADT/STLExtras.h:2539:1: error: 'tuple_element' defined as a struct template here but previously declared as a class template [-Werror,-Wmismatched-tags] struct tuple_element<I, llvm::detail::enumerator_result> ^ /usr/bin/../lib/gcc/x86_64-linux-gnu/7.5.0/../../../../include/c++/7.5.0/array:351:5: note: did you mean struct here? class tuple_element; ^ In file included from /home/yyds/workspace/project/llvm-project/mlir/tools/mlir-tblgen/AttrOrTypeDefGen.cpp:9: In file included from /home/yyds/workspace/project/llvm-project/mlir/tools/mlir-tblgen/AttrOrTypeFormatGen.h:12: In file included from /home/yyds/workspace/project/llvm-project/mlir/include/mlir/TableGen/Class.h:28: In file included from /home/yyds/workspace/project/llvm-project/mlir/include/mlir/TableGen/CodeGenHelpers.h:18: In file included from /home/yyds/workspace/project/llvm-project/mlir/include/mlir/TableGen/Format.h:21: In file included from /home/yyds/workspace/project/llvm-project/llvm/include/llvm/Support/FormatVariadic.h:28: In file included from /home/yyds/workspace/project/llvm-project/llvm/include/llvm/ADT/ArrayRef.h:14: /home/yyds/workspace/project/llvm-project/llvm/include/llvm/ADT/STLExtras.h:2543:1: error: 'tuple_element' defined as a struct template here but previously declared as a class template [-Werror,-Wmismatched-tags] struct tuple_element<I, const llvm::detail::enumerator_result> ^ /usr/bin/../lib/gcc/x86_64-linux-gnu/7.5.0/../../../../include/c++/7.5.0/array:351:5: note: did you mean struct here? class tuple_element; ^ In file included from /home/yyds/workspace/project/llvm-project/mlir/tools/mlir-tblgen/AttrOrTypeDefGen.cpp:18: In file included from /home/yyds/workspace/project/llvm-project/llvm/include/llvm/TableGen/Error.h:18: In file included from /home/yyds/workspace/project/llvm-project/llvm/include/llvm/TableGen/Record.h:21: /home/yyds/workspace/project/llvm-project/llvm/include/llvm/ADT/PointerIntPair.h:283:1: error: 'tuple_size' defined as a struct template here but previously declared as a class template [-Werror,-Wmismatched-tags] struct tuple_size< ^ /usr/bin/../lib/gcc/x86_64-linux-gnu/7.5.0/../../../../include/c++/7.5.0/array:342:5: note: did you mean struct here? class tuple_size; ^ In file included from /home/yyds/workspace/project/llvm-project/mlir/tools/mlir-tblgen/AttrOrTypeDefGen.cpp:18: In file included from /home/yyds/workspace/project/llvm-project/llvm/include/llvm/TableGen/Error.h:18: In file included from /home/yyds/workspace/project/llvm-project/llvm/include/llvm/TableGen/Record.h:21: /home/yyds/workspace/project/llvm-project/llvm/include/llvm/ADT/PointerIntPair.h:289:1: error: 'tuple_element' defined as a struct template here but previously declared as a class template [-Werror,-Wmismatched-tags] struct tuple_element< ^ /usr/bin/../lib/gcc/x86_64-linux-gnu/7.5.0/../../../../include/c++/7.5.0/array:351:5: note: did you mean struct here? class tuple_element; ^ 7 errors generated. ninja: build stopped: subcommand failed. 我的也是这个问题