Skip to content

Commit fa7be0c

Browse files
committed
python3-numpy: Enable vector extentions since highway pkg needs it
Fixes | ../numpy-2.2.3/numpy/_core/src/highway/hwy/ops/rvv-inl.h:644:17: error: use of undeclared identifier '__riscv_vsetvl_e32mf2' | ../numpy-2.2.3/numpy/_core/src/highway/hwy/ops/rvv-inl.h:644:17: error: use of undeclared identifier '__riscv_vsetvl_e32mf2' | ../numpy-2.2.3/numpy/_core/src/highway/hwy/ops/rvv-inl.h:644:17: error: use of undeclared identifier '__riscv_vsetvlmax_e64m1' | ../numpy-2.2.3/numpy/_core/src/highway/hwy/ops/rvv-inl.h:644:17: error: use of undeclared identifier '__riscv_vsetvl_e64m1' | ../numpy-2.2.3/numpy/_core/src/highway/hwy/ops/rvv-inl.h:644:17: error: use of undeclared identifier '__riscv_vsetvl_e64m1' | ../numpy-2.2.3/numpy/_core/src/highway/hwy/ops/rvv-inl.h:644:17: error: use of undeclared identifier '__riscv_vsetvl_e64m1' | fatal error: too many errors emitted, stopping now [-ferror-limit=] Signed-off-by: Khem Raj <[email protected]>
1 parent fc8703b commit fa7be0c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

conf/nonclangable.conf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -545,6 +545,11 @@ CFLAGS:append:pn-pixman:arm:toolchain-clang = " -no-integrated-as"
545545
# vsetvli zero, zero, e16, m1
546546
CFLAGS:append:pn-dav1d:riscv64:toolchain-clang = " -no-integrated-as"
547547

548+
# ../numpy-2.2.3/numpy/_core/src/highway/hwy/ops/rvv-inl.h:644:17: error: use of undeclared identifier '__riscv_vsetvl_e8mf8'
549+
# This only happens with clang with rv64gc
550+
TOOLCHAIN_OPTIONS:append:pn-python3-numpy:riscv64:toolchain-clang = " -march=rv64gcv"
551+
TOOLCHAIN_OPTIONS:append:pn-python3-numpy:riscv32:toolchain-clang = " -march=rv32gcv"
552+
548553
# test_connectx segfaults with this option set to -fstack-protector-strong
549554
SECURITY_STACK_PROTECTOR:pn-lksctp-tools:toolchain-clang = ""
550555

0 commit comments

Comments
 (0)