Re: Gcc Error

From: Bernd Walter <ticso_at_cicely12.cicely.de>
Date: Thu, 27 Mar 2008 14:44:56 +0100
On Thu, Mar 27, 2008 at 10:51:24AM +0300, Okalany Daniel wrote:
> On Wed, Mar 26, 2008 at 2:00 PM, Okalany Daniel
> <dokalanyi_at_one2net.co.ug<dokalanyi_at_gmail.com>>
> wrote:
> 
> > dmesg produces
> >
> > swap_pager_getswapspace(3): failed
> > swap_pager_getswapspace(3): failed
> > swap_pager_getswapspace(3): failed
> > swap_pager_getswapspace(3): failed
> > swap_pager_getswapspace(3): failed
> > swap_pager_getswapspace(3): failed
> > swap_pager_getswapspace(3): failed
> > swap_pager_getswapspace(3): failed
> > swap_pager_getswapspace(3): failed
> > swap_pager_getswapspace(3): failed
> > swap_pager_getswapspace(16): failed
> > swap_pager_getswapspace(3): failed
> > swap_pager_getswapspace(4): failed
> > swap_pager_getswapspace(6): failed
> > swap_pager_getswapspace(3): failed
> > swap_pager_getswapspace(16): failed
> > pid 14821 (cc1), uid 0, was killed: out of swap space
> >
> > So its memory. I tried to install "ccache" and then included
> >
> > .if !defined(NOCCACHE)
> > CC=/usr/local/libexec/ccache/world-cc
> > CXX=/usr/local/libexec/ccache/world-c++
> > .endif
> >
> > in /etc/make.conf
> > Is there anyway i can solve this without buying more RAM? Im currently
> > using 128,40G,1.6Ghz

Since this is not some special kernel memory, which has to be in RAM,
you can also just add more swapspace.

> Adding RAM, making it 384M solved my problem. Thanks

Current gcc unfortunately are more memory hungry than earlier versions,
especially if compiling C++ code.

-- 
B.Walter                http://www.bwct.de      http://www.fizon.de
bernd_at_bwct.de           info_at_bwct.de            support_at_fizon.de
Received on Thu Mar 27 2008 - 13:11:19 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:29 UTC