Skip to content
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

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

Closed
alex opened this issue Sep 22, 2023 · 2 comments
Labels

Comments

@alex
Copy link
Member

alex commented Sep 22, 2023

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
@rami3l
Copy link
Member

rami3l commented Sep 23, 2023

@alex Thanks a lot for your report!

This is a known issue and I'm willing to look into it when I have time to do so. Please refer to #3307 for further updates 1 :)

Footnotes

  1. Would you be so kind to close this issue? Our main maintainer here has limited bandwidth these days and it would be so nice if you can do us a favor and close this issue as duplicate. Thanks again 🙏

@alex
Copy link
Member Author

alex commented Sep 23, 2023

My apologies for not noticing this is a duplicate! Closing now.

@alex alex closed this as completed Sep 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants