Error installing package linbox-1.4.2

95 views
Skip to first unread message

Jose Luis Bracamonte Amavizca

unread,
Jul 19, 2017, 2:25:13 PM7/19/17
to sage-devel
I was trying to install SageMathCell on a VPS with Ubuntu 16.04.2 LTS (GNU/Linux 2.6.32-042stab120.20 x86_64) following the instructions form the oficial GitHub repository page on https://github.com/sagemath/sagecell . In the section "Simple Installation" on the step 3 after the "make" command, and after waiting a log time for building, an error occurs , displaying the following on the terminal.

[linbox-1.4.2] ************************************************************************

[linbox-1.4.2] Error installing package linbox-1.4.2

[linbox-1.4.2] ************************************************************************

[linbox-1.4.2] Please email sage-devel (http://groups.google.com/group/sage-devel)

[linbox-1.4.2] explaining the problem and including the relevant part of the log file

[linbox-1.4.2]   /home/luisjba/sc_build/sage/logs/pkgs/linbox-1.4.2.log

[linbox-1.4.2] Describe your computer, operating system, etc.

[linbox-1.4.2] If you want to try to fix the problem yourself, *don't* just cd to

[linbox-1.4.2] /home/luisjba/sc_build/sage/local/var/tmp/sage/build/linbox-1.4.2 and type 'make' or whatever is appropriate.

[linbox-1.4.2] Instead, the following commands setup all environment variables

[linbox-1.4.2] correctly and load a subshell for you to debug the error:

[linbox-1.4.2]   (cd '/home/luisjba/sc_build/sage/local/var/tmp/sage/build/linbox-1.4.2' && '/home/luisjba/sc_build/sage/sage' --sh)

[linbox-1.4.2] When you are done debugging, you can type "exit" to leave the subshell.

[linbox-1.4.2] ************************************************************************

Makefile:2103: recipe for target '/home/luisjba/sc_build/sage/local/var/lib/sage/installed/linbox-1.4.2' failed

make[2]: *** [/home/luisjba/sc_build/sage/local/var/lib/sage/installed/linbox-1.4.2] Error 1

make[2]: Leaving directory '/home/luisjba/sc_build/sage/build/make'

Makefile:912: recipe for target 'all' failed

make[1]: *** [all] Error 2

make[1]: Leaving directory '/home/luisjba/sc_build/sage/build/make'


real 2m43.118s

user 1m54.334s

sys 0m13.253s

***************************************************************

Error building Sage.


The following package(s) may have failed to build (not necessarily

during this run of 'make all'):


* package: linbox-1.4.2

  log file: /home/luisjba/sc_build/sage/logs/pkgs/linbox-1.4.2.log

  build directory: /home/luisjba/sc_build/sage/local/var/tmp/sage/build/linbox-1.4.2


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' failed

make: *** [all] Error 1


 The log file linbox-1.4.2.log is attached here.
linbox-1.4.2.log

François Bissey

unread,
Jul 19, 2017, 4:32:26 PM7/19/17
to sage-...@googlegroups.com
Hum “internal compiler error” on compiling liblinbox-sage.o. Something
broke your sage installed gcc. One thing that I don’t remember seeing
anywhere before and that I find suspicious “-fabi-version=6” in CFLAGS.
Is this something you somehow added or you have no ideas what I am talking
about?

François
> --
> 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 post to this group, send email to sage-...@googlegroups.com.
> Visit this group at https://groups.google.com/group/sage-devel.
> For more options, visit https://groups.google.com/d/optout.
> <linbox-1.4.2.log>

Jose Luis Bracamonte Amavizca

unread,
Jul 19, 2017, 8:34:37 PM7/19/17
to sage-devel
I have not added any flag any where, I only follow the steps shown in the GitHub page, and I don't know where this fags where added. This VPS is a clean installation, and is intended to use only for Sage Math, no any other installation were done on this VPS, except Git.

Searching on google, I found  that the problem cold be by resources on VPS. The amount of memory and SWAP space is not enough for compiling that library, but Im not sure about that. 

Jeroen Demeyer

unread,
Jul 20, 2017, 4:28:11 AM7/20/17
to sage-...@googlegroups.com
On 2017-07-19 20:22, Jose Luis Bracamonte Amavizca wrote:
> internal compiler error: Killed

The most likely cause of this is running out of system memory. How much
memory does your system have? Was it particularly heavily loaded? Did
you use a lot of parallel processes to compile Sage?

Jose Luis Bracamonte Amavizca

unread,
Jul 20, 2017, 2:21:46 PM7/20/17
to sage-devel
The VPS have 1 Core  768MB RAM 60GB Disk. It has not any other process running, it is a clean installation with no one other use intended than  to be a cell of sage math . 

I run the make command again, but first a set the SAGE_KEEP_BUILT_SPKGS to 'yes' to avoid delete the build directory, as said in the log error message. After that, I have the same error result, failed to build the package linbox-1.4.2.

Is there other way to install it and run a production cell for SageMath? .

David Roe

unread,
Jul 20, 2017, 3:03:06 PM7/20/17
to sage-devel
768MB of RAM is probably not enough to build Sage.

Can you use a binary?
David

--
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+unsubscribe@googlegroups.com.

Jose Luis Bracamonte Amavizca

unread,
Jul 20, 2017, 4:44:41 PM7/20/17
to sage-devel, roed...@gmail.com
Yes, I Used the Binary for sage, and works great!!. But I intended to set up a sage cell to used them as a service for an a external application. The notebook  command on sage starts a service on 8080 port, but it is only accesible from localhost, and if I try to access by the public ip or domain name, it is not reachable . How can I run a cell server to be accessed by internet using the binary distribution? Is there a way to do that instead of compiling it as I was trying in the previos method?


On Thursday, July 20, 2017 at 12:03:06 PM UTC-7, David Roe wrote:
768MB of RAM is probably not enough to build Sage.

Can you use a binary?
David
On Thu, Jul 20, 2017 at 11:21 AM, Jose Luis Bracamonte Amavizca <lui...@gmail.com> wrote:
The VPS have 1 Core  768MB RAM 60GB Disk. It has not any other process running, it is a clean installation with no one other use intended than  to be a cell of sage math . 

I run the make command again, but first a set the SAGE_KEEP_BUILT_SPKGS to 'yes' to avoid delete the build directory, as said in the log error message. After that, I have the same error result, failed to build the package linbox-1.4.2.

Is there other way to install it and run a production cell for SageMath? .


On Thursday, July 20, 2017 at 1:28:11 AM UTC-7, Jeroen Demeyer wrote:
On 2017-07-19 20:22, Jose Luis Bracamonte Amavizca wrote:
> internal compiler error: Killed

The most likely cause of this is running out of system memory. How much
memory does your system have? Was it particularly heavily loaded? Did
you use a lot of parallel processes to compile Sage?

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

Clement Pernet

unread,
Jul 21, 2017, 3:03:07 AM7/21/17
to sage-...@googlegroups.com, François Bissey
Le 19/07/2017 à 22:32, François Bissey a écrit :
> One thing that I don’t remember seeing
> anywhere before and that I find suspicious “-fabi-version=6” in CFLAGS.

For the record, this -fabi-version=6 option is forced by givaro (a dependency of LinBox) to avoid a
demangling bug with the standard abi when using SIMD vector types __m128 and __m256.

As for the bug, I confirm that 768Mo of RAM is likely the reason for the compilation failure.

Clément

Jose Luis Bracamonte Amavizca

unread,
Jul 25, 2017, 7:46:40 PM7/25/17
to sage-devel, frp.b...@gmail.com
I have moved to new VPS server, and compilation were done successfully, same OS ( Ubuntu 16.04.2 LTS (GNU/Linux 2.6.32-042stab120.20 x86_64)) but with 3.5 GB of RAM. 

Thanks for the help!!!
Reply all
Reply to author
Forward
0 new messages