Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 May 2007 08:08:44 +0200
From:      Alex Dupre <ale@FreeBSD.org>
To:        freebsd-x11@freebsd.org
Cc:        freebsd-current@freebsd.org
Subject:   Re: Problem compiling xorg-server{-snap} on recent -CURRENT
Message-ID:  <465288EC.7030301@FreeBSD.org>
In-Reply-To: <863b1qrz11.fsf@dwp.des.no>
References:  <200705202254.45347.jonathan@fosburgh.org>	<20070521011217.O44264@volatile.chemikals.org>	<Pine.GSO.4.64.0705210815340.13001@neerbosch.nijmegen.internl.net> <863b1qrz11.fsf@dwp.des.no>

next in thread | previous in thread | raw e-mail | index | archive | help
Dag-Erling Smørgrav wrote:
>> My build of xorg-server died. The box ran out of swap space. I have
>> 512M RAM + 1G swap. Someone please tell me this is a glitch in the new
>> gcc. I don't want to add ram just to be able to compile a simple
>> program. :)
> 
> The quick fix is to build at a lower optimization level.  Advanced
> optimizations can be very memory-consuming, especially when compiling
> unusually large source files, or source files which contain unusually
> large functions.

I confirm the issue and the fix with latest -CURRENT (gcc 4.2 and symbol
versioning). I have less RAM and swap than Michiel, and 800MB of total
memory are not enough to build xf86scanpci.c with default CFLAGS (and
even with less aggressive -O). I had to remove completely the
optimization flag, but only for this single source file, all the rest
can be compiled with -O2.

--
Alex Dupre



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