Solved Error in compiling lang/rust in Poudriere

Hi!
Want to update my FreeBSD server with
FreeBSD 12.1-RELEASE-p8 FreeBSD 12.1-RELEASE-p8 GENERIC amd64
up to 13.0-RELEASE.

As a step need to upgrade all the ports. One of them wants lang/rust.
I use Poudriere for compiling packages and then update my soft from the local repo.

I build the package like that:
Code:
poudriere bulk -j amd64-13-0 -p default -f /usr/local/etc/poudriere.d/port-list-v13

and got the error:

Code:
[RUSTC-SHIM] rustc core env[41]: "RUST_BACKTRACE"="1"
[RUSTC-SHIM] rustc core env[42]: "RUST_COMPILER_RT_ROOT"="/wrkdirs/usr/ports/lang/rust/work/rustc-1.53.0-src/src/llvm-project/compiler-rt"
[RUSTC-SHIM] rustc core env[43]: "RUST_SAVE_ANALYSIS_CONFIG"="{\"output_file\": null,\"full_docs\": false,\"pub_only\": true,\"reachable_only\": false,\"distro_crate\": true,\"signatures\": false,\"borrow_data\": false}"
[RUSTC-SHIM] rustc core env[44]: "RUST_TEST_THREADS"="1"
[RUSTC-SHIM] rustc core working directory: /wrkdirs/usr/ports/lang/rust/work/rustc-1.53.0-src
[RUSTC-SHIM] rustc core command: "LD_LIBRARY_PATH"="/wrkdirs/usr/ports/lang/rust/work/rustc-1.53.0-src/build/x86_64-unknown-freebsd/stage1/lib:/wrkdirs/usr/ports/lang/rust/work/rustc-1.53.0-src/build/x86_64-unknown-freebsd/stage1-std/release/deps:/wrkdirs/usr/ports/lang/rust/work/bootstrap/lib" "/wrkdirs/usr/ports/lang/rust/work/rustc-1.53.0-src/build/x86_64-unknown-freebsd/stage1/bin/rustc" "--crate-name" "core" "--edition=2018" "library/core/src/lib.rs" "--error-format=json" "--json=diagnostic-rendered-ansi,artifacts" "--crate-type" "lib" "--emit=dep-info,metadata,link" "-C" "opt-level=3" "-C" "embed-bitcode=no" "-C" "debuginfo=0" "-C" "metadata=4ee7510cd643b335" "-C" "extra-filename=-4ee7510cd643b335" "--out-dir" "/wrkdirs/usr/ports/lang/rust/work/rustc-1.53.0-src/build/x86_64-unknown-freebsd/stage1-std/x86_64-unknown-freebsd/release/deps" "--target" "x86_64-unknown-freebsd" "-C" "linker=cc" "-L" "dependency=/wrkdirs/usr/ports/lang/rust/work/rustc-1.53.0-src/build/x86_64-unknown-freebsd/stage1-std/x86_64-unknown-freebsd/release/deps" "-L" "dependency=/wrkdirs/usr/ports/lang/rust/work/rustc-1.53.0-src/build/x86_64-unknown-freebsd/stage1-std/release/deps" "-Zmacro-backtrace" "-Clink-args=-Wl,-rpath,$ORIGIN/../lib" "-Zsave-analysis" "-Cprefer-dynamic" "-Cembed-bitcode=yes" "-Z" "binary-dep-depinfo" "-Wrust_2018_idioms" "-Wunused_lifetimes" "--sysroot" "/wrkdirs/usr/ports/lang/rust/work/rustc-1.53.0-src/build/x86_64-unknown-freebsd/stage1" "-Z" "force-unstable-if-unmarked"
[RUSTC-SHIM] rustc core sysroot: "/wrkdirs/usr/ports/lang/rust/work/rustc-1.53.0-src/build/x86_64-unknown-freebsd/stage1"
[RUSTC-SHIM] rustc core libdir: "/wrkdirs/usr/ports/lang/rust/work/rustc-1.53.0-src/build/x86_64-unknown-freebsd/stage1/lib"
rustc exited with signal: 9

