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

error: toolchain 'stable-x86_64-pc-windows-msvc' does not support components #1793

Closed
emturner opened this issue Apr 23, 2019 · 11 comments
Closed
Labels

Comments

@emturner
Copy link

emturner commented Apr 23, 2019

Problem

attempting to list a toolchain's components gives an error on Windows 10. The same error is given trying to add components.

rustup component list
error: toolchain 'stable-x86_64-pc-windows-msvc' does not support components

Steps

  1. .\rustup-init.exe with default options
  2. rustup default stable
  3. rustup component list

Notes
Fresh install of rustup, Windows 10 build 17763
same happens with the GNU toolchain

Possibly a duplicate of #1184

Output of rustup --version: rustup 1.17.0 (069c88ed6 2019-03-05)
Output of rustup show:

Default host: x86_64-pc-windows-msvc

stable-x86_64-pc-windows-msvc (default)
rustc 1.34.0 (91856ed52 2019-04-10)
@emturner emturner added the bug label Apr 23, 2019
@kinnison
Copy link
Contributor

The output of rustup show looks truncated. Also Rustup 1.18.0 was released this morning and may have a better error message (we've changed a bunch of stuff around errors) so could you please try rustup self update and then rustup component list again? (Also show me the full output of rustup show

@emturner
Copy link
Author

thanks!

PS > rustup self update
info: checking for self-updates
info: downloading self-update
info: rustup updated successfully to 1.18.0

PS > rustup show
Default host: x86_64-pc-windows-msvc

stable-x86_64-pc-windows-msvc (default)
rustc 1.34.0 (91856ed52 2019-04-10)

PS > rustup component list
error: toolchain 'stable-x86_64-pc-windows-msvc' does not support components

that's the full output of rustup show - it definitely does look different to how I've seen it on linux

@kinnison
Copy link
Contributor

That looks very odd indeed. Can you confirm that the stable toolchain is in fact installed properly? I'd imagine so given the rustc version but that's very odd. Could you try rustup toolchain uninstall stable followed by rustup toolchain install stable and then a fresh rustup show please?

@emturner
Copy link
Author

emturner commented Apr 23, 2019

thanks so much! That seems to have fixed it

PS > rustup toolchain uninstall stable
info: uninstalling toolchain 'stable-x86_64-pc-windows-msvc'
info: toolchain 'stable-x86_64-pc-windows-msvc' uninstalled
PS > rustup show
Default host: x86_64-pc-windows-msvc

(error: toolchain 'stable-x86_64-pc-windows-msvc' is not installed)
PS > rustup toolchain install stable
info: syncing channel updates for 'stable-x86_64-pc-windows-msvc'
info: latest update on 2019-04-11, rust version 1.34.0 (91856ed52 2019-04-10)
info: downloading component 'rustc'
info: downloading component 'rust-std'
info: downloading component 'cargo'
info: downloading component 'rust-docs'
info: installing component 'rustc'
 57.7 MiB /  57.7 MiB (100 %)   9.8 MiB/s ETA:   0 s
info: installing component 'rust-std'
 51.2 MiB /  51.2 MiB (100 %)   9.3 MiB/s ETA:   0 s
info: installing component 'cargo'
info: installing component 'rust-docs'
 10.2 MiB /  10.2 MiB (100 %) 345.6 KiB/s ETA:   0 s

  stable-x86_64-pc-windows-msvc installed - rustc 1.34.0 (91856ed52 2019-04-10)

info: checking for self-updates
PS > rustup show
Default host: x86_64-pc-windows-msvc

stable-x86_64-pc-windows-msvc (default)
rustc 1.34.0 (91856ed52 2019-04-10)
PS > rustup component list
cargo-x86_64-pc-windows-msvc (default)
clippy-x86_64-pc-windows-msvc
llvm-tools-preview-x86_64-pc-windows-msvc
rls-x86_64-pc-windows-msvc
rust-analysis-x86_64-pc-windows-msvc
rust-docs-x86_64-pc-windows-msvc (default)
rust-src
rust-std-aarch64-apple-ios
rust-std-aarch64-fuchsia
rust-std-aarch64-linux-android
rust-std-aarch64-pc-windows-msvc
rust-std-aarch64-unknown-cloudabi
rust-std-aarch64-unknown-linux-gnu
rust-std-aarch64-unknown-linux-musl
rust-std-arm-linux-androideabi
rust-std-arm-unknown-linux-gnueabi
rust-std-arm-unknown-linux-gnueabihf
rust-std-arm-unknown-linux-musleabi
rust-std-arm-unknown-linux-musleabihf
rust-std-armebv7r-none-eabi
rust-std-armebv7r-none-eabihf
rust-std-armv5te-unknown-linux-gnueabi
rust-std-armv5te-unknown-linux-musleabi
rust-std-armv7-apple-ios
rust-std-armv7-linux-androideabi
rust-std-armv7-unknown-linux-gnueabihf
rust-std-armv7-unknown-linux-musleabihf
rust-std-armv7r-none-eabi
rust-std-armv7r-none-eabihf
rust-std-armv7s-apple-ios
rust-std-asmjs-unknown-emscripten
rust-std-i386-apple-ios
rust-std-i586-pc-windows-msvc
rust-std-i586-unknown-linux-gnu
rust-std-i586-unknown-linux-musl
rust-std-i686-apple-darwin
rust-std-i686-linux-android
rust-std-i686-pc-windows-gnu
rust-std-i686-pc-windows-msvc
rust-std-i686-unknown-freebsd
rust-std-i686-unknown-linux-gnu
rust-std-i686-unknown-linux-musl
rust-std-mips-unknown-linux-gnu
rust-std-mips-unknown-linux-musl
rust-std-mips64-unknown-linux-gnuabi64
rust-std-mips64el-unknown-linux-gnuabi64
rust-std-mipsel-unknown-linux-gnu
rust-std-mipsel-unknown-linux-musl
rust-std-nvptx64-nvidia-cuda
rust-std-powerpc-unknown-linux-gnu
rust-std-powerpc64-unknown-linux-gnu
rust-std-powerpc64le-unknown-linux-gnu
rust-std-riscv32imac-unknown-none-elf
rust-std-riscv32imc-unknown-none-elf
rust-std-riscv64gc-unknown-none-elf
rust-std-riscv64imac-unknown-none-elf
rust-std-s390x-unknown-linux-gnu
rust-std-sparc64-unknown-linux-gnu
rust-std-sparcv9-sun-solaris
rust-std-thumbv6m-none-eabi
rust-std-thumbv7em-none-eabi
rust-std-thumbv7em-none-eabihf
rust-std-thumbv7m-none-eabi
rust-std-thumbv7neon-linux-androideabi
rust-std-thumbv7neon-unknown-linux-gnueabihf
rust-std-thumbv8m.main-none-eabi
rust-std-wasm32-unknown-emscripten
rust-std-wasm32-unknown-unknown
rust-std-x86_64-apple-darwin
rust-std-x86_64-apple-ios
rust-std-x86_64-fortanix-unknown-sgx
rust-std-x86_64-fuchsia
rust-std-x86_64-linux-android
rust-std-x86_64-pc-windows-gnu
rust-std-x86_64-pc-windows-msvc (default)
rust-std-x86_64-rumprun-netbsd
rust-std-x86_64-sun-solaris
rust-std-x86_64-unknown-cloudabi
rust-std-x86_64-unknown-freebsd
rust-std-x86_64-unknown-linux-gnu
rust-std-x86_64-unknown-linux-gnux32
rust-std-x86_64-unknown-linux-musl
rust-std-x86_64-unknown-netbsd
rust-std-x86_64-unknown-redox
rustc-x86_64-pc-windows-msvc (default)
rustfmt-x86_64-pc-windows-msvc
PS > rustup component add rustfmt
info: downloading component 'rustfmt'
info: installing component 'rustfmt'

@ErikSchierboom
Copy link

Could you try rustup toolchain uninstall stable followed by rustup toolchain install stable and then a fresh rustup show please?

This also fixed it for me!

@mazjindeel
Copy link

mazjindeel commented Nov 9, 2019

Uninstall and reinstall fixed the following issue for me on Mac as well

[I] ➜ rustup component add rustc --toolchain stable-x86_64-apple-darwin
error: toolchain 'stable-x86_64-apple-darwin' does not support components

@gprearo
Copy link

gprearo commented Sep 5, 2020

Worked here too!

@TheRustifyer
Copy link

Still working on 2021/07/17

torquan added a commit to torquan/buildspace-projects that referenced this issue Nov 22, 2021
I received this error when trying to run ```./scripts/cargo-install-all.sh .```.

Solution found here: rust-lang/rustup#1793
@noahdotpy
Copy link

Thanks, worked perfectly for me xD

@pmutua
Copy link

pmutua commented Jun 28, 2023

This link will help you if you happen to have this issue.

@rami3l
Copy link
Member

rami3l commented Dec 3, 2023

Duplicate of #988.

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

9 participants