From owner-freebsd-ports@FreeBSD.ORG Tue Jul 10 16:00:16 2012 Return-Path: Delivered-To: freebsd-ports@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C1369106566C for ; Tue, 10 Jul 2012 16:00:16 +0000 (UTC) (envelope-from dougb@dougbarton.us) Received: from mail2.fluidhosting.com (mx22.fluidhosting.com [204.14.89.5]) by mx1.freebsd.org (Postfix) with ESMTP id 6AE128FC16 for ; Tue, 10 Jul 2012 16:00:16 +0000 (UTC) Received: (qmail 7115 invoked by uid 399); 10 Jul 2012 16:00:06 -0000 Received: from unknown (HELO opti.dougb.net) (dougb@dougbarton.us@12.207.105.210) by mail2.fluidhosting.com with ESMTPAM; 10 Jul 2012 16:00:06 -0000 X-Originating-IP: 12.207.105.210 X-Sender: dougb@dougbarton.us Message-ID: <4FFC5189.1000102@dougbarton.us> Date: Tue, 10 Jul 2012 09:00:09 -0700 From: Doug Barton Organization: http://SupersetSolutions.com/ User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:13.0) Gecko/20120621 Thunderbird/13.0.1 MIME-Version: 1.0 To: Gerald Pfeifer References: <4FD004F7.6090401@FreeBSD.org> <4FD37AD7.7010304@FreeBSD.org> In-Reply-To: <4FD37AD7.7010304@FreeBSD.org> X-Enigmail-Version: 1.4.2 OpenPGP: id=1A1ABC84 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-ports@FreeBSD.org Subject: Re: lang/gcc46 building stuff in $TMPDIR 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: Tue, 10 Jul 2012 16:00:16 -0000 On 06/09/2012 09:33, Doug Barton wrote: > On 06/06/2012 23:15, Gerald Pfeifer wrote: >> On Wed, 6 Jun 2012, Doug Barton wrote: >>> I purposely have a tiny /tmp, and while building gcc46 today it >>> filled up with "stuff" from the gcc build. Is there any way to >>> modify this process so that it keeps everything in WRKDIR? >> >> GCC in general should put all its build stuff in WRKDIR and only >> stash really temporary things (coming from an individual invocation >> of GCC such as assembly files if any) in /tmp for short periods of >> time. >> >> I am not aware of anything we could do beyond what I already have >> in the port, but then this is the first time I hear about this, in >> the context of FreeBSD and also upstream. >> >> Are you saying you actually noticed some leftovers in /tmp, or that >> there "just" has been more at certain points in time than you would >> expect? > > I finally had time to watch this closely, and found the culprit(s). > While building the port creates a lot of files in /tmp (I think it's > actually $TMP, not $TMPDIR). A lot of them are *.s files, most of which > are small, but one of which grew to over 64M, which is what caused my > build to fail. It also creates a variety of other files, including .o, > .c, .ld, .le, .zip, etc. > > The java OPTION also creates some pretty big jar directories, I had one > grow to 49M, which didn't crash my build, but might blow up someone with > a smaller /tmp. > > My suggestion would be to create a directory in $WRKDIR and assign $TMP > (or whatever the right envar is) to it. Just tried building the latest, same error. Did I misunderstand that something was supposed to be different? Doug -- If you're never wrong, you're not trying hard enough