Did not run successfully: signal: 9
"/wrkdirs/usr/ports/lang/rust/work/rustc-1.53.0-src/build/x86_64-unknown-freebsd/stage1/bin/rustc" "--crate-name" "core" "--edition=2018" "library/core/src/lib.rs" "--error-format=json" "--json=diagnostic-rendered-ansi,artifacts" "--crate-type" "lib" "--emit=dep-info,metadata,link" "-C" "opt-level=3" "-C" "embed-bitcode=no" "-C" "debuginfo=0" "-C" "metadata=4ee7510cd643b335" "-C" "extra-filename=-4ee7510cd643b335" "--out-dir" "/wrkdirs/usr/ports/lang/rust/work/rustc-1.53.0-src/build/x86_64-unknown-freebsd/stage1-std/x86_64-unknown-freebsd/release/deps" "--target" "x86_64-unknown-freebsd" "-C" "linker=cc" "-L" "dependency=/wrkdirs/usr/ports/lang/rust/work/rustc-1.53.0-src/build/x86_64-unknown-freebsd/stage1-std/x86_64-unknown-freebsd/release/deps" "-L" "dependency=/wrkdirs/usr/ports/lang/rust/work/rustc-1.53.0-src/build/x86_64-unknown-freebsd/stage1-std/release/deps" "-Zmacro-backtrace" "-Clink-args=-Wl,-rpath,$ORIGIN/../lib" "-Zsave-analysis" "-Cprefer-dynamic" "-Cembed-bitcode=yes" "-Z" "binary-dep-depinfo" "-Wrust_2018_idioms" "-Wunused_lifetimes" "--sysroot" "/wrkdirs/usr/ports/lang/rust/work/rustc-1.53.0-src/build/x86_64-unknown-freebsd/stage1" "-Z" "force-unstable-if-unmarked"
-------------
error: could not compile `core`

Caused by:
  process didn't exit successfully: `/wrkdirs/usr/ports/lang/rust/work/rustc-1.53.0-src/build/bootstrap/debug/rustc --crate-name core --edition=2018 library/core/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no -C debuginfo=0 -C metadata=4ee7510cd643b335 -C extra-filename=-4ee7510cd643b335 --out-dir /wrkdirs/usr/ports/lang/rust/work/rustc-1.53.0-src/build/x86_64-unknown-freebsd/stage1-std/x86_64-unknown-freebsd/release/deps --target x86_64-unknown-freebsd -C linker=cc -L dependency=/wrkdirs/usr/ports/lang/rust/work/rustc-1.53.0-src/build/x86_64-unknown-freebsd/stage1-std/x86_64-unknown-freebsd/release/deps -L dependency=/wrkdirs/usr/ports/lang/rust/work/rustc-1.53.0-src/build/x86_64-unknown-freebsd/stage1-std/release/deps -Zmacro-backtrace '-Clink-args=-Wl,-rpath,$ORIGIN/../lib' -Zsave-analysis -Cprefer-dynamic -Cembed-bitcode=yes -Z binary-dep-depinfo` (exit code: 254)
command did not execute successfully: "/wrkdirs/usr/ports/lang/rust/work/bootstrap/bin/cargo" "build" "--target" "x86_64-unknown-freebsd" "-Zbinary-dep-depinfo" "-j" "1" "-v" "--release" "--frozen" "--features" "panic-unwind backtrace compiler-builtins-c" "--manifest-path" "/wrkdirs/usr/ports/lang/rust/work/rustc-1.53.0-src/library/test/Cargo.toml" "--message-format" "json-render-diagnostics"
expected success, got: exit code: 101
Traceback (most recent call last):
  File "x.py", line 27, in <module>
    bootstrap.main()
  File "/wrkdirs/usr/ports/lang/rust/work/rustc-1.53.0-src/src/bootstrap/bootstrap.py", line 1191, in main
    bootstrap(help_triggered)
  File "/wrkdirs/usr/ports/lang/rust/work/rustc-1.53.0-src/src/bootstrap/bootstrap.py", line 1177, in bootstrap
    run(args, env=env, verbose=build.verbose)
  File "/wrkdirs/usr/ports/lang/rust/work/rustc-1.53.0-src/src/bootstrap/bootstrap.py", line 153, in run
    raise RuntimeError(err)
RuntimeError: failed to run: /wrkdirs/usr/ports/lang/rust/work/rustc-1.53.0-src/build/bootstrap/debug/bootstrap build --jobs=1
*** Error code 1

Stop.
make: stopped in /usr/ports/lang/rust
=>> Cleaning up wrkdir
===>  Cleaning for rust-1.53.0
build of lang/rust | rust-1.53.0 ended at Wed Aug 18 17:50:07 MSK 2021
build time: 03:56:51
!!! build failure encountered !!!

The server with Poudriere itself has just been updated to 13.0.
The jail for 13.0-Release has been created and the ports tree is up-to-date...
Any ideas?
 
This might very well be caused by memory constraints. Have you checked your poudriere settings?

I had that as well once, I believe. You can override the maximum available memory per port.
 
This might very well be caused by memory constraints. Have you checked your poudriere settings?

I had that as well once, I believe. You can override the maximum available memory per port.
I will add RAM for the virtual machine with poudriere... but can't find setting like 'memory per port'...

upd..

have just set this:
Code:
USE_TMPFS=yes
TMPFS_LIMIT=8
MAX_MEMORY=8

Will try again...
 
Ah, sorry. I mixed up the options. You can increase file descriptors per port, not memory... you need to set that for vscode for example:
Code:
# How many file descriptors to limit each jail process to (default: 1024)
# This can also be set per PKGBASE, such as MAX_FILES_RStudio=2048.
# Package names with hyphens (-) should be replaced with underscores (_).
MAX_FILES=2048
MAX_FILES_vscode=4096
 
My poudriere.conf loks like this now:
Code:
USE_TMPFS=no
MAX_MEMORY=8
MAX_FILES=9000
MAX_FILES_rust=8000

and I get an error:
Code:
LLVM ERROR: IO failure on output stream: No space left on device


[RUSTC-SHIM] rustc cc env[30]: "RUSTC_LINT_FLAGS"="-Wrust_2018_idioms -Wunused_lifetimes -Wsemicolon_in_expressions_from_macros"
[RUSTC-SHIM] rustc cc env[31]: "RUSTC_REAL"="/wrkdirs/usr/ports/lang/rust/work/rustc-1.53.0-src/build/x86_64-unknown-freebsd/stage1/bin/rustc"
[RUSTC-SHIM] rustc cc env[32]: "RUSTC_SNAPSHOT"="/wrkdirs/usr/ports/lang/rust/work/rustc-1.53.0-src/build/x86_64-unknown-freebsd/stage1/bin/rustc"
[RUSTC-SHIM] rustc cc env[33]: "RUSTC_SNAPSHOT_LIBDIR"="/wrkdirs/usr/ports/lang/rust/work/rustc-1.53.0-src/build/x86_64-unknown-freebsd/stage1/lib"
[RUSTC-SHIM] rustc cc env[34]: "RUSTC_STAGE"="1"
[RUSTC-SHIM] rustc cc env[35]: "RUSTC_SYSROOT"="/wrkdirs/usr/ports/lang/rust/work/rustc-1.53.0-src/build/x86_64-unknown-freebsd/stage1"
[RUSTC-SHIM] rustc cc env[36]: "RUSTC_VERBOSE"="2"
[RUSTC-SHIM] rustc cc env[37]: "RUSTDOC"="/wrkdirs/usr/ports/lang/rust/work/rustc-1.53.0-src/build/bootstrap/debug/rustdoc"
[RUSTC-SHIM] rustc cc env[38]: "RUSTDOCFLAGS"="-Wrustdoc::invalid_codeblock_attributes --crate-version 1.53.0"
[RUSTC-SHIM] rustc cc env[39]: "RUSTDOC_REAL"="/path/to/nowhere/rustdoc/not/required"
[RUSTC-SHIM] rustc cc env[40]: "RUSTFLAGS"="-Zmacro-backtrace -Clink-args=-Wl,-rpath,$ORIGIN/../lib -Ztls-model=initial-exec -Zunstable-options -Wrustc::internal -Cprefer-dynamic"
[RUSTC-SHIM] rustc cc env[41]: "RUST_BACKTRACE"="1"
[RUSTC-SHIM] rustc cc env[42]: "RUST_TEST_THREADS"="1"
[RUSTC-SHIM] rustc cc working directory: /wrkdirs/usr/ports/lang/rust/work/rustc-1.53.0-src/vendor/cc-1.0.60
[RUSTC-SHIM] rustc cc command: "LD_LIBRARY_PATH"="/wrkdirs/usr/ports/lang/rust/work/rustc-1.53.0-src/build/x86_64-unknown-freebsd/stage1/lib:/wrkdirs/usr/ports/lang/rust/work/rustc-1.53.0-src/build/x86_64-unknown-freebsd/stage1-rustc/release/deps:/wrkdirs/usr/ports/lang/rust/work/rustc-1.53.0-src/build/x86_64-unknown-freebsd/stage1/lib" "/wrkdirs/usr/ports/lang/rust/work/rustc-1.53.0-src/build/x86_64-unknown-freebsd/stage1/bin/rustc" "--crate-name" "cc" "--edition=2018" "/wrkdirs/usr/ports/lang/rust/work/rustc-1.53.0-src/vendor/cc-1.0.60/src/lib.rs" "--error-format=json" "--json=diagnostic-rendered-ansi" "--crate-type" "lib" "--emit=dep-info,metadata,link" "-C" "embed-bitcode=no" "-C" "debuginfo=0" "-C" "debug-assertions=off" "-C" "metadata=ea3ba52900d05fc7" "-C" "extra-filename=-ea3ba52900d05fc7" "--out-dir" "/wrkdirs/usr/ports/lang/rust/work/rustc-1.53.0-src/build/x86_64-unknown-freebsd/stage1-rustc/release/deps" "-C" "linker=cc" "-L" "dependency=/wrkdirs/usr/ports/lang/rust/work/rustc-1.53.0-src/build/x86_64-unknown-freebsd/stage1-rustc/release/deps" "--cap-lints" "allow" "-Z" "binary-dep-depinfo" "-Wrust_2018_idioms" "-Wunused_lifetimes" "-Wsemicolon_in_expressions_from_macros" "-Clinker=cc" "-Z" "force-unstable-if-unmarked"
[RUSTC-SHIM] rustc cc sysroot: "/wrkdirs/usr/ports/lang/rust/work/rustc-1.53.0-src/build/x86_64-unknown-freebsd/stage1"
[RUSTC-SHIM] rustc cc libdir: "/wrkdirs/usr/ports/lang/rust/work/rustc-1.53.0-src/build/x86_64-unknown-freebsd/stage1/lib"
LLVM ERROR: IO failure on output stream: No space left on device

