Date: Mon, 18 Jun 2007 10:04:32 -0700 (PDT) From: youshi10@u.washington.edu To: current@freebsd.org Subject: Re: [AMD64] X.org build eats all the memory when compiled with GCC 4.2 (fwd) Message-ID: <Pine.LNX.4.43.0706181004320.1900@hymn01.u.washington.edu>
next in thread | raw e-mail | index | archive | help
---------- Forwarded message ---------- Date: Mon, 18 Jun 2007 08:33:00 -0700 From: Garrett Cooper <youshi10@u.washington.edu> To: Daniel Eischen <deischen@freebsd.org> Subject: Re: [AMD64] X.org build eats all the memory when compiled with GCC 4.2 Daniel Eischen wrote: > On Mon, 18 Jun 2007, Michiel Boland wrote: > >> 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: > > [ ... ] > >> That would make a lot of people very happy. In particular those running >> amd64. > > Yes, it happens on i386 too. I think requiring more than 1GB of swap > is ridiculous. Please patch gcc or the port. > Patching gcc would be the better idea, but if there's a bug with the current patch that was ported from 4.3.0 to 4.2.0 and will be in 4.2.1, that will break lots of compilations.. I would search for gcc 4.2 quadratic -- it's a fairly long thread on GNU's bugzilla. -Garrett --------- Forgot to CC the list. -Garrett
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.4.43.0706181004320.1900>