-
-
Notifications
You must be signed in to change notification settings - Fork 59
Closed
Labels
A-Cargo-nightlyAn issue present in Cargo nightlyAn issue present in Cargo nightlyA-Cargo-problemA problem related to cargo itselfA problem related to cargo itselfF-CargoParityTasks related to make the behavior as close as cargo as possibleTasks related to make the behavior as close as cargo as possiblehacktoberfesthelp wantedExtra attention is neededExtra attention is needed
Description
Trying to build a cargo-c project with the build-std unstable cargo option results in a perplexing error:
# project: https://github.com/xiph/rav1e
# ^ commit: 953fbb2e8f3c0869caa735b2f6fb5c2d43930858
cargo cbuild --version
# cargo-c 0.10.4+cargo-0.82.0
cargo --version
# cargo 1.83.0-nightly (c1fa840a8 2024-08-29)
rustup show active-toolchain
# nightly-x86_64-unknown-linux-gnu (default)
rustup component list --installed --toolchain nightly | grep rust-src
# rust-src
cargo cbuild --target x86_64-unknown-linux-gnu -Z build-std=std,core,alloc
# Error: CliError { error: Some("/home/insomnia/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/Cargo.lock" does not exist, unable to build with the standard library, try:
# rustup component add rust-src --toolchain nightly-x86_64-unknown-linux-gnu), exit_code: 101 }
rustup component add rust-src --toolchain nightly-x86_64-unknown-linux-gnu
# info: component 'rust-src' is up to date Note that I'm able to compile non-cargo-c projects with build-std using the same installation; I'm confident it's not directly cargo's fault.
Is it maybe because cargo-c's version string claims it's built for cargo 1.82.0?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
A-Cargo-nightlyAn issue present in Cargo nightlyAn issue present in Cargo nightlyA-Cargo-problemA problem related to cargo itselfA problem related to cargo itselfF-CargoParityTasks related to make the behavior as close as cargo as possibleTasks related to make the behavior as close as cargo as possiblehacktoberfesthelp wantedExtra attention is neededExtra attention is needed