[prev in list] [next in list] [prev in thread] [next in thread]
List: gentoo-user
Subject: Re: [gentoo-user] Out of memory during GCC compile
From: Paul Hartman <paul.hartman+gentoo () gmail ! com>
Date: 2012-02-06 21:46:48
Message-ID: CAEH5T2PfvWF5bEnZ0NjX486SBM1rdnT6mDBRtAzV-3FzbHW5HQ () mail ! gmail ! com
[Download RAW message or body]
On Mon, Feb 6, 2012 at 3:33 PM, Grant <emailgrant@gmail.com> wrote:
> I'm trying to compile GCC on a remote system with 192MB RAM. It's
> completed successfully before but now it uses up all RAM. The compile
> doesn't stop but it must be thrashing. I have MAKEOPTS="-j1" in
> /etc/make.conf. Am I jeopardizing my HD by letting it swap on the
> compile right now? I've ordered an upgrade to the max of 512MB. I've
> stopped all processes using up memory that I don't need including X.
> Is there anything else I can do to get through the compile with 192MB
> RAM?
Use -O0. Don't enable debugging. I think GCC has some switches to
control memory usage/heap limits. You might want to try those and set
them to something low like 16MB, it probably uses as much as it can by
default.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic