ASKSAGE: Sage Q&A Forum - Individual question feedhttp://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Fri, 06 Jan 2017 13:02:47 -0600SAGE fails to build because of gcc-4.9.3.p1http://ask.sagemath.org/question/36094/sage-fails-to-build-because-of-gcc-493p1/
Hello everyone!
I tried installing sage on ubuntu-16.10 sage-7.4 from the official mirrors. I extracted it, ran the ./configure(everything fine here) and ./make and this is what happens(output attached):
***************************************************************
Error building Sage.
The following package(s) may have failed to build (not necessarily
during this run of 'make all-toolchain'):
* package: gcc-4.9.3.p1
log file: /home/akhilesh/Downloads/SageMath/logs/pkgs/gcc-4.9.3.p1.log
build directory: /home/akhilesh/Downloads/SageMath/local/var/tmp/sage/build/gcc-4.9.3.p1
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:16: recipe for target 'all-toolchain' failed
make: *** [all-toolchain] Error 1
****************************************************************************************
I am currently working on a project, and although i can run sage by ./sage, i cannot install cryptominisat.
Any leads would be highly appreciated on this.
Thanks in advance.Mon, 26 Dec 2016 07:04:38 -0600http://ask.sagemath.org/question/36094/sage-fails-to-build-because-of-gcc-493p1/Answer by eric_g for <p>Hello everyone!</p>
<p>I tried installing sage on ubuntu-16.10 sage-7.4 from the official mirrors. I extracted it, ran the ./configure(everything fine here) and ./make and this is what happens(output attached):</p>
<hr>
<p>Error building Sage.</p>
<p>The following package(s) may have failed to build (not necessarily
during this run of 'make all-toolchain'):</p>
<ul>
<li>package: gcc-4.9.3.p1
log file: /home/akhilesh/Downloads/SageMath/logs/pkgs/gcc-4.9.3.p1.log
build directory: /home/akhilesh/Downloads/SageMath/local/var/tmp/sage/build/gcc-4.9.3.p1</li>
</ul>
<p>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.</p>
<p>Makefile:16: recipe for target 'all-toolchain' failed
make: <em>*</em> [all-toolchain] Error 1</p>
<hr>
<p>I am currently working on a project, and although i can run sage by ./sage, i cannot install cryptominisat.
Any leads would be highly appreciated on this.</p>
<p>Thanks in advance.</p>
http://ask.sagemath.org/question/36094/sage-fails-to-build-because-of-gcc-493p1/?answer=36104#post-id-36104There is indeed a known issue regarding Sage 7.4 build on Ubuntu 16.10; it is discussed in [this thread](https://groups.google.com/forum/#!msg/sage-devel/TduebNoZuBE/O22tqCh3BAAJ). This should be fixed in Sage 7.5 (thanks to [#21782](https://trac.sagemath.org/ticket/21782)). Meanwhile, here is a fix suggested in [this post](https://groups.google.com/d/msg/sage-devel/TduebNoZuBE/l-WUfELIBwAJ):
export SAGE_INSTALL_GCC=no
makeTue, 27 Dec 2016 12:03:29 -0600http://ask.sagemath.org/question/36094/sage-fails-to-build-because-of-gcc-493p1/?answer=36104#post-id-36104Comment by akhilesh for <p>There is indeed a known issue regarding Sage 7.4 build on Ubuntu 16.10; it is discussed in <a href="https://groups.google.com/forum/#!msg/sage-devel/TduebNoZuBE/O22tqCh3BAAJ">this thread</a>. This should be fixed in Sage 7.5 (thanks to <a href="https://trac.sagemath.org/ticket/21782">#21782</a>). Meanwhile, here is a fix suggested in <a href="https://groups.google.com/d/msg/sage-devel/TduebNoZuBE/l-WUfELIBwAJ">this post</a>:</p>
<pre><code>export SAGE_INSTALL_GCC=no
make
</code></pre>
http://ask.sagemath.org/question/36094/sage-fails-to-build-because-of-gcc-493p1/?comment=36202#post-id-36202Thanks! Used rc2, it's working now :)Fri, 06 Jan 2017 13:02:47 -0600http://ask.sagemath.org/question/36094/sage-fails-to-build-because-of-gcc-493p1/?comment=36202#post-id-36202Comment by eric_g for <p>There is indeed a known issue regarding Sage 7.4 build on Ubuntu 16.10; it is discussed in <a href="https://groups.google.com/forum/#!msg/sage-devel/TduebNoZuBE/O22tqCh3BAAJ">this thread</a>. This should be fixed in Sage 7.5 (thanks to <a href="https://trac.sagemath.org/ticket/21782">#21782</a>). Meanwhile, here is a fix suggested in <a href="https://groups.google.com/d/msg/sage-devel/TduebNoZuBE/l-WUfELIBwAJ">this post</a>:</p>
<pre><code>export SAGE_INSTALL_GCC=no
make
</code></pre>
http://ask.sagemath.org/question/36094/sage-fails-to-build-because-of-gcc-493p1/?comment=36200#post-id-36200This issue has been corrected in Sage 7.5.rc1. Can you try with this version?Fri, 06 Jan 2017 10:14:52 -0600http://ask.sagemath.org/question/36094/sage-fails-to-build-because-of-gcc-493p1/?comment=36200#post-id-36200Comment by akhilesh for <p>There is indeed a known issue regarding Sage 7.4 build on Ubuntu 16.10; it is discussed in <a href="https://groups.google.com/forum/#!msg/sage-devel/TduebNoZuBE/O22tqCh3BAAJ">this thread</a>. This should be fixed in Sage 7.5 (thanks to <a href="https://trac.sagemath.org/ticket/21782">#21782</a>). Meanwhile, here is a fix suggested in <a href="https://groups.google.com/d/msg/sage-devel/TduebNoZuBE/l-WUfELIBwAJ">this post</a>:</p>
<pre><code>export SAGE_INSTALL_GCC=no
make
</code></pre>
http://ask.sagemath.org/question/36094/sage-fails-to-build-because-of-gcc-493p1/?comment=36198#post-id-36198This answer solves precisely. Thanks!
However, i further get another error during further builds:
------------------------------------------------------------
Error building Sage.
The following package(s) may have failed to build (not necessarily
during this run of 'make all'):
* package: flint-2.5.2.p0
log file: /home/akhilesh/Sage/sage/logs/pkgs/flint-2.5.2.p0.log
build directory: /home/akhilesh/Sage/sage/local/var/tmp/sage/build/flint-2.5.2.p0
------------------------------------------------------------
Tried with the latest sage 7.5 rc0.
Can you solve this?Fri, 06 Jan 2017 05:10:12 -0600http://ask.sagemath.org/question/36094/sage-fails-to-build-because-of-gcc-493p1/?comment=36198#post-id-36198Answer by tmonteil for <p>Hello everyone!</p>
<p>I tried installing sage on ubuntu-16.10 sage-7.4 from the official mirrors. I extracted it, ran the ./configure(everything fine here) and ./make and this is what happens(output attached):</p>
<hr>
<p>Error building Sage.</p>
<p>The following package(s) may have failed to build (not necessarily
during this run of 'make all-toolchain'):</p>
<ul>
<li>package: gcc-4.9.3.p1
log file: /home/akhilesh/Downloads/SageMath/logs/pkgs/gcc-4.9.3.p1.log
build directory: /home/akhilesh/Downloads/SageMath/local/var/tmp/sage/build/gcc-4.9.3.p1</li>
</ul>
<p>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.</p>
<p>Makefile:16: recipe for target 'all-toolchain' failed
make: <em>*</em> [all-toolchain] Error 1</p>
<hr>
<p>I am currently working on a project, and although i can run sage by ./sage, i cannot install cryptominisat.
Any leads would be highly appreciated on this.</p>
<p>Thanks in advance.</p>
http://ask.sagemath.org/question/36094/sage-fails-to-build-because-of-gcc-493p1/?answer=36095#post-id-36095Which `sage-7.4` did you download ? If you downloaded binaries (which sould possible since you can run `./sage` without error mesage), you do not have to run `configure` nor `make`, you just have to unpack the tarball and Sage will work.
Let me suggest tu restart fresh by unpacking the tarball. Now, to install `cryptominisat`, you just have to do:
./sage -i cryptominisat
./sage -b
Note that `cryptominisat` currently does not build on 32bit architectures.
Mon, 26 Dec 2016 12:04:16 -0600http://ask.sagemath.org/question/36094/sage-fails-to-build-because-of-gcc-493p1/?answer=36095#post-id-36095Comment by akhilesh for <p>Which <code>sage-7.4</code> did you download ? If you downloaded binaries (which sould possible since you can run <code>./sage</code> without error mesage), you do not have to run <code>configure</code> nor <code>make</code>, you just have to unpack the tarball and Sage will work.</p>
<p>Let me suggest tu restart fresh by unpacking the tarball. Now, to install <code>cryptominisat</code>, you just have to do:</p>
<pre><code>./sage -i cryptominisat
./sage -b
</code></pre>
<p>Note that <code>cryptominisat</code> currently does not build on 32bit architectures.</p>
http://ask.sagemath.org/question/36094/sage-fails-to-build-because-of-gcc-493p1/?comment=36102#post-id-36102after running the command ./sage -i cryptominisat, it attempts to install the same file gcc-4.9.3.p1 and at the end it comes to the same thing.Is there a way that i could change gcc-4.9.3.p1 to some other version(there are errors in this gcc version, can you try building it yourself just to confirm?), then we solve the issue.
Yes you were right, i installed from the tarball.I tried compiling from source, same error.Tried different sage versions 7.1,7.2,7.3,7.4,7.5 same error.
Thanks for replying :)Mon, 26 Dec 2016 22:31:44 -0600http://ask.sagemath.org/question/36094/sage-fails-to-build-because-of-gcc-493p1/?comment=36102#post-id-36102