-
Notifications
You must be signed in to change notification settings - Fork 394
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
rust-std is not available for mips anymore (for ~2 days) #1336
Comments
This would be a perfect opportunity to have This seems like a problem with rustup not reporting correctly. if you look at a successful run, here you see that cross installed the target, in the log where it first failed, it doesnt. now, cross checks for what is needed using The logic is here: Lines 469 to 476 in 88f49ff
if target is not installed && target is available, install the target, else if rust-src is not installed, install rust-src (this is to then use build-std/xargo) So, I suspect something is wrong with what rustup is reporting, it's probably saying that |
if this issue still exists, can you show what and then run |
This is due to mips being demoted to t3. See rust-lang/rust#115218 To solve this issue with the mips targets being demoted to t3, you'll have to enable #Cross.toml
[target.mips-unknown-linux-gnu]
build-std = true Change the target to whatever mips you're using. We should update to not be on nightly, you might be able to instead use |
ping @rapiz1, this is the solution for your problem as well |
Good to know. As I said, we solved the problem at hand by using a different target. I just wanted to let you know in case something was horribly wrong - but everything seems alright. Thanks for the time and for the solution :) |
Checklist
Describe your issue
summary: mips suddenly stopped working due to std missing. works again when using powerpc target instead, which solves the issue for us. this is just to let you know something went wrong. locally, i couldn't reproduce the behaviour, but in the github workflows, it consistently failed.
details:
cross build --target mips-unknown-linux-gnu --verbose
error[E0463]: can't find crate for 'core' note: the 'mips-unknown-linux-gnu' target may not be installed help: consider downloading the target with 'rustup target add mips-unknown-linux-gnu'
and later cross-rs prints
warning: rust-std is not available for mips-unknown-linux-gnu
powerpc-unknown-linux-gnu
What target(s) are you cross-compiling for?
mips-unknown-linux-gnu
Which operating system is the host (e.g computer cross is on) running?
What architecture is the host?
What container engine is cross using?
cross version
0.2.5
Example
github-workflow-rust.yaml
Additional information / notes
No response
The text was updated successfully, but these errors were encountered: