-
Notifications
You must be signed in to change notification settings - Fork 899
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
Error running musl rustup on Ubuntu #3254
Comments
This bug would be more relevant on the rust bugtracker; rustup is a package manager, not the generator of the distributions |
moved bug over to rust-lang/rust#108907 ; this can be closed IMO. |
The issue here is that a gnu host is unlikely to be correctly configured for the musl toolchain (and this one was not), which is designed to run on e.g. an actual musl distro, and using the musl toolchain is usually unnecessary for compiling for the musl targets, since you can install the musl targets with the gnu toolchain. As rustc can't do anything when it is executed and fails to link, rustup could try to warn a user about using a mismatched toolchain and inform them that the Rust toolchain performs cross-compilation. They may be expecting it to work like e.g. how gcc is built, where you need a toolchain per target. |
I think we should issue this warning only on an attempt to install a mismatched toolchain. Trying to check every time rustup starts could introduce unacceptable overhead and will likely just be a nuisance. |
Ah, this has been taken care of:
|
Problem
Steps
Install the
x86_64-unknown-linux-musl
toolchain on Ubuntu 23.04.Possible Solution(s)
No response
Notes
No response
Rustup version
Installed toolchains
The text was updated successfully, but these errors were encountered: