From fa7be0c92684401ea143457e96a6c9b520838fcb Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Wed, 12 Mar 2025 21:06:09 -0700 Subject: 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 --- conf/nonclangable.conf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/conf/nonclangable.conf b/conf/nonclangable.conf index f88e633..7f3bea0 100644 --- a/conf/nonclangable.conf +++ b/conf/nonclangable.conf @@ -545,6 +545,11 @@ CFLAGS:append:pn-pixman:arm:toolchain-clang = " -no-integrated-as" # vsetvli zero, zero, e16, m1 CFLAGS:append:pn-dav1d:riscv64:toolchain-clang = " -no-integrated-as" +# ../numpy-2.2.3/numpy/_core/src/highway/hwy/ops/rvv-inl.h:644:17: error: use of undeclared identifier '__riscv_vsetvl_e8mf8' +# This only happens with clang with rv64gc +TOOLCHAIN_OPTIONS:append:pn-python3-numpy:riscv64:toolchain-clang = " -march=rv64gcv" +TOOLCHAIN_OPTIONS:append:pn-python3-numpy:riscv32:toolchain-clang = " -march=rv32gcv" + # test_connectx segfaults with this option set to -fstack-protector-strong SECURITY_STACK_PROTECTOR:pn-lksctp-tools:toolchain-clang = "" -- cgit v1.2.3-54-g00ecf