-
-
Notifications
You must be signed in to change notification settings - Fork 11k
Only set '-O2' as opt flags on is_not_win #6473
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
Conversation
Hmm, the implementation doesn't appeal to me, but there does look to be a problem that needs a solution. Could you be more specific as to the systems you are building on? @juliantaylor, @rgommers Suggestions? |
Yeah, it just serves at a initial implementation for discussions... I use the Fedora build system and the failing built is here. The full error on ARM is:
|
You are building on ARM, not cross compiling, is that correct? What does |
6b81de1
to
38b4604
Compare
The current flags include '-march=x86-64', which causes build failures if e.g. scipy is built on ARM. It would be better to rely on the default CFLAGS of the linux distributions instead of adding more flags other than '-O2'.
38b4604
to
329d9b2
Compare
Yes, the builds are running on ARM. |
What about
|
|
OK, the whole thing was a mess. Back in 1.9 it was
The changes that you are fixing seem due to the work @carlkl is doing for windows. See also #6495. I think this is also broken in 1.10.x. |
I've reverted the mingwpy changes in the 1.10.x branch. Can you give it a try? |
☔ The latest upstream changes (presumably #6534) made this pull request unmergeable. Please resolve the merge conflicts. |
I've reverted the mingwpy changes in master also. Can you say if there is still a problem? |
Closing this. Please reopen if the problem persists with the current numpy. |
The current flags include '-march=x86-64', which causes build failures if e.g.
scipy is built on ARM. It would be better to rely on the default CFLAGS of the
linux distributions instead of adding more flags other than '-O2'.
Would something like the attached patch possible to not set any flags other than '-O2' on linux?
Or should the else part be a
is_win64
instead?