From owner-freebsd-current@FreeBSD.ORG Mon Jun 18 17:06:42 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 5C6DC16A41F; Mon, 18 Jun 2007 17:06:42 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.freebsd.org (Postfix) with ESMTP id 411C013C489; Mon, 18 Jun 2007 17:06:42 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (elvis.mu.org [192.203.228.196]) by elvis.mu.org (Postfix) with ESMTP id A2BAC1A4D83; Mon, 18 Jun 2007 10:05:56 -0700 (PDT) Received: from rot13.obsecurity.org (rot13.obsecurity.org [192.168.1.5]) by obsecurity.dyndns.org (Postfix) with ESMTP id 8F75E51264; Mon, 18 Jun 2007 13:06:41 -0400 (EDT) Received: by rot13.obsecurity.org (Postfix, from userid 1001) id 82005BE65; Mon, 18 Jun 2007 13:06:41 -0400 (EDT) Date: Mon, 18 Jun 2007 13:06:41 -0400 From: Kris Kennaway To: Daniel Eischen Message-ID: <20070618170641.GB73978@rot13.obsecurity.org> References: <46745631.7000708@web.am> <467467B7.8060408@u.washington.edu> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="WIyZ46R2i8wDzkSu" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i Cc: Michiel Boland , Garrett Cooper , 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 17:06:42 -0000 --WIyZ46R2i8wDzkSu Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jun 18, 2007 at 08:40:30AM -0400, Daniel Eischen wrote: > On Mon, 18 Jun 2007, Michiel Boland wrote: >=20 > >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=20 > >>>>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= =20 > >in ports/x11-servers/xorg-server/files: >=20 > [ ... ] >=20 > >That would make a lot of people very happy. In particular those running= =20 > >amd64. >=20 > Yes, it happens on i386 too. I think requiring more than 1GB of swap > is ridiculous. Please patch gcc or the port. You can test the new gcc snapshot here: http://people.freebsd.org/~kan/contrib-gcc421.tar.gz Just extract it over the top of /usr/src and rebuild world. Please confirm that it helps with this problem. Kris --WIyZ46R2i8wDzkSu Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.3 (FreeBSD) iD8DBQFGdruhWry0BWjoQKURAqxwAKCHExwJzWOLMh0HiOG7Rm3QiReAvgCgtp+p 6XvBzIYZPG/M3M4n3ydXXQI= =e+kZ -----END PGP SIGNATURE----- --WIyZ46R2i8wDzkSu--