-
-
Notifications
You must be signed in to change notification settings - Fork 10.9k
Cannot compile numpy with GCC 16.0.0 (development version) #29130
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
Comments
You are using a development version of GCC 16, and that runs into a highway issue that has been addressed there. We should plan on back-porting a highway update to include google/highway#2563, though. It seems like a simple enough thing. |
FWIW, I've been using the following: 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 |
Yeah, not sure what's best. Just updating highway or applying the minimal patch. Also I doubt it is important to support 16.0 in the upcoming 2.3.0, but I guess we'll have to eventually within the 2.3.x time-span. @jan-wassenberg any opinion? |
hm. It's unclear when we will manage the next release. Seems like this minimal patch is a good way forward for now. |
Uh oh!
There was an error while loading. Please reload this page.
(EDIT: seberg, add summary and move everything else -- i.e. the build log -- into details.)
Runs into:
which comes from highway (at least most likely).
Build log
The text was updated successfully, but these errors were encountered: