[llvm] [RISCV] Add mvendorid/marchid/mimpid to CPU definitions (PR #116202)

LLVM Continuous Integration via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 22 03:57:09 PST 2024


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `arc-builder` running on `arc-worker` while building `llvm` at step 5 "build-unified-tree".

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

<details>
<summary>Here is the relevant piece of the build log for the reference</summary>

```
Step 5 (build-unified-tree) failure: build (failure)
...
11.090 [350/16/74] Building Opts.inc...
11.102 [348/16/75] Building ObjcopyOpts.inc...
11.109 [347/16/76] Building InstallNameToolOpts.inc...
11.116 [346/16/77] Building BitcodeStripOpts.inc...
11.119 [345/16/78] Building Options.inc...
11.125 [260/16/79] Building StripOpts.inc...
11.131 [258/16/80] Building NVLinkOpts.inc...
11.138 [256/16/81] Building SYCLLinkOpts.inc...
11.171 [254/16/82] Generating VCSVersion.inc
11.855 [253/16/83] Building CXX object lib/TargetParser/CMakeFiles/LLVMTargetParser.dir/RISCVTargetParser.cpp.o
FAILED: lib/TargetParser/CMakeFiles/LLVMTargetParser.dir/RISCVTargetParser.cpp.o 
/usr/bin/c++ -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Ilib/TargetParser -I/buildbot/worker/arc-folder/llvm-project/llvm/lib/TargetParser -Iinclude -I/buildbot/worker/arc-folder/llvm-project/llvm/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  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -std=c++17 -MD -MT lib/TargetParser/CMakeFiles/LLVMTargetParser.dir/RISCVTargetParser.cpp.o -MF lib/TargetParser/CMakeFiles/LLVMTargetParser.dir/RISCVTargetParser.cpp.o.d -o lib/TargetParser/CMakeFiles/LLVMTargetParser.dir/RISCVTargetParser.cpp.o -c /buildbot/worker/arc-folder/llvm-project/llvm/lib/TargetParser/RISCVTargetParser.cpp
In file included from /buildbot/worker/arc-folder/llvm-project/llvm/lib/TargetParser/RISCVTargetParser.cpp:14:
/buildbot/worker/arc-folder/llvm-project/llvm/include/llvm/TargetParser/RISCVTargetParser.h:46:12: error: declaration of 'llvm::RISCV::CPUModel llvm::RISCV::CPUInfo::CPUModel' changes meaning of 'CPUModel' [-fpermissive]
   46 |   CPUModel CPUModel;
      |            ^~~~~~~~
/buildbot/worker/arc-folder/llvm-project/llvm/include/llvm/TargetParser/RISCVTargetParser.h:35:8: note: 'CPUModel' declared here as 'struct llvm::RISCV::CPUModel'
   35 | struct CPUModel {
      |        ^~~~~~~~
11.978 [253/15/84] Building CXX object lib/IR/CMakeFiles/LLVMCore.dir/Type.cpp.o
FAILED: lib/IR/CMakeFiles/LLVMCore.dir/Type.cpp.o 
/usr/bin/c++ -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Ilib/IR -I/buildbot/worker/arc-folder/llvm-project/llvm/lib/IR -Iinclude -I/buildbot/worker/arc-folder/llvm-project/llvm/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  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -std=c++17 -MD -MT lib/IR/CMakeFiles/LLVMCore.dir/Type.cpp.o -MF lib/IR/CMakeFiles/LLVMCore.dir/Type.cpp.o.d -o lib/IR/CMakeFiles/LLVMCore.dir/Type.cpp.o -c /buildbot/worker/arc-folder/llvm-project/llvm/lib/IR/Type.cpp
In file included from /buildbot/worker/arc-folder/llvm-project/llvm/lib/IR/Type.cpp:29:
/buildbot/worker/arc-folder/llvm-project/llvm/include/llvm/TargetParser/RISCVTargetParser.h:46:12: error: declaration of 'llvm::RISCV::CPUModel llvm::RISCV::CPUInfo::CPUModel' changes meaning of 'CPUModel' [-fpermissive]
   46 |   CPUModel CPUModel;
      |            ^~~~~~~~
/buildbot/worker/arc-folder/llvm-project/llvm/include/llvm/TargetParser/RISCVTargetParser.h:35:8: note: 'CPUModel' declared here as 'struct llvm::RISCV::CPUModel'
   35 | struct CPUModel {
      |        ^~~~~~~~
12.790 [253/14/85] Building X86GenAsmWriter.inc...
12.824 [253/13/86] Building X86GenFastISel.inc...
13.256 [253/12/87] Building X86GenGlobalISel.inc...
13.377 [253/11/88] Building CXX object lib/Object/CMakeFiles/LLVMObject.dir/IRSymtab.cpp.o
13.738 [253/10/89] Building CXX object tools/llvm-config/CMakeFiles/llvm-config.dir/llvm-config.cpp.o
14.051 [253/9/90] Building CXX object tools/clang/lib/Basic/CMakeFiles/obj.clangBasic.dir/Targets/RISCV.cpp.o
FAILED: tools/clang/lib/Basic/CMakeFiles/obj.clangBasic.dir/Targets/RISCV.cpp.o 
/usr/bin/c++ -DCLANG_EXPORTS -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Itools/clang/lib/Basic -I/buildbot/worker/arc-folder/llvm-project/clang/lib/Basic -I/buildbot/worker/arc-folder/llvm-project/clang/include -Itools/clang/include -Iinclude -I/buildbot/worker/arc-folder/llvm-project/llvm/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 -fno-common -Woverloaded-virtual -fno-strict-aliasing -O3 -DNDEBUG  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -std=c++17 -MD -MT tools/clang/lib/Basic/CMakeFiles/obj.clangBasic.dir/Targets/RISCV.cpp.o -MF tools/clang/lib/Basic/CMakeFiles/obj.clangBasic.dir/Targets/RISCV.cpp.o.d -o tools/clang/lib/Basic/CMakeFiles/obj.clangBasic.dir/Targets/RISCV.cpp.o -c /buildbot/worker/arc-folder/llvm-project/clang/lib/Basic/Targets/RISCV.cpp
In file included from /buildbot/worker/arc-folder/llvm-project/clang/lib/Basic/Targets/RISCV.cpp:19:
/buildbot/worker/arc-folder/llvm-project/llvm/include/llvm/TargetParser/RISCVTargetParser.h:46:12: error: declaration of 'llvm::RISCV::CPUModel llvm::RISCV::CPUInfo::CPUModel' changes meaning of 'CPUModel' [-fpermissive]
   46 |   CPUModel CPUModel;
      |            ^~~~~~~~
/buildbot/worker/arc-folder/llvm-project/llvm/include/llvm/TargetParser/RISCVTargetParser.h:35:8: note: 'CPUModel' declared here as 'struct llvm::RISCV::CPUModel'
   35 | struct CPUModel {
      |        ^~~~~~~~
14.548 [253/8/91] Building CXX object lib/TargetParser/CMakeFiles/LLVMTargetParser.dir/RISCVISAInfo.cpp.o
15.112 [253/7/92] Building X86GenDAGISel.inc...
15.502 [253/6/93] Building X86GenSubtargetInfo.inc...
15.780 [253/5/94] Building CXX object lib/Analysis/CMakeFiles/LLVMAnalysis.dir/ValueTracking.cpp.o
FAILED: lib/Analysis/CMakeFiles/LLVMAnalysis.dir/ValueTracking.cpp.o 

```

</details>

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


More information about the llvm-commits mailing list