-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Please include an ARM targeted version of rustc. #29290
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
that error is a result of using these: I don't think using local rust is working properly (I've only tried it for host x86_64-unknown-linux-gnu, not arm) If someone knows how to fix it, please share... |
I tried adding
So I remade/reinstalled to rust-cross and now the |
Yes unfortunately it's a known problem right now that you can't bootstrap the compiler for a target which you can't yourself run locally (e.g. nothing other than i686 -> x86_64 or vice versa works). We've actually just recently started to produce artifacts for the standard library (you can see more as well) and the tooling will soon be updated to help you install those locally! It means you'll have to have a cross compiler available (and won't be able to run rustc itself on the device), but it should at least get some of the way there. As this is tracked elsewhere, though, I'm going to close for now. |
Can you please elaborate on whether we'll be able to compile rust ON an arm processor? Or why not? I'm having trouble sifting through all the information. If I could get this compiler on an arm tablet, I think that'd be the only non-phone computer I'd need anymore! |
There have been efforts to get an arm host compiler (a rustc which runs on an arm processor), but they haven't been moved into our build system as of yet. The build system currently attempts to bootstrap any host target (those which have compilers built) from themselves, but this doesn't work if you're crossing from x86 -> arm because you can't actually run the arm compiler, and this is tracked by #5258. We'd certainly like this to be a possibility, however! I know of no fundamental blocker preventing the compiler from running on an arm processor, it's just a limitation of our build system. |
I'm trying to actually use rustc ON a raspberry pi. On an x64 machine, I tried compiling a cross-compiling rustc targetting ARM and then using that to cross-compile rust itself for ARM:
But that finally fails with:
The text was updated successfully, but these errors were encountered: