From owner-freebsd-ports@FreeBSD.ORG Fri May 16 13:09:42 2014 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 9FDF1289 for ; Fri, 16 May 2014 13:09:42 +0000 (UTC) Received: from ratatosk.b1t.name (ratatosk.b1t.name [46.150.100.6]) by mx1.freebsd.org (Postfix) with ESMTP id 597342CA7 for ; Fri, 16 May 2014 13:09:41 +0000 (UTC) Received: from ar1l0u.maxima.local (mau.donbass.com [92.242.127.250]) by ratatosk.b1t.name (Postfix) with ESMTPSA id E68B33DC; Fri, 16 May 2014 16:09:38 +0300 (EEST) Message-ID: <53760E12.3010108@b1t.name> Date: Fri, 16 May 2014 16:09:38 +0300 From: Volodymyr Kostyrko User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 To: =?UTF-8?B?TWFya28gQ3VwYcSH?= , freebsd-ports@freebsd.org Subject: Re: lang/gcc and tmpfs no space let on device References: <20140516144309.1527d24cdfdcbb1b7bcfea25@mimar.rs> In-Reply-To: <20140516144309.1527d24cdfdcbb1b7bcfea25@mimar.rs> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 May 2014 13:09:42 -0000 16.05.2014 15:43, Marko Cupać wrote: > Hi, > > I am using 10.0-RELEASE-p3 amd64, and am trying to build lang/gcc as a > dependency for emulators/virtualbox-ose. Building fails giving the > following messages: > > jc1: fatal error: error writing to /tmp/ccwgXZ8m.s: No space left on > device compilation terminated. > gmake[5]: *** [javax/crypto/spec.lo] Error 1 > gmake[5]: *** Waiting for unfinished jobs.... > jc1: fatal error: error writing to /tmp/ccaXjTvk.s: No space left on > device compilation terminated. > gmake[5]: *** [java/util/zip.lo] Error 1 > jc1: fatal error: error writing to /tmp/cc9iMz48.s: No space left on > device compilation terminated. > > I am using 128mb tmpfs file system mounted at /tmp: > tmpfs /tmp tmpfs rw,size=128m,mode=1777 0 0 > > Does anyone know how big /tmp do I need to have in order to compile > lang/gcc successfully? AFAIK the defaults for on-disk /tmp was something like 1G not so long ago. On the other hand making /tmp small doesn't help anything. On all my machines I'm trying to allocate enough swap (at least 4G) and I never had nailed /tmp fs size to relatively small values. Moreover, I always set WRKDIRPREFIX to /tmp/ports so all port building will go to /tmp resulting in faster port builds. I'm using portmaster that has one neat feature to build required port one by one clearing build directory after each port was built so I had never ran into /tmp fs size issues except when building OpenOffice. -- Sphinx of black quartz, judge my vow.