[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 04:01:06 PST 2024


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `lldb-remote-linux-ubuntu` running on `as-builder-9` while building `llvm` at step 7 "build-default".

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

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

```
Step 7 (build-default) failure: cmake (failure)
...
10.781 [3385/66/1721] Building CXX object lib/IR/CMakeFiles/LLVMCore.dir/IntrinsicInst.cpp.o
10.784 [3384/66/1722] Building CXX object lib/IR/CMakeFiles/LLVMCore.dir/LLVMContext.cpp.o
10.785 [3383/66/1723] Building CXX object lib/IR/CMakeFiles/LLVMCore.dir/LegacyPassManager.cpp.o
10.788 [3382/66/1724] Building CXX object lib/IR/CMakeFiles/LLVMCore.dir/MDBuilder.cpp.o
10.788 [3381/66/1725] Building CXX object lib/IR/CMakeFiles/LLVMCore.dir/LLVMContextImpl.cpp.o
10.793 [3380/66/1726] Building CXX object lib/IR/CMakeFiles/LLVMCore.dir/Mangler.cpp.o
10.793 [3379/66/1727] Building CXX object lib/IR/CMakeFiles/LLVMCore.dir/MemoryModelRelaxationAnnotations.cpp.o
10.798 [3378/66/1728] Building CXX object lib/IR/CMakeFiles/LLVMCore.dir/Metadata.cpp.o
10.799 [3377/66/1729] Building CXX object lib/IR/CMakeFiles/LLVMCore.dir/Module.cpp.o
10.801 [3376/66/1730] 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 
ccache /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 -I/home/buildbot/worker/as-builder-9/lldb-remote-linux-ubuntu/build/tools/clang/lib/Basic -I/home/buildbot/worker/as-builder-9/lldb-remote-linux-ubuntu/llvm-project/clang/lib/Basic -I/home/buildbot/worker/as-builder-9/lldb-remote-linux-ubuntu/llvm-project/clang/include -I/home/buildbot/worker/as-builder-9/lldb-remote-linux-ubuntu/build/tools/clang/include -I/home/buildbot/worker/as-builder-9/lldb-remote-linux-ubuntu/build/include -I/home/buildbot/worker/as-builder-9/lldb-remote-linux-ubuntu/llvm-project/llvm/include -D__OPTIMIZE__ -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-maybe-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 -fno-common -Woverloaded-virtual -fno-strict-aliasing -O3 -DNDEBUG -std=c++17  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -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 /home/buildbot/worker/as-builder-9/lldb-remote-linux-ubuntu/llvm-project/clang/lib/Basic/Targets/RISCV.cpp
In file included from /home/buildbot/worker/as-builder-9/lldb-remote-linux-ubuntu/llvm-project/clang/lib/Basic/Targets/RISCV.cpp:19:
/home/buildbot/worker/as-builder-9/lldb-remote-linux-ubuntu/llvm-project/llvm/include/llvm/TargetParser/RISCVTargetParser.h:46:12: error: declaration of ‘llvm::RISCV::CPUModel llvm::RISCV::CPUInfo::CPUModel’ changes meaning of ‘CPUModel’ [-Wchanges-meaning]
   46 |   CPUModel CPUModel;
      |            ^~~~~~~~
/home/buildbot/worker/as-builder-9/lldb-remote-linux-ubuntu/llvm-project/llvm/include/llvm/TargetParser/RISCVTargetParser.h:46:3: note: used here to mean ‘struct llvm::RISCV::CPUModel’
   46 |   CPUModel CPUModel;
      |   ^~~~~~~~
/home/buildbot/worker/as-builder-9/lldb-remote-linux-ubuntu/llvm-project/llvm/include/llvm/TargetParser/RISCVTargetParser.h:35:8: note: declared here
   35 | struct CPUModel {
      |        ^~~~~~~~
10.802 [3376/65/1731] Building CXX object lib/IR/CMakeFiles/LLVMCore.dir/ModuleSummaryIndex.cpp.o
/home/buildbot/worker/as-builder-9/lldb-remote-linux-ubuntu/llvm-project/llvm/lib/IR/ModuleSummaryIndex.cpp: In member function ‘llvm::GlobalValueSummary* llvm::ModuleSummaryIndex::getGlobalValueSummary(uint64_t, bool) const’:
/home/buildbot/worker/as-builder-9/lldb-remote-linux-ubuntu/llvm-project/llvm/lib/IR/ModuleSummaryIndex.cpp:185:9: warning: possibly dangling reference to a temporary [-Wdangling-reference]
  185 |   auto &Summary = VI.getSummaryList()[0];
      |         ^~~~~~~
/home/buildbot/worker/as-builder-9/lldb-remote-linux-ubuntu/llvm-project/llvm/lib/IR/ModuleSummaryIndex.cpp:185:40: note: the temporary was destroyed at the end of the full expression ‘VI.llvm::ValueInfo::getSummaryList().llvm::ArrayRef<std::unique_ptr<llvm::GlobalValueSummary> >::operator[](0)’
  185 |   auto &Summary = VI.getSummaryList()[0];
      |                                        ^
10.802 [3376/64/1732] Building CXX object lib/IR/CMakeFiles/LLVMCore.dir/OptBisect.cpp.o
10.803 [3376/63/1733] Building CXX object lib/IR/CMakeFiles/LLVMCore.dir/Operator.cpp.o
10.803 [3376/62/1734] Building CXX object lib/IR/CMakeFiles/LLVMCore.dir/PassInstrumentation.cpp.o
10.807 [3376/61/1735] Building CXX object lib/IR/CMakeFiles/LLVMCore.dir/PassRegistry.cpp.o
10.808 [3376/60/1736] Building CXX object lib/IR/CMakeFiles/LLVMCore.dir/Pass.cpp.o
10.811 [3376/59/1737] Building CXX object lib/IR/CMakeFiles/LLVMCore.dir/PassTimingInfo.cpp.o
10.812 [3376/58/1738] Building CXX object lib/IR/CMakeFiles/LLVMCore.dir/PrintPasses.cpp.o
10.812 [3376/57/1739] Building CXX object lib/IR/CMakeFiles/LLVMCore.dir/PassManager.cpp.o
10.838 [3376/56/1740] Building CXX object tools/clang/lib/StaticAnalyzer/Core/CMakeFiles/obj.clangStaticAnalyzerCore.dir/ProgramState.cpp.o
10.839 [3376/55/1741] Building CXX object tools/clang/lib/StaticAnalyzer/Core/CMakeFiles/obj.clangStaticAnalyzerCore.dir/SarifDiagnostics.cpp.o
10.881 [3376/54/1742] Building CXX object tools/clang/lib/StaticAnalyzer/Core/CMakeFiles/obj.clangStaticAnalyzerCore.dir/SimpleSValBuilder.cpp.o
10.898 [3376/53/1743] Building CXX object tools/clang/lib/StaticAnalyzer/Checkers/CMakeFiles/obj.clangStaticAnalyzerCheckers.dir/AnalysisOrderChecker.cpp.o
10.899 [3376/52/1744] Building CXX object tools/clang/lib/StaticAnalyzer/Core/CMakeFiles/obj.clangStaticAnalyzerCore.dir/SValBuilder.cpp.o
10.916 [3376/51/1745] Building CXX object tools/clang/lib/StaticAnalyzer/Checkers/CMakeFiles/obj.clangStaticAnalyzerCheckers.dir/ArrayBoundCheckerV2.cpp.o
10.927 [3376/50/1746] Building CXX object tools/clang/lib/StaticAnalyzer/Core/CMakeFiles/obj.clangStaticAnalyzerCore.dir/SimpleConstraintManager.cpp.o
/home/buildbot/worker/as-builder-9/lldb-remote-linux-ubuntu/llvm-project/clang/lib/StaticAnalyzer/Core/SimpleConstraintManager.cpp: In member function ‘virtual clang::ento::ProgramStateRef clang::ento::SimpleConstraintManager::assumeInclusiveRangeInternal(clang::ento::ProgramStateRef, clang::ento::NonLoc, const llvm::APSInt&, const llvm::APSInt&, bool)’:
/home/buildbot/worker/as-builder-9/lldb-remote-linux-ubuntu/llvm-project/clang/lib/StaticAnalyzer/Core/SimpleConstraintManager.cpp:123:25: warning: possibly dangling reference to a temporary [-Wdangling-reference]
  123 |     const llvm::APSInt &IntVal = Value.castAs<nonloc::ConcreteInt>().getValue();
      |                         ^~~~~~

```

</details>

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


More information about the llvm-commits mailing list