Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Still having issue with RISCV #2236

Closed
eclipseo opened this issue Jun 7, 2024 · 3 comments
Closed

Still having issue with RISCV #2236

eclipseo opened this issue Jun 7, 2024 · 3 comments

Comments

@eclipseo
Copy link
Contributor

eclipseo commented Jun 7, 2024

I still can't build on RISC-V.

Initial config 1.2.0:

/usr/bin/cmake -S . -B redhat-linux-build -DCMAKE_C_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_CXX_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_Fortran_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -DCMAKE_INSTALL_DO_STRIP:BOOL=OFF -DCMAKE_INSTALL_PREFIX:PATH=/usr -DINCLUDE_INSTALL_DIR:PATH=/usr/include -DLIB_INSTALL_DIR:PATH=/usr/lib64 -DSYSCONF_INSTALL_DIR:PATH=/etc -DSHARE_INSTALL_PREFIX:PATH=/usr/share -DLIB_SUFFIX=64 -DBUILD_SHARED_LIBS:BOOL=ON -DHWY_SYSTEM_GTEST:BOOL=ON -DHWY_CMAKE_RVV:BOOL=OFF

https://openkoji.iscas.ac.cn/kojifiles/work/tasks/8378/1508378/build.log

/usr/bin/clang++ -DHWY_SHARED_DEFINE -Dhwy_EXPORTS -I/builddir/build/BUILD/highway-1.2.0 -O2  -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong   -fasynchronous-unwind-tables -fno-omit-frame-pointer -O2 -g -DNDEBUG -std=c++17 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wno-builtin-macro-redefined -D__DATE__=\"redacted\" -D__TIMESTAMP__=\"redacted\" -D__TIME__=\"redacted\" -fmerge-all-constants -Wall -Wextra -Wconversion -Wsign-conversion -Wvla -Wnon-virtual-dtor -Wcast-align -Wfloat-overflow-conversion -Wfloat-zero-conversion -Wfor-loop-analysis -Wgnu-redeclared-enum -Winfinite-recursion -Wself-assign -Wstring-conversion -Wtautological-overlap-compare -Wthread-safety-analysis -Wundefined-func-template -fno-cxx-exceptions -fno-slp-vectorize -fno-vectorize -fdiagnostics-show-option -fcolor-diagnostics -Wc++2a-extensions -fmath-errno -fno-exceptions -Wno-psabi -MD -MT CMakeFiles/hwy.dir/hwy/print.cc.o -MF CMakeFiles/hwy.dir/hwy/print.cc.o.d -o CMakeFiles/hwy.dir/hwy/print.cc.o -c /builddir/build/BUILD/highway-1.2.0/hwy/print.cc
/usr/bin/clang++ -DHWY_SHARED_DEFINE -Dhwy_EXPORTS -I/builddir/build/BUILD/highway-1.2.0 -O2  -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong   -fasynchronous-unwind-tables -fno-omit-frame-pointer -O2 -g -DNDEBUG -std=c++17 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wno-builtin-macro-redefined -D__DATE__=\"redacted\" -D__TIMESTAMP__=\"redacted\" -D__TIME__=\"redacted\" -fmerge-all-constants -Wall -Wextra -Wconversion -Wsign-conversion -Wvla -Wnon-virtual-dtor -Wcast-align -Wfloat-overflow-conversion -Wfloat-zero-conversion -Wfor-loop-analysis -Wgnu-redeclared-enum -Winfinite-recursion -Wself-assign -Wstring-conversion -Wtautological-overlap-compare -Wthread-safety-analysis -Wundefined-func-template -fno-cxx-exceptions -fno-slp-vectorize -fno-vectorize -fdiagnostics-show-option -fcolor-diagnostics -Wc++2a-extensions -fmath-errno -fno-exceptions -Wno-psabi -MD -MT CMakeFiles/hwy.dir/hwy/targets.cc.o -MF CMakeFiles/hwy.dir/hwy/targets.cc.o.d -o CMakeFiles/hwy.dir/hwy/targets.cc.o -c /builddir/build/BUILD/highway-1.2.0/hwy/targets.cc
/usr/bin/clang++ -DHWY_SHARED_DEFINE -Dhwy_EXPORTS -I/builddir/build/BUILD/highway-1.2.0 -O2  -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong   -fasynchronous-unwind-tables -fno-omit-frame-pointer -O2 -g -DNDEBUG -std=c++17 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wno-builtin-macro-redefined -D__DATE__=\"redacted\" -D__TIMESTAMP__=\"redacted\" -D__TIME__=\"redacted\" -fmerge-all-constants -Wall -Wextra -Wconversion -Wsign-conversion -Wvla -Wnon-virtual-dtor -Wcast-align -Wfloat-overflow-conversion -Wfloat-zero-conversion -Wfor-loop-analysis -Wgnu-redeclared-enum -Winfinite-recursion -Wself-assign -Wstring-conversion -Wtautological-overlap-compare -Wthread-safety-analysis -Wundefined-func-template -fno-cxx-exceptions -fno-slp-vectorize -fno-vectorize -fdiagnostics-show-option -fcolor-diagnostics -Wc++2a-extensions -fmath-errno -fno-exceptions -Wno-psabi -MD -MT CMakeFiles/hwy.dir/hwy/timer.cc.o -MF CMakeFiles/hwy.dir/hwy/timer.cc.o.d -o CMakeFiles/hwy.dir/hwy/timer.cc.o -c /builddir/build/BUILD/highway-1.2.0/hwy/timer.cc
In file included from /builddir/build/BUILD/highway-1.2.0/hwy/per_target.cc:27:
In file included from /builddir/build/BUILD/highway-1.2.0/hwy/foreach_target.h:314:
In file included from /builddir/build/BUILD/highway-1.2.0/hwy/per_target.cc:28:
In file included from /builddir/build/BUILD/highway-1.2.0/hwy/highway.h:596:
In file included from /builddir/build/BUILD/highway-1.2.0/hwy/ops/rvv-inl.h:19:
/usr/bin/../lib/clang/18/include/riscv_vector.h:18:2: �[0;1;31merror: "Vector intrinsics require the vector extension."
   18 | #error "Vector intrinsics require the vector extension."
      | �[0;1;32m ^
In file included from /builddir/build/BUILD/highway-1.2.0/hwy/per_target.cc:27:
In file included from /builddir/build/BUILD/highway-1.2.0/hwy/foreach_target.h:314:
In file included from /builddir/build/BUILD/highway-1.2.0/hwy/per_target.cc:28:
In file included from /builddir/build/BUILD/highway-1.2.0/hwy/highway.h:596:
/builddir/build/BUILD/highway-1.2.0/hwy/ops/rvv-inl.h:591:17: �[0;1;31merror: use of undeclared identifier '__riscv_vsetvlmax_e8mf8'
  591 | HWY_RVV_FOREACH(HWY_RVV_LANES, Lanes, setvlmax_e, _ALL)
      | �[0;1;32m                ^
/builddir/build/BUILD/highway-1.2.0/hwy/ops/rvv-inl.h:591:17: �[0;1;31merror: use of undeclared identifier '__riscv_vsetvl_e8mf8'
/builddir/build/BUILD/highway-1.2.0/hwy/ops/rvv-inl.h:591:17: �[0;1;31merror: use of undeclared identifier '__riscv_vsetvl_e8mf8'
/builddir/build/BUILD/highway-1.2.0/hwy/ops/rvv-inl.h:591:17: �[0;1;31merror: use of undeclared identifier '__riscv_vsetvl_e8mf8'
/builddir/build/BUILD/highway-1.2.0/hwy/ops/rvv-inl.h:591:17: �[0;1;31merror: use of undeclared identifier '__riscv_vsetvl_e8mf8'
/builddir/build/BUILD/highway-1.2.0/hwy/ops/rvv-inl.h:591:17: �[0;1;31merror: builtin requires at least one of the following extensions: 'Zve32x'
  591 | HWY_RVV_FOREACH(HWY_RVV_LANES, Lanes, setvlmax_e, _ALL)
      | �[0;1;32m~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/builddir/build/BUILD/highway-1.2.0/hwy/ops/rvv-inl.h:411:22: �[0;1;36mnote: expanded from macro 'HWY_RVV_FOREACH'
  411 |   HWY_RVV_FOREACH_UI(X_MACRO, NAME, OP, LMULS)    \
      | �[0;1;32m  ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
/builddir/build/BUILD/highway-1.2.0/hwy/ops/rvv-inl.h:407:21: �[0;1;36mnote: expanded from macro 'HWY_RVV_FOREACH_UI'
  407 |   HWY_RVV_FOREACH_U(X_MACRO, NAME, OP, LMULS)        \
      | �[0;1;32m  ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
/builddir/build/BUILD/highway-1.2.0/hwy/ops/rvv-inl.h:394:23: �[0;1;36mnote: expanded from macro 'HWY_RVV_FOREACH_U'
  394 |   HWY_RVV_FOREACH_U08(X_MACRO, NAME, OP, LMULS)     \
      | �[0;1;32m  ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
�[0;1;36mnote: (skipping 4 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
/builddir/build/BUILD/highway-1.2.0/hwy/ops/rvv-inl.h:496:25: �[0;1;36mnote: expanded from macro 'HWY_RVV_LANES'
  496 |     return N == kFull ? __riscv_vsetvlmax_e##SEW##LMUL()                       \
      | �[0;1;32m                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<scratch space>:2:1: �[0;1;36mnote: expanded from here
    2 | __riscv_vsetvlmax_e8mf4
      | �[0;1;32m^
/usr/bin/../lib/clang/18/include/riscv_vector.h:67:35: �[0;1;36mnote: expanded from macro '__riscv_vsetvlmax_e8mf4'
   67 | #define __riscv_vsetvlmax_e8mf4() __builtin_rvv_vsetvlimax(0, 6)
      | �[0;1;32m                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /builddir/build/BUILD/highway-1.2.0/hwy/per_target.cc:27:
In file included from /builddir/build/BUILD/highway-1.2.0/hwy/foreach_target.h:314:
In file included from /builddir/build/BUILD/highway-1.2.0/hwy/per_target.cc:28:
In file included from /builddir/build/BUILD/highway-1.2.0/hwy/highway.h:596:
/builddir/build/BUILD/highway-1.2.0/hwy/ops/rvv-inl.h:591:17: �[0;1;31merror: builtin requires at least one of the following extensions: 'Zve32x'
  591 | HWY_RVV_FOREACH(HWY_RVV_LANES, Lanes, setvlmax_e, _ALL)
      | �[0;1;32m~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/builddir/build/BUILD/highway-1.2.0/hwy/ops/rvv-inl.h:411:22: �[0;1;36mnote: expanded from macro 'HWY_RVV_FOREACH'
  411 |   HWY_RVV_FOREACH_UI(X_MACRO, NAME, OP, LMULS)    \
      | �[0;1;32m  ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
/builddir/build/BUILD/highway-1.2.0/hwy/ops/rvv-inl.h:407:21: �[0;1;36mnote: expanded from macro 'HWY_RVV_FOREACH_UI'
  407 |   HWY_RVV_FOREACH_U(X_MACRO, NAME, OP, LMULS)        \
      | �[0;1;32m  ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
/builddir/build/BUILD/highway-1.2.0/hwy/ops/rvv-inl.h:394:23: �[0;1;36mnote: expanded from macro 'HWY_RVV_FOREACH_U'
  394 |   HWY_RVV_FOREACH_U08(X_MACRO, NAME, OP, LMULS)     \
      | �[0;1;32m  ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
�[0;1;36mnote: (skipping 4 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
/builddir/build/BUILD/highway-1.2.0/hwy/ops/rvv-inl.h:497:25: �[0;1;36mnote: expanded from macro 'HWY_RVV_LANES'
  497 |                       : __riscv_vsetvl_e##SEW##LMUL(kCap);                     \
      | �[0;1;32m                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<scratch space>:4:1: �[0;1;36mnote: expanded from here
    4 | __riscv_vsetvl_e8mf4
      | �[0;1;32m^
/usr/bin/../lib/clang/18/include/riscv_vector.h:38:35: �[0;1;36mnote: expanded from macro '__riscv_vsetvl_e8mf4'
   38 | #define __riscv_vsetvl_e8mf4(avl) __builtin_rvv_vsetvli((size_t)(avl), 0, 6)
      | �[0;1;32m                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /builddir/build/BUILD/highway-1.2.0/hwy/per_target.cc:27:
In file included from /builddir/build/BUILD/highway-1.2.0/hwy/foreach_target.h:314:
In file included from /builddir/build/BUILD/highway-1.2.0/hwy/per_target.cc:28:
In file included from /builddir/build/BUILD/highway-1.2.0/hwy/highway.h:596:
/builddir/build/BUILD/highway-1.2.0/hwy/ops/rvv-inl.h:591:17: �[0;1;31merror: builtin requires at least one of the following extensions: 'Zve32x'
  591 | HWY_RVV_FOREACH(HWY_RVV_LANES, Lanes, setvlmax_e, _ALL)
      | �[0;1;32m~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/builddir/build/BUILD/highway-1.2.0/hwy/ops/rvv-inl.h:411:22: �[0;1;36mnote: expanded from macro 'HWY_RVV_FOREACH'
  411 |   HWY_RVV_FOREACH_UI(X_MACRO, NAME, OP, LMULS)    \
      | �[0;1;32m  ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
/builddir/build/BUILD/highway-1.2.0/hwy/ops/rvv-inl.h:407:21: �[0;1;36mnote: expanded from macro 'HWY_RVV_FOREACH_UI'
  407 |   HWY_RVV_FOREACH_U(X_MACRO, NAME, OP, LMULS)        \
      | �[0;1;32m  ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
/builddir/build/BUILD/highway-1.2.0/hwy/ops/rvv-inl.h:394:23: �[0;1;36mnote: expanded from macro 'HWY_RVV_FOREACH_U'
  394 |   HWY_RVV_FOREACH_U08(X_MACRO, NAME, OP, LMULS)     \
      | �[0;1;32m  ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
�[0;1;36mnote: (skipping 5 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
/builddir/build/BUILD/highway-1.2.0/hwy/ops/rvv-inl.h:482:18: �[0;1;36mnote: expanded from macro 'HWY_RVV_CAPPED_LANES_SPECIAL_CASES'
  482 |                ? __riscv_vsetvl_e##SEW##LMUL(cap)                              \
      | �[0;1;32m                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<scratch space>:9:1: �[0;1;36mnote: expanded from here
    9 | __riscv_vsetvl_e8mf4
      | �[0;1;32m^
/usr/bin/../lib/clang/18/include/riscv_vector.h:38:35: �[0;1;36mnote: expanded from macro '__riscv_vsetvl_e8mf4'
   38 | #define __riscv_vsetvl_e8mf4(avl) __builtin_rvv_vsetvli((size_t)(avl), 0, 6)
      | �[0;1;32m                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /builddir/build/BUILD/highway-1.2.0/hwy/per_target.cc:27:
In file included from /builddir/build/BUILD/highway-1.2.0/hwy/foreach_target.h:314:
In file included from /builddir/build/BUILD/highway-1.2.0/hwy/per_target.cc:28:
In file included from /builddir/build/BUILD/highway-1.2.0/hwy/highway.h:596:
/builddir/build/BUILD/highway-1.2.0/hwy/ops/rvv-inl.h:591:17: �[0;1;31merror: builtin requires at least one of the following extensions: 'Zve32x'
  591 | HWY_RVV_FOREACH(HWY_RVV_LANES, Lanes, setvlmax_e, _ALL)
      | �[0;1;32m~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/builddir/build/BUILD/highway-1.2.0/hwy/ops/rvv-inl.h:411:22: �[0;1;36mnote: expanded from macro 'HWY_RVV_FOREACH'
  411 |   HWY_RVV_FOREACH_UI(X_MACRO, NAME, OP, LMULS)    \
      | �[0;1;32m  ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
/builddir/build/BUILD/highway-1.2.0/hwy/ops/rvv-inl.h:407:21: �[0;1;36mnote: expanded from macro 'HWY_RVV_FOREACH_UI'
  407 |   HWY_RVV_FOREACH_U(X_MACRO, NAME, OP, LMULS)        \
      | �[0;1;32m  ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
/builddir/build/BUILD/highway-1.2.0/hwy/ops/rvv-inl.h:394:23: �[0;1;36mnote: expanded from macro 'HWY_RVV_FOREACH_U'
  394 |   HWY_RVV_FOREACH_U08(X_MACRO, NAME, OP, LMULS)     \
      | �[0;1;32m  ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
�[0;1;36mnote: (skipping 5 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
/builddir/build/BUILD/highway-1.2.0/hwy/ops/rvv-inl.h:483:18: �[0;1;36mnote: expanded from macro 'HWY_RVV_CAPPED_LANES_SPECIAL_CASES'
  483 |                : __riscv_vsetvl_e##SEW##LMUL(HWY_MIN(cap, kMaxLanes));         \
      | �[0;1;32m                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<scratch space>:11:1: �[0;1;36mnote: expanded from here
   11 | __riscv_vsetvl_e8mf4
      | �[0;1;32m^
/usr/bin/../lib/clang/18/include/riscv_vector.h:38:35: �[0;1;36mnote: expanded from macro '__riscv_vsetvl_e8mf4'
   38 | #define __riscv_vsetvl_e8mf4(avl) __builtin_rvv_vsetvli((size_t)(avl), 0, 6)
      | �[0;1;32m                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /builddir/build/BUILD/highway-1.2.0/hwy/per_target.cc:27:
In file included from /builddir/build/BUILD/highway-1.2.0/hwy/foreach_target.h:314:
In file included from /builddir/build/BUILD/highway-1.2.0/hwy/per_target.cc:28:
In file included from /builddir/build/BUILD/highway-1.2.0/hwy/highway.h:596:
/builddir/build/BUILD/highway-1.2.0/hwy/ops/rvv-inl.h:591:17: �[0;1;31merror: builtin requires at least one of the following extensions: 'Zve32x'
  591 | HWY_RVV_FOREACH(HWY_RVV_LANES, Lanes, setvlmax_e, _ALL)
      | �[0;1;32m~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/builddir/build/BUILD/highway-1.2.0/hwy/ops/rvv-inl.h:411:22: �[0;1;36mnote: expanded from macro 'HWY_RVV_FOREACH'
  411 |   HWY_RVV_FOREACH_UI(X_MACRO, NAME, OP, LMULS)    \
      | �[0;1;32m  ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
/builddir/build/BUILD/highway-1.2.0/hwy/ops/rvv-inl.h:407:21: �[0;1;36mnote: expanded from macro 'HWY_RVV_FOREACH_UI'
  407 |   HWY_RVV_FOREACH_U(X_MACRO, NAME, OP, LMULS)        \
      | �[0;1;32m  ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
/builddir/build/BUILD/highway-1.2.0/hwy/ops/rvv-inl.h:394:23: �[0;1;36mnote: expanded from macro 'HWY_RVV_FOREACH_U'
  394 |   HWY_RVV_FOREACH_U08(X_MACRO, NAME, OP, LMULS)     \
      | �[0;1;32m  ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
�[0;1;36mnote: (skipping 4 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
/builddir/build/BUILD/highway-1.2.0/hwy/ops/rvv-inl.h:559:14: �[0;1;36mnote: expanded from macro 'HWY_RVV_LANES'
  559 |       return __riscv_vsetvl_e##SEW##LMUL(HWY_MIN(cap, kMaxLanes));             \
      | �[0;1;32m             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<scratch space>:13:1: �[0;1;36mnote: expanded from here
   13 | __riscv_vsetvl_e8mf4
      | �[0;1;32m^
/usr/bin/../lib/clang/18/include/riscv_vector.h:38:35: �[0;1;36mnote: expanded from macro '__riscv_vsetvl_e8mf4'
   38 | #define __riscv_vsetvl_e8mf4(avl) __builtin_rvv_vsetvli((size_t)(avl), 0, 6)
      | �[0;1;32m                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /builddir/build/BUILD/highway-1.2.0/hwy/per_target.cc:27:
In file included from /builddir/build/BUILD/highway-1.2.0/hwy/foreach_target.h:314:
In file included from /builddir/build/BUILD/highway-1.2.0/hwy/per_target.cc:28:
In file included from /builddir/build/BUILD/highway-1.2.0/hwy/highway.h:596:
/builddir/build/BUILD/highway-1.2.0/hwy/ops/rvv-inl.h:591:17: �[0;1;31merror: builtin requires at least one of the following extensions: 'Zve32x'
  591 | HWY_RVV_FOREACH(HWY_RVV_LANES, Lanes, setvlmax_e, _ALL)
      | �[0;1;32m~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/builddir/build/BUILD/highway-1.2.0/hwy/ops/rvv-inl.h:411:22: �[0;1;36mnote: expanded from macro 'HWY_RVV_FOREACH'
  411 |   HWY_RVV_FOREACH_UI(X_MACRO, NAME, OP, LMULS)    \
      | �[0;1;32m  ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
/builddir/build/BUILD/highway-1.2.0/hwy/ops/rvv-inl.h:407:21: �[0;1;36mnote: expanded from macro 'HWY_RVV_FOREACH_UI'
  407 |   HWY_RVV_FOREACH_U(X_MACRO, NAME, OP, LMULS)        \
      | �[0;1;32m  ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
/builddir/build/BUILD/highway-1.2.0/hwy/ops/rvv-inl.h:394:23: �[0;1;36mnote: expanded from macro 'HWY_RVV_FOREACH_U'
  394 |   HWY_RVV_FOREACH_U08(X_MACRO, NAME, OP, LMULS)     \
      | �[0;1;32m  ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
�[0;1;36mnote: (skipping 4 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
/builddir/build/BUILD/highway-1.2.0/hwy/ops/rvv-inl.h:496:25: �[0;1;36mnote: expanded from macro 'HWY_RVV_LANES'
  496 |     return N == kFull ? __riscv_vsetvlmax_e##SEW##LMUL()                       \
      | �[0;1;32m                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<scratch space>:19:1: �[0;1;36mnote: expanded from here
   19 | __riscv_vsetvlmax_e8mf2
      | �[0;1;32m^
/usr/bin/../lib/clang/18/include/riscv_vector.h:68:35: �[0;1;36mnote: expanded from macro '__riscv_vsetvlmax_e8mf2'
   68 | #define __riscv_vsetvlmax_e8mf2() __builtin_rvv_vsetvlimax(0, 7)
      | �[0;1;32m                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /builddir/build/BUILD/highway-1.2.0/hwy/per_target.cc:27:
In file included from /builddir/build/BUILD/highway-1.2.0/hwy/foreach_target.h:314:
In file included from /builddir/build/BUILD/highway-1.2.0/hwy/per_target.cc:28:
In file included from /builddir/build/BUILD/highway-1.2.0/hwy/highway.h:596:
/builddir/build/BUILD/highway-1.2.0/hwy/ops/rvv-inl.h:591:17: �[0;1;31merror: builtin requires at least one of the following extensions: 'Zve32x'
  591 | HWY_RVV_FOREACH(HWY_RVV_LANES, Lanes, setvlmax_e, _ALL)
      | �[0;1;32m~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/builddir/build/BUILD/highway-1.2.0/hwy/ops/rvv-inl.h:411:22: �[0;1;36mnote: expanded from macro 'HWY_RVV_FOREACH'
  411 |   HWY_RVV_FOREACH_UI(X_MACRO, NAME, OP, LMULS)    \
      | �[0;1;32m  ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
/builddir/build/BUILD/highway-1.2.0/hwy/ops/rvv-inl.h:407:21: �[0;1;36mnote: expanded from macro 'HWY_RVV_FOREACH_UI'
  407 |   HWY_RVV_FOREACH_U(X_MACRO, NAME, OP, LMULS)        \
      | �[0;1;32m  ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
/builddir/build/BUILD/highway-1.2.0/hwy/ops/rvv-inl.h:394:23: �[0;1;36mnote: expanded from macro 'HWY_RVV_FOREACH_U'
  394 |   HWY_RVV_FOREACH_U08(X_MACRO, NAME, OP, LMULS)     \
      | �[0;1;32m  ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
�[0;1;36mnote: (skipping 4 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
/builddir/build/BUILD/highway-1.2.0/hwy/ops/rvv-inl.h:497:25: �[0;1;36mnote: expanded from macro 'HWY_RVV_LANES'
  497 |                       : __riscv_vsetvl_e##SEW##LMUL(kCap);                     \
      | �[0;1;32m                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<scratch space>:21:1: �[0;1;36mnote: expanded from here
   21 | __riscv_vsetvl_e8mf2
      | �[0;1;32m^
/usr/bin/../lib/clang/18/include/riscv_vector.h:39:35: �[0;1;36mnote: expanded from macro '__riscv_vsetvl_e8mf2'
   39 | #define __riscv_vsetvl_e8mf2(avl) __builtin_rvv_vsetvli((size_t)(avl), 0, 7)
      | �[0;1;32m                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /builddir/build/BUILD/highway-1.2.0/hwy/per_target.cc:27:
In file included from /builddir/build/BUILD/highway-1.2.0/hwy/foreach_target.h:314:
In file included from /builddir/build/BUILD/highway-1.2.0/hwy/per_target.cc:28:
In file included from /builddir/build/BUILD/highway-1.2.0/hwy/highway.h:596:
/builddir/build/BUILD/highway-1.2.0/hwy/ops/rvv-inl.h:591:17: �[0;1;31merror: builtin requires at least one of the following extensions: 'Zve32x'
  591 | HWY_RVV_FOREACH(HWY_RVV_LANES, Lanes, setvlmax_e, _ALL)
      | �[0;1;32m~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/builddir/build/BUILD/highway-1.2.0/hwy/ops/rvv-inl.h:411:22: �[0;1;36mnote: expanded from macro 'HWY_RVV_FOREACH'
  411 |   HWY_RVV_FOREACH_UI(X_MACRO, NAME, OP, LMULS)    \
      | �[0;1;32m  ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
/builddir/build/BUILD/highway-1.2.0/hwy/ops/rvv-inl.h:407:21: �[0;1;36mnote: expanded from macro 'HWY_RVV_FOREACH_UI'
  407 |   HWY_RVV_FOREACH_U(X_MACRO, NAME, OP, LMULS)        \
      | �[0;1;32m  ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
/builddir/build/BUILD/highway-1.2.0/hwy/ops/rvv-inl.h:394:23: �[0;1;36mnote: expanded from macro 'HWY_RVV_FOREACH_U'
  394 |   HWY_RVV_FOREACH_U08(X_MACRO, NAME, OP, LMULS)     \
      | �[0;1;32m  ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
�[0;1;36mnote: (skipping 5 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
/builddir/build/BUILD/highway-1.2.0/hwy/ops/rvv-inl.h:482:18: �[0;1;36mnote: expanded from macro 'HWY_RVV_CAPPED_LANES_SPECIAL_CASES'
  482 |                ? __riscv_vsetvl_e##SEW##LMUL(cap)                              \
      | �[0;1;32m                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<scratch space>:26:1: �[0;1;36mnote: expanded from here
   26 | __riscv_vsetvl_e8mf2
      | �[0;1;32m^
/usr/bin/../lib/clang/18/include/riscv_vector.h:39:35: �[0;1;36mnote: expanded from macro '__riscv_vsetvl_e8mf2'
   39 | #define __riscv_vsetvl_e8mf2(avl) __builtin_rvv_vsetvli((size_t)(avl), 0, 7)
      | �[0;1;32m                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /builddir/build/BUILD/highway-1.2.0/hwy/per_target.cc:27:
In file included from /builddir/build/BUILD/highway-1.2.0/hwy/foreach_target.h:314:
In file included from /builddir/build/BUILD/highway-1.2.0/hwy/per_target.cc:28:
In file included from /builddir/build/BUILD/highway-1.2.0/hwy/highway.h:596:
/builddir/build/BUILD/highway-1.2.0/hwy/ops/rvv-inl.h:591:17: �[0;1;31merror: builtin requires at least one of the following extensions: 'Zve32x'
  591 | HWY_RVV_FOREACH(HWY_RVV_LANES, Lanes, setvlmax_e, _ALL)
      | �[0;1;32m~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/builddir/build/BUILD/highway-1.2.0/hwy/ops/rvv-inl.h:411:22: �[0;1;36mnote: expanded from macro 'HWY_RVV_FOREACH'
  411 |   HWY_RVV_FOREACH_UI(X_MACRO, NAME, OP, LMULS)    \
      | �[0;1;32m  ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
/builddir/build/BUILD/highway-1.2.0/hwy/ops/rvv-inl.h:407:21: �[0;1;36mnote: expanded from macro 'HWY_RVV_FOREACH_UI'
  407 |   HWY_RVV_FOREACH_U(X_MACRO, NAME, OP, LMULS)        \
      | �[0;1;32m  ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
/builddir/build/BUILD/highway-1.2.0/hwy/ops/rvv-inl.h:394:23: �[0;1;36mnote: expanded from macro 'HWY_RVV_FOREACH_U'
  394 |   HWY_RVV_FOREACH_U08(X_MACRO, NAME, OP, LMULS)     \
      | �[0;1;32m  ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
�[0;1;36mnote: (skipping 5 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
/builddir/build/BUILD/highway-1.2.0/hwy/ops/rvv-inl.h:483:18: �[0;1;36mnote: expanded from macro 'HWY_RVV_CAPPED_LANES_SPECIAL_CASES'
  483 |                : __riscv_vsetvl_e##SEW##LMUL(HWY_MIN(cap, kMaxLanes));         \
      | �[0;1;32m                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<scratch space>:28:1: �[0;1;36mnote: expanded from here
   28 | __riscv_vsetvl_e8mf2
      | �[0;1;32m^
/usr/bin/../lib/clang/18/include/riscv_vector.h:39:35: �[0;1;36mnote: expanded from macro '__riscv_vsetvl_e8mf2'
   39 | #define __riscv_vsetvl_e8mf2(avl) __builtin_rvv_vsetvli((size_t)(avl), 0, 7)
      | �[0;1;32m                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /builddir/build/BUILD/highway-1.2.0/hwy/per_target.cc:27:
In file included from /builddir/build/BUILD/highway-1.2.0/hwy/foreach_target.h:314:
In file included from /builddir/build/BUILD/highway-1.2.0/hwy/per_target.cc:28:
In file included from /builddir/build/BUILD/highway-1.2.0/hwy/highway.h:596:
/builddir/build/BUILD/highway-1.2.0/hwy/ops/rvv-inl.h:591:17: �[0;1;31merror: builtin requires at least one of the following extensions: 'Zve32x'
  591 | HWY_RVV_FOREACH(HWY_RVV_LANES, Lanes, setvlmax_e, _ALL)
      | �[0;1;32m~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/builddir/build/BUILD/highway-1.2.0/hwy/ops/rvv-inl.h:411:22: �[0;1;36mnote: expanded from macro 'HWY_RVV_FOREACH'
  411 |   HWY_RVV_FOREACH_UI(X_MACRO, NAME, OP, LMULS)    \
      | �[0;1;32m  ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
/builddir/build/BUILD/highway-1.2.0/hwy/ops/rvv-inl.h:407:21: �[0;1;36mnote: expanded from macro 'HWY_RVV_FOREACH_UI'
  407 |   HWY_RVV_FOREACH_U(X_MACRO, NAME, OP, LMULS)        \
      | �[0;1;32m  ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
/builddir/build/BUILD/highway-1.2.0/hwy/ops/rvv-inl.h:394:23: �[0;1;36mnote: expanded from macro 'HWY_RVV_FOREACH_U'
  394 |   HWY_RVV_FOREACH_U08(X_MACRO, NAME, OP, LMULS)     \
      | �[0;1;32m  ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
�[0;1;36mnote: (skipping 4 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
/builddir/build/BUILD/highway-1.2.0/hwy/ops/rvv-inl.h:559:14: �[0;1;36mnote: expanded from macro 'HWY_RVV_LANES'
  559 |       return __riscv_vsetvl_e##SEW##LMUL(HWY_MIN(cap, kMaxLanes));             \
      | �[0;1;32m             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<scratch space>:30:1: �[0;1;36mnote: expanded from here
   30 | __riscv_vsetvl_e8mf2
      | �[0;1;32m^
/usr/bin/../lib/clang/18/include/riscv_vector.h:39:35: �[0;1;36mnote: expanded from macro '__riscv_vsetvl_e8mf2'
   39 | #define __riscv_vsetvl_e8mf2(avl) __builtin_rvv_vsetvli((size_t)(avl), 0, 7)
      | �[0;1;32m                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /builddir/build/BUILD/highway-1.2.0/hwy/per_target.cc:27:
In file included from /builddir/build/BUILD/highway-1.2.0/hwy/foreach_target.h:314:
In file included from /builddir/build/BUILD/highway-1.2.0/hwy/per_target.cc:28:
In file included from /builddir/build/BUILD/highway-1.2.0/hwy/highway.h:596:
/builddir/build/BUILD/highway-1.2.0/hwy/ops/rvv-inl.h:591:17: �[0;1;31merror: builtin requires at least one of the following extensions: 'Zve32x'
  591 | HWY_RVV_FOREACH(HWY_RVV_LANES, Lanes, setvlmax_e, _ALL)
      | �[0;1;32m~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/builddir/build/BUILD/highway-1.2.0/hwy/ops/rvv-inl.h:411:22: �[0;1;36mnote: expanded from macro 'HWY_RVV_FOREACH'
  411 |   HWY_RVV_FOREACH_UI(X_MACRO, NAME, OP, LMULS)    \
      | �[0;1;32m  ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
/builddir/build/BUILD/highway-1.2.0/hwy/ops/rvv-inl.h:407:21: �[0;1;36mnote: expanded from macro 'HWY_RVV_FOREACH_UI'
  407 |   HWY_RVV_FOREACH_U(X_MACRO, NAME, OP, LMULS)        \
      | �[0;1;32m  ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
/builddir/build/BUILD/highway-1.2.0/hwy/ops/rvv-inl.h:394:23: �[0;1;36mnote: expanded from macro 'HWY_RVV_FOREACH_U'
  394 |   HWY_RVV_FOREACH_U08(X_MACRO, NAME, OP, LMULS)     \
      | �[0;1;32m  ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
�[0;1;36mnote: (skipping 4 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
/builddir/build/BUILD/highway-1.2.0/hwy/ops/rvv-inl.h:496:25: �[0;1;36mnote: expanded from macro 'HWY_RVV_LANES'
  496 |     return N == kFull ? __riscv_vsetvlmax_e##SEW##LMUL()                       \
      | �[0;1;32m                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<scratch space>:36:1: �[0;1;36mnote: expanded from here
   36 | __riscv_vsetvlmax_e8m1
      | �[0;1;32m^
/usr/bin/../lib/clang/18/include/riscv_vector.h:69:34: �[0;1;36mnote: expanded from macro '__riscv_vsetvlmax_e8m1'
   69 | #define __riscv_vsetvlmax_e8m1() __builtin_rvv_vsetvlimax(0, 0)
      | �[0;1;32m                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /builddir/build/BUILD/highway-1.2.0/hwy/per_target.cc:27:
In file included from /builddir/build/BUILD/highway-1.2.0/hwy/foreach_target.h:314:
In file included from /builddir/build/BUILD/highway-1.2.0/hwy/per_target.cc:28:
In file included from /builddir/build/BUILD/highway-1.2.0/hwy/highway.h:596:
/builddir/build/BUILD/highway-1.2.0/hwy/ops/rvv-inl.h:591:17: �[0;1;31merror: builtin requires at least one of the following extensions: 'Zve32x'
  591 | HWY_RVV_FOREACH(HWY_RVV_LANES, Lanes, setvlmax_e, _ALL)
      | �[0;1;32m~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/builddir/build/BUILD/highway-1.2.0/hwy/ops/rvv-inl.h:411:22: �[0;1;36mnote: expanded from macro 'HWY_RVV_FOREACH'
  411 |   HWY_RVV_FOREACH_UI(X_MACRO, NAME, OP, LMULS)    \
      | �[0;1;32m  ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
/builddir/build/BUILD/highway-1.2.0/hwy/ops/rvv-inl.h:407:21: �[0;1;36mnote: expanded from macro 'HWY_RVV_FOREACH_UI'
  407 |   HWY_RVV_FOREACH_U(X_MACRO, NAME, OP, LMULS)        \
      | �[0;1;32m  ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
/builddir/build/BUILD/highway-1.2.0/hwy/ops/rvv-inl.h:394:23: �[0;1;36mnote: expanded from macro 'HWY_RVV_FOREACH_U'
  394 |   HWY_RVV_FOREACH_U08(X_MACRO, NAME, OP, LMULS)     \
      | �[0;1;32m  ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
�[0;1;36mnote: (skipping 4 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
/builddir/build/BUILD/highway-1.2.0/hwy/ops/rvv-inl.h:497:25: �[0;1;36mnote: expanded from macro 'HWY_RVV_LANES'
  497 |                       : __riscv_vsetvl_e##SEW##LMUL(kCap);                     \
      | �[0;1;32m                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<scratch space>:38:1: �[0;1;36mnote: expanded from here
   38 | __riscv_vsetvl_e8m1
      | �[0;1;32m^
/usr/bin/../lib/clang/18/include/riscv_vector.h:40:34: �[0;1;36mnote: expanded from macro '__riscv_vsetvl_e8m1'
   40 | #define __riscv_vsetvl_e8m1(avl) __builtin_rvv_vsetvli((size_t)(avl), 0, 0)
      | �[0;1;32m                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /builddir/build/BUILD/highway-1.2.0/hwy/per_target.cc:27:
In file included from /builddir/build/BUILD/highway-1.2.0/hwy/foreach_target.h:314:
In file included from /builddir/build/BUILD/highway-1.2.0/hwy/per_target.cc:28:
In file included from /builddir/build/BUILD/highway-1.2.0/hwy/highway.h:596:
/builddir/build/BUILD/highway-1.2.0/hwy/ops/rvv-inl.h:591:17: �[0;1;31merror: builtin requires at least one of the following extensions: 'Zve32x'
  591 | HWY_RVV_FOREACH(HWY_RVV_LANES, Lanes, setvlmax_e, _ALL)
      | �[0;1;32m~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/builddir/build/BUILD/highway-1.2.0/hwy/ops/rvv-inl.h:411:22: �[0;1;36mnote: expanded from macro 'HWY_RVV_FOREACH'
  411 |   HWY_RVV_FOREACH_UI(X_MACRO, NAME, OP, LMULS)    \
      | �[0;1;32m  ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
/builddir/build/BUILD/highway-1.2.0/hwy/ops/rvv-inl.h:407:21: �[0;1;36mnote: expanded from macro 'HWY_RVV_FOREACH_UI'
  407 |   HWY_RVV_FOREACH_U(X_MACRO, NAME, OP, LMULS)        \
      | �[0;1;32m  ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
/builddir/build/BUILD/highway-1.2.0/hwy/ops/rvv-inl.h:394:23: �[0;1;36mnote: expanded from macro 'HWY_RVV_FOREACH_U'
  394 |   HWY_RVV_FOREACH_U08(X_MACRO, NAME, OP, LMULS)     \
      | �[0;1;32m  ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
�[0;1;36mnote: (skipping 5 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
/builddir/build/BUILD/highway-1.2.0/hwy/ops/rvv-inl.h:482:18: �[0;1;36mnote: expanded from macro 'HWY_RVV_CAPPED_LANES_SPECIAL_CASES'
  482 |                ? __riscv_vsetvl_e##SEW##LMUL(cap)                              \
      | �[0;1;32m                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<scratch space>:43:1: �[0;1;36mnote: expanded from here
   43 | __riscv_vsetvl_e8m1
      | �[0;1;32m^
/usr/bin/../lib/clang/18/include/riscv_vector.h:40:34: �[0;1;36mnote: expanded from macro '__riscv_vsetvl_e8m1'
   40 | #define __riscv_vsetvl_e8m1(avl) __builtin_rvv_vsetvli((size_t)(avl), 0, 0)
      | �[0;1;32m                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
�[0;1;31mfatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
gmake[2]: *** [CMakeFiles/hwy.dir/build.make:121: CMakeFiles/hwy.dir/hwy/per_target.cc.o] Error 1

Then:

/usr/bin/cmake -S . -B redhat-linux-build -DCMAKE_C_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_CXX_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_Fortran_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -DCMAKE_INSTALL_DO_STRIP:BOOL=OFF -DCMAKE_INSTALL_PREFIX:PATH=/usr -DINCLUDE_INSTALL_DIR:PATH=/usr/include -DLIB_INSTALL_DIR:PATH=/usr/lib64 -DSYSCONF_INSTALL_DIR:PATH=/etc -DSHARE_INSTALL_PREFIX:PATH=/usr/share -DLIB_SUFFIX=64 -DBUILD_SHARED_LIBS:BOOL=ON -DHWY_SYSTEM_GTEST:BOOL=ON -DHWY_CMAKE_RVV:BOOL=ON

CMake Error at /usr/share/cmake/Modules/GoogleTestAddTests.cmake:112 (message):
  Error running test executable.
    Path: '/builddir/build/BUILD/highway-1.2.0/redhat-linux-build/tests/if_test'
    Result: Illegal instruction
    Output:
      
Call Stack (most recent call first):
  /usr/share/cmake/Modules/GoogleTestAddTests.cmake:225 (gtest_discover_tests_impl)
gmake[2]: *** [CMakeFiles/if_test.dir/build.make:106: tests/if_test] Error 1
gmake[2]: *** Deleting file 'tests/if_test'
gmake[2]: Leaving directory '/builddir/build/BUILD/highway-1.2.0/redhat-linux-build'
gmake[1]: *** [CMakeFiles/Makefile2:1930: CMakeFiles/if_test.dir/all] Error 2
[ 96%] Linking CXX executable tests/sort_test
/usr/bin/cmake -E cmake_link_script CMakeFiles/sort_test.dir/link.txt --verbose=1
/usr/bin/clang++ -O2  -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong   -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -O2 -g -DNDEBUG -Wl,-z,relro -Wl,--as-needed   -Wl,-z,now     -Wl,--build-id=sha1 -fPIE -pie CMakeFiles/sort_test.dir/hwy/contrib/sort/sort_test.cc.o -o tests/sort_test  -Wl,-rpath,/builddir/build/BUILD/highway-1.2.0/redhat-linux-build libhwy_test.so.1.2.0 libhwy_contrib.so.1.2.0 /usr/lib64/libgtest_main.so.1.14.0 libhwy.so.1.2.0 /usr/lib64/libgtest.so.1.14.0 
/usr/bin/cmake -D TEST_TARGET=sort_test -D TEST_EXECUTABLE=/builddir/build/BUILD/highway-1.2.0/redhat-linux-build/tests/sort_test -D TEST_EXECUTOR= -D TEST_WORKING_DIR=/builddir/build/BUILD/highway-1.2.0/redhat-linux-build -D TEST_EXTRA_ARGS= -D TEST_PROPERTIES= -D TEST_PREFIX= -D TEST_SUFFIX= -D TEST_FILTER= -D NO_PRETTY_TYPES=FALSE -D NO_PRETTY_VALUES=FALSE -D TEST_LIST=sort_test_TESTS -D CTEST_FILE=/builddir/build/BUILD/highway-1.2.0/redhat-linux-build/sort_test[1]_tests.cmake -D TEST_DISCOVERY_TIMEOUT=60 -D TEST_XML_OUTPUT_DIR= -P /usr/share/cmake/Modules/GoogleTestAddTests.cmake
CMake Error at /usr/share/cmake/Modules/GoogleTestAddTests.cmake:112 (message):
  Error running test executable.
    Path: '/builddir/build/BUILD/highway-1.2.0/redhat-linux-build/tests/sort_test'
    Result: Illegal instruction
    Output:
      
Call Stack (most recent call first):
  /usr/share/cmake/Modules/GoogleTestAddTests.cmake:225 (gtest_discover_tests_impl)
gmake[2]: *** [CMakeFiles/sort_test.dir/build.make:106: tests/sort_test] Error 1
gmake[2]: *** Deleting file 'tests/sort_test'
gmake[2]: Leaving directory '/builddir/build/BUILD/highway-1.2.0/redhat-linux-build'
gmake[1]: *** [CMakeFiles/Makefile2:2910: CMakeFiles/sort_test.dir/all] Error 2
[ 96%] Linking CXX executable tests/logical_test
/usr/bin/cmake -E cmake_link_script CMakeFiles/logical_test.dir/link.txt --verbose=1
/usr/bin/clang++ -O2  -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong   -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -O2 -g -DNDEBUG -Wl,-z,relro -Wl,--as-needed   -Wl,-z,now     -Wl,--build-id=sha1 -fPIE -pie CMakeFiles/logical_test.dir/hwy/tests/logical_test.cc.o -o tests/logical_test  -Wl,-rpath,/builddir/build/BUILD/highway-1.2.0/redhat-linux-build libhwy_test.so.1.2.0 libhwy_contrib.so.1.2.0 /usr/lib64/libgtest_main.so.1.14.0 libhwy.so.1.2.0 /usr/lib64/libgtest.so.1.14.0 
[ 96%] Linking CXX executable tests/shuffle4_test
/usr/bin/cmake -E cmake_link_script CMakeFiles/shuffle4_test.dir/link.txt --verbose=1
/usr/bin/clang++ -O2  -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong   -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -O2 -g -DNDEBUG -Wl,-z,relro -Wl,--as-needed   -Wl,-z,now     -Wl,--build-id=sha1 -fPIE -pie CMakeFiles/shuffle4_test.dir/hwy/tests/shuffle4_test.cc.o -o tests/shuffle4_test  -Wl,-rpath,/builddir/build/BUILD/highway-1.2.0/redhat-linux-build libhwy_test.so.1.2.0 libhwy_contrib.so.1.2.0 /usr/lib64/libgtest_main.so.1.14.0 libhwy.so.1.2.0 /usr/lib64/libgtest.so.1.14.0 
[ 96%] Linking CXX executable tests/memory_test
/usr/bin/cmake -E cmake_link_script CMakeFiles/memory_test.dir/link.txt --verbose=1
/usr/bin/clang++ -O2  -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong   -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -O2 -g -DNDEBUG -Wl,-z,relro -Wl,--as-needed   -Wl,-z,now     -Wl,--build-id=sha1 -fPIE -pie CMakeFiles/memory_test.dir/hwy/tests/memory_test.cc.o -o tests/memory_test  -Wl,-rpath,/builddir/build/BUILD/highway-1.2.0/redhat-linux-build libhwy_test.so.1.2.0 libhwy_contrib.so.1.2.0 /usr/lib64/libgtest_main.so.1.14.0 libhwy.so.1.2.0 /usr/lib64/libgtest.so.1.14.0 
/usr/bin/cmake -D TEST_TARGET=shuffle4_test -D TEST_EXECUTABLE=/builddir/build/BUILD/highway-1.2.0/redhat-linux-build/tests/shuffle4_test -D TEST_EXECUTOR= -D TEST_WORKING_DIR=/builddir/build/BUILD/highway-1.2.0/redhat-linux-build -D TEST_EXTRA_ARGS= -D TEST_PROPERTIES= -D TEST_PREFIX= -D TEST_SUFFIX= -D TEST_FILTER= -D NO_PRETTY_TYPES=FALSE -D NO_PRETTY_VALUES=FALSE -D TEST_LIST=shuffle4_test_TESTS -D CTEST_FILE=/builddir/build/BUILD/highway-1.2.0/redhat-linux-build/shuffle4_test[1]_tests.cmake -D TEST_DISCOVERY_TIMEOUT=60 -D TEST_XML_OUTPUT_DIR= -P /usr/share/cmake/Modules/GoogleTestAddTests.cmake
CMake Error at /usr/share/cmake/Modules/GoogleTestAddTests.cmake:112 (message):
  Error running test executable.
    Path: '/builddir/build/BUILD/highway-1.2.0/redhat-linux-build/tests/shuffle4_test'
    Result: Illegal instruction
    Output:
      
Call Stack (most recent call first):
  /usr/share/cmake/Modules/GoogleTestAddTests.cmake:225 (gtest_discover_tests_impl)
gmake[2]: *** [CMakeFiles/shuffle4_test.dir/build.make:106: tests/shuffle4_test] Error 1
gmake[2]: *** Deleting file 'tests/shuffle4_test'
gmake[2]: Leaving directory '/builddir/build/BUILD/highway-1.2.0/redhat-linux-build'
gmake[1]: *** [CMakeFiles/Makefile2:2462: CMakeFiles/shuffle4_test.dir/all] Error 2
/usr/bin/cmake -D TEST_TARGET=mask_test -D TEST_EXECUTABLE=/builddir/build/BUILD/highway-1.2.0/redhat-linux-build/tests/mask_test -D TEST_EXECUTOR= -D TEST_WORKING_DIR=/builddir/build/BUILD/highway-1.2.0/redhat-linux-build -D TEST_EXTRA_ARGS= -D TEST_PROPERTIES= -D TEST_PREFIX= -D TEST_SUFFIX= -D TEST_FILTER= -D NO_PRETTY_TYPES=FALSE -D NO_PRETTY_VALUES=FALSE -D TEST_LIST=mask_test_TESTS -D CTEST_FILE=/builddir/build/BUILD/highway-1.2.0/redhat-linux-build/mask_test[1]_tests.cmake -D TEST_DISCOVERY_TIMEOUT=60 -D TEST_XML_OUTPUT_DIR= -P /usr/share/cmake/Modules/GoogleTestAddTests.cmake
CMake Error at /usr/share/cmake/Modules/GoogleTestAddTests.cmake:112 (message):
  Error running test executable.
    Path: '/builddir/build/BUILD/highway-1.2.0/redhat-linux-build/tests/mask_test'
    Result: Illegal instruction
    Output:
      
Call Stack (most recent call first):
  /usr/share/cmake/Modules/GoogleTestAddTests.cmake:225 (gtest_discover_tests_impl)
gmake[2]: *** [CMakeFiles/mask_test.dir/build.make:106: tests/mask_test] Error 1
gmake[2]: *** Deleting file 'tests/mask_test'
gmake[2]: Leaving directory '/builddir/build/BUILD/highway-1.2.0/redhat-linux-build'
gmake[1]: *** [CMakeFiles/Makefile2:2154: CMakeFiles/mask_test.dir/all] Error 2
/usr/bin/cmake -D TEST_TARGET=mul_test -D TEST_EXECUTABLE=/builddir/build/BUILD/highway-1.2.0/redhat-linux-build/tests/mul_test -D TEST_EXECUTOR= -D TEST_WORKING_DIR=/builddir/build/BUILD/highway-1.2.0/redhat-linux-build -D TEST_EXTRA_ARGS= -D TEST_PROPERTIES= -D TEST_PREFIX= -D TEST_SUFFIX= -D TEST_FILTER= -D NO_PRETTY_TYPES=FALSE -D NO_PRETTY_VALUES=FALSE -D TEST_LIST=mul_test_TESTS -D CTEST_FILE=/builddir/build/BUILD/highway-1.2.0/redhat-linux-build/mul_test[1]_tests.cmake -D TEST_DISCOVERY_TIMEOUT=60 -D TEST_XML_OUTPUT_DIR= -P /usr/share/cmake/Modules/GoogleTestAddTests.cmake
CMake Error at /usr/share/cmake/Modules/GoogleTestAddTests.cmake:112 (message):
  Error running test executable.
    Path: '/builddir/build/BUILD/highway-1.2.0/redhat-linux-build/tests/mul_test'
    Result: Illegal instruction
    Output:
      
Call Stack (most recent call first):
  /usr/share/cmake/Modules/GoogleTestAddTests.cmake:225 (gtest_discover_tests_impl)
gmake[2]: *** [CMakeFiles/mul_test.dir/build.make:106: tests/mul_test] Error 1
gmake[2]: *** Deleting file 'tests/mul_test'
gmake[2]: Leaving directory '/builddir/build/BUILD/highway-1.2.0/redhat-linux-build'
gmake[1]: *** [CMakeFiles/Makefile2:2294: CMakeFiles/mul_test.dir/all] Error 2
/usr/bin/cmake -D TEST_TARGET=cast_test -D TEST_EXECUTABLE=/builddir/build/BUILD/highway-1.2.0/redhat-linux-build/tests/cast_test -D TEST_EXECUTOR= -D TEST_WORKING_DIR=/builddir/build/BUILD/highway-1.2.0/redhat-linux-build -D TEST_EXTRA_ARGS= -D TEST_PROPERTIES= -D TEST_PREFIX= -D TEST_SUFFIX= -D TEST_FILTER= -D NO_PRETTY_TYPES=FALSE -D NO_PRETTY_VALUES=FALSE -D TEST_LIST=cast_test_TESTS -D CTEST_FILE=/builddir/build/BUILD/highway-1.2.0/redhat-linux-build/cast_test[1]_tests.cmake -D TEST_DISCOVERY_TIMEOUT=60 -D TEST_XML_OUTPUT_DIR= -P /usr/share/cmake/Modules/GoogleTestAddTests.cmake
CMake Error at /usr/share/cmake/Modules/GoogleTestAddTests.cmake:112 (message):
  Error running test executable.
    Path: '/builddir/build/BUILD/highway-1.2.0/redhat-linux-build/tests/cast_test'
    Result: Illegal instruction
    Output:
      
Call Stack (most recent call first):
  /usr/share/cmake/Modules/GoogleTestAddTests.cmake:225 (gtest_discover_tests_impl)
gmake[2]: *** [CMakeFiles/cast_test.dir/build.make:106: tests/cast_test] Error 1
gmake[2]: *** Deleting file 'tests/cast_test'
gmake[2]: Leaving directory '/builddir/build/BUILD/highway-1.2.0/redhat-linux-build'
gmake[1]: *** [CMakeFiles/Makefile2:1566: CMakeFiles/cast_test.dir/all] Error 2
[ 96%] Linking CXX executable tests/bit_pack_test
/usr/bin/cmake -E cmake_link_script CMakeFiles/bit_pack_test.dir/link.txt --verbose=1
/usr/bin/clang++ -O2  -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong   -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -O2 -g -DNDEBUG -Wl,-z,relro -Wl,--as-needed   -Wl,-z,now     -Wl,--build-id=sha1 -fPIE -pie CMakeFiles/bit_pack_test.dir/hwy/contrib/bit_pack/bit_pack_test.cc.o -o tests/bit_pack_test  -Wl,-rpath,/builddir/build/BUILD/highway-1.2.0/redhat-linux-build libhwy_test.so.1.2.0 libhwy_contrib.so.1.2.0 /usr/lib64/libgtest_main.so.1.14.0 libhwy.so.1.2.0 /usr/lib64/libgtest.so.1.14.0 
/usr/bin/cmake -D TEST_TARGET=memory_test -D TEST_EXECUTABLE=/builddir/build/BUILD/highway-1.2.0/redhat-linux-build/tests/memory_test -D TEST_EXECUTOR= -D TEST_WORKING_DIR=/builddir/build/BUILD/highway-1.2.0/redhat-linux-build -D TEST_EXTRA_ARGS= -D TEST_PROPERTIES= -D TEST_PREFIX= -D TEST_SUFFIX= -D TEST_FILTER= -D NO_PRETTY_TYPES=FALSE -D NO_PRETTY_VALUES=FALSE -D TEST_LIST=memory_test_TESTS -D CTEST_FILE=/builddir/build/BUILD/highway-1.2.0/redhat-linux-build/memory_test[1]_tests.cmake -D TEST_DISCOVERY_TIMEOUT=60 -D TEST_XML_OUTPUT_DIR= -P /usr/share/cmake/Modules/GoogleTestAddTests.cmake
CMake Error at /usr/share/cmake/Modules/GoogleTestAddTests.cmake:112 (message):
  Error running test executable.
    Path: '/builddir/build/BUILD/highway-1.2.0/redhat-linux-build/tests/memory_test'
    Result: Illegal instruction
    Output:
      
Call Stack (most recent call first):
  /usr/share/cmake/Modules/GoogleTestAddTests.cmake:225 (gtest_discover_tests_impl)
gmake[2]: *** [CMakeFiles/memory_test.dir/build.make:106: tests/memory_test] Error 1
gmake[2]: *** Deleting file 'tests/memory_test'
gmake[2]: Leaving directory '/builddir/build/BUILD/highway-1.2.0/redhat-linux-build'
gmake[1]: *** [CMakeFiles/Makefile2:2238: CMakeFiles/memory_test.dir/all] Error 2
/usr/bin/cmake -D TEST_TARGET=logical_test -D TEST_EXECUTABLE=/builddir/build/BUILD/highway-1.2.0/redhat-linux-build/tests/logical_test -D TEST_EXECUTOR= -D TEST_WORKING_DIR=/builddir/build/BUILD/highway-1.2.0/redhat-linux-build -D TEST_EXTRA_ARGS= -D TEST_PROPERTIES= -D TEST_PREFIX= -D TEST_SUFFIX= -D TEST_FILTER= -D NO_PRETTY_TYPES=FALSE -D NO_PRETTY_VALUES=FALSE -D TEST_LIST=logical_test_TESTS -D CTEST_FILE=/builddir/build/BUILD/highway-1.2.0/redhat-linux-build/logical_test[1]_tests.cmake -D TEST_DISCOVERY_TIMEOUT=60 -D TEST_XML_OUTPUT_DIR= -P /usr/share/cmake/Modules/GoogleTestAddTests.cmake
CMake Error at /usr/share/cmake/Modules/GoogleTestAddTests.cmake:112 (message):
  Error running test executable.
    Path: '/builddir/build/BUILD/highway-1.2.0/redhat-linux-build/tests/logical_test'
    Result: Illegal instruction
    Output:
      
Call Stack (most recent call first):
  /usr/share/cmake/Modules/GoogleTestAddTests.cmake:225 (gtest_discover_tests_impl)
gmake[2]: *** [CMakeFiles/logical_test.dir/build.make:106: tests/logical_test] Error 1
gmake[2]: *** Deleting file 'tests/logical_test'
gmake[2]: Leaving directory '/builddir/build/BUILD/highway-1.2.0/redhat-linux-build'
gmake[1]: *** [CMakeFiles/Makefile2:2014: CMakeFiles/logical_test.dir/all] Error 2
[ 96%] Linking CXX executable tests/shift_test
/usr/bin/cmake -E cmake_link_script CMakeFiles/shift_test.dir/link.txt --verbose=1
/usr/bin/clang++ -O2  -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong   -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -O2 -g -DNDEBUG -Wl,-z,relro -Wl,--as-needed   -Wl,-z,now     -Wl,--build-id=sha1 -fPIE -pie CMakeFiles/shift_test.dir/hwy/tests/shift_test.cc.o -o tests/shift_test  -Wl,-rpath,/builddir/build/BUILD/highway-1.2.0/redhat-linux-build libhwy_test.so.1.2.0 libhwy_contrib.so.1.2.0 /usr/lib64/libgtest_main.so.1.14.0 libhwy.so.1.2.0 /usr/lib64/libgtest.so.1.14.0 
/usr/bin/cmake -D TEST_TARGET=bit_pack_test -D TEST_EXECUTABLE=/builddir/build/BUILD/highway-1.2.0/redhat-linux-build/tests/bit_pack_test -D TEST_EXECUTOR= -D TEST_WORKING_DIR=/builddir/build/BUILD/highway-1.2.0/redhat-linux-build -D TEST_EXTRA_ARGS= -D TEST_PROPERTIES= -D TEST_PREFIX= -D TEST_SUFFIX= -D TEST_FILTER= -D NO_PRETTY_TYPES=FALSE -D NO_PRETTY_VALUES=FALSE -D TEST_LIST=bit_pack_test_TESTS -D CTEST_FILE=/builddir/build/BUILD/highway-1.2.0/redhat-linux-build/bit_pack_test[1]_tests.cmake -D TEST_DISCOVERY_TIMEOUT=60 -D TEST_XML_OUTPUT_DIR= -P /usr/share/cmake/Modules/GoogleTestAddTests.cmake
CMake Error at /usr/share/cmake/Modules/GoogleTestAddTests.cmake:112 (message):
  Error running test executable.
    Path: '/builddir/build/BUILD/highway-1.2.0/redhat-linux-build/tests/bit_pack_test'
    Result: Illegal instruction
    Output:
      
Call Stack (most recent call first):
  /usr/share/cmake/Modules/GoogleTestAddTests.cmake:225 (gtest_discover_tests_impl)
gmake[2]: *** [CMakeFiles/bit_pack_test.dir/build.make:106: tests/bit_pack_test] Error 1
gmake[2]: *** Deleting file 'tests/bit_pack_test'
gmake[2]: Leaving directory '/builddir/build/BUILD/highway-1.2.0/redhat-linux-build'
gmake[1]: *** [CMakeFiles/Makefile2:2742: CMakeFiles/bit_pack_test.dir/all] Error 2
/usr/bin/cmake -D TEST_TARGET=shift_test -D TEST_EXECUTABLE=/builddir/build/BUILD/highway-1.2.0/redhat-linux-build/tests/shift_test -D TEST_EXECUTOR= -D TEST_WORKING_DIR=/builddir/build/BUILD/highway-1.2.0/redhat-linux-build -D TEST_EXTRA_ARGS= -D TEST_PROPERTIES= -D TEST_PREFIX= -D TEST_SUFFIX= -D TEST_FILTER= -D NO_PRETTY_TYPES=FALSE -D NO_PRETTY_VALUES=FALSE -D TEST_LIST=shift_test_TESTS -D CTEST_FILE=/builddir/build/BUILD/highway-1.2.0/redhat-linux-build/shift_test[1]_tests.cmake -D TEST_DISCOVERY_TIMEOUT=60 -D TEST_XML_OUTPUT_DIR= -P /usr/share/cmake/Modules/GoogleTestAddTests.cmake
CMake Error at /usr/share/cmake/Modules/GoogleTestAddTests.cmake:112 (message):
  Error running test executable.
    Path: '/builddir/build/BUILD/highway-1.2.0/redhat-linux-build/tests/shift_test'
    Result: Illegal instruction
    Output:
      
Call Stack (most recent call first):
  /usr/share/cmake/Modules/GoogleTestAddTests.cmake:225 (gtest_discover_tests_impl)
gmake[2]: *** [CMakeFiles/shift_test.dir/build.make:106: tests/shift_test] Error 1
gmake[2]: *** Deleting file 'tests/shift_test'
gmake[2]: Leaving directory '/builddir/build/BUILD/highway-1.2.0/redhat-linux-build'
gmake[1]: *** [CMakeFiles/Makefile2:2434: CMakeFiles/shift_test.dir/all] Error 2
gmake[1]: Leaving directory '/builddir/build/BUILD/highway-1.2.0/redhat-linux-build'
gmake: *** [Makefile:149: all] Error 2

https://fedora.riscv.rocks/kojifiles/work/tasks/9919/1699919/build.log

Same with /usr/bin/cmake -S . -B redhat-linux-build -DCMAKE_C_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_CXX_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_Fortran_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -DCMAKE_INSTALL_DO_STRIP:BOOL=OFF -DCMAKE_INSTALL_PREFIX:PATH=/usr -DINCLUDE_INSTALL_DIR:PATH=/usr/include -DLIB_INSTALL_DIR:PATH=/usr/lib64 -DSYSCONF_INSTALL_DIR:PATH=/etc -DSHARE_INSTALL_PREFIX:PATH=/usr/share -DLIB_SUFFIX=64 -DBUILD_SHARED_LIBS:BOOL=ON -DHWY_SYSTEM_GTEST:BOOL=ON

We them apply:

+ From c95cc0237d2f7a0f5ca5dc3fb4b5961b2b1dcdfc Mon Sep 17 00:00:00 2001
+ From: Jan Wassenberg <[email protected]>
+ Date: Mon, 3 Jun 2024 02:51:20 -0700
+ Subject: [PATCH] Disable RVV runtime dispatch. Fixes #2227 
Call Stack (most recent call first):
  /usr/share/cmake/Modules/GoogleTestAddTests.cmake:225 (gtest_discover_tests_impl)
gmake[2]: *** [CMakeFiles/mul_test.dir/build.make:106: tests/mul_test] Error 1
gmake[2]: *** Deleting file 'tests/mul_test'
gmake[2]: Leaving directory '/builddir/build/BUILD/highway-1.2.0/redhat-linux-build'
gmake[1]: *** [CMakeFiles/Makefile2:2294: CMakeFiles/mul_test.dir/all] Error 2
[ 96%] Linking CXX executable tests/sort_test
/usr/bin/cmake -E cmake_link_script CMakeFiles/sort_test.dir/link.txt --verbose=1
/usr/bin/clang++ -O2  -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong   -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -O2 -g -DNDEBUG -Wl,-z,relro -Wl,--as-needed   -Wl,-z,now     -Wl,--build-id=sha1 -fPIE -pie CMakeFiles/sort_test.dir/hwy/contrib/sort/sort_test.cc.o -o tests/sort_test  -Wl,-rpath,/builddir/build/BUILD/highway-1.2.0/redhat-linux-build libhwy_test.so.1.2.0 libhwy_contrib.so.1.2.0 /usr/lib64/libgtest_main.so.1.14.0 libhwy.so.1.2.0 /usr/lib64/libgtest.so.1.14.0 
/usr/bin/cmake -D TEST_TARGET=sort_test -D TEST_EXECUTABLE=/builddir/build/BUILD/highway-1.2.0/redhat-linux-build/tests/sort_test -D TEST_EXECUTOR= -D TEST_WORKING_DIR=/builddir/build/BUILD/highway-1.2.0/redhat-linux-build -D TEST_EXTRA_ARGS= -D TEST_PROPERTIES= -D TEST_PREFIX= -D TEST_SUFFIX= -D TEST_FILTER= -D NO_PRETTY_TYPES=FALSE -D NO_PRETTY_VALUES=FALSE -D TEST_LIST=sort_test_TESTS -D CTEST_FILE=/builddir/build/BUILD/highway-1.2.0/redhat-linux-build/sort_test[1]_tests.cmake -D TEST_DISCOVERY_TIMEOUT=60 -D TEST_XML_OUTPUT_DIR= -P /usr/share/cmake/Modules/GoogleTestAddTests.cmake
CMake Error at /usr/share/cmake/Modules/GoogleTestAddTests.cmake:112 (message):
  Error running test executable.
    Path: '/builddir/build/BUILD/highway-1.2.0/redhat-linux-build/tests/sort_test'
    Result: Illegal instruction
    Output:
      
Call Stack (most recent call first):
  /usr/share/cmake/Modules/GoogleTestAddTests.cmake:225 (gtest_discover_tests_impl)
gmake[2]: *** [CMakeFiles/sort_test.dir/build.make:106: tests/sort_test] Error 1
gmake[2]: *** Deleting file 'tests/sort_test'
gmake[2]: Leaving directory '/builddir/build/BUILD/highway-1.2.0/redhat-linux-build'
gmake[1]: *** [CMakeFiles/Makefile2:2910: CMakeFiles/sort_test.dir/all] Error 2
[ 96%] Linking CXX executable tests/bit_pack_test
/usr/bin/cmake -E cmake_link_script CMakeFiles/bit_pack_test.dir/link.txt --verbose=1
/usr/bin/clang++ -O2  -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong   -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -O2 -g -DNDEBUG -Wl,-z,relro -Wl,--as-needed   -Wl,-z,now     -Wl,--build-id=sha1 -fPIE -pie CMakeFiles/bit_pack_test.dir/hwy/contrib/bit_pack/bit_pack_test.cc.o -o tests/bit_pack_test  -Wl,-rpath,/builddir/build/BUILD/highway-1.2.0/redhat-linux-build libhwy_test.so.1.2.0 libhwy_contrib.so.1.2.0 /usr/lib64/libgtest_main.so.1.14.0 libhwy.so.1.2.0 /usr/lib64/libgtest.so.1.14.0 
/usr/bin/cmake -D TEST_TARGET=bit_pack_test -D TEST_EXECUTABLE=/builddir/build/BUILD/highway-1.2.0/redhat-linux-build/tests/bit_pack_test -D TEST_EXECUTOR= -D TEST_WORKING_DIR=/builddir/build/BUILD/highway-1.2.0/redhat-linux-build -D TEST_EXTRA_ARGS= -D TEST_PROPERTIES= -D TEST_PREFIX= -D TEST_SUFFIX= -D TEST_FILTER= -D NO_PRETTY_TYPES=FALSE -D NO_PRETTY_VALUES=FALSE -D TEST_LIST=bit_pack_test_TESTS -D CTEST_FILE=/builddir/build/BUILD/highway-1.2.0/redhat-linux-build/bit_pack_test[1]_tests.cmake -D TEST_DISCOVERY_TIMEOUT=60 -D TEST_XML_OUTPUT_DIR= -P /usr/share/cmake/Modules/GoogleTestAddTests.cmake
CMake Error at /usr/share/cmake/Modules/GoogleTestAddTests.cmake:112 (message):
  Error running test executable.
    Path: '/builddir/build/BUILD/highway-1.2.0/redhat-linux-build/tests/bit_pack_test'
    Result: Illegal instruction
    Output:
      
Call Stack (most recent call first):
  /usr/share/cmake/Modules/GoogleTestAddTests.cmake:225 (gtest_discover_tests_impl)
gmake[2]: *** [CMakeFiles/bit_pack_test.dir/build.make:106: tests/bit_pack_test] Error 1
gmake[2]: *** Deleting file 'tests/bit_pack_test'
gmake[2]: Leaving directory '/builddir/build/BUILD/highway-1.2.0/redhat-linux-build'
gmake[1]: *** [CMakeFiles/Makefile2:2742: CMakeFiles/bit_pack_test.dir/all] Error 2
/usr/bin/cmake -D TEST_TARGET=memory_test -D TEST_EXECUTABLE=/builddir/build/BUILD/highway-1.2.0/redhat-linux-build/tests/memory_test -D TEST_EXECUTOR= -D TEST_WORKING_DIR=/builddir/build/BUILD/highway-1.2.0/redhat-linux-build -D TEST_EXTRA_ARGS= -D TEST_PROPERTIES= -D TEST_PREFIX= -D TEST_SUFFIX= -D TEST_FILTER= -D NO_PRETTY_TYPES=FALSE -D NO_PRETTY_VALUES=FALSE -D TEST_LIST=memory_test_TESTS -D CTEST_FILE=/builddir/build/BUILD/highway-1.2.0/redhat-linux-build/memory_test[1]_tests.cmake -D TEST_DISCOVERY_TIMEOUT=60 -D TEST_XML_OUTPUT_DIR= -P /usr/share/cmake/Modules/GoogleTestAddTests.cmake
CMake Error at /usr/share/cmake/Modules/GoogleTestAddTests.cmake:112 (message):
  Error running test executable.
    Path: '/builddir/build/BUILD/highway-1.2.0/redhat-linux-build/tests/memory_test'
    Result: Illegal instruction
    Output:
      
Call Stack (most recent call first):
  /usr/share/cmake/Modules/GoogleTestAddTests.cmake:225 (gtest_discover_tests_impl)
gmake[2]: *** [CMakeFiles/memory_test.dir/build.make:106: tests/memory_test] Error 1
gmake[2]: *** Deleting file 'tests/memory_test'
gmake[2]: Leaving directory '/builddir/build/BUILD/highway-1.2.0/redhat-linux-build'
gmake[1]: *** [CMakeFiles/Makefile2:2238: CMakeFiles/memory_test.dir/all] Error 2
[ 96%] Linking CXX executable tests/shift_test
/usr/bin/cmake -E cmake_link_script CMakeFiles/shift_test.dir/link.txt --verbose=1
/usr/bin/clang++ -O2  -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong   -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -O2 -g -DNDEBUG -Wl,-z,relro -Wl,--as-needed   -Wl,-z,now     -Wl,--build-id=sha1 -fPIE -pie CMakeFiles/shift_test.dir/hwy/tests/shift_test.cc.o -o tests/shift_test  -Wl,-rpath,/builddir/build/BUILD/highway-1.2.0/redhat-linux-build libhwy_test.so.1.2.0 libhwy_contrib.so.1.2.0 /usr/lib64/libgtest_main.so.1.14.0 libhwy.so.1.2.0 /usr/lib64/libgtest.so.1.14.0 
/usr/bin/cmake -D TEST_TARGET=logical_test -D TEST_EXECUTABLE=/builddir/build/BUILD/highway-1.2.0/redhat-linux-build/tests/logical_test -D TEST_EXECUTOR= -D TEST_WORKING_DIR=/builddir/build/BUILD/highway-1.2.0/redhat-linux-build -D TEST_EXTRA_ARGS= -D TEST_PROPERTIES= -D TEST_PREFIX= -D TEST_SUFFIX= -D TEST_FILTER= -D NO_PRETTY_TYPES=FALSE -D NO_PRETTY_VALUES=FALSE -D TEST_LIST=logical_test_TESTS -D CTEST_FILE=/builddir/build/BUILD/highway-1.2.0/redhat-linux-build/logical_test[1]_tests.cmake -D TEST_DISCOVERY_TIMEOUT=60 -D TEST_XML_OUTPUT_DIR= -P /usr/share/cmake/Modules/GoogleTestAddTests.cmake
CMake Error at /usr/share/cmake/Modules/GoogleTestAddTests.cmake:112 (message):
  Error running test executable.
    Path: '/builddir/build/BUILD/highway-1.2.0/redhat-linux-build/tests/logical_test'
    Result: Illegal instruction
    Output:
      
Call Stack (most recent call first):
  /usr/share/cmake/Modules/GoogleTestAddTests.cmake:225 (gtest_discover_tests_impl)
gmake[2]: *** [CMakeFiles/logical_test.dir/build.make:106: tests/logical_test] Error 1
gmake[2]: *** Deleting file 'tests/logical_test'
gmake[2]: Leaving directory '/builddir/build/BUILD/highway-1.2.0/redhat-linux-build'
gmake[1]: *** [CMakeFiles/Makefile2:2014: CMakeFiles/logical_test.dir/all] Error 2
/usr/bin/cmake -D TEST_TARGET=shift_test -D TEST_EXECUTABLE=/builddir/build/BUILD/highway-1.2.0/redhat-linux-build/tests/shift_test -D TEST_EXECUTOR= -D TEST_WORKING_DIR=/builddir/build/BUILD/highway-1.2.0/redhat-linux-build -D TEST_EXTRA_ARGS= -D TEST_PROPERTIES= -D TEST_PREFIX= -D TEST_SUFFIX= -D TEST_FILTER= -D NO_PRETTY_TYPES=FALSE -D NO_PRETTY_VALUES=FALSE -D TEST_LIST=shift_test_TESTS -D CTEST_FILE=/builddir/build/BUILD/highway-1.2.0/redhat-linux-build/shift_test[1]_tests.cmake -D TEST_DISCOVERY_TIMEOUT=60 -D TEST_XML_OUTPUT_DIR= -P /usr/share/cmake/Modules/GoogleTestAddTests.cmake
CMake Error at /usr/share/cmake/Modules/GoogleTestAddTests.cmake:112 (message):
  Error running test executable.
    Path: '/builddir/build/BUILD/highway-1.2.0/redhat-linux-build/tests/shift_test'
    Result: Illegal instruction
    Output:
      
Call Stack (most recent call first):
  /usr/share/cmake/Modules/GoogleTestAddTests.cmake:225 (gtest_discover_tests_impl)
gmake[2]: *** [CMakeFiles/shift_test.dir/build.make:106: tests/shift_test] Error 1
gmake[2]: *** Deleting file 'tests/shift_test'
gmake[2]: Leaving directory '/builddir/build/BUILD/highway-1.2.0/redhat-linux-build'
gmake[1]: *** [CMakeFiles/Makefile2:2434: CMakeFiles/shift_test.dir/all] Error 2
gmake[1]: Leaving directory '/builddir/build/BUILD/highway-1.2.0/redhat-linux-build'
gmake: *** [Makefile:149: all] Error 2

https://fedora.riscv.rocks/kojifiles/work/tasks/3471/1703471/build.log

I then tried to pass:

/usr/bin/cmake -S . -B redhat-linux-build -DCMAKE_C_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_CXX_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_Fortran_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -DCMAKE_INSTALL_DO_STRIP:BOOL=OFF -DCMAKE_INSTALL_PREFIX:PATH=/usr -DINCLUDE_INSTALL_DIR:PATH=/usr/include -DLIB_INSTALL_DIR:PATH=/usr/lib64 -DSYSCONF_INSTALL_DIR:PATH=/etc -DSHARE_INSTALL_PREFIX:PATH=/usr/share -DLIB_SUFFIX=64 -DBUILD_SHARED_LIBS:BOOL=ON -DHWY_SYSTEM_GTEST:BOOL=ON -DHWY_HAVE_RUNTIME_DISPATCH_RVV:BOOL=OFF

it still fails with Illegal instruction: https://fedora.riscv.rocks/kojifiles/work/tasks/3835/1703835/build.log

And Cmake says HWY_HAVE_RUNTIME_DISPATCH_RVV is not ok despite the patch being applied.

  Manually-specified variables were not used by the project:
    CMAKE_CXX_FLAGS_RELEASE
    CMAKE_C_FLAGS_RELEASE
    CMAKE_Fortran_FLAGS_RELEASE
    CMAKE_INSTALL_DO_STRIP
    HWY_HAVE_RUNTIME_DISPATCH_RVV
    INCLUDE_INSTALL_DIR
    LIB_INSTALL_DIR
    LIB_SUFFIX
    SHARE_INSTALL_PREFIX
    SYSCONF_INSTALL_DIR

Am I missing something?

@eclipseo
Copy link
Contributor Author

eclipseo commented Jun 7, 2024

ok now with still the patch:

+ From c95cc0237d2f7a0f5ca5dc3fb4b5961b2b1dcdfc Mon Sep 17 00:00:00 2001
+ From: Jan Wassenberg <[email protected]>
+ Date: Mon, 3 Jun 2024 02:51:20 -0700
+ Subject: [PATCH] Disable RVV runtime dispatch. Fixes #2227 

And build option:

/usr/bin/cmake -S . -B redhat-linux-build -DCMAKE_C_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_CXX_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_Fortran_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -DCMAKE_INSTALL_DO_STRIP:BOOL=OFF -DCMAKE_INSTALL_PREFIX:PATH=/usr -DINCLUDE_INSTALL_DIR:PATH=/usr/include -DLIB_INSTALL_DIR:PATH=/usr/lib64 -DSYSCONF_INSTALL_DIR:PATH=/etc -DSHARE_INSTALL_PREFIX:PATH=/usr/share -DLIB_SUFFIX=64 -DBUILD_SHARED_LIBS:BOOL=ON -DHWY_SYSTEM_GTEST:BOOL=ON -DHWY_CMAKE_RVV:BOOL=OFF

We get a bit further, but Clang++ coredump:

[ 57%] Building CXX object CMakeFiles/interleaved_test.dir/hwy/tests/interleaved_test.cc.o
/usr/bin/clang++ -DGTEST_LINKED_AS_SHARED_LIBRARY=1 -DHWY_SHARED_DEFINE -I/builddir/build/BUILD/highway-1.2.0 -O2  -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong   -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -O2 -g -DNDEBUG -std=c++17 -fPIE -fvisibility=hidden -fvisibility-inlines-hidden -Wno-builtin-macro-redefined -D__DATE__=\"redacted\" -D__TIMESTAMP__=\"redacted\" -D__TIME__=\"redacted\" -fmerge-all-constants -Wall -Wextra -Wconversion -Wsign-conversion -Wvla -Wnon-virtual-dtor -Wcast-align -Wfloat-overflow-conversion -Wfloat-zero-conversion -Wfor-loop-analysis -Wgnu-redeclared-enum -Winfinite-recursion -Wself-assign -Wstring-conversion -Wtautological-overlap-compare -Wthread-safety-analysis -Wundefined-func-template -fno-cxx-exceptions -fno-slp-vectorize -fno-vectorize -fdiagnostics-show-option -fcolor-diagnostics -Wc++2a-extensions -fmath-errno -fno-exceptions -Wno-psabi -DHWY_IS_TEST=1 -MD -MT CMakeFiles/interleaved_test.dir/hwy/tests/interleaved_test.cc.o -MF CMakeFiles/interleaved_test.dir/hwy/tests/interleaved_test.cc.o.d -o CMakeFiles/interleaved_test.dir/hwy/tests/interleaved_test.cc.o -c /builddir/build/BUILD/highway-1.2.0/hwy/tests/interleaved_test.cc
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, preprocessed source, and associated run script.
Stack dump:
0.	Program arguments: /usr/bin/clang++ -DGTEST_LINKED_AS_SHARED_LIBRARY=1 -DHWY_SHARED_DEFINE -I/builddir/build/BUILD/highway-1.2.0 -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -O2 -g -DNDEBUG -std=c++17 -fPIE -fvisibility=hidden -fvisibility-inlines-hidden -Wno-builtin-macro-redefined -D__DATE__=\"redacted\" -D__TIMESTAMP__=\"redacted\" -D__TIME__=\"redacted\" -fmerge-all-constants -Wall -Wextra -Wconversion -Wsign-conversion -Wvla -Wnon-virtual-dtor -Wcast-align -Wfloat-overflow-conversion -Wfloat-zero-conversion -Wfor-loop-analysis -Wgnu-redeclared-enum -Winfinite-recursion -Wself-assign -Wstring-conversion -Wtautological-overlap-compare -Wthread-safety-analysis -Wundefined-func-template -fno-cxx-exceptions -fno-slp-vectorize -fno-vectorize -fdiagnostics-show-option -fcolor-diagnostics -Wc++2a-extensions -fmath-errno -fno-exceptions -Wno-psabi -DHWY_IS_TEST=1 -MD -MT CMakeFiles/div_test.dir/hwy/tests/div_test.cc.o -MF CMakeFiles/div_test.dir/hwy/tests/div_test.cc.o.d -o CMakeFiles/div_test.dir/hwy/tests/div_test.cc.o -c /builddir/build/BUILD/highway-1.2.0/hwy/tests/div_test.cc
1.	<eof> parser at end of file
2.	Code generation
3.	Running pass 'Function Pass Manager' on module '/builddir/build/BUILD/highway-1.2.0/hwy/tests/div_test.cc'.
4.	Running pass 'Assignment Tracking Analysis' on function '@_ZN3hwy8N_EMU12814TestIntegerMod16DoTestIntegerModINS0_4SimdIsLm4ELi0EEEEEvT_DTcl4ZerocvS5__EEES6_'
Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it):
0  libLLVM.so.18.1      0x0000003f8920ba38 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 72
1  libLLVM.so.18.1      0x0000003f8920a104 llvm::sys::RunSignalHandlers() + 86
2  libLLVM.so.18.1      0x0000003f8917eb72
3  linux-vdso.so.1      0x0000003f91d9b800 __vdso_rt_sigreturn + 0
4  libLLVM.so.18.1      0x0000003f893b859a std::_Hashtable<llvm::PointerUnion<llvm::Instruction const*, llvm::DPValue const*>, std::pair<llvm::PointerUnion<llvm::Instruction const*, llvm::DPValue const*> const, llvm::SmallVector<llvm::VarLocInfo, 1u>>, std::allocator<std::pair<llvm::PointerUnion<llvm::Instruction const*, llvm::DPValue const*> const, llvm::SmallVector<llvm::VarLocInfo, 1u>>>, std::__detail::_Select1st, std::equal_to<llvm::PointerUnion<llvm::Instruction const*, llvm::DPValue const*>>, std::hash<llvm::PointerUnion<llvm::Instruction const*, llvm::DPValue const*>>, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<true, false, true>>::_M_rehash(unsigned long, std::integral_constant<bool, true>) + 98
5  libLLVM.so.18.1      0x0000003f893b84d0 std::__detail::_Map_base<llvm::PointerUnion<llvm::Instruction const*, llvm::DPValue const*>, std::pair<llvm::PointerUnion<llvm::Instruction const*, llvm::DPValue const*> const, llvm::SmallVector<llvm::VarLocInfo, 1u>>, std::allocator<std::pair<llvm::PointerUnion<llvm::Instruction const*, llvm::DPValue const*> const, llvm::SmallVector<llvm::VarLocInfo, 1u>>>, std::__detail::_Select1st, std::equal_to<llvm::PointerUnion<llvm::Instruction const*, llvm::DPValue const*>>, std::hash<llvm::PointerUnion<llvm::Instruction const*, llvm::DPValue const*>>, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<true, false, true>, true>::operator[](llvm::PointerUnion<llvm::Instruction const*, llvm::DPValue const*> const&) + 128
6  libLLVM.so.18.1      0x0000003f893b8678
7  libLLVM.so.18.1      0x0000003f893b143e
8  libLLVM.so.18.1      0x0000003f893ab46a
9  libLLVM.so.18.1      0x0000003f893ae322 llvm::AssignmentTrackingAnalysis::runOnFunction(llvm::Function&) + 266
10 libLLVM.so.18.1      0x0000003f89309d9c llvm::FPPassManager::runOnFunction(llvm::Function&) + 402
11 libLLVM.so.18.1      0x0000003f8930e41e llvm::FPPassManager::runOnModule(llvm::Module&) + 44
12 libLLVM.so.18.1      0x0000003f8930a1aa llvm::legacy::PassManagerImpl::run(llvm::Module&) + 660
13 libclang-cpp.so.18.1 0x0000003f90029956 clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::HeaderSearchOptions const&, clang::CodeGenOptions const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::StringRef, llvm::Module*, clang::BackendAction, llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem>, std::unique_ptr<llvm::raw_pwrite_stream, std::default_delete<llvm::raw_pwrite_stream>>, clang::BackendConsumer*) + 2192
14 libclang-cpp.so.18.1 0x0000003f902c29f4 clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) + 940
15 libclang-cpp.so.18.1 0x0000003f8f32b072 clang::ParseAST(clang::Sema&, bool, bool) + 524
16 libclang-cpp.so.18.1 0x0000003f90b00f96 clang::FrontendAction::Execute() + 82
17 libclang-cpp.so.18.1 0x0000003f90a99090 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 658
18 libclang-cpp.so.18.1 0x0000003f90b64b14 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 498
19 clang++              0x000000000002251a cc1_main(llvm::ArrayRef<char const*>, char const*, void*) + 2666
20 clang++              0x0000000000020462
21 libclang-cpp.so.18.1 0x0000003f907ace38
22 libLLVM.so.18.1      0x0000003f8917e96c llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>) + 110
23 libclang-cpp.so.18.1 0x0000003f907ac74e clang::driver::CC1Command::Execute(llvm::ArrayRef<std::optional<llvm::StringRef>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*, bool*) const + 322
24 libclang-cpp.so.18.1 0x0000003f90783d8a clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&, clang::driver::Command const*&, bool) const + 642
25 libclang-cpp.so.18.1 0x0000003f90783f36 clang::driver::Compilation::ExecuteJobs(clang::driver::JobList const&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*>>&, bool) const + 102
26 libclang-cpp.so.18.1 0x0000003f90798988 clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*>>&) + 262
27 clang++              0x000000000001fff4 clang_main(int, char**, llvm::ToolContext const&) + 8302
28 clang++              0x00000000000298f4 main + 56
29 libc.so.6            0x0000003f91c3b756
30 libc.so.6            0x0000003f91c3b802 __libc_start_main + 120
31 clang++              0x000000000001dd60 _start + 32
clang++: �[0;1;31merror: clang frontend command failed with exit code 139 (use -v to see invocation)
clang version 18.1.6 (Fedora 18.1.6-3.0.riscv64.fc41)
Target: riscv64-redhat-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
Configuration file: /etc/clang/riscv64-redhat-linux-gnu-clang++.cfg
Configuration file: /usr/lib/rpm/redhat/redhat-hardened-clang.cfg
clang++: �[0;1;36mnote: diagnostic msg: 
********************
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang++: �[0;1;36mnote: diagnostic msg: /tmp/div_test-137529.cpp
clang++: �[0;1;36mnote: diagnostic msg: /tmp/div_test-137529.sh
clang++: �[0;1;36mnote: diagnostic msg: 
********************
gmake[2]: *** [CMakeFiles/div_test.dir/build.make:79: CMakeFiles/div_test.dir/hwy/tests/div_test.cc.o] Error 1
gmake[2]: Leaving directory '/builddir/build/BUILD/highway-1.2.0/redhat-linux-build'
gmake[1]: *** [CMakeFiles/Makefile2:1790: CMakeFiles/div_test.dir/all] Error 2
gmake[1]: *** Waiting for unfinished jobs....
[ 58%] Linking CXX executable tests/in_range_float_to_int_conv_test
/usr/bin/cmake -E cmake_link_script CMakeFiles/in_range_float_to_int_conv_test.dir/link.txt --verbose=1
/usr/bin/clang++ -O2  -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong   -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -O2 -g -DNDEBUG -Wl,-z,relro -Wl,--as-needed   -Wl,-z,now     -Wl,--build-id=sha1 -fPIE -pie CMakeFiles/in_range_float_to_int_conv_test.dir/hwy/tests/in_range_float_to_int_conv_test.cc.o -o tests/in_range_float_to_int_conv_test  -Wl,-rpath,/builddir/build/BUILD/highway-1.2.0/redhat-linux-build libhwy_test.so.1.2.0 libhwy_contrib.so.1.2.0 /usr/lib64/libgtest_main.so.1.14.0 libhwy.so.1.2.0 /usr/lib64/libgtest.so.1.14.0 
/usr/bin/cmake -D TEST_TARGET=in_range_float_to_int_conv_test -D TEST_EXECUTABLE=/builddir/build/BUILD/highway-1.2.0/redhat-linux-build/tests/in_range_float_to_int_conv_test -D TEST_EXECUTOR= -D TEST_WORKING_DIR=/builddir/build/BUILD/highway-1.2.0/redhat-linux-build -D TEST_EXTRA_ARGS= -D TEST_PROPERTIES= -D TEST_PREFIX= -D TEST_SUFFIX= -D TEST_FILTER= -D NO_PRETTY_TYPES=FALSE -D NO_PRETTY_VALUES=FALSE -D TEST_LIST=in_range_float_to_int_conv_test_TESTS -D CTEST_FILE=/builddir/build/BUILD/highway-1.2.0/redhat-linux-build/in_range_float_to_int_conv_test[1]_tests.cmake -D TEST_DISCOVERY_TIMEOUT=60 -D TEST_XML_OUTPUT_DIR= -P /usr/share/cmake/Modules/GoogleTestAddTests.cmake
gmake[2]: Leaving directory '/builddir/build/BUILD/highway-1.2.0/redhat-linux-build'
[ 58%] Built target in_range_float_to_int_conv_test
[ 58%] Linking CXX executable tests/interleaved_test
/usr/bin/cmake -E cmake_link_script CMakeFiles/interleaved_test.dir/link.txt --verbose=1
/usr/bin/clang++ -O2  -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong   -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -O2 -g -DNDEBUG -Wl,-z,relro -Wl,--as-needed   -Wl,-z,now     -Wl,--build-id=sha1 -fPIE -pie CMakeFiles/interleaved_test.dir/hwy/tests/interleaved_test.cc.o -o tests/interleaved_test  -Wl,-rpath,/builddir/build/BUILD/highway-1.2.0/redhat-linux-build libhwy_test.so.1.2.0 libhwy_contrib.so.1.2.0 /usr/lib64/libgtest_main.so.1.14.0 libhwy.so.1.2.0 /usr/lib64/libgtest.so.1.14.0 
/usr/bin/cmake -D TEST_TARGET=interleaved_test -D TEST_EXECUTABLE=/builddir/build/BUILD/highway-1.2.0/redhat-linux-build/tests/interleaved_test -D TEST_EXECUTOR= -D TEST_WORKING_DIR=/builddir/build/BUILD/highway-1.2.0/redhat-linux-build -D TEST_EXTRA_ARGS= -D TEST_PROPERTIES= -D TEST_PREFIX= -D TEST_SUFFIX= -D TEST_FILTER= -D NO_PRETTY_TYPES=FALSE -D NO_PRETTY_VALUES=FALSE -D TEST_LIST=interleaved_test_TESTS -D CTEST_FILE=/builddir/build/BUILD/highway-1.2.0/redhat-linux-build/interleaved_test[1]_tests.cmake -D TEST_DISCOVERY_TIMEOUT=60 -D TEST_XML_OUTPUT_DIR= -P /usr/share/cmake/Modules/GoogleTestAddTests.cmake
gmake[2]: Leaving directory '/builddir/build/BUILD/highway-1.2.0/redhat-linux-build'
[ 58%] Built target interleaved_test
[ 59%] Linking CXX executable tests/if_test
/usr/bin/cmake -E cmake_link_script CMakeFiles/if_test.dir/link.txt --verbose=1
/usr/bin/clang++ -O2  -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong   -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -O2 -g -DNDEBUG -Wl,-z,relro -Wl,--as-needed   -Wl,-z,now     -Wl,--build-id=sha1 -fPIE -pie CMakeFiles/if_test.dir/hwy/tests/if_test.cc.o -o tests/if_test  -Wl,-rpath,/builddir/build/BUILD/highway-1.2.0/redhat-linux-build libhwy_test.so.1.2.0 libhwy_contrib.so.1.2.0 /usr/lib64/libgtest_main.so.1.14.0 libhwy.so.1.2.0 /usr/lib64/libgtest.so.1.14.0 
/usr/bin/cmake -D TEST_TARGET=if_test -D TEST_EXECUTABLE=/builddir/build/BUILD/highway-1.2.0/redhat-linux-build/tests/if_test -D TEST_EXECUTOR= -D TEST_WORKING_DIR=/builddir/build/BUILD/highway-1.2.0/redhat-linux-build -D TEST_EXTRA_ARGS= -D TEST_PROPERTIES= -D TEST_PREFIX= -D TEST_SUFFIX= -D TEST_FILTER= -D NO_PRETTY_TYPES=FALSE -D NO_PRETTY_VALUES=FALSE -D TEST_LIST=if_test_TESTS -D CTEST_FILE=/builddir/build/BUILD/highway-1.2.0/redhat-linux-build/if_test[1]_tests.cmake -D TEST_DISCOVERY_TIMEOUT=60 -D TEST_XML_OUTPUT_DIR= -P /usr/share/cmake/Modules/GoogleTestAddTests.cmake
gmake[2]: Leaving directory '/builddir/build/BUILD/highway-1.2.0/redhat-linux-build'

https://fedora.riscv.rocks/kojifiles/work/tasks/3838/1703838/build.log

@eclipseo
Copy link
Contributor Author

eclipseo commented Jun 7, 2024

Apparently, according to the person who handles my builds, such error can happen. Restarting it made it works.

https://fedora.riscv.rocks/kojifiles/work/tasks/3841/1703841/build.log
https://fedora.riscv.rocks/koji/taskinfo?taskID=1703841

@eclipseo eclipseo closed this as completed Jun 7, 2024
@jan-wassenberg
Copy link
Member

Interesting that restarting helps. I've also found the RVV toolchains rather unreliable, but this one is new.

Thanks for following up and helping us understand that the open source runtime dispatch is still broken. We issues open with LLVM and GCC; hopefully they will support the pragma target approach soon, as on other platforms.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants