-
-
Notifications
You must be signed in to change notification settings - Fork 527
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
Flint fails to install with gmp from system #27708
Comments
comment:1
Is this specifically on NIX or something? I don't have this problem on Cygwin or Linux. |
comment:2
Possible of course, but this is in a bind mount specifically for building sage using its own build system. So I'd at least be a little surprised. Does gmp happen to be located in |
comment:3
I don't think that's quite accurate. Looking at the version of #27212 that was finally merged, flint is configured like:
where
That is, if In any case, I can confirm that as you say, flint's hand-written It's not normally a problem because the way it uses I would say this is a bug in flint, but one we can possibly work around if need be. In the meantime you can try to work around it by setting the environment variable |
comment:4
Thanks for investigating! Yes, |
comment:5
It does determine it "correctly" by not making any assumptions about it at all. All we know from autoconf is that a usable GMP is on the system. There's not necessarily any notion of a "GMP prefix" because for all we know the GMP headers could be In other words, we don't make any assumptions about the system's filesystem layout or how it relates to where headers and libraries are found. We can only do that in certain narrow cases such as when using Sage SPKGs, in which case we have control over exactly where and how they're installed. |
comment:6
Replying to @embray:
How does it determine that if it doesn't locate it?
What is the purpose of sages |
comment:7
Replying to @timokau:
The same way most autoconf scripts determine this: If it can compile with
They are used specifically when using the gmp or mpir SPKGs from Sage in which case these do have meaningful values that need to be passed to other packages' configure scripts. See again #27212. |
comment:8
As the Sage-8.8 release milestone is pending, we should delete the sage-8.8 milestone for tickets that are not actively being worked on or that still require significant work to move forward. If you feel that this ticket should be included in the next Sage release at the soonest please set its milestone to the next release milestone (sage-8.9). |
comment:9
Possible dup: #28409 |
comment:10
This issue also surfaced at #29104 for homebrew |
outdated |
Trying to build sage using its own build system with gmp present results in:
Flint fails to build. Looking into its configure script, it looks for GMP in
/usr/local
or whatever was passed as--with-gmp
at configure time. However gmp is located in/usr
, not/usr/local
. Sage passes the contents of theSAGE_GMP_PREFIX
variable to--with-gmp
, but according to the install logs that environment variable is empty (whileSAGE_GMP_INCLUDE
is set correctly):CC: @embray @dimpase @slel @wbhart @zerline
Component: build: configure
Issue created by migration from https://trac.sagemath.org/ticket/27708
The text was updated successfully, but these errors were encountered: