From owner-freebsd-current@FreeBSD.ORG Sun Jun 17 09:31:10 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 5BAD416A473 for ; Sun, 17 Jun 2007 09:31:10 +0000 (UTC) (envelope-from casper@web.am) Received: from mx1.web.am (mx1.web.am [217.113.0.68]) by mx1.freebsd.org (Postfix) with ESMTP id C6C1C13C4AE for ; Sun, 17 Jun 2007 09:31:09 +0000 (UTC) (envelope-from casper@web.am) Received: from antispam (localhost.web.am [127.0.0.1]) by localhost (Postfix) with ESMTP id D25E961C2F for ; Sun, 17 Jun 2007 14:30:20 +0500 (AMST) Received: from localhost (localhost.web.am [127.0.0.1]) by localhost (Postfix) with SMTP id F00A661C18; Sun, 17 Jun 2007 14:30:19 +0500 (AMST) Received: from aldan.web.am (unknown [217.113.1.123]) by mx1.web.am (Postfix) with ESMTP id 9468F61C3A; Sun, 17 Jun 2007 14:30:18 +0500 (AMST) Message-ID: <4674FF55.4040203@web.am> Date: Sun, 17 Jun 2007 14:31:01 +0500 From: Gaspar Chilingarov User-Agent: Thunderbird 2.0.0.0 (X11/20070613) MIME-Version: 1.0 To: Claus Guttesen References: <46745631.7000708@web.am> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on mx1.web.am X-Spam-Status: No, hits=0.0 required=7.5 tests=none autolearn=no version=2.60 X-Spam-Level: Cc: freebsd-current@freebsd.org 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: Sun, 17 Jun 2007 09:31:10 -0000 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. > Thanks ;) It was easier to just turn off optimization for that directory -- it that case gcc will use only ~100mb of memory. -- Gaspar Chilingarov System Administrator, Network security consulting t +37493 419763 (mob) i 63174784 e nm@web.am w http://zanazan.am/