Did not run successfully: exit code: 101
"/wrkdirs/usr/ports/lang/rust/work/rustc-1.53.0-src/build/x86_64-unknown-freebsd/stage1/bin/rustc" "--crate-name" "cc" "--edition=2018" "/wrkdirs/usr/ports/lang/rust/work/rustc-1.53.0-src/vendor/cc-1.0.60/src/lib.rs" "--error-format=json" "--json=diagnostic-rendered-ansi" "--crate-type" "lib" "--emit=dep-info,metadata,link" "-C" "embed-bitcode=no" "-C" "debuginfo=0" "-C" "debug-assertions=off" "-C" "metadata=ea3ba52900d05fc7" "-C" "extra-filename=-ea3ba52900d05fc7" "--out-dir" "/wrkdirs/usr/ports/lang/rust/work/rustc-1.53.0-src/build/x86_64-unknown-freebsd/stage1-rustc/release/deps" "-C" "linker=cc" "-L" "dependency=/wrkdirs/usr/ports/lang/rust/work/rustc-1.53.0-src/build/x86_64-unknown-freebsd/stage1-rustc/release/deps" "--cap-lints" "allow" "-Z" "binary-dep-depinfo" "-Wrust_2018_idioms" "-Wunused_lifetimes" "-Wsemicolon_in_expressions_from_macros" "-Clinker=cc" "-Z" "force-unstable-if-unmarked"
-------------
error: could not compile `cc`

Caused by:
process didn't exit successfully: `/wrkdirs/usr/ports/lang/rust/work/rustc-1.53.0-src/build/bootstrap/debug/rustc --crate-name cc --edition=2018 /wrkdirs/usr/ports/lang/rust/work/rustc-1.53.0-src/vendor/cc-1.0.60/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=0 -C debug-assertions=off -C metadata=ea3ba52900d05fc7 -C extra-filename=-ea3ba52900d05fc7 --out-dir /wrkdirs/usr/ports/lang/rust/work/rustc-1.53.0-src/build/x86_64-unknown-freebsd/stage1-rustc/release/deps -C linker=cc -L dependency=/wrkdirs/usr/ports/lang/rust/work/rustc-1.53.0-src/build/x86_64-unknown-freebsd/stage1-rustc/release/deps --cap-lints allow -Z binary-dep-depinfo` (exit code: 101)
command did not execute successfully: "/wrkdirs/usr/ports/lang/rust/work/bootstrap/bin/cargo" "build" "--target" "x86_64-unknown-freebsd" "-Zbinary-dep-depinfo" "-j" "1" "-v" "--release" "--frozen" "--features" " llvm max_level_info" "--manifest-path" "/wrkdirs/usr/ports/lang/rust/work/rustc-1.53.0-src/compiler/rustc/Cargo.toml" "--message-format" "json-render-diagnostics"
expected success, got: exit code: 101
Traceback (most recent call last):
File "x.py", line 27, in <module>
bootstrap.main()
File "/wrkdirs/usr/ports/lang/rust/work/rustc-1.53.0-src/src/bootstrap/bootstrap.py", line 1191, in main
bootstrap(help_triggered)
File "/wrkdirs/usr/ports/lang/rust/work/rustc-1.53.0-src/src/bootstrap/bootstrap.py", line 1177, in bootstrap
run(args, env=env, verbose=build.verbose)
File "/wrkdirs/usr/ports/lang/rust/work/rustc-1.53.0-src/src/bootstrap/bootstrap.py", line 153, in run
raise RuntimeError(err)
RuntimeError: failed to run: /wrkdirs/usr/ports/lang/rust/work/rustc-1.53.0-src/build/bootstrap/debug/bootstrap build --jobs=1
*** Error code 1

Stop.
make: stopped in /usr/ports/lang/rust
=>> Cleaning up wrkdir
===> Cleaning for rust-1.53.0
build of lang/rust | rust-1.53.0 ended at Thu Aug 19 18:04:59 MSK 2021
build time: 03:53:23
!!! build failure encountered !!!
 
Well, now you got another resource constraint. Your disk was full. Increase your disk space or decrease the number of concurrently running jails.
 
I don't understand why the disk is the problem.
Mine looks like that, plenty of space, uh?

Code:
root@PoudriereBSD:/usr/home/kv # df -H
Filesystem                          Size    Used   Avail Capacity  Mounted on
zroot/ROOT/default                  241G    3.5G    237G     1%    /
devfs                               1.0k    1.0k      0B   100%    /dev
zroot/tmp                           237G     98k    237G     0%    /tmp
zroot                               237G     90k    237G     0%    /zroot
zroot/var/log                       237G    573k    237G     0%    /var/log
zroot/var/crash                     237G     90k    237G     0%    /var/crash
zroot/var/audit                     237G     90k    237G     0%    /var/audit
zroot/var/tmp                       237G     98k    237G     0%    /var/tmp
zroot/usr/src                       237G     90k    237G     0%    /usr/src
zroot/usr/home                      237G    131k    237G     0%    /usr/home
zroot/var/mail                      237G    254k    237G     0%    /var/mail
zroot/usr/ports                     241G    4.0G    237G     2%    /usr/ports
zroot/poudriere/jails/amd64-12-1    239G    1.5G    237G     1%    /usr/local/poudriere/jails/amd64-12-1
zroot/poudriere/data                237G     98k    237G     0%    /usr/local/poudriere/data
zroot/poudriere/ports/default       238G    989M    237G     0%    /usr/local/poudriere/ports/default
zroot/poudriere/jails/amd64-12-0    239G    1.5G    237G     1%    /usr/local/poudriere/jails/amd64-12-0
zroot/poudriere                     237G     90k    237G     0%    /zroot/poudriere
zroot/poudriere/ports               237G     90k    237G     0%    /zroot/poudriere/ports
zroot/poudriere/data/wrkdirs        237G     90k    237G     0%    /usr/local/poudriere/data/wrkdirs
zroot/poudriere/data/images         237G     90k    237G     0%    /usr/local/poudriere/data/images
zroot/poudriere/jails/amd64-11-3    239G    1.2G    237G     0%    /usr/local/poudriere/jails/amd64-11-3
zroot/poudriere/jails               237G     90k    237G     0%    /zroot/poudriere/jails
zroot/poudriere/data/.m             237G     98k    237G     0%    /usr/local/poudriere/data/.m
zroot/poudriere/jails/amd64-13-0    239G    1.4G    237G     1%    /usr/local/poudriere/jails/amd64-13-0
zroot/poudriere/data/cache          237G     23M    237G     0%    /usr/local/poudriere/data/cache
zroot/poudriere/data/packages       239G    1.7G    237G     1%    /usr/local/poudriere/data/packages
zroot/poudriere/data/logs           237G     75M    237G     0%    /usr/local/poudriere/data/logs

