Error building 4.6.alpha3 on 32-bit Fedora 11

2 views
Skip to first unread message

Mitesh Patel

unread,
Oct 10, 2010, 9:57:58 PM10/10/10
to sage-r...@googlegroups.com
Mike Witt reports a problem building 4.6.alpha3 on a 32-bit Fedora 11
system with 4 GB of memory. I've put a copy of his build log at

http://sage.math.washington.edu/home/mpatel/trac/witt_install.log

The problem seems to be with PARI/GP. The log ends with

gcc -c -O3 -Wall -fno-strict-aliasing -fomit-frame-pointer -O3 -g
-I. -I../src/headers -fPIC -o base2.o ../src/basemath/base2.c
gcc -c -O3 -Wall -fno-strict-aliasing -fomit-frame-pointer -O3 -g
-I. -I../src/headers -fPIC -o base3.o ../src/basemath/base3.c

cc1: out of memory allocating 248 bytes after a total of 2883715072 bytes
make[3]: *** [base3.o] Error 1
make[3]: Leaving directory
`/usr/local/sage-4.6.alpha3/spkg/build/pari-2.4.3.svn-12577.p7/src/Olinux-i686'
make[2]: *** [gp] Error 2
make[2]: Leaving directory
`/usr/local/sage-4.6.alpha3/spkg/build/pari-2.4.3.svn-12577.p7/src'
Error building GP

real 10m57.486s
user 10m42.995s
sys 0m3.875s
sage: An error occurred while installing pari-2.4.3.svn-12577.p7
Please email sage-devel http://groups.google.com/group/sage-devel
explaining the problem and send the relevant part of
of /usr/local/sage-4.6.alpha3/install.log. Describe your computer,
operating system, etc.
If you want to try to fix the problem yourself, *don't* just cd to
/usr/local/sage-4.6.alpha3/spkg/build/pari-2.4.3.svn-12577.p7 and type
'make check' or whatever is appropriate.
Instead, the following commands setup all environment variables
correctly and load a subshell for you to debug the error:
(cd '/usr/local/sage-4.6.alpha3/spkg/build/pari-2.4.3.svn-12577.p7' &&
'/usr/local/sage-4.6.alpha3/sage' -sh)
When you are done debugging, you can type "exit" to leave the
subshell.
make[1]: *** [installed/pari-2.4.3.svn-12577.p7] Error 1
make[1]: Leaving directory `/usr/local/sage-4.6.alpha3/spkg'

real 32m0.312s
user 27m18.633s
sys 3m1.157s
Error building Sage.

Jeroen Demeyer

unread,
Oct 11, 2010, 3:46:04 AM10/11/10
to sage-r...@googlegroups.com
On 2010-10-11 03:57, Mitesh Patel wrote:
> cc1: out of memory allocating 248 bytes after a total of 2883715072 bytes
This looks like a gcc bug (pari seems to be very good at exposing
compiler bugs).

Jeroen.

Mitesh Patel

unread,
Oct 11, 2010, 5:41:34 AM10/11/10
to sage-r...@googlegroups.com

Mike, what happens if you do

cd SAGE_ROOT
tar xjf spkg/standard/pari-2.4.3.svn-12577.p7.spkg
cd pari-2.4.3.svn-12577.p7/src
./Configure --graphic=none
make gp

?

Mitesh Patel

unread,
Oct 11, 2010, 6:43:15 PM10/11/10
to sage-r...@googlegroups.com

Mike replies (his sage-release membership is pending):

"""
[root@Vector ~]# cd /usr/local/sage-4.6.alpha3
[root@Vector sage-4.6.alpha3]# tar xjf
spkg/standard/pari-2.4.3.svn-12577.p7.spkg
[root@Vector sage-4.6.alpha3]# cd pari-2.4.3.svn-12577.p7/src
[root@Vector src]# ./Configure --graphic=none >& config.out
[root@Vector src]# make gp >& make.out

^C
[root@Vector src]#

It does appear to run me out of memory. I watched the system monitor this
time and killed it when it had used up about 3 of my 4 gig (didn't want to
risk crashing the system).
"""

I've attached config.out and make.out.

Mike adds that he did successfully build 4.6.alpha3 on an older, less
powerful machine running Fedora 12.

I've opened

http://trac.sagemath.org/sage_trac/ticket/10120

to track this.

config.out
make.out
Reply all
Reply to author
Forward
0 new messages