rust-lang / rust-lang/rustup

toolchain '$toolchain' may not be able to run on this system UX is not working well

Open
#2,672 18 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug E-easy E-mentor help wanted
Dominant language
Rust
Stars
7k
Forks
1.1k
Avg merge
22h 40m
Merged PRs (30d)
46

Description

Wanting to use musl instead of gnu, I run into this issue:

$ rustup toolchain add stable-x86_64-unknown-linux-musl
warning: toolchain 'stable-x86_64-unknown-linux-musl' may not be able to run on this system.
warning: If you meant to build software to target that platform, perhaps try `rustup target add x86_64-unknown-linux-musl` instead?
info: syncing channel updates for 'stable-x86_64-unknown-linux-musl'

  stable-x86_64-unknown-linux-musl unchanged - (error reading rustc version)

Notes

$ rustup --version
rustup 1.23.1 (2020-12-18)
info: This is the version for the rustup toolchain manager, not the rustc compiler.
info: The currently active `rustc` version is `(error reading rustc version)`
$ rustup show
Default host: x86_64-unknown-linux-gnu
rustup home:  /home/folaht/.rustup

installed toolchains
--------------------

stable-x86_64-unknown-linux-gnu
stable-x86_64-unknown-linux-musl (default)

active toolchain
----------------

stable-x86_64-unknown-linux-musl (default)
(error reading rustc version)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce rustup toolchain add stable-x86_64-unknown-linux-musl and inspect the command path that emits the host-compatibility warning and reports the rustc version error. The issue names no files or tests; done should be defined as clearer, accurate UX for this toolchain-installation case, with coverage for the reported output.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
cli, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.