Out of memory error when building GCC
Posted: 30. Mar 2011, 06:29
I am running Ubuntu Server 10.10 on a VM with 4 cores and 2 GB (2048 MB) RAM under a Mac OS X 10.6 host with an i7 CPU set and 8 GB of RAM. I am trying to build GCC 4.5.2 from source. Configuration seems to go fine. Then I enter "make -j"; and, after about 30 seconds of checking and building, I suddenly get a huge slew of error messages, all saying "Out of memory. Killing process <pid>" where each <pid> is a distinct PID, and then "<pid> killed" after each such line. Then make quits and the system seems to go into some kind of recovery before I get the shell back.
My log doesn't seem to show anything relevant. It seems to stop at the end of the boot process, where everything is fine.
Why is this happening and what can I do about it? Thanks!
Amittai
My log doesn't seem to show anything relevant. It seems to stop at the end of the boot process, where everything is fine.
Why is this happening and what can I do about it? Thanks!
Amittai