Rustup malloc fail

On a Raspberry PI

pi@steppnav_pi:~$ rustup update
info: syncing channel updates for 'stable-armv7-unknown-linux-gnueabihf'
info: latest update on 2021-05-10, rust version 1.52.1 (9bc8c42bb 2021-05-09)
info: downloading component 'rustc'
84.0 MiB / 84.0 MiB (100 %) 35.4 MiB/s in 3s ETA: 0s
info: downloading component 'cargo'
info: downloading component 'rust-std'
info: downloading component 'rustfmt'
info: downloading component 'clippy'
info: removing previous version of component 'rustc'
warning: during uninstall component rustc was not found
info: removing previous version of component 'cargo'
warning: during uninstall component cargo was not found
info: removing previous version of component 'rust-std'
warning: during uninstall component rust-std was not found
info: removing previous version of component 'rustfmt'
warning: during uninstall component rustfmt was not found
info: removing previous version of component 'clippy'
warning: during uninstall component clippy was not found
info: installing component 'rustc'
info: using up to 500.0 MiB of RAM to unpack components
** 20.9 MiB / 84.0 MiB ( 25 %) 3.6 MiB/s in 6s ETA: 17smemory allocation of 16777216 bytes failed**
Aborted

Sounds like you have just run out of RAM.

Which model Pi do you have? With how much RAM?

Do you have swap enabled?

If it's any consolation rustup has been working fine on my 8GB Pi 4.

Rustup 1.24 has improved support for low-memory devices. Check to see if you are using the latest version by running:

rustup self update
3 Likes