LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 10-01-2010, 03:47 PM   #1
2007fld
Member
 
Registered: Mar 2007
Distribution: FD4,6
Posts: 52

Rep: Reputation: 15
compile failed due to 'out of memory'


Quote:
cc1: out of memory allocating 488 bytes after a total of 3328921600 bytes

linux-7huw:~/Download/pari-2.3.5 # uname -a
Linux linux-7huw 2.6.31.5-0.1-desktop #1 SMP PREEMPT 2009-10-26
15:49:03 +0100 x86_64 x86_64 x86_64 GNU/Linux
Maybe increase swap space will help? How to do it?
When I install suse 11 on this box, I remeber it shows the swap space is 2G, I didn't find it anywhere now...

Quote:
linux-7huw:~> df -l
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda2 20641788 3296984 16296164 17% /
udev 1023124 208 1022916 1% /dev
/dev/sda4 38725340 240604 36517580 1% /home

linux-7huw:~> more /etc/fstab
/dev/disk/by-id/ata-Hitachi_HDS721680PLA380_PVFB04ZETVGVSE-part1 swap swap defaults 0 0
/dev/disk/by-id/ata-Hitachi_HDS721680PLA380_PVFB04ZETVGVSE-part2 / ext4 acl,user_xattr 1 1
/dev/disk/by-id/ata-Hitachi_HDS721680PLA380_PVFB04ZETVGVSE-part4 /home ext4 acl,user_xattr 1 2
proc /proc proc defaults 0 0
sysfs /sys sysfs noauto 0 0
debugfs /sys/kernel/debug debugfs noauto 0 0
usbfs /proc/bus/usb usbfs noauto 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0
 
Old 10-01-2010, 06:35 PM   #2
neonsignal
Senior Member
 
Registered: Jan 2005
Location: Melbourne, Australia
Distribution: Debian Bookworm (Fluxbox WM)
Posts: 1,391
Blog Entries: 54

Rep: Reputation: 360Reputation: 360Reputation: 360Reputation: 360
How are you invoking gcc? What are you compiling? (notice that it has allocated over 3Gbytes of memory)
 
Old 10-01-2010, 06:54 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,119

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Let's see "free -m" - it will show both RAM and swap.
 
Old 10-01-2010, 10:14 PM   #4
2007fld
Member
 
Registered: Mar 2007
Distribution: FD4,6
Posts: 52

Original Poster
Rep: Reputation: 15
I'm trying to compile the gp/pari library on openSuse 11. configure works fine. 'make all' failed.

