Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Dec 2017 22:57:17 +0000
From:      Carmel NY <carmel_ny@outlook.com>
To:        'FreeBSD' <freebsd-questions@freebsd.org>
Subject:   RE: devel/llvm40 fails to build
Message-ID:  <BN6PR2001MB1730F5A47DE62214C0F6629F80300@BN6PR2001MB1730.namprd20.prod.outlook.com>
In-Reply-To: <20171208212423.60ce7e09.freebsd@edvax.de>
References:  <BN6PR2001MB17300D5D75105732D822C64580300@BN6PR2001MB1730.namprd20.prod.outlook.com> <20171208212423.60ce7e09.freebsd@edvax.de>

next in thread | previous in thread | raw e-mail | index | archive | help
--=-=IowRvDtvXJi64h=-=
Content-Type: text/plain;
	charset="utf-8"
Content-Transfer-Encoding: quoted-printable

On Friday, December 8, 2017 3:24 PM, Polytropon stated:
> On Fri, 8 Dec 2017 20:05:09 +0000, Carmel NY wrote:
> > I am unable to build the "devel/llvm40" port with poudriere. It ends
> > with this error message:
> >
> > /usr/bin/ld: final link failed: No space left on device
> > c++: error: linker command failed with exit code 1 (use -v to see
> > c++invocation)
> > ninja: build stopped: subcommand failed.
> > *** Error code 1
> >
> > Stop.
> > make: stopped in /usr/ports/devel/llvm40 =3D>> Cleaning up wrkdir =3D=
=3D=3D>
> > Cleaning for llvm40-4.0.1_5 build of devel/llvm40 | llvm40-4.0.1_5
> > ended at Fri Dec  8 14:30:36 EST 2017 build time: 01:01:56 !!! build
> > failure encountered !!!
> >
> > Is there anything I can do to correct this situation?
>=20
> Check the output of "df -h", maybe additionally during the build.
> Find out where "No space left on device" happens, i. e., which partition =
has
> insufficient space for ld to create working files or to write the result =
to. Or are
> you using a memory disk of insufficient (fixed) size? Or a quota?

Ignore my first reply. I ran poudriere again to build the "llvm40" port. Us=
ing two screens, I was able to keep track of what was happening.

This is the output of "df -h" when the problem started:

~ $ df -h
Filesystem                                                       Size    Us=
ed   Avail Capacity  Mounted on
zroot/ROOT/default                                               895G    3.=
6G    892G     0%    /
devfs                                                            1.0K    1.=
0K      0B   100%    /dev
zroot/tmp                                                        892G    17=
6K    892G     0%    /tmp
zroot/usr/home                                                   892G    12=
8M    892G     0%    /usr/home
zroot/poudriere/jails/11amd64                                    893G    95=
7M    892G     0%    /usr/local/poudriere/jails/11amd64
zroot/poudriere/ports/default                                    892G    84=
2M    892G     0%    /usr/local/poudriere/ports/default
zroot/usr/ports                                                  893G    1.=
0G    892G     0%    /usr/ports
zroot/usr/src                                                    892G     8=
8K    892G     0%    /usr/src
zroot/var/audit                                                  892G     8=
8K    892G     0%    /var/audit
zroot/var/crash                                                  892G     8=
8K    892G     0%    /var/crash
zroot/var/log                                                    892G     1=
1M    892G     0%    /var/log
zroot/var/mail                                                   892G    27=
2M    892G     0%    /var/mail
zroot/var/tmp                                                    892G     9=
2K    892G     0%    /var/tmp
zroot                                                            892G     8=
8K    892G     0%    /zroot
zroot/poudriere                                                  892G     8=
8K    892G     0%    /zroot/poudriere
zroot/poudriere/jails                                            892G     8=
8K    892G     0%    /zroot/poudriere/jails
zroot/poudriere/ports                                            892G     8=
8K    892G     0%    /zroot/poudriere/ports
map -hosts                                                         0B      =
0B      0B   100%    /net
map -media                                                         0B      =
0B      0B   100%    /media
zroot/poudriere/jails/11amd64-default-ref                        893G    95=
7M    892G     0%    /usr/local/poudriere/data/.m/11amd64-default/ref
/usr/local/poudriere/jails/11amd64/rescue                        893G    95=
7M    892G     0%    /usr/local/poudriere/data/.m/11amd64-default/ref/rescue
/usr/local/poudriere/jails/11amd64/usr/src                       893G    95=
7M    892G     0%    /usr/local/poudriere/data/.m/11amd64-default/ref/usr/s=
rc
devfs                                                            1.0K    1.=
0K      0B   100%    /usr/local/poudriere/data/.m/11amd64-default/ref/dev
fdescfs                                                          1.0K    1.=
0K      0B   100%    /usr/local/poudriere/data/.m/11amd64-default/ref/dev/fd
procfs                                                           4.0K    4.=
0K      0B   100%    /usr/local/poudriere/data/.m/11amd64-default/ref/proc
linprocfs                                                        4.0K    4.=
0K      0B   100%    /usr/local/poudriere/data/.m/11amd64-default/ref/compa=
t/linux/proc
tmpfs                                                            1.0G     1=
8M    1.0G     2%    /usr/local/poudriere/data/.m/11amd64-default/ref/.p
/var/cache/ccache                                                895G    3.=
6G    892G     0%    /usr/local/poudriere/data/.m/11amd64-default/ref/root/=
.ccache
tmpfs                                                             19M    4.=
0K     19M     0%    /usr/local/poudriere/data/.m/11amd64-default/ref/wrkdi=
rs
/usr/local/poudriere/ports/default                               892G    84=
2M    892G     0%    /usr/local/poudriere/data/.m/11amd64-default/ref/usr/p=
orts
/usr/local/poudriere/data/packages/11amd64-default/.building     895G    3.=
6G    892G     0%    /usr/local/poudriere/data/.m/11amd64-default/ref/packa=
ges
/usr/ports/distfiles                                             893G    1.=
0G    892G     0%    /usr/local/poudriere/data/.m/11amd64-default/ref/distf=
iles
tmpfs                                                             19M    21=
6K     19M     1%    /usr/local/poudriere/data/.m/11amd64-default/ref/var/d=
b/ports
zroot/poudriere/jails/11amd64-default-ref/01                     893G    1.=
5G    892G     0%    /usr/local/poudriere/data/.m/11amd64-default/01
/usr/local/poudriere/data/.m/11amd64-default/ref/rescue          893G    95=
7M    892G     0%    /usr/local/poudriere/data/.m/11amd64-default/01/rescue
/usr/local/poudriere/data/.m/11amd64-default/ref/usr/src         893G    95=
7M    892G     0%    /usr/local/poudriere/data/.m/11amd64-default/01/usr/src
devfs                                                            1.0K    1.=
0K      0B   100%    /usr/local/poudriere/data/.m/11amd64-default/01/dev
fdescfs                                                          1.0K    1.=
0K      0B   100%    /usr/local/poudriere/data/.m/11amd64-default/01/dev/fd
procfs                                                           4.0K    4.=
0K      0B   100%    /usr/local/poudriere/data/.m/11amd64-default/01/proc
linprocfs                                                        4.0K    4.=
0K      0B   100%    /usr/local/poudriere/data/.m/11amd64-default/01/compat=
/linux/proc
tmpfs                                                            1.0G    4.=
0K    1.0G     0%    /usr/local/poudriere/data/.m/11amd64-default/01/.p
/var/cache/ccache                                                895G    3.=
6G    892G     0%    /usr/local/poudriere/data/.m/11amd64-default/01/root/.=
ccache
tmpfs                                                            2.1G    2.=
0G     19M    99%    /usr/local/poudriere/data/.m/11amd64-default/01/wrkdirs
/usr/local/poudriere/ports/default                               892G    84=
2M    892G     0%    /usr/local/poudriere/data/.m/11amd64-default/01/usr/po=
rts
/usr/local/poudriere/data/packages/11amd64-default/.building     895G    3.=
6G    892G     0%    /usr/local/poudriere/data/.m/11amd64-default/01/packag=
es
/usr/ports/distfiles                                             893G    1.=
0G    892G     0%    /usr/local/poudriere/data/.m/11amd64-default/01/distfi=
les
/usr/local/poudriere/data/.m/11amd64-default/ref/var/db/ports     19M    21=
6K     19M     1%    /usr/local/poudriere/data/.m/11amd64-default/01/var/db=
/ports

