mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-24 18:58:08 -07:00
dev-python/numpy: fix build w/ GCC 16
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
14
dev-python/numpy/files/numpy-2.2.6-gcc16.patch
Normal file
14
dev-python/numpy/files/numpy-2.2.6-gcc16.patch
Normal file
@@ -0,0 +1,14 @@
|
||||
https://github.com/google/highway/issues/2577
|
||||
https://github.com/google/highway/commit/7cde540171a1718a9bdfa8f896d70e47eb0785d5
|
||||
--- a/numpy/_core/src/highway/hwy/ops/set_macros-inl.h
|
||||
+++ b/numpy/_core/src/highway/hwy/ops/set_macros-inl.h
|
||||
@@ -141,7 +141,8 @@
|
||||
#define HWY_TARGET_STR_AVX2 \
|
||||
HWY_TARGET_STR_SSE4 ",avx,avx2" HWY_TARGET_STR_BMI2_FMA HWY_TARGET_STR_F16C
|
||||
|
||||
-#if HWY_COMPILER_GCC_ACTUAL >= 1400 || HWY_COMPILER_CLANG >= 1800
|
||||
+#if (HWY_COMPILER_GCC_ACTUAL >= 1400 && HWY_COMPILER_GCC_ACTUAL < 1600) || \
|
||||
+ HWY_COMPILER_CLANG >= 1800
|
||||
#define HWY_TARGET_STR_AVX3_VL512 ",evex512"
|
||||
#else
|
||||
#define HWY_TARGET_STR_AVX3_VL512
|
||||
@@ -63,6 +63,9 @@ python_prepare_all() {
|
||||
# https://github.com/numpy/numpy/pull/28748
|
||||
# https://github.com/numpy/numpy/pull/28928
|
||||
"${FILESDIR}/${PN}-2.2.5-py314.patch"
|
||||
# https://github.com/google/highway/issues/2577
|
||||
# github.com/google/highway/commit/7cde540171a1718a9bdfa8f896d70e47eb0785d5
|
||||
"${FILESDIR}/${PN}-2.2.6-gcc16.patch"
|
||||
)
|
||||
|
||||
# bug #922457
|
||||
|
||||
Reference in New Issue
Block a user