Gentoo Archives: gentoo-user

From: Robert David <robert.david.public@×××××.com>
To: gentoo-user@l.g.o
Cc: emailgrant@×××××.com
Subject: Re: [gentoo-user] Out of memory during GCC compile
Date: Mon, 06 Feb 2012 22:02:49
Message-Id: 20120206230124.1d77676a@gmail.com
In Reply to: [gentoo-user] Out of memory during GCC compile by Grant
1 V Mon, 6 Feb 2012 13:33:21 -0800
2 Grant <emailgrant@×××××.com> napsáno:
3
4 > I'm trying to compile GCC on a remote system with 192MB RAM. It's
5 > completed successfully before but now it uses up all RAM. The compile
6 > doesn't stop but it must be thrashing. I have MAKEOPTS="-j1" in
7 > /etc/make.conf. Am I jeopardizing my HD by letting it swap on the
8 > compile right now? I've ordered an upgrade to the max of 512MB. I've
9 > stopped all processes using up memory that I don't need including X.
10 > Is there anything else I can do to get through the compile with 192MB
11 > RAM?
12 >
13 > - Grant
14 >
15
16 If you use -pipe as CFLAG remove it.
17 If not just try lower flags as mentioned (-O0).