and there is only one jail running...
I have killed all the jails.

Code:
root@PoudriereBSD:/usr/home/kv # poudriere jail -l

JAILNAME   VERSION          ARCH  METHOD TIMESTAMP           PATH

amd64-11-3 11.3-RELEASE-p12 amd64 ftp    2020-08-11 09:55:15 /usr/local/poudriere/jails/amd64-11-3

amd64-12-0 12.0-RELEASE-p13 amd64 ftp    2020-08-27 14:16:16 /usr/local/poudriere/jails/amd64-12-0

amd64-12-1 12.1-RELEASE-p8  amd64 ftp    2020-08-27 15:05:45 /usr/local/poudriere/jails/amd64-12-1

amd64-13-0 13.0-RELEASE-p3  amd64 ftp    2021-08-17 15:18:55 /usr/local/poudriere/jails/amd64-13-0

root@PoudriereBSD:/usr/home/kv # poudriere jail -k -j amd64-11-3

[00:00:00] Jail amd64-11-3-default not running, but cleaning up anyway

[00:00:00] Unmounting file systems

root@PoudriereBSD:/usr/home/kv # poudriere jail -k -j amd64-12-0

[00:00:00] Jail amd64-12-0-default not running, but cleaning up anyway

[00:00:00] Unmounting file systems

root@PoudriereBSD:/usr/home/kv # poudriere jail -k -j amd64-12-1

[00:00:00] Jail amd64-12-1-default not running, but cleaning up anyway

[00:00:00] Unmounting file systems

root@PoudriereBSD:/usr/home/kv # poudriere jail -k -j amd64-13-0

[00:00:00] Jail amd64-13-0-default not running, but cleaning up anyway

[00:00:00] Unmounting file systems

Btw I don't like the status of my jail. It shows that there is a builder still running even though I've explicitly killed everything and even have restarted the server.


Code:
root@PoudriereBSD:/usr/home/kv # poudriere status -f
SET PORTS   JAIL       BUILD                STATUS         QUEUE BUILT FAIL SKIP IGNORE REMAIN TIME     URL
-   default amd64-11-3 2020-08-21_17h29m28s done               1     1    0    0      0      0 00:00:08 http://10.1.10.224//build.html?mastername=amd64-11-3-default&build=2020-08-21_17h29m28s
-   default amd64-12-1 2020-10-16_10h10m31s done               2     2    0    0      0      0 00:06:42 http://10.1.10.224//build.html?mastername=amd64-12-1-default&build=2020-10-16_10h10m31s
-   default amd64-13-0 2021-08-19_18h18m45s parallel_build     1     0    0    0      0      1 15:36:56 http://10.1.10.224//build.html?mastername=amd64-13-0-default&build=2021-08-19_18h18m45s
 
Generally yes, your disk size should be sufficient. However, poudriere also caches on tmpfs unless you disabled that.

Code:
# 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

llvm will need up to 20-30GB to compile, if I'm not mistaken.
 
ok... So I have set this:

Code:
USE_TMPFS=yes
TMPFS_LIMIT=8
MAX_MEMORY=8
MAX_FILES=9000
MAX_FILES_rust=8000

and will wait another 4 hrs for result...
 
And about poudriere status -f: doesn't that show finished builds? Pretty certain that the one remaining build showing is incorrectly getting picked up from some status file somewhere. If jls does not show any jail running, you should be fine.

Code:
USE_TMPFS=yes
will probably not suffice, I'm afraid. If you want to be on the safe side, use "no". wrkdir might do it. It'll be slower but it'll at least complete eventually.
 
then I don't understand where to dig... I've already run it with/without TMPFS, and now the problem is 'no free space' with empty disk...
 
Alright. I didn't read that right then. Apologies.

Another thing to consider is swap. I know, you might think "I've got enough RAM". Still, I've seen a 64GB machine swapping for apparently no reason during poudriere runs when using zfs.

Someone else apparently also had that error before you and I suppose swap did the trick:

Should be easy to add a swap zvol in your case.
 
how to do it

Above your opening post:

1629748532591.png
 
Back
Top