-
Notifications
You must be signed in to change notification settings - Fork 899
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
Failed to allocate memory when installing a Rust toolchain (armv7-unknown-linux-gnueabihf
)
#2764
Comments
As a workaround, I told them to use Rustup v1.3.1 for now and it worked for them. Installing Rustup v1.3.1 $ TARGET_TRIPLE=armv7-unknown-linux-gnueabihf
$ curl -L -O https://static.rust-lang.org/rustup/archive/1.23.1/${TARGET_TRIPLE}/rustup-init
$ chmod +x rustup-init
$ ./rustup-init -y --default-toolchain none
$ source $HOME/.cargo/env
$ rustup -V
rustup 1.23.1 ... Installing the latest Rust stable $ RUSTUP_UNPACK_RAM=100000000 rustup install stable
...
thread 'main' panicked at 'RUSTUP_UNPACK_RAM must be larger than 220000000', src/dist/component/package.rs:202:13
...
$ RUSTUP_UNPACK_RAM=220000000 rustup install stable
...
stable-armv7-unknown-linux-gnueabihf installed - rustc 1.52.0 (88f19c6da 2021-05-03)
info: default toolchain set to 'stable-armv7-unknown-linux-gnueabihf'
info: checking for self-updates
info: downloading self-update
$ rustc -V
rustc 1.52.0 (88f19c6da 2021-05-03)
$ cargo -V
cargo 1.52.0 (69767412a 2021-04-21) |
I had the same issue on my Raspberry Pi 3 running Raspbian 10 arm32. |
I met same problem on cubietruck(like rpi3) running latest armbian(kernel 5.10.y). |
Yes, its the same problem as # #2759 |
I've updated the beta testing post on the users forum with details of how to test our proposed fix - https://internals.rust-lang.org/t/seeking-testers-for-rustup-1-24-2-beta/14634/6 |
I don't have an irlo account so I'll just confirm here; 1.24.2 fixes the issue for me. |
Problem
A user in a Japanese Rust community has reported that he/she cannot use Rustup v1.4.1 to install Rust to a Raspberry Pi 3 (with a 32-bit Arm Linux). It fails when unpacking a component due to a memory allocation error.
Another user in the community confirmed the problem using his Raspberry Pi 3.
Steps
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
Notes
armv7-unknown-linux-gnueabihf
This issue seems similar to #2759 (Windows MSVC) but in a different platform.
The text was updated successfully, but these errors were encountered: