-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Ship binaries for 32-bit ARM architecture #9670
Comments
We have AArch64 (64-bit ARM) binaries, but not 32-bit ones. Our memory usage tends to get a bit high, and the 3GB available on 32-bit might sometimes be tight, depending on how much code you have. But you don't need to compile it, you can get a it from rustup. It's available in the nightly toolchain as That doesn't mean you can use nightly for your project, you can keep on using |
Most Raspberry Pis are AArch64, maybe you've installed a 32-bit OS by accident? What does Using rust-analyzer should work on a Raspberry Pi 4, but you'll probably want the version with 8 GB of RAM. |
I think Raspbian is still 32-bit: https://www.raspberrypi.org/software/operating-systems/ |
Oh |
Well, I got it working after building from source. For now, my project is very tiny, so the memory usage is not a problem. |
Is there any reason why you couldn't use the version in |
I didn't try. I had already started compiling by the time I posted the original issue. It took about an hour on my Raspbery Pi 4. If I had to do it again, I'd try |
Oh, okay.
Ugh. |
I thought that was pretty good for the Raspberry Pi! |
I would personally still be interested in 32-bit ARM binaries, if only to avoid any extra manual work of having to install binaries and have new versions of the VSCode plugin just "do the right thing". In the interim, down to 36 minutes on a 4-core SBC w/ 2GB RAM: Finished release [optimized] target(s) in 36m 39s
Replacing /home/wjones/.cargo/bin/rust-analyzer
Replaced package `rust-analyzer v0.0.0 (/home/wjones/src/rust/rust-analyzer/crates/rust-analyzer)` with `rust-analyzer v0.0.0 (/home/wjones/src/rust/rust-analyzer/crates/rust-analyzer)` (executable `rust-analyzer`)
wjones@DietPi:~/src/rust/rust-analyzer$ uname -a
Linux DietPi 4.19.69-rockchip #5.95 SMP PREEMPT Mon Sep 2 07:34:36 CEST 2019 armv7l GNU/Linux
Although I guess this should be obvious in retrospect, the docs didn't make it clear that a If |
There is an open rustup PR to add a rustup wrapper for rust-analyzer. |
(rust-lang/rustup#3022 adds the wrapper) |
VS Code does seem to support 32-bit ARM, and according to https://code.visualstudio.com/api/working-with-extensions/publishing-extension#platformspecific-extensions it has a |
Yeah. Windows 32-bit has also been requested quite often. |
With #12920, the prerelease version 0.4.1154 now provides a 32-bit ARM Linux release. Please try it out to see if it works. |
@jonas-schievink The pre-release appears to be working correctly on my SBC, thanks for adding it!
wjones@DietPi:~/src/rust/pi-ctl$ uname -a
Linux DietPi 4.19.69-rockchip #5.95 SMP PREEMPT Mon Sep 2 07:34:36 CEST 2019 armv7l GNU/Linux |
Great to hear! It would be good if someone could test on a Raspberry Pi too, since those are used quite often. |
#13081 may apply to this issue as well- it does on my SBC running Buster. I'll upgrade to Bullseye soon. However, the plugin itself downloads the binary just fine (which then results in the |
If your plugin downloads anything, that's probably #11080. |
|
I installed rust-analyzer for VSCode and an error message popped up:
I'm working on an embedded Rust project on my Raspberry Pi. I'm using VSCode's "remote ssh" mode, where the code lives on the Raspberry Pi but I'm developing remotely from my Macbook.
I'll try building from source, but adding the issue here because the helpful error message suggested it.
The text was updated successfully, but these errors were encountered: