devel/llvm40 fails to build

Carmel NY carmel_ny at outlook.com
Fri Dec 8 22:57:34 UTC 2017


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 =>> Cleaning up wrkdir ===>
> > 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?
> 
> 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. Using 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    Used   Avail Capacity  Mounted on
zroot/ROOT/default                                               895G    3.6G    892G     0%    /
devfs                                                            1.0K    1.0K      0B   100%    /dev
zroot/tmp                                                        892G    176K    892G     0%    /tmp
zroot/usr/home                                                   892G    128M    892G     0%    /usr/home
zroot/poudriere/jails/11amd64                                    893G    957M    892G     0%    /usr/local/poudriere/jails/11amd64
zroot/poudriere/ports/default                                    892G    842M    892G     0%    /usr/local/poudriere/ports/default
zroot/usr/ports                                                  893G    1.0G    892G     0%    /usr/ports
zroot/usr/src                                                    892G     88K    892G     0%    /usr/src
zroot/var/audit                                                  892G     88K    892G     0%    /var/audit
zroot/var/crash                                                  892G     88K    892G     0%    /var/crash
zroot/var/log                                                    892G     11M    892G     0%    /var/log
zroot/var/mail                                                   892G    272M    892G     0%    /var/mail
zroot/var/tmp                                                    892G     92K    892G     0%    /var/tmp
zroot                                                            892G     88K    892G     0%    /zroot
zroot/poudriere                                                  892G     88K    892G     0%    /zroot/poudriere
zroot/poudriere/jails                                            892G     88K    892G     0%    /zroot/poudriere/jails
zroot/poudriere/ports                                            892G     88K    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    957M    892G     0%    /usr/local/poudriere/data/.m/11amd64-default/ref
/usr/local/poudriere/jails/11amd64/rescue                        893G    957M    892G     0%    /usr/local/poudriere/data/.m/11amd64-default/ref/rescue
/usr/local/poudriere/jails/11amd64/usr/src                       893G    957M    892G     0%    /usr/local/poudriere/data/.m/11amd64-default/ref/usr/src
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/compat/linux/proc
tmpfs                                                            1.0G     18M    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/wrkdirs
/usr/local/poudriere/ports/default                               892G    842M    892G     0%    /usr/local/poudriere/data/.m/11amd64-default/ref/usr/ports
/usr/local/poudriere/data/packages/11amd64-default/.building     895G    3.6G    892G     0%    /usr/local/poudriere/data/.m/11amd64-default/ref/packages
/usr/ports/distfiles                                             893G    1.0G    892G     0%    /usr/local/poudriere/data/.m/11amd64-default/ref/distfiles
tmpfs                                                             19M    216K     19M     1%    /usr/local/poudriere/data/.m/11amd64-default/ref/var/db/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    957M    892G     0%    /usr/local/poudriere/data/.m/11amd64-default/01/rescue
/usr/local/poudriere/data/.m/11amd64-default/ref/usr/src         893G    957M    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    842M    892G     0%    /usr/local/poudriere/data/.m/11amd64-default/01/usr/ports
/usr/local/poudriere/data/packages/11amd64-default/.building     895G    3.6G    892G     0%    /usr/local/poudriere/data/.m/11amd64-default/01/packages
/usr/ports/distfiles                                             893G    1.0G    892G     0%    /usr/local/poudriere/data/.m/11amd64-default/01/distfiles
/usr/local/poudriere/data/.m/11amd64-default/ref/var/db/ports     19M    216K     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 space.

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

This is what I think is the relative portion of the /usr/local/etc/poudriere.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=4G

# 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/testing)
# 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="wrkdir data"
USE_TMPFS=yes

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

-- 
Carmel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 489 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20171208/313f9b58/attachment.sig>


More information about the freebsd-questions mailing list