From owner-freebsd-ports@FreeBSD.ORG Wed May 21 06:10:44 2014 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 316DC7F9 for ; Wed, 21 May 2014 06:10:44 +0000 (UTC) Received: from mx.nsu.ru (mx.nsu.ru [84.237.50.39]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id CE21D2D6A for ; Wed, 21 May 2014 06:10:43 +0000 (UTC) Received: from regency.nsu.ru ([193.124.210.26]) by mx.nsu.ru with esmtp (Exim 4.72) (envelope-from ) id 1WmzjT-0000Ul-2R; Wed, 21 May 2014 13:10:36 +0700 Received: from regency.nsu.ru (localhost [127.0.0.1]) by regency.nsu.ru (8.14.2/8.14.2) with ESMTP id s4L6AKEC051815; Wed, 21 May 2014 13:10:30 +0700 (NOVT) (envelope-from danfe@regency.nsu.ru) Received: (from danfe@localhost) by regency.nsu.ru (8.14.2/8.14.2/Submit) id s4L6AE4A051772; Wed, 21 May 2014 13:10:14 +0700 (NOVT) (envelope-from danfe) Date: Wed, 21 May 2014 13:10:14 +0700 From: Alexey Dokuchaev To: Marko Cupa?? Subject: Re: lang/gcc and tmpfs no space let on device Message-ID: <20140521061014.GA47499@regency.nsu.ru> References: <20140516144309.1527d24cdfdcbb1b7bcfea25@mimar.rs> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20140516144309.1527d24cdfdcbb1b7bcfea25@mimar.rs> User-Agent: Mutt/1.4.2.1i X-KLMS-Rule-ID: 1 X-KLMS-Message-Action: clean X-KLMS-AntiSpam-Lua-Profiles: 61448 [May 21 2014] X-KLMS-AntiSpam-Version: 5.3.6 X-KLMS-AntiSpam-Envelope-From: danfe@regency.nsu.ru X-KLMS-AntiSpam-Rate: 0 X-KLMS-AntiSpam-Status: not_detected X-KLMS-AntiSpam-Method: none X-KLMS-AntiSpam-Moebius-Timestamps: 2938391, 2938421, 2938413 X-KLMS-AntiSpam-Interceptor-Info: scan successful X-KLMS-AntiVirus: Kaspersky Security 8.0 for Linux Mail Server 8.0.0.455, not checked X-KLMS-AntiVirus-Status: NotChecked: not checked, skipped Cc: freebsd-ports@freebsd.org 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: Wed, 21 May 2014 06:10:44 -0000 On Fri, May 16, 2014 at 02:43:09PM +0200, 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.... > [...] > > I am using 128mb tmpfs file system mounted at /tmp: > tmpfs /tmp tmpfs rw,size=128m,mode=1777 0 0 tmpfs-backed WRKDIR is certainly possible with lang/gcc* ports, albeit I'm not sure if 128MB is enough. However, normally I never limit tmpfs size, but try to provide sufficient swap space. That said, I observed similar "no space left on device" errors even on a box with 16GB of RAM when building lang/gcc *with default options*, which includes JAVA. > Does anyone know how big /tmp do I need to have in order to compile > lang/gcc successfully? I always patch all lang/gcc* ports locally like this: -OPTIONS_DEFAULT_i386= JAVA -OPTIONS_DEFAULT_amd64= JAVA +#OPTIONS_DEFAULT_i386= JAVA +#OPTIONS_DEFAULT_amd64= JAVA It allows to use tmpfs-backed storage of sane sizes to build them. I once wondered why is JAVA in the defaults anyways; someone gave me the reason, which I cannot remember right now. ./danfe