From owner-freebsd-current@FreeBSD.ORG Mon Jun 18 12:32:02 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 ED82916A41F for ; Mon, 18 Jun 2007 12:32:02 +0000 (UTC) (envelope-from michiel@boland.org) Received: from neerbosch.nijmegen.internl.net (neerbosch.nijmegen.internl.net [217.149.193.38]) by mx1.freebsd.org (Postfix) with ESMTP id 86F7013C455 for ; Mon, 18 Jun 2007 12:32:02 +0000 (UTC) (envelope-from michiel@boland.org) Received: from neerbosch.nijmegen.internl.net by neerbosch.nijmegen.internl.net via neerbosch.nijmegen.internl.net [217.149.193.38] with ESMTP id l5ICVwdk019232 (8.13.4/1.4); Mon, 18 Jun 2007 14:31:58 +0200 (MEST) Received: from localhost by neerbosch.nijmegen.internl.net via mboland@localhost with ESMTP id l5ICVwOa019227 (8.13.4/2.02); Mon, 18 Jun 2007 14:31:58 +0200 (MEST) X-Authentication-Warning: neerbosch.nijmegen.internl.net: mboland owned process doing -bs Date: Mon, 18 Jun 2007 14:31:58 +0200 (MEST) From: Michiel Boland To: Garrett Cooper In-Reply-To: <467467B7.8060408@u.washington.edu> Message-ID: References: <46745631.7000708@web.am> <467467B7.8060408@u.washington.edu> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed 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: Mon, 18 Jun 2007 12:32:03 -0000 On Sat, 16 Jun 2007, 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 > Well, until then, is it not possible to at least put the following patch in ports/x11-servers/xorg-server/files: --- hw/xfree86/scanpci/Makefile.in.orig 2007-06-18 13:57:05.000000000 +0200 +++ hw/xfree86/scanpci/Makefile.in 2007-06-18 13:57:58.000000000 +0200 @@ -132,7 +132,7 @@ CCDEPMODE = @CCDEPMODE@ CFB_FALSE = @CFB_FALSE@ CFB_TRUE = @CFB_TRUE@ -CFLAGS = @CFLAGS@ +CFLAGS = @CFLAGS@ -O0 COMPILEDDEFAULTFONTPATH = @COMPILEDDEFAULTFONTPATH@ COMPOSITE_FALSE = @COMPOSITE_FALSE@ COMPOSITE_TRUE = @COMPOSITE_TRUE@ That would make a lot of people very happy. In particular those running amd64.