I believe this to be the problem:

tmpfs                                                            2.1G    2.=
0G     19M    99%    /usr/local/poudriere/data/.m/11amd64-default/01/wrkdirs

Once it hit 99%, I started to see this message on the other screen:

Swap_pager: out of swap space
Swap_pager_getswapspace(16): failed
Dec 8 17:25:13 scorpio kernel: pid 41663 (clamd), was killed: out of swap s=
pace.

This is the /etc/fstab file, if it matters:
# Device                Mountpoint      FStype  Options         Dump    Pas=
s#
/dev/ada0p2             none    swap    sw              0       0

This is what I think is the relative portion of the /usr/local/etc/poudrier=
e.conf file:

# When building packages, a memory device can be used to speedup the build.
# Only one of MFSSIZE or USE_TMPFS is supported. TMPFS is generally faster
# and will expand to the needed amount of RAM. MFS is a slower since it
# uses UFS and several abstraction layers.

# If set WRKDIRPREFIX will be mdmfs of the given size (mM or gG)
#MFSSIZE=3D4G

# Use tmpfs(5)
# This can be a space-separated list of options:
# wrkdir    - Use tmpfs(5) for port building WRKDIRPREFIX
# data      - Use tmpfs(5) for poudriere cache/temp build data
# localbase - Use tmpfs(5) for LOCALBASE (installing ports for packaging/te=
sting)
# all       - Run the entire build in memory, including builder jails.
# yes       - Enables tmpfs(5) for wrkdir and data
# no        - Disable use of tmpfs(5)
# EXAMPLE: USE_TMPFS=3D"wrkdir data"
USE_TMPFS=3Dyes

# How much memory to limit tmpfs size to for *each builder* in GiB
# (default: none)
#TMPFS_LIMIT=3D8

--=20
Carmel

--=-=IowRvDtvXJi64h=-=
Content-Transfer-Encoding: 7bit
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----

iQEzBAABCAAdFiEEh3rFs7ZCOM581rwKjsagALPkYOsFAlorGL0ACgkQjsagALPk
YOv6pAf/YfzoFM1bYgaMWRg4atMFkWOWhXkxAkwSl36oTlls++Y2OyPx+qCIYZ4J
7jFr1SjrprqQB/aGdresZadIsVZmfZhY1gks+Ux2RrW7Zl09h2todJ/716bGWiVt
K/vFYA/FXEkFntVo8+rDIFXLmN/DEUum5zd5p38Pc5ZbIz11Mjn5PfXoBaL7PMCq
/i1koIkrf/9+hjI0+WbSPv+j60LJj9QUi3xESarovM1ZVclp/nHdLhjrGGwv7TI2
aPu0JnNjJ7JOzOMmS5v9EVZ66pdP2Z3dbXKYUpuBeiy03K4HZwI9KcOdDLPjkWco
Iq9WjhdQG5nK2U4xPjYbOjy41XWkvQ==
=IOPL
-----END PGP SIGNATURE-----


--=-=IowRvDtvXJi64h=-=--



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