Compile failed due to 'out of memory'

 
Thread Tools Search this Thread
Operating Systems Linux SuSE Compile failed due to 'out of memory'
# 1  
Old 10-01-2010
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
# 2  
Old 10-01-2010
check the your limits
Code:
 
ulimit -a

# 3  
Old 10-01-2010
Quote:
linux-7huw:~ # ulimit -a
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 15929
max locked memory (kbytes, -l) 64
max memory size (kbytes, -m) 1739352
open files (-n) 1024
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 15929
virtual memory (kbytes, -v) 3320640
file locks (-x) unlimited
# 4  
Old 10-01-2010
Quote:
max memory size (kbytes, -m) 1739352
virtual memory (kbytes, -v) 3320640
probably these limits is your problem.you must increase its..


regards
ygemici
# 5  
Old 10-02-2010
Could you let me know how to increase those? Thanks in advance!
# 6  
Old 10-02-2010
after than re-try compile and let see results..
Code:
ulimit -v unlimited

Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Red Hat

LVM unmounted due to out of memory

Hi , Our one of VMguest all lvm got unmounted once the machine is rebooted when in repair state dmesg its showing an error out of memory killed process 22289 (lvm) please refer screen shots attached when i look the lvscan its showing all lvm are inactive i checked throuh top there... (0 Replies)
Discussion started by: venikathir
0 Replies

2. Linux

shmget failed - cannot allocate memory

Hi, In my proj, one process was running for 2 days. after 2 days its throwing an error message "shmget failed cannot allocate memory". the same problem happened every time.i.e. i can reproduce the same issue if my process is running for every 2 days for a same operation.Within this 2 days there... (1 Reply)
Discussion started by: ManoharanMani
1 Replies

3. Linux

shmget failed - cannot allocate memory

Hi, In my proj, one process was running for 2 days. after 2 days its throwing an error message "shmget failed cannot allocate memory". the same problem happened every time.i.e. i can reproduce the same issue if my process is running for every 2 days for a same operation.Within this 2 days there... (1 Reply)
Discussion started by: ManoharanMani
1 Replies

4. SuSE

shmget failed - cannot allocate memory

Hi, In my proj, one process was running for 2 days. after 2 days its throwing an error message "shmget failed cannot allocate memory". the same problem happened every time.i.e. i can reproduce the same issue if my process is running for every 2 days for a same operation.Within this 2 days there... (1 Reply)
Discussion started by: ManoharanMani
1 Replies

5. SuSE

shmat failed due to Cannot allocate memory

Hi, My program was running for a whole night. after 12 hours i got an error message "Cannot allocate memory" during the shmat commmand. So can you please let me know what could be the reason? is there any solution? thanks in advance. Regards, Mano (5 Replies)
Discussion started by: ManoharanMani
5 Replies

6. AIX

Process crashing on AIX due to memory Leak

Hi All, I have a process running on my AIX 5.3 server box. The process runs fine for 5-6days but then crashes. The log file shows malloc failure and the svmon (Virtual memory size), ps -lef (SZ value) are also gradually increasing. But unfortunately MALLOCDEBUG and any other memory debugging... (3 Replies)
Discussion started by: SBatra
3 Replies

7. UNIX for Advanced & Expert Users

rm & mv command failed due to too many files.

In our directory there are too many files, & if I try to execute mv *.gz or rm *.l command it fails, providing error string as - 'arg list too long'. This doesnt happen always, is there any way we know, limit on the rm & mv command so we can take care of this failure in future executions ? (9 Replies)
Discussion started by: videsh77
9 Replies

8. Programming

Not able to compile Pro*c file due - give errors and points to /usr/include/.. file

I am trying to compile the pro*C file but gives errors. It says it encountered "std" while it was expecting ; , = ( $ $ORACLE_HOME/bin/proc tradewind/dataaccess/Blob.pcc Pro*C/C++: Release 10.2.0.3.0 - Production on Fri May 9 11:10:54 2008 Copyright (c) 1982, 2005, Oracle. All rights... (0 Replies)
Discussion started by: shafi2all
0 Replies

9. UNIX for Dummies Questions & Answers

tar: Memory allocation failed

tar: Memory allocation failed for extended data while reading : Not enough space what can be done for the above problem? top utility reports memory usage as follows: Memory: Real: 2688M/15G act/tot Virtual: 1492M/42915M use/tot Free: 11G this cannot be a disk space problem as we have... (1 Reply)
Discussion started by: gfhgfnhhn
1 Replies
Login or Register to Ask a Question