Open phil-opp opened 7 years ago
Could you please expand on your workaround? I'm running into this issue too, and copying my crate to another directory and then running xargo build --target foo
still just causes the exact same error.
I found that making any new directory that only has the Cargo.toml/lock and target.json from the original crate and then running xargo build --target target
works. It will obviously fail but it should build core and the other dependencies before attempting to build your crate.
I'm not sure if its other files in the directory messing things up or it might just be a different directory name that avoids the issue.
I get this error whenever xargo tries to rebuild the sysroot (e.g. on a rust update):
Doing a
xargo clean
doesn't help. However, it works if I copy the complete crate to a new location (e.g. to Desktop) and compile it there. Afterwards, the sysroot for the target exists and thus the crate at the old location compiles too.I'm using the current master version (239c96936f8d9d95a5b6862e654d4939cecf846b), but the issue also occurs with the crates.io versions of xargo.
Rust/Cargo versions: rustc 1.15.0-nightly (8f02c429a 2016-12-15) cargo 0.16.0-nightly (ddb5c32 2016-12-16)