Problem
When rustup
is run in an armv7 docker container, which is running on an aarch64 host, it will select an aarch64 toolchain, instead of selecting an arm32 one.
Steps
sudo docker run --platform=linux/arm/v7 --rm -it ubuntu:jammy
apt update && apt install curl
curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain stable --profile minimal
You will see:
root@967b67561059:/# curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain stable --profile minimal
info: downloading installer
info: profile set to 'minimal'
info: default host triple is aarch64-unknown-linux-gnu
info: syncing channel updates for 'stable-aarch64-unknown-linux-gnu'
However it should be selecting an arm32 host triple.
(Note that it'll also hang due to #3122, but that's a separate issue.)
Possible Solution(s)
No response
Notes
No response
Rustup version
rustup-init 1.26.0 (5af9b9484 2023-04-05)
Installed toolchains