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
Strange warnings from numpy/matplotlib when sage is built with clang #22799
Comments
comment:2
As I suspected, both warning ultimately originate from inside |
comment:4
I tried to compare the build logs for numpy (on OS X) using
There are quite a few warnings in the clang build related to comparisons. |
comment:5
By the way, the page https://www.scipy.org/scipylib/building/macosx.html says that we should use
along with the remark 'The Fortran flag “-ff2c” has been reported to be necessary.' We do not do this. Is there any reason to believe that this would help? |
comment:6
Replying to @jhpalmieri:
If we were using g77 for sure it would be necessary. The page itself is dated in my opinion. I'll dig a bit around the compilation warnings, there may be over-optimisation somewhere. |
comment:7
It is at least interesting that we are getting compiler warnings on some of the files related to doctest failures, and furthermore on comparisons. |
comment:8
Replying to @jhpalmieri:
It is indeed. |
comment:9
Just for those wondering: upgrading to numpy 1.12.1 doesn't change a thing. |
comment:10
I am not sure However, I am wondering if something funny happens in the coercion framework. |
comment:11
I suspect that the bug is not (only) in coersion, but in numpy's float conversion/truncation module; on FreeBSD/clang I get no warning with
That's of course still a mystery, and a combination of the fact that it only happens with |
comment:12
Good observation, I had only tried 64. |
Replying to @kiwifb:
Traceback please (general rule: when posting bug report, never truncate a traceback). |
comment:14
Replying to @jdemeyer:
these are very uninformative (it's just a message that comes from the depths of a compiled part of numpy, not causing any interrupts). For instance:
It's also pretty hard to extract anything useful at the Sage prompt, I tried to set up a numpy interrupt following numpy docs, but it ends up telling me that the interrupt happends at the top level of ipython. |
This comment has been minimized.
This comment has been minimized.
comment:16
Could you run numpy tests on clang/OSX? I did so on clang/FreeBSD, with some failures in complex arithmetic/functions (mostly numerical noise, but not only)
On FreeBSD I get
Perhaps we should upgrade to 1.12.1 and see if this helps. |
comment:17
I did
I also got this warning many times:
|
comment:18
Replying to @dimpase:
First thing I tried. No changes. But I will try the tests ASAP. |
comment:19
So
No warnings. |
comment:20
We're discussing this problem on sage-devel and it appears that Sage does not follow the coercion |
comment:21
Replying to @dimpase:
This has nothing to do with the coercion framework. When doing |
comment:22
Replying to @jdemeyer:
Are you saying that the warning comes from Still, this does not explain why |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
comment:25
Replying to @kiwifb:
by the way,
while on 1.12
|
comment:26
Replying to @dimpase:
|
comment:27
Replying to @jdemeyer:
|
Changed branch from u/dimpase/clangtrouble to u/fbissey/clangtrouble |
Author: Dima Pasechnik, François Bissey |
comment:127
With this plus #12426, all tests pass for me on OS X! |
comment:128
we applied the following patch in the development version of MPFR:
|
comment:129
OK, I'll update the branch with this precise patch shortly. I have to think of using |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:131
I followed your commit as closely as possible, but 3.1.5 doesn't seem to have |
comment:132
Replying to @kiwifb:
ok, sorry for that. I also realized that 3.1.5 uses the generic case (_GMP_IEEE_FLOATS not defined) |
comment:133
Someone to review? John? |
comment:134
Yes, positive review. |
Reviewer: John Palmieri |
Changed reviewer from John Palmieri to none |
comment:135
I'm running tests on FreeBSD now, but I expect it will all be good with the patch. |
Reviewer: Dima Pasechnik, John Palmieri |
Changed author from Dima Pasechnik, François Bissey to Dima Pasechnik, François Bissey, Paul Zimmermann |
Changed reviewer from Dima Pasechnik, John Palmieri to John Palmieri, Dima Pasechnik |
Changed author from Dima Pasechnik, François Bissey, Paul Zimmermann to François Bissey, Dima Pasechnik, Paul Zimmermann |
comment:137
yes, this also is good on FreeBSD |
Changed upstream from Reported upstream. Developers acknowledge bug. to Fixed upstream, but not in a stable release. |
Changed branch from u/fbissey/clangtrouble to |
Seen with clang+OS X and freeBSD+clang
All these doctest fail because an unexpected warning is emitted:
More specifically, the warning is emitted by the call
seen on freeBSD+clang, OS X+clang and linux+clang.
Similarly, the warning is emitted in
or
>=
instead of>
, orpi
instead ofe
. Note thatpi.n()
ande.n()
are of typeRR
, so again it points at the direction onmpfr
.Depends on #22582
Upstream: Fixed upstream, but not in a stable release.
CC: @dimpase @jhpalmieri
Component: porting
Author: François Bissey, Dima Pasechnik, Paul Zimmermann
Branch/Commit:
fd29778
Reviewer: John Palmieri, Dima Pasechnik
Issue created by migration from https://trac.sagemath.org/ticket/22799
The text was updated successfully, but these errors were encountered: