[clang] [RISCV][NFC] Make generated intrinsic records more human-readable (PR #133710)

LLVM Continuous Integration via cfe-commits cfe-commits at lists.llvm.org
Sun Apr 13 21:23:48 PDT 2025


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `openmp-s390x-linux` running on `systemz-1` while building `clang` at step 5 "compile-openmp".

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

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

```
Step 5 (compile-openmp) failure: build (failure)
...
231.621 [2009/4/3356] Building CXX object tools/llvm-c-test/CMakeFiles/llvm-c-test.dir/echo.cpp.o
231.633 [2008/4/3357] Building C object tools/llvm-c-test/CMakeFiles/llvm-c-test.dir/main.c.o
231.643 [2007/4/3358] Building C object tools/llvm-c-test/CMakeFiles/llvm-c-test.dir/module.c.o
231.670 [2006/4/3359] Creating export file for SampleAnalyzerPlugin
231.707 [2005/4/3360] Building CXX object tools/llvm-sim/CMakeFiles/llvm-sim.dir/llvm-sim.cpp.o
231.740 [2004/4/3361] Creating export file for CheckerDependencyHandlingAnalyzerPlugin
231.765 [2003/4/3362] Creating export file for CheckerOptionHandlingAnalyzerPlugin
231.816 [2002/4/3363] Bundling HTMLLogger resources
231.867 [2001/4/3364] Building CXX object tools/llvm-profgen/CMakeFiles/llvm-profgen.dir/llvm-profgen.cpp.o
232.996 [2000/4/3365] Building CXX object tools/clang/lib/Support/CMakeFiles/obj.clangSupport.dir/RISCVVIntrinsicUtils.cpp.o
FAILED: tools/clang/lib/Support/CMakeFiles/obj.clangSupport.dir/RISCVVIntrinsicUtils.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes /usr/bin/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/uweigand/sandbox/buildbot/openmp-s390x-linux/llvm.build/tools/clang/lib/Support -I/home/uweigand/sandbox/buildbot/openmp-s390x-linux/llvm.src/clang/lib/Support -I/home/uweigand/sandbox/buildbot/openmp-s390x-linux/llvm.src/clang/include -I/home/uweigand/sandbox/buildbot/openmp-s390x-linux/llvm.build/tools/clang/include -I/home/uweigand/sandbox/buildbot/openmp-s390x-linux/llvm.build/include -I/home/uweigand/sandbox/buildbot/openmp-s390x-linux/llvm.src/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -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 -fno-common -Woverloaded-virtual -fno-strict-aliasing -O3 -DNDEBUG  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -std=c++17 -MD -MT tools/clang/lib/Support/CMakeFiles/obj.clangSupport.dir/RISCVVIntrinsicUtils.cpp.o -MF tools/clang/lib/Support/CMakeFiles/obj.clangSupport.dir/RISCVVIntrinsicUtils.cpp.o.d -o tools/clang/lib/Support/CMakeFiles/obj.clangSupport.dir/RISCVVIntrinsicUtils.cpp.o -c /home/uweigand/sandbox/buildbot/openmp-s390x-linux/llvm.src/clang/lib/Support/RISCVVIntrinsicUtils.cpp
In file included from /home/uweigand/sandbox/buildbot/openmp-s390x-linux/llvm.src/clang/lib/Support/RISCVVIntrinsicUtils.cpp:9:
/home/uweigand/sandbox/buildbot/openmp-s390x-linux/llvm.src/clang/include/clang/Support/RISCVVIntrinsicUtils.h:541:22: error: declaration of 'clang::RISCV::RequiredExtensions clang::RISCV::RVVIntrinsicRecord::RequiredExtensions' changes meaning of 'RequiredExtensions' [-fpermissive]
  541 |   RequiredExtensions RequiredExtensions;
      |                      ^~~~~~~~~~~~~~~~~~
/home/uweigand/sandbox/buildbot/openmp-s390x-linux/llvm.src/clang/include/clang/Support/RISCVVIntrinsicUtils.h:515:8: note: 'RequiredExtensions' declared here as 'struct clang::RISCV::RequiredExtensions'
  515 | struct RequiredExtensions {
      |        ^~~~~~~~~~~~~~~~~~
233.052 [2000/3/3366] Building CXX object tools/clang/utils/TableGen/CMakeFiles/clang-tblgen.dir/RISCVVEmitter.cpp.o
FAILED: tools/clang/utils/TableGen/CMakeFiles/clang-tblgen.dir/RISCVVEmitter.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes /usr/bin/ccache /usr/bin/c++ -DCLANG_EXPORTS -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/uweigand/sandbox/buildbot/openmp-s390x-linux/llvm.build/tools/clang/utils/TableGen -I/home/uweigand/sandbox/buildbot/openmp-s390x-linux/llvm.src/clang/utils/TableGen -I/home/uweigand/sandbox/buildbot/openmp-s390x-linux/llvm.src/clang/include -I/home/uweigand/sandbox/buildbot/openmp-s390x-linux/llvm.build/tools/clang/include -I/home/uweigand/sandbox/buildbot/openmp-s390x-linux/llvm.build/include -I/home/uweigand/sandbox/buildbot/openmp-s390x-linux/llvm.src/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -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 -fno-common -Woverloaded-virtual -fno-strict-aliasing -O3 -DNDEBUG  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -std=c++17 -MD -MT tools/clang/utils/TableGen/CMakeFiles/clang-tblgen.dir/RISCVVEmitter.cpp.o -MF tools/clang/utils/TableGen/CMakeFiles/clang-tblgen.dir/RISCVVEmitter.cpp.o.d -o tools/clang/utils/TableGen/CMakeFiles/clang-tblgen.dir/RISCVVEmitter.cpp.o -c /home/uweigand/sandbox/buildbot/openmp-s390x-linux/llvm.src/clang/utils/TableGen/RISCVVEmitter.cpp
In file included from /home/uweigand/sandbox/buildbot/openmp-s390x-linux/llvm.src/clang/utils/TableGen/RISCVVEmitter.cpp:17:
/home/uweigand/sandbox/buildbot/openmp-s390x-linux/llvm.src/clang/include/clang/Support/RISCVVIntrinsicUtils.h:541:22: error: declaration of 'clang::RISCV::RequiredExtensions clang::RISCV::RVVIntrinsicRecord::RequiredExtensions' changes meaning of 'RequiredExtensions' [-fpermissive]
  541 |   RequiredExtensions RequiredExtensions;
      |                      ^~~~~~~~~~~~~~~~~~
/home/uweigand/sandbox/buildbot/openmp-s390x-linux/llvm.src/clang/include/clang/Support/RISCVVIntrinsicUtils.h:515:8: note: 'RequiredExtensions' declared here as 'struct clang::RISCV::RequiredExtensions'
  515 | struct RequiredExtensions {
      |        ^~~~~~~~~~~~~~~~~~
/home/uweigand/sandbox/buildbot/openmp-s390x-linux/llvm.src/clang/utils/TableGen/RISCVVEmitter.cpp:48:22: error: declaration of 'clang::RISCV::RequiredExtensions {anonymous}::SemaRecord::RequiredExtensions' changes meaning of 'RequiredExtensions' [-fpermissive]
   48 |   RequiredExtensions RequiredExtensions;
      |                      ^~~~~~~~~~~~~~~~~~
In file included from /home/uweigand/sandbox/buildbot/openmp-s390x-linux/llvm.src/clang/utils/TableGen/RISCVVEmitter.cpp:17:
/home/uweigand/sandbox/buildbot/openmp-s390x-linux/llvm.src/clang/include/clang/Support/RISCVVIntrinsicUtils.h:515:8: note: 'RequiredExtensions' declared here as 'struct clang::RISCV::RequiredExtensions'
  515 | struct RequiredExtensions {
      |        ^~~~~~~~~~~~~~~~~~
239.915 [2000/2/3367] Linking CXX executable bin/llvm-lto
240.205 [2000/1/3368] Linking CXX shared library lib/libLTO.so.21.0git
ninja: build stopped: subcommand failed.

```

</details>

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


More information about the cfe-commits mailing list