From owner-freebsd-x11@FreeBSD.ORG Tue May 22 06:35:28 2007 Return-Path: <owner-freebsd-x11@FreeBSD.ORG> X-Original-To: freebsd-x11@freebsd.org Delivered-To: freebsd-x11@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 601D716A400 for <freebsd-x11@freebsd.org>; Tue, 22 May 2007 06:35:28 +0000 (UTC) (envelope-from ale@FreeBSD.org) Received: from lab.alexdupre.com (lab.alexdupre.com [81.174.31.42]) by mx1.freebsd.org (Postfix) with ESMTP id A00A313C480 for <freebsd-x11@freebsd.org>; Tue, 22 May 2007 06:35:27 +0000 (UTC) (envelope-from ale@FreeBSD.org) Received: (qmail 50183 invoked from network); 22 May 2007 06:08:45 -0000 Received: from unknown (HELO athlon.alexdupre.com) (192.168.178.2) by lab.alexdupre.com with SMTP; 22 May 2007 06:08:45 -0000 Message-ID: <465288EC.7030301@FreeBSD.org> Date: Tue, 22 May 2007 08:08:44 +0200 From: Alex Dupre <ale@FreeBSD.org> User-Agent: Thunderbird 2.0.0.0 (X11/20070420) MIME-Version: 1.0 To: freebsd-x11@freebsd.org 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> In-Reply-To: <863b1qrz11.fsf@dwp.des.no> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: freebsd-current@freebsd.org Subject: Re: Problem compiling xorg-server{-snap} on recent -CURRENT X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support <freebsd-x11.freebsd.org> List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-x11>, <mailto:freebsd-x11-request@freebsd.org?subject=unsubscribe> List-Archive: <http://lists.freebsd.org/pipermail/freebsd-x11> List-Post: <mailto:freebsd-x11@freebsd.org> List-Help: <mailto:freebsd-x11-request@freebsd.org?subject=help> List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-x11>, <mailto:freebsd-x11-request@freebsd.org?subject=subscribe> X-List-Received-Date: Tue, 22 May 2007 06:35:28 -0000 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