Ask Your Question
0

Error while compiling sage 8.3 on Ubuntu 16.04

asked 2018-10-21 14:29:28 +0200

Romuald_314 gravatar image

updated 2018-10-22 16:46:58 +0200

Hello,

So, I wanted to compile sage 8.3 on Xubuntu 16.04: I get this error: https://paste2.org/XYaDeFAL

I ran the command './congifure' beforehand, without any error. I also have every prerequisite up to date according to my Ubuntu.

Any ideas? I'm not an expert at all on compilation, Linux and stuff, but I've read in the sage documentation that all is automated and should work fine by itself so I'm quite surprised.

Thanks.

edit retag flag offensive close merge delete

2 Answers

Sort by » oldest newest most voted
1

answered 2018-10-22 18:44:54 +0200

eric_g gravatar image

From your logs, it seems that you are trying to compile Sage on an external media, with some permissions which are not suitable, like spkg-install should not be marked executable in the build/pkgs directory Can you try again on your internal hard disk?

Basically, after having checked that you have all these Ubuntu prerequisites, you should type, from e.g. your home directory

git clone https://github.com/sagemath/sage.git 
cd sage
MAKE="make -j8" make

possibly adapting the 8 in -j8 to the number of cores in your CPU, for an efficient parallel build. NB: from the above procedure, you will get Sage 8.4, which is the latest stable version of Sage.

edit flag offensive delete link more

Comments

Thanks for your answer, it is correct, I tried to do it on my data disk (still internal though). I'll try again checking these requirements with the newest sage in my /home as you said and tell you.

Romuald_314 gravatar imageRomuald_314 ( 2018-10-22 19:09:28 +0200 )edit
-1

answered 2018-10-22 21:13:53 +0200

Romuald_314 gravatar image

updated 2018-10-22 22:00:00 +0200

(this was meant to be a comment but it's too long)

So, the compilation process worked within my /home directory. However, after about an hour I got a real error this time:

***************************************************************
Error building Sage.

The following package(s) may have failed to build (not necessarily
during this run of 'make all-start'):

* package: openblas-0.2.20.p2
  log file: /home/matthias/sage-8.4/logs/pkgs/openblas-0.2.20.p2.log
  build directory: /home/matthias/sage-8.4/local/var/tmp/sage/build/openblas-0.2.20.p2

The build directory may contain configuration files and other potentially
helpful information. WARNING: if you now run 'make' again, the build
directory will, by default, be deleted. Set the environment variable
SAGE_KEEP_BUILT_SPKGS to 'yes' to prevent this.

Makefile:31 : la recette pour la cible « all-start » a échouée
make[1]: *** [all-start] Erreur 1
make[1] : on quitte le répertoire « /home/matthias/sage-8.4 »
Makefile:13 : la recette pour la cible « all » a échouée
make: *** [all] Erreur 2

Here is the mentioned log.

So, at this point, I don't mind starting a new compilation from scratch, nevertheless, 1) Can I resume a failed compilation after a possible fix of what's amiss? 2) Why is that happening? Is there any risk some other package might do the same?

Thank you

edit flag offensive delete link more

Comments

In the log, /usr/bin/ld: cannot find -lgfortran seems to indicate that gfortran is not installed in your system. So install the Ubuntu package gfortran (see the list of all required packages here) and run make again (no need to restart from scratch).

eric_g gravatar imageeric_g ( 2018-10-23 00:55:06 +0200 )edit

Ok, so like I said all dependencies were satisfied (including gfortran) but it seems like I have a few problems in particular with the gfortran packages (broken ones...). I will try to solve them and keep you aware. I'll consider marking your answer as correct since my original problem is solved.

Romuald_314 gravatar imageRomuald_314 ( 2018-10-23 11:52:41 +0200 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2018-10-21 14:29:28 +0200

Seen: 566 times

Last updated: Oct 22 '18