Skip to content

aarch64 toolchain is selected when running rustup in an armv7 docker container on an aarch64 host #3487

@alex

Description

@alex

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

  1. sudo docker run --platform=linux/arm/v7 --rm -it ubuntu:jammy
  2. apt update && apt install curl
  3. 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

n/a

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions