Bug 230383 - ports-mgmt/poudriere: new Log-entry for filesystem full / No space left on device
Summary: ports-mgmt/poudriere: new Log-entry for filesystem full / No space left on de...
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Bryan Drewery
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-08-05 16:15 UTC by Kalten
Modified: 2021-09-27 03:05 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (bdrewery)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kalten 2018-08-05 16:15:43 UTC
Greetings!

In case of a full file system while building ports in ports-mgmt/poudriere,
I suggest to change the text “???” to something like “filesystem_full”
(similar to entries like “install_error” etc.) in the column “Log” of the
“Failed ports” table.

I have found a couple of examples in my logs in such scenarios:

nRegExp: “No space left on device”
...8<--- e.g. graphics/separate
> ===>   Generating temporary packing list
> install  -s -m 555 /wrkdirs/usr/ports/graphics/separate/work/separate+-0.5.8/separate /wrkdirs/usr/ports/graphics/separate/work/stage/usr/local/libexec/gimp/2.2/plug-ins/
> strip: elf_update() failed: I/O error: No space left on device
> install: strip command strip failed on /wrkdirs/usr/ports/graphics/separate/work/stage/usr/local/libexec/gimp/2.2/plug-ins/separate
> *** Error code 70
--->8...

nRegExp: “No space left on device”
...8<--- e.g. audio/audacity
> Makefile.am: installing 'autotools/depcomp'
> gm4: cannot create a temporary directory using template "/tmp/arPTDFmB/m4-9W8eph": No space left on device
> gm4:configure.ac:21: cannot create temporary file for diversion: No space left on device
> autom4te-2.69: /usr/local/bin/gm4 failed with exit status: 1
> aclocal: error: echo failed with exit status: 1
> autoreconf-2.69: aclocal failed with exit status: 1
> *** Error code 1
--->8...

nRegExp: “No space left on device”
...8<--- e.g. emulators/virtualbox-ose
> kBuild: Linking VMMRC
> objcopy: elf_update() failed: I/O error: No space left on device
> kmk: *** [/wrkdirs/usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.2.16/out/freebsd.amd64/release/obj/VMMRC/VMMRC.rc] Error 1
> The failing command:
> @objcopy --strip-debug --strip-unneeded --add-gnu-debuglink=/wrkdirs/usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.2.16/out/freebsd.amd64/release/obj/VMMRC/VMMRC.debug /wrkdirs/usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.2.16/out/freebsd.amd64/release/obj/VMMRC/VMMRC.rc
> kmk: *** Deleting file `/wrkdirs/usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.2.16/out/freebsd.amd64/release/obj/VMMRC/VMMRC.rc'
> kmk: *** [/wrkdirs/usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.2.16/out/freebsd.amd64/release/obj/VMMRC/VMMRC.rc] Deleting file `/wrkdirs/usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.2.16/out/freebsd.amd64/release/obj/VMMRC/VMMRC.debug'
> *** Error code 2
--->8...

nRegExp: “Failed to install the following [0-9]+ package(s):” (not a good error text)
...8<--- e.g. graphics/ufraw (not completely sure about that one)
> [112amd64-default-job-02] |   | `-- Extracting gnome-vfs-2.24.4_8... done
>
> Failed to install the following 1 package(s): /packages/All/gimp-app-2.8.22_1,1.txz
--->8...

Regards,
 Kalten
Comment 1 Graham Perrin freebsd_committer 2021-09-27 03:05:21 UTC
(In reply to Kalten from comment #0)

> … change the text “???” to …

Please, is this still an issue? 

----

In the example below, I have no trio of question marks: 


…
[16:24:14] [01] [16:19:44] Finished devel/electron12 | electron12-12.0.9_2: Failed: build
[16:24:19] Stopping 1 builders
main-default-job-01: removed
main-default-job-01-n: removed
[16:24:19] Creating pkg repository
Creating repository in /tmp/packages: 100%
Packing files for repository: 100%
[16:24:38] Committing packages to repository: /usr/local/poudriere/data/packages/main-default/.real_1632708730 via .latest symlink
[16:24:38] Removing old packages
[16:24:38] Failed ports: devel/electron12:build
[main-default] [2021-09-26_10h47m32s] [committing:] Queued: 1  Built: 0  Failed: 1  Skipped: 0  Ignored: 0  Fetched: 0  Tobuild: 0   Time: 16:23:03
[16:24:38] Logs: /usr/local/poudriere/data/logs/bulk/main-default/2021-09-26_10h47m32s
[16:24:38] Cleaning up
main-default: removed
main-default-n: removed
[16:24:38] Unmounting file systems
root@mowa219-gjp4-8570p-freebsd:~ # 


The tail of the log file: 


…
[ 69% 26723/38463] python "../../build/toolchain/gcc_link_wrapper.py" --output="./chromedriver" -- c++ -fuse-ld=lld -Wl,--build-id=sha1 -fPIC -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -Wl,--icf=all -Wl,--color-diagnostics -Wl,--no-call-graph-profile-sort -m64 -Wl,-O2 -Wl,--gc-sections -rdynamic -pie -Wl,--disable-new-dtags -L/usr/local/lib  -fstack-protector-strong -L/usr/local/lib  -o "./chromedriver" -Wl,--start-group @"./chromedriver.rsp"  -Wl,--end-group  -lpthread -lgmodule-2.0 -lglib-2.0 -lgobject-2.0 -lgthread-2.0 -lintl -lnss3 -lsmime3 -lnssutil3 -lplds4 -lplc4 -lnspr4 -ldl -lexecinfo -lkvm -lutil -lgio-2.0 -lrt -ljpeg -lm -lopus -lavcodec -lavformat -lavutil -lopenh264 -lX11 -lXcomposite -lXdamage -lXext -lXfixes -lXrender -lXrandr -lXtst -lfontconfig -lpng16 -lz -lwebpdemux -lwebpmux -lwebp -lfreetype -lexpat -lharfbuzz-subset -lharfbuzz -lxcb -ldrm -lxkbcommon -ldbus-1
FAILED: chromedriver 
python "../../build/toolchain/gcc_link_wrapper.py" --output="./chromedriver" -- c++ -fuse-ld=lld -Wl,--build-id=sha1 -fPIC -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -Wl,--icf=all -Wl,--color-diagnostics -Wl,--no-call-graph-profile-sort -m64 -Wl,-O2 -Wl,--gc-sections -rdynamic -pie -Wl,--disable-new-dtags -L/usr/local/lib  -fstack-protector-strong -L/usr/local/lib  -o "./chromedriver" -Wl,--start-group @"./chromedriver.rsp"  -Wl,--end-group  -lpthread -lgmodule-2.0 -lglib-2.0 -lgobject-2.0 -lgthread-2.0 -lintl -lnss3 -lsmime3 -lnssutil3 -lplds4 -lplc4 -lnspr4 -ldl -lexecinfo -lkvm -lutil -lgio-2.0 -lrt -ljpeg -lm -lopus -lavcodec -lavformat -lavutil -lopenh264 -lX11 -lXcomposite -lXdamage -lXext -lXfixes -lXrender -lXrandr -lXtst -lfontconfig -lpng16 -lz -lwebpdemux -lwebpmux -lwebp -lfreetype -lexpat -lharfbuzz-subset -lharfbuzz -lxcb -ldrm -lxkbcommon -ldbus-1
ld.lld: error: failed to open ./chromedriver: No space left on device
c++: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.
*** Error code 1

Stop.
make: stopped in /usr/ports/devel/electron12
=>> Cleaning up wrkdir
===>  Cleaning for electron12-12.0.9_2
build of devel/electron12 | electron12-12.0.9_2 ended at Mon Sep 27 03:11:50 BST 2021
build time: 16:19:48
!!! build failure encountered !!!


In this case, I guess, my preference for 
    USE_TMPFS=all 
was probably too adventurous. 

Use of tmpfs _a few hours before_ the build failure was pictured in the second screenshot under <https://forums.FreeBSD.org/threads/82051/post-533403>. 

----

Note to self: <https://forums.FreeBSD.org/threads/81769/post-528003> re: USE_TMPFS=no then USE_TMPFS=yes then addition of swap.