From owner-freebsd-ports@FreeBSD.ORG Wed Dec 29 23:08:15 2010 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DD1FD1065674 for ; Wed, 29 Dec 2010 23:08:14 +0000 (UTC) (envelope-from freebsd-ports@herveybayaustralia.com.au) Received: from mail.unitedinsong.com.au (mail.unitedinsong.com.au [150.101.178.33]) by mx1.freebsd.org (Postfix) with ESMTP id 548708FC0C for ; Wed, 29 Dec 2010 23:08:14 +0000 (UTC) Received: from laptop1.herveybayaustralia.com.au (laptop1.herveybayaustralia.com.au [192.168.0.193]) by mail.unitedinsong.com.au (Postfix) with ESMTP id B2BB65C21 for ; Thu, 30 Dec 2010 09:13:07 +1000 (EST) Message-ID: <4D1BBE7F.5060202@herveybayaustralia.com.au> Date: Thu, 30 Dec 2010 09:04:31 +1000 From: Da Rock User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.1.16) Gecko/20101227 Thunderbird/3.0.11 ThunderBrowse/3.3.4 MIME-Version: 1.0 To: freebsd-ports@freebsd.org References: <4D1B044F.6050903@herveybayaustralia.com.au> <86fwtgob5w.fsf@gmail.com> In-Reply-To: <86fwtgob5w.fsf@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: libxul build hit the roof! X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Dec 2010 23:08:15 -0000 On 12/30/10 01:23, Anonymous wrote: > Da Rock writes: > > >> I was doing an update of my system, and I hit these errors and skipped >> builds all over the place; so I've been eliminating them one by one >> and making the skipped list smaller. >> >> In the process of these investigations I noticed that my system >> practically froze several times and I spotted multiple pfaults through >> top. >> > Try building with -Wl,--no-keep-memory in CFLAGS/LDFLAGS. My guess is > that you don't have enough memory to keep linking process from being > swapped out. > > >> I also ran a lone run of just libxul as it was one in the list >> with an error: new compiler error. >> >> I then basically shut every app I was running down and ran it again >> with just top showing. I found that at least one part hit the roof of >> my system, with nsCharacter... something or rather running at 1430M+ >> in swap, and 520M+ resident when compiling. >> >> Does anyone else think it might be wise to put a warning during build >> saying that this could take over 2G+ of memory to compile, and rebuild >> with no apps running if it fails? >> > No need to kill (inactive) apps, they'd be swapped out during build. > I apologise, I should have been more specific. I have a system with 1G RAM, and 2G swap. This I would say is average, but I dare say there'd be others out there with less. It also runs as a desktop system. I got it worked out in the end, but it still took 2G+ memory to build; so my suggestion is a warning to EU in the make process that this could take a lot of memory to build, and some suggestions as to how to prevent or workaround the problem so they don't go whining on the list about it being broken. There are other ports out there with messages about drive space, why not memory?