-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
More robust fenv_constants #19384
More robust fenv_constants #19384
Conversation
(The |
Tentatively mark as backport |
With this PR and #19378, all tests (other than the skipped profile test) passed on the buildbot https://buildtest.e.ip.saba.us/#/builders/66/builds/10 🎉 |
Since these are hardware constants, would it be simpler to just enumerate them in Julia rather than doing this dance with the preprocessor? |
I'd still like to query it from the libc if available. I can move the fallback to julia though. |
8959b29
to
dfdc7a4
Compare
I decided to remove the fallback entirely. According to cppreference, all of these constants are required by c99 and c++11 which is the minimum requirement for this file. The perl fallback was added original in 773b60e with the comment
So I'm going to assume that the original issue is exactly the same as the issue we hit on master on arm buildbot (due to old glibc version that (legally) uses the |
AFAICT the osx failure was a network issue. Restarted. |
let me check whether this version works on msvc before merging |
strange, seems to |
I'll expect any possible platform dependent failure to be in C not julia though so that's indeed very strange. |
Or maybe the file after that, I'm not sure how file name printing during bootstrap is ordered w.r.t. errors, start of processing a file or end of it. I was comparing this commit backported to release-0.5, since master has some other MSVC issues that I'm looking into. Compare the above build 966 to https://ci.appveyor.com/project/tkelman/julia/build/1.0.965 which gets through bootstrap and stops at ccalltest, as expected. That was at the parent commit of tkelman@7356cc7, which is just the following commits on top of release-0.5 release-0.5...9c11546 (misc build hacks that shouldn't be upstreamed) |
dfdc7a4
to
a5844d8
Compare
I fixed a wrong include order ( It doesn't really make sense if this causes error in bootstrap before including
|
https://ci.appveyor.com/project/tkelman/julia/build/1.0.982 didn't get to the prints Any other ideas? |
a5844d8
to
14d2ac7
Compare
Should be fixed (worked around). The issue seems to be that the MSVC build is somehow now happy about the use of The error actually happen in |
AppVeyor failure was git network issue, restarted. I think the MSVC issue was actually due to the difference between master and 0.5 (edit: i.e. I can reproduce it locally on linux too.) (iirc |
The constant is platform dependent and the macro definition may not expand to the value itself.
14d2ac7
to
fa0ab21
Compare
I revert back to the |
The constant is platform dependent and the macro definition may not expand to the value itself.
By moving these from the
Makefile
/perl
script to C, it is much more robust to detect if these are defined and is also slightly easier to define the fallback values for each platforms.Fixes #10127