Ask Your Question
0

SAGE fails to build because of gcc-4.9.3.p1

asked 2016-12-26 14:04:38 +0200

akhilesh gravatar image

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.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2016-12-27 19:03:29 +0200

eric_g gravatar image

There is indeed a known issue regarding Sage 7.4 build on Ubuntu 16.10; it is discussed in this thread. This should be fixed in Sage 7.5 (thanks to #21782). Meanwhile, here is a fix suggested in this post:

export SAGE_INSTALL_GCC=no
make
edit flag offensive delete link more

Comments

This 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?

akhilesh gravatar imageakhilesh ( 2017-01-06 12:10:12 +0200 )edit

This issue has been corrected in Sage 7.5.rc1. Can you try with this version?

eric_g gravatar imageeric_g ( 2017-01-06 17:14:52 +0200 )edit

Thanks! Used rc2, it's working now :)

akhilesh gravatar imageakhilesh ( 2017-01-06 20:02:47 +0200 )edit
1

answered 2016-12-26 19:04:16 +0200

tmonteil gravatar image

Which 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.

edit flag offensive delete link more

Comments

after 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 :)

akhilesh gravatar imageakhilesh ( 2016-12-27 05:31:44 +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

Stats

Asked: 2016-12-26 14:04:38 +0200

Seen: 627 times

Last updated: Dec 27 '16