Re: [AMD64] X.org build eats all the memory when compiled with GCC 4.2



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
_______________________________________________
freebsd-current@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: [AMD64] X.org build eats all the memory when compiled with GCC 4.2
    ... or -O option it eats all available memory and then gets killed by the ... Without -O/O2 option compile works just as expected. ... It's a known bug that isn't going to be fixed until gcc 4.2.1. ...
    (freebsd-current)
  • SSE vs. stack alignment vs. pthread
    ... I'm not sure yet if this is an application bug, a gcc ... audacity is a threaded program. ... suspicious or low-level enough to affect the stack alignment. ...
    (freebsd-hackers)
  • kernel + gcc 4.1 = several problems
    ... Could you reproduce the bug by the new kernel, ... This is with the GCC recompile, so it's not a distro problem. ... using this compiler, and will report back if it ...
    (Linux-Kernel)
  • Re: Definition of BUG on x86
    ... Please forward the problem to the appropriate GCC list in any ... it has always been ud2a on x86. ... there will be no BUG reported. ... the CPU that encountered the BUGwill burn CPU ...
    (Linux-Kernel)
  • Re: [Bugme-new] [Bug 13012] New: 2.6.28.9 causes init to segfault on Debian etch; 2.6.28.8 OK
    ... before reporting this bug, but this might be the best I can do for the next few ... The system in question is a Debian etch system which has a static /dev (no ... the resulting kernel works again. ... I have not yet had a chance to try vanilla gcc 4.1.2. ...
    (Linux-Kernel)