Opened 4 months ago
Last modified 4 months ago
#72678 assigned defect
rust @1.88.0 fails with ENOSPC (“No space left on device”)
| Reported by: | azhuchkov (Andrey Zhuchkov) | Owned by: | MarcusCalhoun-Lopez (Marcus Calhoun-Lopez) |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | |
| Keywords: | monterey x86_64 | Cc: | raimue (Rainer Müller), herbygillot (Herby Gillot) |
| Port: | rust |
Description
Installing rust @1.88.0 on macOS 12 Monterey (x86_64) does not fetch a pre-built archive (rust-1.88.0_0.darwin_21.x86_64.tbz2).
MacPorts therefore switches to a full source build, which on typical
Monterey laptops (e.g. MacBook Pro 2015, 4 cores / 8 threads, 16 GB RAM)
takes many hours and consumes large amount of temporary disk
space.
The most recent attempt to create the archive on the official builder ports-12_x86_64 failed:
- Build log: <https://build.macports.org/builders/ports-12_x86_64-builder/builds/135594>
- Error excerpt (main.log):
error: failed to link … librustc_driver.dylib Caused by: No space left on device (os error 28)
Because this failure leaves no archive in the public mirrors, every user
running Monterey must endure a lengthy local compilation whenever they
install or upgrade the rust port. It’s no problem to install rust itself another way,
but some ports require it as a dependency.
Please investigate why the archive is missing so that a binary package can be provided for darwin 21 x86_64.
Attachments (2)
Change History (6)
comment:1 Changed 4 months ago by ryandesign (Ryan Carsten Schmidt)
| Component: | buildbot/mpbb → ports |
|---|---|
| Keywords: | buildbot ENOSPC removed |
| Summary: | ports-12_x86_64: rust @1.88.0 fails with ENOSPC (“No space left on device”) → rust @1.88.0 fails with ENOSPC (“No space left on device”) |
comment:2 follow-up: 3 Changed 4 months ago by ryandesign (Ryan Carsten Schmidt)
The rust build is starting:
If that succeeds, the cargo build will be next:
Changed 4 months ago by azhuchkov (Andrey Zhuchkov)
| Attachment: | failed-rust-dependents.txt added |
|---|
Failed Rust Monterey x86_64 dependents
Changed 4 months ago by azhuchkov (Andrey Zhuchkov)
| Attachment: | find-rust-failures.py added |
|---|
Script to find ports failed due to rust dependency
comment:3 follow-up: 4 Changed 4 months ago by azhuchkov (Andrey Zhuchkov)
Replying to ryandesign:
The rust build is starting:
If that succeeds, the cargo build will be next:
Thanks, Ryan. Works like a charm. I attached the list of ports that were affected by the rust failure. And script that I used to find them. So please consider it - I suppose it's worth to trigger builds of those ports either.
comment:4 Changed 4 months ago by ryandesign (Ryan Carsten Schmidt)
Replying to azhuchkov:
I attached the list of ports that were affected by the rust failure. And script that I used to find them. So please consider it - I suppose it's worth to trigger builds of those ports either.
Excellent, thanks. These are running now:

The archive is missing for the reason you stated: there was not enough free space on the builder's disk. It would be helpful if the rust ports could reduce the amount of disk space they require to build. See #72230. If I can free enough disk space on that builder and retry the build I will.