Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 01 Oct 2024 19:24:46 +0000
From:      bugzilla-noreply@freebsd.org
To:        riscv@FreeBSD.org
Subject:   [Bug 281600] lang/rust failing to build on risc-v (again)
Message-ID:  <bug-281600-40250-4KZl881Azc@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-281600-40250@https.bugs.freebsd.org/bugzilla/>
References:  <bug-281600-40250@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D281600

--- Comment #13 from Dennis Clarke <dclarke@blastwave.org> ---

After four days of thrashing the build of lang/rust the SiFive RISC-V
board known as HiFive Unmatched Rev B ran out of swap and then the
build process died.=20

Seen on the console :

swap_pager: out of swap space
swp_pager_getswapspace(28): failed
swap_pager: out of swap space
swp_pager_getswapspace(19): failed
Oct  1 11:45:34 enceladus kernel: pid 93520 (bsdtar), jid 3, uid 0, was kil=
led:
failed to reclaim memory
swp_pager_getswapspace(11): failed
Oct  1 11:45:37 enceladus kernel: pid 1771 (ntpd), jid 0, uid 0, was killed:
failed to reclaim memory
swp_pager_getswapspace(1): failed
Oct  1 11:45:40 enceladus kernel: pid 1963 (top), jid 0, uid 1001, was kill=
ed:
failed to reclaim memory
Oct  1 11:45:43 enceladus kernel: pid 1957 (sshd), jid 0, uid 1001, was kil=
led:
failed to reclaim memory
swp_pager_getswapspace(22): failed
swap_pager: out of swap space
swp_pager_getswapspace(9): failed
swap_pager: out of swap space
swp_pager_getswapspace(3): failed
Oct  1 11:45:46 enceladus kernel: pid 1845 (sshd), jid 0, uid 1001, was kil=
led:
failed to reclaim memory
Oct  1 11:45:49 enceladus kernel: pid 1505 (devd), jid 0, uid 0, was killed:
failed to reclaim memory
swp_pager_getswapspace(21): failed
Oct  1 11:45:51 enceladus kernel: pid 94189 (xargs), jid 0, uid 0, was kill=
ed:
failed to reclaim memory

That happened because my poudriere.conf had USE_TMPFS=3Dyes and so now
I have it set to a nice safe "no".

>From time to time I would check on the status of poudriere which was
building a conservative little pile of packages. That final status I
saw was late last night :=20

. . . here I hit CTRL t
load: 1.56  cmd: sh 41871 [running] 0.09r 0.00u 0.01s 3% 1428k
[150rv64-latest] [2024-09-27_03h40m22s] [parallel_build] Queued: 72 Built: =
56
Failed: 2  Skipped: 10 Ignored: 0  Fetched: 0  Tobuild: 4   Time: 4D:03:31:=
32
 ID  TOTAL          ORIGIN   PKGNAME     PHASE PHASE       TMPFS      CPU% =
MEM%
[02] 3D:23:48:48 lang/rust | rust-1.81.0 build 3D:23:39:43 20.67 GiB 81.4% =
3.7%
[4D:03:31:55] Logs:
/poudriere/data/logs/bulk/150rv64-latest/2024-09-27_03h40m22s

I would have thought that 16G of memory and 16G of swap was plenty but not
when building rust.

enceladus# uname -apKU
FreeBSD enceladus 15.0-CURRENT FreeBSD 15.0-CURRENT #0
main-n272477-5b8f97d8db82-dirty: Thu Sep 26 22:57:07 GMT 2024=20=20=20=20
root@enceladus:/usr/obj/usr/src/riscv.riscv64/sys/SIFIVE-COMPAT11 riscv ris=
cv64
1500023 1500023

enceladus# swapinfo -k
Device          1K-blocks     Used    Avail Capacity
/dev/mirror/swap  16777212     4532 16772680     0%
enceladus#=20

I will start the poudriere bulk build again thus :=20

enceladus# cat   essential.list=20
databases/sqlite3
devel/ccache
devel/gdb
devel/git
dns/bind-tools
editors/emacs
editors/vim
lang/gcc13
lang/go122
lang/python311
ports-mgmt/pkg
ports-mgmt/poudriere
security/gnupg
shells/ksh93
sysutils/fastfetch
sysutils/tmux
textproc/groff
x11-fonts/xlsfonts
x11/xauth
x11/xcb-util
x11/xcb-util-wm
x11/xlogo
x11/xterm
enceladus#=20

enceladus# idprio 0 poudriere bulk -r -j 150rv64 -p latest -f essential.list
[00:00:01] Creating the reference jail... done
[00:00:01] Mounting system devices for 150rv64-latest
[00:00:02] Warning: Using packages from previously failed, or uncommitted,
build: /poudriere/data/packages/150rv64-latest/.building
[00:00:02] Mounting ccache from: /var/cache/ccache
[00:00:02] Mounting ports from: /poudriere/ports/latest
[00:00:02] Mounting packages from: /poudriere/data/packages/150rv64-latest
[00:00:02] Mounting distfiles from: /poudriere/distfiles
/etc/resolv.conf -> /poudriere/data/.m/150rv64-latest/ref/etc/resolv.conf
[00:00:02] Starting jail 150rv64-latest
Updating /var/run/os-release done.
[00:00:03] Will build as nobody:nobody (65534:65534)
[00:00:22] Logs: /poudriere/data/logs/bulk/150rv64-latest/2024-10-01_19h19m=
36s
[00:00:22] Loading MOVED for /poudriere/data/.m/150rv64-latest/ref/usr/ports
[00:00:27] Ports supports: FLAVORS SUBPACKAGES SELECTED_OPTIONS
[00:00:27] Inspecting ports tree for modifications to git checkout... no
[00:01:08] Ports top-level git hash: 1779e67e6=20
[00:01:08] Gathering ports metadata
[00:03:00] Calculating ports order and dependencies
[00:03:13] Trimming IGNORED and blacklisted ports
[00:03:17] Sanity checking the repository
[00:03:17] Checking packages for incremental rebuild needs
[00:04:05] Deleting stale symlinks... done
[00:04:05] Deleting empty directories... done
[00:04:09] Unqueueing existing packages
[00:04:16] Unqueueing orphaned build dependencies
[00:04:17] Sanity checking build queue
[00:04:17] Processing PRIORITY_BOOST
[00:04:18] Balancing pool
[150rv64-latest] [2024-10-01_19h19m36s] [balancing_pool] Queued: 16 Built: =
0=20
Failed: 0  Skipped: 0  Ignored: 0  Fetched: 0  Tobuild: 16  Time: 00:03:56
[00:04:18] Recording filesystem state for prepkg... done
[00:04:22] Building 16 packages using up to 2 builders
[00:04:22] Hit CTRL+t at any time to see build progress and stats
[00:04:22] [01] [00:00:00] Builder starting
[00:04:22] [02] [00:00:00] Builder starting
[00:04:24] [01] [00:00:02] Builder started
[00:04:24] [01] [00:00:00] Building devel/highway | highway-1.2.0
[00:04:25] [02] [00:00:03] Builder started
[00:04:25] [02] [00:00:00] Building print/texlive-texmf |
texlive-texmf-20240312_1

.
.
.

So now we wait another five days. Or more.

--=20
You are receiving this mail because:
You are on the CC list for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-281600-40250-4KZl881Azc>