Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Mar 2008 14:44:56 +0100
From:      Bernd Walter <ticso@cicely12.cicely.de>
To:        Okalany Daniel <daniel@one2net.co.ug>
Cc:        freebsd-current@freebsd.org, d@delphij.net
Subject:   Re: Gcc Error
Message-ID:  <20080327134456.GF75168@cicely12.cicely.de>
In-Reply-To: <28f643d90803270051k4b3a7d63m7accd6adc15df309@mail.gmail.com>
References:  <28f643d90803260207m14acd031vb5eaabab7fefa7dc@mail.gmail.com> <47EA19CA.4060006@delphij.net> <28f643d90803260400n6150f3adoce5cfe3c9566a20e@mail.gmail.com> <28f643d90803270046re2eaceeh977b0dbaca47f932@mail.gmail.com> <28f643d90803270051k4b3a7d63m7accd6adc15df309@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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@one2net.co.ug<dokalanyi@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@bwct.de           info@bwct.de            support@fizon.de



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080327134456.GF75168>