From owner-freebsd-current@FreeBSD.ORG Sun Jun 17 06:56:29 2007 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id BD35716A468 for ; Sun, 17 Jun 2007 06:56:29 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from vlakno.cz (vlk.vlakno.cz [62.168.28.247]) by mx1.freebsd.org (Postfix) with ESMTP id 77D7713C45B for ; Sun, 17 Jun 2007 06:56:29 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from localhost (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id D26C08BFC52; Sun, 17 Jun 2007 08:56:27 +0200 (CEST) X-Virus-Scanned: amavisd-new at vlakno.cz Received: from vlakno.cz ([127.0.0.1]) by localhost (vlk.vlakno.cz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id CDRgKkzTMtM3; Sun, 17 Jun 2007 08:56:23 +0200 (CEST) Received: from vlk.vlakno.cz (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id 890718BE30A; Sun, 17 Jun 2007 08:56:23 +0200 (CEST) Received: (from rdivacky@localhost) by vlk.vlakno.cz (8.13.8/8.13.8/Submit) id l5H6uMqq033320; Sun, 17 Jun 2007 08:56:22 +0200 (CEST) (envelope-from rdivacky) Date: Sun, 17 Jun 2007 08:56:22 +0200 From: Roman Divacky To: Garrett Cooper Message-ID: <20070617065622.GA33155@freebsd.org> References: <46745631.7000708@web.am> <467467B7.8060408@u.washington.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <467467B7.8060408@u.washington.edu> User-Agent: Mutt/1.4.2.3i Cc: Gaspar Chilingarov , freebsd-current@freebsd.org, Claus Guttesen Subject: Re: [AMD64] X.org build eats all the memory when compiled with GCC 4.2 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Jun 2007 06:56:29 -0000 On Sat, Jun 16, 2007 at 03:44:07PM -0700, Garrett Cooper wrote: > Claus Guttesen wrote: > >>I recompiled X.org yesterday and hit the following problem > >>(1 week old -current, yesterdays packages, AMD64) -- when compiling > >>files in > >>/usr/ports/x11-servers/xorg-server/work/xorg-server-1.2.0/hw/xfree86/scanpci > >> > >>directory, there are huge .h files - about 4mb. when compiler uses -O2 > >>or -O option it eats all available memory and then gets killed by the > >>system. > >>Without -O/O2 option compile works just as expected. > >> > >>Now -- should I file a PR or it's known bug? > > > >No, but you should read the archives. Requires more than 1 GB of swap. > > > It's a known bug that isn't going to be fixed until gcc 4.2.1. > -Garrett I also noticed problems with compiling gcc itself on 512M RAM + 1G swap on i386 with -Os (change to -O2 fixed that) could we import the fix from gcc to ship better gcc in 7.0R? roman