-
Notifications
You must be signed in to change notification settings - Fork 904
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
rustup-init.sh does not correctly detect host string for Pinebook Pro #2111
Comments
Can you please confirm the output of |
|
Okay, that's fascinating. I suppose it might be similar to someone running an Perhaps we could add a check via |
LONG_BIT does indeed report 32, yeah. |
But is |
I'd only be suggesting the use of |
@NoraCodes Short term fix for you would be to download |
Thank you, that worked well. |
Okay cool, so @NoraCodes can at least get on with Rust on her Pinebook, and I have an idea for how we might resolve this for future users. |
If anyone wishes to approach this, please let me know here, or via Discord in the |
This should fix rust-lang#2111 Signed-off-by: Daniel Silverstone <[email protected]>
@NoraCodes Could you please try https://raw.githubusercontent.com/kinnison/rustup.rs/kinnison/32bit-linux-on-64bit-kernel/rustup-init.sh which contains the little fix I think we need for this? All you need do is download it, and run it and see if it fetches the right installer. If it doesn't, please run it |
I am away from my PBP at the moment but I will do this tomorrow. Thanks for the prompt attention! |
Sorry that "tomorrow" became Wednesday :/ In any case, I get an error that |
We duplicate the 'eabihf' suffix code here to ensure that if we select armv7 as a result, we append the ABI suffix if necessary. This should fix rust-lang#2111 Signed-off-by: Daniel Silverstone <[email protected]>
@NoraCodes Hmm, 404 seems odd, but we're getting somewhere (It's wanting to change its decision a bit) I'll have a rummage and see what I've missed...
I've pushed a fix to that branch, I wasn't taking into account the fact that armv7 non-android has an ABI suffix. Could you give that same link a fresh go? If it works then we're sorted. |
Works perfectly, thank you! |
Fabulous, thank you for the testing. I shall file a PR soon. |
We duplicate the 'eabihf' suffix code here to ensure that if we select armv7 as a result, we append the ABI suffix if necessary. This should fix rust-lang#2111 Signed-off-by: Daniel Silverstone <[email protected]>
Problem
On Pinebook Pro Debian stretch (9.9),
rustup-init.sh
tries to downloadrustup-init
foraarch64
, but that doesn't work; the CPU is ARMv8. Even once I downloaded anarmv7
rustup-init
, it guessed the wrong target triple.Possible Solution(s)
Instead of just checking
uname
, check the actualld
library; on my machine this is onlyld-linux-armhf.so.3
and therefore it is detectable that anyaarch64
binaries won't run.The text was updated successfully, but these errors were encountered: