Rust build from source failing on macOS 27
Mark E Anderson
mark at macports.org
Mon Jun 15 23:05:22 UTC 2026
Anyone seen something like this building Rust from source? I've never done it before, and I'm trying on macOS 27, so it could just be that. Gonna give it a try on 26 building from source and see if it happens again. I've never built it from source and the process is something else. If it's just on 27 should I hold off filing the bug ticket release, or file it now?
—Mark
Macports Wiki Page <https://trac.macports.org/wiki/mark> | GitHub <https://github.com/markemer> | Blog <https://emer.net>
Compiling clap v4.5.20
error[E0463]: can't find crate for `clap_derive`
--> /opt/local/var/macports/build/rust-e37df430/work/rustc-1.96.0-src/vendor/clap-4.5.20/src/lib.rs:91:9
|
91 | pub use clap_derive::{self, Args, Parser, Subcommand, ValueEnum};
| ^^^^^^^^^^^ can't find crate
For more information about this error, try `rustc --explain E0463`.
error: could not compile `clap` (lib) due to 1 previous error
warning: build failed, waiting for other jobs to finish...
failed to run: /opt/local/var/macports/build/rust-e37df430/work/cargo-1.95.0-aarch64-apple-darwin/cargo/bin/cargo build --jobs=default --manifest-path /opt/local/var/macports/build/rust-e37df430/work/rustc-1.96.0-src/src/bootstrap/Cargo.toml -Zroot-dir=/opt/local/var/macports/build/rust-e37df430/work/rustc-1.96.0-src -Zwarnings --offline
Build completed unsuccessfully in 0:00:08
make: *** [all] Error 1
make: Leaving directory `/opt/local/var/macports/build/rust-e37df430/work/rustc-1.96.0-src'
Command failed: cd "/opt/local/var/macports/build/rust-e37df430/work/rustc-1.96.0-src" && /usr/bin/make -j10 -w all BOOTSTRAP_ARGS="-j10"
Exit code: 2
Error: Failed to build rust: command execution failed
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-dev/attachments/20260615/0c71986b/attachment-0001.htm>
More information about the macports-dev
mailing list