Solved Can't extract rust on Poudriere 3.4.6

nxjoseph@

Developer
Hi,

I am having a trouble getting lang/rust built since it does not even pass the extract stage. This was not happening on 14.3 but I have recently upgraded to 14.4 and it is happening like also it did in 15.0 for me. Sad thing is I don't see anybody experience this right now...

Poudriere's testport is able to extract it somehow...

Code:
=======================<phase: extract        >============================
===== env: NO_DEPENDS=yes USER=yusuf UID=1001 GID=1001
===>  License APACHE20 MIT accepted by the user
===> Fetching all distfiles required by rust-1.94.0 for building
===>  Extracting for rust-1.94.0
=> SHA256 Checksum OK for rust/rustc-1.94.0-src.tar.xz.
=> SHA256 Checksum OK for rust/2026-01-22/rustc-1.93.0-x86_64-unknown-freebsd.tar.xz.
=> SHA256 Checksum OK for rust/2026-01-22/rust-std-1.93.0-x86_64-unknown-freebsd.tar.xz.
=> SHA256 Checksum OK for rust/2026-01-22/cargo-1.93.0-x86_64-unknown-freebsd.tar.xz.

Code:
 ID  TOTAL       ORIGIN   PKGNAME       PHASE PHASE    TMPFS     CPU% MEM%
[01] 00:02:58 lang/rust | rust-1.94.0 extract 00:02:56 7.47 GiB 99.1% 0.9%
[00:02:59] Logs: /poudriere/data/logs/bulk/144amd64-main/2026-04-26_23h44m09s

Code:
$ mount -v | grep rust
/poudriere/data/cache/tmp/wrkdirs/144amd64-main/2026-04-26_23h44m09s/rust-1.94.0.5Gxgo2hH on /poudriere/data/.m/144amd64-main/01/wrkdirs (nullfs, local, fsid adff002929000000, vnodes: count 250467 )

Thanks in advance.
 
post the log of the failure please .
The job does not fail, it hangs forever on extract stage. I have already posted last lines of the log btw.

Even on a powerful machine it takes some time. How long did you wait?
It was building in around 1 hour or so. This time it does not even get extracted let alone start the build.

I wonder if it would have been better if I reported this on poudrieres GitHub or mailing lists.
 
The job does not fail, it hangs forever on extract stage. I have already posted last lines of the log btw.


It was building in around 1 hour or so. This time it does not even get extracted let alone start the build.

I wonder if it would have been better if I reported this on poudrieres GitHub or mailing lists.
Download the files manually and extract them, measure time.
 
Download the files manually and extract them, measure time.
Well.
Code:
$ time -h make clean extract
===>  Cleaning for rust-1.94.0
===>  License APACHE20 MIT accepted by the user
===>   rust-1.94.0 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by rust-1.94.0 for building
===>  Extracting for rust-1.94.0
=> SHA256 Checksum OK for rust/rustc-1.94.0-src.tar.xz.
=> SHA256 Checksum OK for rust/2026-01-22/rustc-1.93.0-x86_64-unknown-freebsd.tar.xz.
=> SHA256 Checksum OK for rust/2026-01-22/rust-std-1.93.0-x86_64-unknown-freebsd.tar.xz.
=> SHA256 Checksum OK for rust/2026-01-22/cargo-1.93.0-x86_64-unknown-freebsd.tar.xz.
        28.79s real             16.00s user             11.36s sys

FYI, same behaviour on poudriere-devel-3.4.99.20260303.
 
Well.
Code:
$ time -h make clean extract
===>  Cleaning for rust-1.94.0
===>  License APACHE20 MIT accepted by the user
===>   rust-1.94.0 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by rust-1.94.0 for building
===>  Extracting for rust-1.94.0
=> SHA256 Checksum OK for rust/rustc-1.94.0-src.tar.xz.
=> SHA256 Checksum OK for rust/2026-01-22/rustc-1.93.0-x86_64-unknown-freebsd.tar.xz.
=> SHA256 Checksum OK for rust/2026-01-22/rust-std-1.93.0-x86_64-unknown-freebsd.tar.xz.
=> SHA256 Checksum OK for rust/2026-01-22/cargo-1.93.0-x86_64-unknown-freebsd.tar.xz.
        28.79s real             16.00s user             11.36s sys

FYI, same behaviour on poudriere-devel-3.4.99.20260303.
The I would raise with poudriere on GitHub.
 
I am experiencing the same issue here on 14.4 and poudriere-devel. Here's the log stuff from one of the builds that fails:

Code:
...
[freebsd_14-4x64-HEAD-14-job-01] Extracting rust-1.94.0: ....
pkg-static: Failed to chown /html/core/arch/x86/fn._mm_testz_ps.html:Bad file descriptor
[freebsd_14-4x64-HEAD-14-job-01] Extracting rust-1.94.0... done

Failed to install the following 1 package(s): /packages/All/rust-1.94.0.pkg
*** Error code 1
...

The error is the Bad file descriptor and it happens on different files of different package builds. Here are the lines from other builds:

Code:
pkg-static: Failed to chown /html/core/arch/aarch64/fn.vreinterpret_p64_u8.html:Bad file descriptor
pkg-static: Failed to chmod /html/core/core_arch/aarch64/neon/generated/fn.vceq_f64.html:Bad file descriptor
pkg-static: Failed to chown /html/core/arch/x86/fn._mm_testz_ps.html:Bad file descriptor

In poudriere.conf, I have PARALLEL_JOBS=1 and it still fails.
sysctl.conf -a|grep maxfiles:
kern.maxfiles: 1045620
kern.maxfilesperproc: 941058

It seems when I re-run the bulk build that the previously failed builds will get built.
 
I am experiencing the same issue here on 14.4 and poudriere-devel. Here's the log stuff from one of the builds that fails:

Code:
...
[freebsd_14-4x64-HEAD-14-job-01] Extracting rust-1.94.0: ....
pkg-static: Failed to chown /html/core/arch/x86/fn._mm_testz_ps.html:Bad file descriptor
[freebsd_14-4x64-HEAD-14-job-01] Extracting rust-1.94.0... done

Failed to install the following 1 package(s): /packages/All/rust-1.94.0.pkg
*** Error code 1
...

The error is the Bad file descriptor and it happens on different files of different package builds. Here are the lines from other builds:

Code:
pkg-static: Failed to chown /html/core/arch/aarch64/fn.vreinterpret_p64_u8.html:Bad file descriptor
pkg-static: Failed to chmod /html/core/core_arch/aarch64/neon/generated/fn.vceq_f64.html:Bad file descriptor
pkg-static: Failed to chown /html/core/arch/x86/fn._mm_testz_ps.html:Bad file descriptor

In poudriere.conf, I have PARALLEL_JOBS=1 and it still fails.
sysctl.conf -a|grep maxfiles:
kern.maxfiles: 1045620
kern.maxfilesperproc: 941058

It seems when I re-run the bulk build that the previously failed builds will get built.

Does it run out of FDs?
 
Back
Top