Skip to content
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 crashes (detects wrong cpu?) on Scaleway ARM7 server #587

Closed
sourcefrog opened this issue Jul 16, 2016 · 4 comments
Closed

rustup crashes (detects wrong cpu?) on Scaleway ARM7 server #587

sourcefrog opened this issue Jul 16, 2016 · 4 comments

Comments

@sourcefrog
Copy link
Contributor

% curl https://sh.rustup.rs -sSf | sh -s -- --help
info: downloading installer
Illegal instruction
rustup: command failed: /tmp/tmp.AJc37brj9i/rustup-init --help

The cpu here is a ARMv7 Processor rev 2 (v7l) but apparently without NEON extensions, so that may be the problem.

@sourcefrog
Copy link
Contributor Author

It seems to be detecting armv7-unknown-linux-gnueabihfbut https://users.rust-lang.org/t/rust-web-development-hosting/5975/3 suggests that it needs arm-unknown-linux-gnueabihf instead.

@sourcefrog
Copy link
Contributor Author

arm-unknown-linux-gnueabihf does work here so it sounds like the shell script is just detecting the wrong thing.

@sourcefrog
Copy link
Contributor Author

I think it would work to look at the flags in cpuinfo and see if the cpu has neon.

@sourcefrog
Copy link
Contributor Author

cpuinfo contains

processor       : 0
model name      : ARMv7 Processor rev 2 (v7l)
BogoMIPS        : 50.00
Features        : half thumb fastmult vfp edsp thumbee vfpv3 tls idiva idivt vfpd32 lpae
CPU implementer : 0x56
CPU architecture: 7
CPU variant     : 0x2
CPU part        : 0x584
CPU revision    : 2

I'll send you a patch for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant