Skip to content

Rust does not work after install on Raspberry Pi Zero 2 W #120406

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

Closed
benplay2 opened this issue Jan 27, 2024 · 5 comments
Closed

Rust does not work after install on Raspberry Pi Zero 2 W #120406

benplay2 opened this issue Jan 27, 2024 · 5 comments
Labels
C-discussion Category: Discussion or questions that doesn't represent real issues.

Comments

@benplay2
Copy link

benplay2 commented Jan 27, 2024

I installed rust on my new Raspberry Pi Zero 2 W (with latest Raspbian version). I ran the following, and got a message in the end that it succeeded:

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

After rebooting and running rustc --version, I get a bunch of messages and an error:

> rustc --version
info: syncing channel updates for 'stable-armv7-unknown-linux-gnueabihf'
info: latest update on 2023-12-28, rust version 1.75.0 (82e1608df 2023-12-21)
info: syncing channel updates for 'stable-armv7-unknown-linux-gnueabihf'
info: latest update on 2023-12-28, rust version 1.75.0 (82e1608df 2023-12-21)
info: syncing channel updates for 'stable-armv7-unknown-linux-gnueabihf'
info: latest update on 2023-12-28, rust version 1.75.0 (82e1608df 2023-12-21)
info: syncing channel updates for 'stable-armv7-unknown-linux-gnueabihf'
info: latest update on 2023-12-28, rust version 1.75.0 (82e1608df 2023-12-21)
info: syncing channel updates for 'stable-armv7-unknown-linux-gnueabihf'
info: latest update on 2023-12-28, rust version 1.75.0 (82e1608df 2023-12-21)
info: syncing channel updates for 'stable-armv7-unknown-linux-gnueabihf'
info: latest update on 2023-12-28, rust version 1.75.0 (82e1608df 2023-12-21)
info: syncing channel updates for 'stable-armv7-unknown-linux-gnueabihf'
info: latest update on 2023-12-28, rust version 1.75.0 (82e1608df 2023-12-21)
info: syncing channel updates for 'stable-armv7-unknown-linux-gnueabihf'
info: latest update on 2023-12-28, rust version 1.75.0 (82e1608df 2023-12-21)
info: syncing channel updates for 'stable-armv7-unknown-linux-gnueabihf'
info: latest update on 2023-12-28, rust version 1.75.0 (82e1608df 2023-12-21)
info: syncing channel updates for 'stable-armv7-unknown-linux-gnueabihf'
info: latest update on 2023-12-28, rust version 1.75.0 (82e1608df 2023-12-21)
info: syncing channel updates for 'stable-armv7-unknown-linux-gnueabihf'
info: latest update on 2023-12-28, rust version 1.75.0 (82e1608df 2023-12-21)
info: syncing channel updates for 'stable-armv7-unknown-linux-gnueabihf'
info: latest update on 2023-12-28, rust version 1.75.0 (82e1608df 2023-12-21)
info: syncing channel updates for 'stable-armv7-unknown-linux-gnueabihf'
info: latest update on 2023-12-28, rust version 1.75.0 (82e1608df 2023-12-21)
info: syncing channel updates for 'stable-armv7-unknown-linux-gnueabihf'
info: latest update on 2023-12-28, rust version 1.75.0 (82e1608df 2023-12-21)
info: syncing channel updates for 'stable-armv7-unknown-linux-gnueabihf'
info: latest update on 2023-12-28, rust version 1.75.0 (82e1608df 2023-12-21)
info: syncing channel updates for 'stable-armv7-unknown-linux-gnueabihf'
info: latest update on 2023-12-28, rust version 1.75.0 (82e1608df 2023-12-21)
info: syncing channel updates for 'stable-armv7-unknown-linux-gnueabihf'
info: latest update on 2023-12-28, rust version 1.75.0 (82e1608df 2023-12-21)
info: syncing channel updates for 'stable-armv7-unknown-linux-gnueabihf'
info: latest update on 2023-12-28, rust version 1.75.0 (82e1608df 2023-12-21)
info: syncing channel updates for 'stable-armv7-unknown-linux-gnueabihf'
info: latest update on 2023-12-28, rust version 1.75.0 (82e1608df 2023-12-21)
info: syncing channel updates for 'stable-armv7-unknown-linux-gnueabihf'
info: latest update on 2023-12-28, rust version 1.75.0 (82e1608df 2023-12-21)
info: syncing channel updates for 'stable-armv7-unknown-linux-gnueabihf'
info: latest update on 2023-12-28, rust version 1.75.0 (82e1608df 2023-12-21)
error: 'rustc' is not installed for the toolchain 'stable-armv7-unknown-linux-gnueabihf'
To install, run `rustup component add rustc`

Meta

rustc --version --verbose:

See error above!

Is there something I'm missing or a setting to change?

Thank you,
Ben

> cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 11 (bullseye)"
NAME="Raspbian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"

@benplay2 benplay2 added the C-bug Category: This is a bug. label Jan 27, 2024
@rustbot rustbot added the needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. label Jan 27, 2024
@Aztro-dev
Copy link

Have you ran rustup component add rustc?

@benplay2
Copy link
Author

Have you ran rustup component add rustc?

rustup component add rustc

info: syncing channel updates for 'stable-armv7-unknown-linux-gnueabihf'
info: latest update on 2023-12-28, rust version 1.75.0 (82e1608df 2023-12-21)
error: Missing manifest in toolchain 'stable-armv7-unknown-linux-gnueabihf'

@saethlin
Copy link
Member

It looks like your rustup install is broken. Probably because it ran out of memory while installing or was otherwise interrupted. You should try reinstalling (run rustup self uninstall), but set RUSTUP_IO_THREADS=1 the whole time.

@saethlin saethlin removed the needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. label Jan 27, 2024
@benplay2
Copy link
Author

Awesome, that fixed it! Thank you for the prompt response.

To document what I ran to help others in the future:

export RUSTUP_IO_THREADS=1
rustup self uninstall
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

@saethlin saethlin added C-discussion Category: Discussion or questions that doesn't represent real issues. and removed C-bug Category: This is a bug. labels Jan 27, 2024
@pyprism
Copy link

pyprism commented Jan 28, 2024

export RUSTUP_IO_THREADS=1

Thanks, this works for me. I have a SBC with only 512 mb ram !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-discussion Category: Discussion or questions that doesn't represent real issues.
Projects
None yet
Development

No branches or pull requests

5 participants