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
4ti2 spkg fails to find gmp #18198
Comments
comment:1
This is most probably not a big issue, unless you must use GMP interface provided by GMP rather than GMP interface provided by MPIR. The latter is standard in Sage, and does not need to be installed (and cannot be removed). I will have a look. |
comment:2
here are more details; without optional GMP package installed, one still gets 4ti2gmp built by doing
it looks as it is linked against GMP, but this is just a differently named copy of MPIR. |
comment:3
and after
here we see that it picked up both GMP from GMP, i.e. libmp.so.10 and GMP from MPIR, i.e. libgmp.so.16. Is this what you are getting, as well? |
comment:4
I suggest we move over to using the just released Sage 6.6. (I also presume you talk about Sage compiled from source). |
comment:5
Replying to @dimpase:
Thanks for looking into this, Dima. I was using the Sage 6.5 binaries for Mac OS X (I should have said that). This is what I get if I do NOT install the gmp package first.
If I do install gmp first, it looks the same. Later I can try a Sage compiled from source; but in any case it seems there needs to be more testing in place to catch this build error on this platform. |
comment:6
Replying to @mkoeppe:
It perhaps should be said clearly in the docs that the binary distributions of Sage cannot do all the building right; it can deal with Python and Cython, but installing optional packages that build libraries might not work. Be warned that the latest XCode (6.3) for OSX 10.10 is quite broken and cannot build Sage at the moment, IIRC. One has to have 6.2 instead. |
comment:7
Replying to @dimpase:
I've just posted this: https://groups.google.com/d/msg/sage-devel/fEoDWZdkdUo/8kmpi5pkLW4J |
comment:8
Replying to @dimpase:
Thanks a lot. I managed to build from source from git off 6.7.beta0 after downgrading to XCode 6.2. |
comment:9
Replying to @mkoeppe:
please provide the full log of the 4ti2 build; it is in SAGEROOT/logs/pkgs/4ti2.log; (you can upload it as an attachment on this ticket). Usual causes for such a thing is that you have another installation of GMP that gets into the picture, the one that comes from macports/homebrew, or that you have something funny in your PATH. But perhaps it's something more profound, platform (OSX) specific. |
comment:10
Regarding 4ti2 spkg on OSX, last time I checked on OSX10.9.5 with Sage 6.6.beta1, and it worked just fine, making 4ti2gmp etc etc. I'll check the latest Sage beta later today. |
comment:11
Replying to @dimpase:
I can also confirm that things work with 6.7.beta1. I suppose I should upgrade OS. |
comment:12
I am able to reproduce this with a binary release of Sage 6.7.beta1 on Linux. Thus it is not OSX-specific. But the binary releases are definitely broken in this sense. |
comment:13
oops, this is a bug in MPIR; reported here, https://groups.google.com/d/msg/sage-devel/Tu-egDn-zLw/0S5ouau2J1AJ This happens after we went to gcc 4.9, where this shows up. Nothing to do with binary vs source distributions, either, mea culpa. |
comment:14
Please try the patch at #18240, and sorry for asking you to do unnecessary checks etc... |
Author: Matthias Koeppe |
Dependencies: 18240 |
Reviewer: Dima Pasechnik |
comment:17
it will be fixed by #18240, which needs review. |
Changed dependencies from 18240 to #18240 |
I installed the packages gmp and then 4ti2 in my copy of Sage 6.5.
When building 4ti2, it does not detect GMP and consequently only builds the fixed-precision version of the code, not the GMP version of the code.
However, the GMP version is unconditionally used by sage.interfaces.four_ti_2
Depends on #18240
CC: @dimpase
Component: packages: optional
Keywords: 4ti2
Author: Matthias Koeppe
Reviewer: Dima Pasechnik
Issue created by migration from https://trac.sagemath.org/ticket/18198
The text was updated successfully, but these errors were encountered: