From owner-freebsd-stable@FreeBSD.ORG Fri Mar 7 16:27:08 2008 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3E71C1065671 for ; Fri, 7 Mar 2008 16:27:08 +0000 (UTC) (envelope-from freebsd-stable@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id 8BB7E8FC18 for ; Fri, 7 Mar 2008 16:27:07 +0000 (UTC) (envelope-from freebsd-stable@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1JXfPT-0003bE-3P for freebsd-stable@freebsd.org; Fri, 07 Mar 2008 16:27:03 +0000 Received: from murdoc.gwi.net ([207.5.142.8]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 07 Mar 2008 16:27:03 +0000 Received: from jcoombs by murdoc.gwi.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 07 Mar 2008 16:27:03 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-stable@freebsd.org From: Joshua Coombs Date: Fri, 07 Mar 2008 11:26:56 -0500 Lines: 54 Message-ID: References: <1204313564l.249966l.0l@psu.edu> <7E228F3A-DFE0-4071-8694-14A012CC21E1@gothic.net.au> <1204575279l.807074l.0l@psu.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: murdoc.gwi.net User-Agent: Thunderbird 2.0.0.12 (Windows/20080213) In-Reply-To: <1204575279l.807074l.0l@psu.edu> Sender: news Subject: Re: FreeBSD 7 buildworld error X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Mar 2008 16:27:08 -0000 Derek Taylor wrote: > On Fri, Feb 29, 2008 09:50 PM Sean wrote: >> Check /etc/make.conf for CFLAGS, and if present remove it. > > This fixed the problem. > > Thank you. > > -Derek. I can confirm a failure in the same spot. What concerns me is in both my failure, and Derek's, the malloc is failing well below what limit says should be allowed. bin/cc/cc_int/../cc_tools -I/usr/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc -I/usr/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc/config -I/usr/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcclibs/include -I/usr/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcclibs/libcpp/include -I/usr/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcclibs/libdecnumber -I/usr/obj/usr/src/tmp/legacy/usr/include -c ../cc_tools/insn-attrtab.c cc1: out of memory allocating 136475392 bytes *** Error code 1 Stop in /usr/src/gnu/usr.bin/cc/cc_int. *** Error code 1 cyrix-dlc# limit cputime unlimited filesize unlimited datasize 524288 kbytes stacksize 65536 kbytes coredumpsize unlimited memoryuse unlimited vmemoryuse unlimited descriptors 957 memorylocked unlimited maxproc 478 sbsize unlimited cc1 was only trying to request 130MB, my datasize is 512MB, why did it fail? Not to mention the additional question of why is cc1 ballooning up so badly on that file, when leading up to it it's using on average 12MB per instance? Prior versions of FreeBSD never took anywhere NEAR this much RAM to build. (I also don't like the 'remove all CFLAGS' "fix" suggestion, something is broken if a buildworld can't complete on a stock kernel with sane CFLAGS. In my case, I run -Os -pipe, am I now to understand that any CFLAGS setting is inappropriate?) Joshua Coombs