From owner-freebsd-stable@FreeBSD.ORG Fri Mar 7 18:37:29 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 207ED106566B for ; Fri, 7 Mar 2008 18:37:29 +0000 (UTC) (envelope-from erikt@midgard.homeip.net) Received: from ch-smtp02.sth.basefarm.net (ch-smtp02.sth.basefarm.net [80.76.149.213]) by mx1.freebsd.org (Postfix) with ESMTP id 93B928FC15 for ; Fri, 7 Mar 2008 18:37:28 +0000 (UTC) (envelope-from erikt@midgard.homeip.net) Received: from c83-253-25-183.bredband.comhem.se ([83.253.25.183]:62326 helo=falcon.midgard.homeip.net) by ch-smtp02.sth.basefarm.net with esmtp (Exim 4.68) (envelope-from ) id 1JXhRe-0001hB-9b for freebsd-stable@freebsd.org; Fri, 07 Mar 2008 19:37:27 +0100 Received: (qmail 71054 invoked from network); 7 Mar 2008 19:37:24 +0100 Received: from owl.midgard.homeip.net (10.1.5.7) by falcon.midgard.homeip.net with ESMTP; 7 Mar 2008 19:37:24 +0100 Received: (qmail 79895 invoked by uid 1001); 7 Mar 2008 19:37:24 +0100 Date: Fri, 7 Mar 2008 19:37:24 +0100 From: Erik Trulsson To: Jason Evans Message-ID: <20080307183724.GA79858@owl.midgard.homeip.net> Mail-Followup-To: Jason Evans , Joshua Coombs , freebsd-stable@freebsd.org References: <1204313564l.249966l.0l@psu.edu> <7E228F3A-DFE0-4071-8694-14A012CC21E1@gothic.net.au> <1204575279l.807074l.0l@psu.edu> <47D1735D.60007@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <47D1735D.60007@FreeBSD.org> User-Agent: Mutt/1.5.17 (2007-11-01) X-Originating-IP: 83.253.25.183 X-Scan-Result: No virus found in message 1JXhRe-0001hB-9b. X-Scan-Signature: ch-smtp02.sth.basefarm.net 1JXhRe-0001hB-9b dbc3a3505d9738b75528178f902ab285 Cc: freebsd-stable@freebsd.org, Joshua Coombs 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 18:37:29 -0000 On Fri, Mar 07, 2008 at 08:54:53AM -0800, Jason Evans wrote: > Joshua Coombs wrote: >> 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? > > It looks to me like gcc is trying to allocate a single 130MiB object, but > you don't say anything about how much memory is already in use. It may > well be that there are no remaining places in the memory map to place such > a large object. And that particular file (insn-attrtab.c, which is a machine-generated part of gcc itself,) is known to require much more memory to compile than most other source files. If gcc runs out of memory anywhere during a buildworld it is most likely when compiling that particular file. -- Erik Trulsson ertr1013@student.uu.se