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

From: Michiel Boland <michiel_at_boland.org>
Date: Mon, 18 Jun 2007 14:31:58 +0200 (MEST)
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
_at__at_ -132,7 +132,7 _at__at_
  CCDEPMODE = _at_CCDEPMODE_at_
  CFB_FALSE = _at_CFB_FALSE_at_
  CFB_TRUE = _at_CFB_TRUE_at_
-CFLAGS = _at_CFLAGS_at_
+CFLAGS = _at_CFLAGS_at_ -O0
  COMPILEDDEFAULTFONTPATH = _at_COMPILEDDEFAULTFONTPATH_at_
  COMPOSITE_FALSE = _at_COMPOSITE_FALSE_at_
  COMPOSITE_TRUE = _at_COMPOSITE_TRUE_at_

That would make a lot of people very happy. In particular those running 
amd64.
Received on Mon Jun 18 2007 - 10:32:02 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:12 UTC