Quote:
linux-7huw:~/Download/pari-2.3.5 # ./Configure
Configuring pari-2.3.5 (STABLE)
Checking echo to see how to suppress newlines...
...using -n.
Looking for some tools first ...
...ld is /usr/bin/ld
...zcat is /usr/bin/zcat
...gzip is /usr/bin/gzip
...ranlib is /usr/bin/ranlib
...perl is /usr/bin/perl
...I could not find emacs.
Looking for the compilers ...
...cc is /usr/bin/cc
...gcc is /usr/bin/gcc
GNU compiler version 4.4.1 [gcc-4_4-branch revision 150839] (SUSE Linux)
Given the previous choices, sizeof(long) is 8 chars.
The internal word representation of a double is not needed (64bit).
==========================================================================
Building for architecture: amd64 running linux (x86-64 kernel) 64-bit version
==========================================================================
C compiler is /usr/bin/gcc -O3 -Wall -fno-strict-aliasing -fomit-frame-pointer -fPIC
Executable linker is /usr/bin/gcc -O3 -Wall -fno-strict-aliasing -fomit-frame-pointer -Wl,--export-dynamic
Dynamic Lib linker is /usr/bin/gcc -shared $(CFLAGS) $(DLCFLAGS) -Wl,-shared,-soname= $(LIBPARI_SONAME)
Looking in C lib for some symbols...
...Found exp2.
...Found log2.
...Found strftime.
...Found getrusage.
...Found sigaction.
...Found TIOCGWINSZ.
...Found getrlimit.
...Found stat.
...Found vsnprintf.
...I did not find dlopen.
Try again, with -ldl this time...
...Found dlopen.
Checking for optional libraries and headers...
###
### libX11.so not found. Please install X11 development files.
### They usually come in XFree86-devel (RPM) or xlibs-dev (Debian) packages
###
### X11 not found
### FLTK not found. Building without FLTK support
Hi-Res Graphics: none
###
### libreadline.so not found. Please install readline development files.
### They usually come in readline-devel (RPM) or libreadline-dev (Debian) packages
###
### Building without GNU readline support
Installation prefix ? [/usr/local]
...for architecture-independent files (share-prefix) ? [/usr/local/share]
Installation directories for:
...executables (gp, gphelp) ? [/usr/local/bin]
...libraries (libpari) ? [/usr/local/lib]
...include files ? [/usr/local/include]
...manual pages ? [/usr/local/share/man/man1]
...emacs macros ? [/usr/local/share/emacs/site-lisp/pari]
...other system-dependant data ? [/usr/local/lib/pari]
...other system-independant data ? [/usr/local/share/pari]
Default is dynamic executable and shared library
==========================================================================
Extracting examples/Makefile.linux-x86_64
Extracting Olinux-x86_64/Makefile
Extracting Makefile
Extracting Olinux-x86_64/paricfg.h
Extracting Olinux-x86_64/../Odos/paricfg.h
Extracting scripts and macros
...in doc
...in emacs
...in misc
==========================================================================
Shall we try to build pari 2.3.5 (released) now (y/n)? [n]
Ok. Type "make install" when you are ready
Bye !
Quote:
linux-7huw:~/Download/pari-2.3.5 # make all
make[1]: Entering directory `/root/Download/pari-2.3.5/doc'
rm -f develop.std
tex develop
make[1]: tex: Command not found
make[1]: *** [develop.dvi] Error 127
make[1]: Leaving directory `/root/Download/pari-2.3.5/doc'
make: [all] Error 2 (ignored)
make[1]: Entering directory `/root/Download/pari-2.3.5'
Making gp in Olinux-x86_64
make[2]: Entering directory `/root/Download/pari-2.3.5/Olinux-x86_64'
File ../src/funclist not changed.
../config/genkernel ../src/kernel/x86_64/asm0.h > parilvl0.h
cat ../src/kernel/none/tune.h ../src/kernel/none/int.h ../src/kernel/none/level1.h > parilvl1.h
cat parilvl0.h parilvl1.h > pariinl.h
/usr/bin/gcc -c -O3 -Wall -fno-strict-aliasing -fomit-frame-pointer -I. -I../src/headers -I../src/language -o gp.o ../src/gp/gp.c
cd ../src/desc && /usr/bin/perl merge_822 ../functions/*/* > def-linux-x86_64-25767.tmp
mv ../src/desc/def-linux-x86_64-25767.tmp ../src/desc/pari.desc
cd ../src/desc && /usr/bin/perl gen_proto gp pari.desc > gp_init-linux-x86_64-25767.tmp
mv ../src/desc/gp_init-linux-x86_64-25767.tmp ../src/gp/gp_init.h
/usr/bin/gcc -c -O3 -Wall -fno-strict-aliasing -fomit-frame-pointer -I. -I../src/headers -I../src/graph -o gp_init.o ../src/gp/gp_init.c
/usr/bin/gcc -c -O3 -Wall -fno-strict-aliasing -fomit-frame-pointer -I. -I../src/headers -I../src/language -o gp_rl.o ../src/gp/gp_rl.c
cd ../src/desc && /usr/bin/perl gen_proto highlevel pari.desc > highlvl-linux-x86_64-25767.tmp
mv ../src/desc/highlvl-linux-x86_64-25767.tmp ../src/gp/highlvl.h
/usr/bin/gcc -c -O3 -Wall -fno-strict-aliasing -fomit-frame-pointer -I. -I../src/headers -DDL_DFLT_NAME=NULL -o highlvl.o ../src/gp/highlvl.c
/usr/bin/gcc -c -O3 -Wall -fno-strict-aliasing -fomit-frame-pointer -I. -I../src/headers -o whatnow.o ../src/gp/whatnow.c
/usr/bin/gcc -c -O3 -Wall -fno-strict-aliasing -fomit-frame-pointer -I. -I../src/headers -I../src/graph -o plotport.o ../src/graph/plotport.c
/usr/bin/gcc -c -O3 -Wall -fno-strict-aliasing -fomit-frame-pointer -I. -I../src/headers -o plotnull.o ../src/graph/plotnull.c
cat ../src/kernel/none/mp.c ../src/kernel/none/cmp.c ../src/kernel/none/gcdll.c ../src/kernel/none/ratlift.c ../src/kernel/none/invmod.c ../src/kernel/none/gcd.c ../src/kernel/none/mp_indep.c ../src/kernel/none/add.c > mp.c
/usr/bin/gcc -c -O3 -Wall -fno-strict-aliasing -fomit-frame-pointer -fPIC -I. -I../src/headers -o mp.o mp.c
/usr/bin/gcc -c -O3 -Wall -fno-strict-aliasing -fomit-frame-pointer -I. -I../src/headers -fPIC -o mpinl.o ../src/kernel/none/mpinl.c
/usr/bin/gcc -c -O3 -Wall -fno-strict-aliasing -fomit-frame-pointer -I. -I../src/headers -fPIC -o Flx.o ../src/basemath/Flx.c
/usr/bin/gcc -c -O3 -Wall -fno-strict-aliasing -fomit-frame-pointer -I. -I../src/headers -fPIC -o Qfb.o ../src/basemath/Qfb.c
/usr/bin/gcc -c -O3 -Wall -fno-strict-aliasing -fomit-frame-pointer -I. -I../src/headers -fPIC -o RgX.o ../src/basemath/RgX.c
/usr/bin/gcc -c -O3 -Wall -fno-strict-aliasing -fomit-frame-pointer -I. -I../src/headers -fPIC -o alglin1.o ../src/basemath/alglin1.c
cc1: out of memory allocating 488 bytes after a total of 3329134592 bytes
make[2]: *** [base3.o] Error 1
make[2]: Leaving directory `/root/Download/pari-2.3.5/Olinux-x86_64'
make[1]: *** [gp] Error 2
make[1]: Leaving directory `/root/Download/pari-2.3.5'
make: *** [all] Error 2

Last edited by 2007fld; 10-01-2010 at 10:43 PM.
 
Old 10-01-2010, 10:44 PM   #5
2007fld
Member
 
Registered: Mar 2007
Distribution: FD4,6
Posts: 52

Original Poster
Rep: Reputation: 15
Here is free -m output:

Quote:
linux-7huw:~ # free -m
total used free shared buffers cached
Mem: 1998 102 1895 0 0 51
-/+ buffers/cache: 50 1948
Swap: 2055 33 2021
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Slackware failed to boot from GRUB due to new ext3 xcristi Slackware 7 10-14-2009 07:47 AM
Upgrade failed due to 'held packages' amrtuti Debian 3 07-26-2008 10:21 AM
insmod failed due to unresolved symbols zhubaining Linux - Kernel 2 06-17-2007 04:06 AM
insmod failed due to unresolved symbols zhubaining Linux - General 0 06-13-2007 03:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 06:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration