Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 May 2014 15:40:25 +0200
From:      Marko =?UTF-8?B?Q3VwYcSH?= <marko.cupac@mimar.rs>
To:        freebsd-ports@freebsd.org
Subject:   Re: lang/gcc and tmpfs no space let on device
Message-ID:  <20140516154025.16da4d76ab932fa4b4b95f9c@mimar.rs>
In-Reply-To: <20140516131121.GF55053@albert.catwhisker.org>
References:  <20140516144309.1527d24cdfdcbb1b7bcfea25@mimar.rs> <20140516131121.GF55053@albert.catwhisker.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 16 May 2014 06:11:21 -0700
David Wolfskill <david@catwhisker.org> wrote:

> * I've been using 2G tmpfs for some time without issue.
> * The above error messages may be misleading: it is *possible* that
>   the actual complaint is not lack of space, but lack of available
>   inodes -- you can't tell from the message alone.  "df -i /tmp" is
>   likely to be helpful in diagosing what is actually the problem.

It is not related to inodes, confirmed by appending output of df -ih to
a file by means of cron job that runs every minute:

tmpfs         128M    388K    128M     0%      39  459k    0%   /tmp
tmpfs         128M    468K    128M     0%      41  459k    0%   /tmp
tmpfs         128M    452K    128M     0%      41  459k    0%   /tmp
tmpfs         128M    476K    128M     0%      57  459k    0%   /tmp
tmpfs         128M    480K    128M     0%      45  459k    0%   /tmp
tmpfs         128M    504K    128M     0%      46  459k    0%   /tmp
tmpfs         128M     17M    111M    13%    2.5k  456k    1%   /tmp
tmpfs         128M     18M    110M    14%      50  459k    0%   /tmp
tmpfs         128M     39M     89M    30%      72  459k    0%   /tmp

Somewhere in 10th minute it fills up /tmp which breaks building,
and whatever build process created in /tmp is removed.

This is the point of failure:
libtool: compile:  /usr/ports/lang/gcc/work/build/./gcc/gcj
-B/usr/ports/lang/gcc/work/build/x86_64-portbld-freebsd10.0/libjava/
-B/usr/ports/lang/gcc/work/build/./gcc/
-B/usr/local/x86_64-portbld-freebsd10.0/bin/
-B/usr/local/x86_64-portbld-freebsd10.0/lib/
-isystem /usr/local/x86_64-portbld-freebsd10.0/include
-isystem /usr/local/x86_64-portbld-freebsd10.0/sys-include
-fomit-frame-pointer -Usun -fclasspath=3D
-fbootclasspath=3D../.././../gcc-4.7.3/libjava/classpath/lib
--encoding=3DUTF-8 -Wno-deprecated -fbootstrap-classes -g -O2 -c
-fsource-filename=3D/usr/ports/lang/gcc/work/build/x86_64-portbld-freebsd=
10.0/libjava/classpath/lib/classes
-MT javax/management.lo -MD -MP -MF javax/management.deps
@javax/management.list  -fPIC -o javax/.libs/management.o jc1: fatal
error: error writing to /tmp/ccmi9d4D.s: No space left on device

I'll try to increase /tmp to 512Mb and see what happens.
--=20
Marko Cupa=C4=87



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140516154025.16da4d76ab932fa4b4b95f9c>