Error making sage 9.0

54 views
Skip to first unread message

Paulo Manuel de Barros Correia

unread,
Jan 23, 2020, 6:43:40 AM1/23/20
to sage-devel
Hello,

When making sage 9.0 I receive the following error message:

(...)
get_d.c: In function '__gmpn_get_d':
get_d.c:125:34: error: storage size of 'u' isn't known
       union ieee_double_extract  u;
                                  ^
Makefile:462: recipe for target 'get_d.lo' failed
make[6]: *** [get_d.lo] Error 1
make[6]: Leaving directory '/home/paulo/sage-9.0/local/var/tmp/sage/build/mpir-3.0.0-644faf502c56f97d9accd301965fc57d6ec70868.p0/src/mpn'
Makefile:952: recipe for target 'all-recursive' failed
make[5]: *** [all-recursive] Error 1
make[5]: Leaving directory '/home/paulo/sage-9.0/local/var/tmp/sage/build/mpir-3.0.0-644faf502c56f97d9accd301965fc57d6ec70868.p0/src'
Makefile:755: recipe for target 'all' failed
make[4]: *** [all] Error 2
make[4]: Leaving directory '/home/paulo/sage-9.0/local/var/tmp/sage/build/mpir-3.0.0-644faf502c56f97d9accd301965fc57d6ec70868.p0/src'
**********************************************************************************************************************************
Error building mpir-3.0.0-644faf502c56f97d9accd301965fc57d6ec70868.p0
**********************************************************************************************************************************

real    0m34.606s
user    0m28.484s
sys    0m7.376s
************************************************************************
Error installing package mpir-3.0.0-644faf502c56f97d9accd301965fc57d6ec70868.p0
************************************************************************
Please email sage-devel (http://groups.google.com/group/sage-devel)
explaining the problem and including the log file
  /home/paulo/sage-9.0/logs/pkgs/mpir-3.0.0-644faf502c56f97d9accd301965fc57d6ec70868.p0.log
Describe your computer, operating system, etc.
If you want to try to fix the problem yourself, *don't* just cd to
/home/paulo/sage-9.0/local/var/tmp/sage/build/mpir-3.0.0-644faf502c56f97d9accd301965fc57d6ec70868.p0 and type 'make' or whatever is appropriate.
Instead, the following commands setup all environment variables
correctly and load a subshell for you to debug the error:
  (cd '/home/paulo/sage-9.0/local/var/tmp/sage/build/mpir-3.0.0-644faf502c56f97d9accd301965fc57d6ec70868.p0' && '/home/paulo/sage-9.0/sage' --sh)
When you are done debugging, you can type "exit" to leave the subshell.
************************************************************************


Can you please help me with this issue
Thanks,
Paulo

Dima Pasechnik

unread,
Jan 23, 2020, 11:36:39 AM1/23/20
to sage-devel
Is there a reason for you to build MPIR/GMP rather than use one a from
(apparently) a Linux system?

It might be much easier to install a system GMP package and use it
rather than trying to dig up the issue at hand.
Please see https://doc.sagemath.org/html/en/installation/source.html#linux-recommended-installation
for what can/should be installed.
> --
> You received this message because you are subscribed to the Google Groups "sage-devel" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/12809c42-b0d9-4442-ae2a-99e0c8d87e90%40googlegroups.com.

Paulo Manuel de Barros Correia

unread,
Jan 23, 2020, 12:47:29 PM1/23/20
to sage-devel
I was just trying to install version 9.0 from source and then with make I got the error about mpir.
I followed your suggestion and installed all the packages there indicated.
But the result is the same...
> To unsubscribe from this group and stop receiving emails from it, send an email to sage-...@googlegroups.com.

Dima Pasechnik

unread,
Jan 23, 2020, 12:52:07 PM1/23/20
to sage-devel
On Thu, Jan 23, 2020 at 5:47 PM Paulo Manuel de Barros Correia
<pcor...@uevora.pt> wrote:
>
> I was just trying to install version 9.0 from source and then with make I got the error about mpir.
> I followed your suggestion and installed all the packages there indicated.
> But the result is the same...
after all these packages installed, do

make distclean
./configure
make
> To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/e27eb8cd-a694-484d-accf-24da33e5cc30%40googlegroups.com.

Paulo Manuel de Barros Correia

unread,
Jan 23, 2020, 5:00:40 PM1/23/20
to sage-devel

Thank you very much Dima!

Now it works, though it has taken a little bit...

(...)

Testing that Sage starts...
[2020-01-23 21:50:42] SageMath version 9.0, Release Date: 2020-01-01
Yes, Sage starts.
make[3]: Leaving directory '/home/paulo/sage-9.0/build/make'
make[2]: Leaving directory '/home/paulo/sage-9.0/build/make'

real    149m32,963s
user    163m40,961s
sys    9m58,079s
Sage build/upgrade complete!
make[1]: Leaving directory '/home/paulo/sage-9.0'


Thanks,

Paulo

Reply all
Reply to author
Forward
0 new messages