ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Tue, 23 Oct 2018 11:52:41 +0200Error while compiling sage 8.3 on Ubuntu 16.04https://ask.sagemath.org/question/44012/error-while-compiling-sage-83-on-ubuntu-1604/ 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.Sun, 21 Oct 2018 14:29:28 +0200https://ask.sagemath.org/question/44012/error-while-compiling-sage-83-on-ubuntu-1604/Answer by eric_g for <p>Hello,</p>
<p>So, I wanted to compile sage 8.3 on Xubuntu 16.04:
I get this error:
<a href="https://paste2.org/XYaDeFAL">https://paste2.org/XYaDeFAL</a></p>
<p>I ran the command './congifure' beforehand, without any error.
I also have every prerequisite up to date according to my Ubuntu.</p>
<p>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.</p>
<p>Thanks.</p>
https://ask.sagemath.org/question/44012/error-while-compiling-sage-83-on-ubuntu-1604/?answer=44027#post-id-44027From 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](https://wiki.sagemath.org/prerequisitesUbuntu), 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.
Mon, 22 Oct 2018 18:44:54 +0200https://ask.sagemath.org/question/44012/error-while-compiling-sage-83-on-ubuntu-1604/?answer=44027#post-id-44027Comment by Romuald_314 for <p>From your logs, it seems that you are trying to compile Sage on an external media, with some permissions which are not suitable, like
<code>spkg-install should not be marked executable in the build/pkgs directory</code>
Can you try again on your internal hard disk?</p>
<p>Basically, after having checked that you have all <a href="https://wiki.sagemath.org/prerequisitesUbuntu">these Ubuntu prerequisites</a>, you should type, from e.g. your home directory</p>
<pre><code>git clone https://github.com/sagemath/sage.git
cd sage
MAKE="make -j8" make
</code></pre>
<p>possibly adapting the <code>8</code> in <code>-j8</code> 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.</p>
https://ask.sagemath.org/question/44012/error-while-compiling-sage-83-on-ubuntu-1604/?comment=44029#post-id-44029Thanks 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.Mon, 22 Oct 2018 19:09:28 +0200https://ask.sagemath.org/question/44012/error-while-compiling-sage-83-on-ubuntu-1604/?comment=44029#post-id-44029Answer by Romuald_314 for <p>Hello,</p>
<p>So, I wanted to compile sage 8.3 on Xubuntu 16.04:
I get this error:
<a href="https://paste2.org/XYaDeFAL">https://paste2.org/XYaDeFAL</a></p>
<p>I ran the command './congifure' beforehand, without any error.
I also have every prerequisite up to date according to my Ubuntu.</p>
<p>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.</p>
<p>Thanks.</p>
https://ask.sagemath.org/question/44012/error-while-compiling-sage-83-on-ubuntu-1604/?answer=44030#post-id-44030(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](https://paste2.org/9nxX0AJW).
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 youMon, 22 Oct 2018 21:13:53 +0200https://ask.sagemath.org/question/44012/error-while-compiling-sage-83-on-ubuntu-1604/?answer=44030#post-id-44030Comment by eric_g for <p>(this was meant to be a comment but it's too long)</p>
<p>So, the compilation process worked within my /home directory. However, after about an hour I got a real error this time:</p>
<pre><code>***************************************************************
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
</code></pre>
<p>Here is the <a href="https://paste2.org/9nxX0AJW">mentioned log</a>.</p>
<p>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?</p>
<p>Thank you</p>
https://ask.sagemath.org/question/44012/error-while-compiling-sage-83-on-ubuntu-1604/?comment=44035#post-id-44035In 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](https://wiki.sagemath.org/prerequisitesUbuntu)) and run make again (no need to restart from scratch).Tue, 23 Oct 2018 00:55:06 +0200https://ask.sagemath.org/question/44012/error-while-compiling-sage-83-on-ubuntu-1604/?comment=44035#post-id-44035Comment by Romuald_314 for <p>(this was meant to be a comment but it's too long)</p>
<p>So, the compilation process worked within my /home directory. However, after about an hour I got a real error this time:</p>
<pre><code>***************************************************************
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
</code></pre>
<p>Here is the <a href="https://paste2.org/9nxX0AJW">mentioned log</a>.</p>
<p>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?</p>
<p>Thank you</p>
https://ask.sagemath.org/question/44012/error-while-compiling-sage-83-on-ubuntu-1604/?comment=44037#post-id-44037Ok, 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.Tue, 23 Oct 2018 11:52:41 +0200https://ask.sagemath.org/question/44012/error-while-compiling-sage-83-on-ubuntu-1604/?comment=44037#post-id-44037