GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||
GeezerVison is showing github.com — BLD: Add clang `-ftrapping-math` also for `compiler_so` by seberg · Pull Request #19479 · numpy/numpy Conversation
Member
Apparently, there is a second Closes gh-19427 in theory. In practice, I somewhat expect that clang only decided that warning flags are worth any consideration so recently, that this will just break old clang versions I have tested that this works: gh-19476 passes with this. What is the minimum clang version we actually support? I expect this needs at least version 10 (which is fairly new), but I can't compile locally on version 9. (I guess the CI run will tell me that this won't actually work :/)
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Member
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. -ffp-exception-behavior=strict also for _so-ftrapping-math also for _so
Apparently, there is a second `compiler_so` that is actually the main compiler being used, and modifying only the first one is just futile. The old try was `-ffp-exception-behavior=strict`, but that seems to be a fairly new addition (and doesn't even work on MacOS with 10.0) `-ftrapping-math` seems to be the older, equivalent option.
seberg
force-pushed
the
fixup-clang-flag-try
branch
from
7eae81e to
e7d1841
Compare
|
There was an error while loading. Please reload this page.
|
I also confirmed that it does indeed fix gh-18005 for my clang version, so changing that comment. I expect the EDIT: But, this probably needs a release note. And I am not sure what to do about the 1.21 release notes being incorrect... |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
So for those checking this: https://clang.llvm.org/docs/UsersManual.html#cmdoption-ffp-exception-behavior explains that
and
I think the main question is basically the old question: Is modifying |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
-ftrapping-math also for _so-ftrapping-math also for compiler_so
|
I think we should put this PR in. @charris, thoughts?
Well, this PR does not add a new modification, it fixes the current one. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I don't have a problem putting this in. What is the question about 1.21.x release notes? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@charris my question was whether we should do something about them being incorrect? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
I tend to regard release notes as history, flaws and all, after the release. We could backport this change if you wish and mention that in a later release note. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
OK, sounds good. I am hesitant about backporting, since I have no idea if this may have side-effects for some. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thanks @seberg |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
The distutils build also uses this flag, and it avoids some problems with `floor_divide` and similar functions (xref numpygh-19479).
The distutils build also uses this flag, and it avoids some problems with `floor_divide` and similar functions (xref numpygh-19479). For older macOS arm64 Clang versions, the flag does get accepted, but then gets overridden because it's not actually supported - which yields these warnings: ``` warning: overriding currently unsupported use of floating point exceptions on this target [-Wunsupported-floating-point-opt] ``` Since they're a little annoying to suppress and will go away when updating to the latest XCode version, we'll ignore these warnings.
The distutils build also uses this flag, and it avoids some problems with `floor_divide` and similar functions (xref numpygh-19479). For older macOS arm64 Clang versions, the flag does get accepted, but then gets overridden because it's not actually supported - which yields these warnings: ``` warning: overriding currently unsupported use of floating point exceptions on this target [-Wunsupported-floating-point-opt] ``` Since they're a little annoying to suppress and will go away when updating to the latest XCode version, we'll ignore these warnings.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
(distutils) The-ffp-exception-behavior=strict setting does not actually work (reliably)
There was an error while loading. Please reload this page.