-
Notifications
You must be signed in to change notification settings - Fork 884
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
Unable to add component rust-src
with rustup
1.20.2
#2081
Comments
I have just installed 1.38.0 freshly for the same target and I can Could you please find and attach |
Hello, no problem, here it is. Uploaded (renamed to |
multirust-channel-manifest.toml.txt I got similar error in Windows with rust 1.38.0 and rustup 1.20.2:
|
I solved it by following these steps:
Then it surprisingly works. I guess there might be some issues in the |
All those channel manifests look right, so I have no idea how it could have happened for one of you, let alone both of you. I'd really appreciate it if you could see if you can come up with a reproduction method from fresh install, because if you can, I'll be able to investigate more effectively. |
@kinnison Try these steps:
C:\Users\0w0\Downloads>rustc --version
rustc 1.38.0 (625451e37 2019-09-23)
C:\Users\0w0\Downloads>rustup component add rust-src
error: component 'rust-src' for target 'x86_64-pc-windows-msvc' is unavailable for download for channel stable
C:\Users\0w0\Downloads>rustup update
info: syncing channel updates for 'stable-x86_64-pc-windows-msvc'
info: checking for self-updates
stable-x86_64-pc-windows-msvc unchanged - rustc 1.38.0 (625451e37 2019-09-23)
C:\Users\0w0\Downloads>rustup component list
cargo-x86_64-pc-windows-msvc (installed)
clippy-x86_64-pc-windows-msvc (installed)
llvm-tools-preview-x86_64-pc-windows-msvc (installed)
rls-x86_64-pc-windows-msvc (installed)
rust-analysis-x86_64-pc-windows-msvc (installed)
rust-docs-x86_64-pc-windows-msvc (installed)
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-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-gnueabi
rust-std-armv7-unknown-linux-gnueabihf
rust-std-armv7-unknown-linux-musleabi
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-riscv32i-unknown-none-elf
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.base-none-eabi
rust-std-thumbv8m.main-none-eabi
rust-std-thumbv8m.main-none-eabihf
rust-std-wasm32-unknown-emscripten
rust-std-wasm32-unknown-unknown
rust-std-wasm32-wasi
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 (installed)
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
rustc-x86_64-pc-windows-msvc (installed)
rustfmt-x86_64-pc-windows-msvc (installed)
C:\Users\0w0\Downloads>where rustup
C:\Users\0w0\.cargo\bin\rustup.exe
C:\Users\0w0\Downloads>rustup uninstall stable
info: uninstalling toolchain 'stable-x86_64-pc-windows-msvc'
info: toolchain 'stable-x86_64-pc-windows-msvc' uninstalled
C:\Users\0w0\Downloads>rustup self update
info: checking for self-updates
C:\Users\0w0\Downloads>rustup install stable
info: syncing channel updates for 'stable-x86_64-pc-windows-msvc'
info: latest update on 2019-09-26, rust version 1.38.0 (625451e37 2019-09-23)
error: some components unavailable for download for channel stable: 'lldb-preview', 'miri'
If you require these components, please install and use the latest successful build version,
which you can find at <https://rust-lang.github.io/rustup-components-history>.
After determining the correct date, install it with a command such as:
rustup toolchain install nightly-2018-12-27
Then you can use the toolchain with commands such as:
cargo +nightly-2018-12-27 build
C:\Users\0w0\Downloads>rustup --verbose install stable
verbose: read metadata version: '12'
verbose: installing toolchain 'stable-x86_64-pc-windows-msvc'
verbose: toolchain directory: 'C:\Users\0w0\.rustup\toolchains\stable-x86_64-pc-windows-msvc'
info: syncing channel updates for 'stable-x86_64-pc-windows-msvc'
verbose: creating temp file: C:\Users\0w0\.rustup\tmp\6wjtkknb701gamfe_file
verbose: downloading file from: 'https://static.rust-lang.org/dist/channel-rust-stable.toml.sha256'
verbose: downloading with reqwest
verbose: deleted temp file: C:\Users\0w0\.rustup\tmp\6wjtkknb701gamfe_file
verbose: no update hash at: 'C:\Users\0w0\.rustup\update-hashes\stable-x86_64-pc-windows-msvc'
verbose: creating temp file: C:\Users\0w0\.rustup\tmp\pdw93618vak27kie_file.toml
verbose: downloading file from: 'https://static.rust-lang.org/dist/channel-rust-stable.toml'
verbose: downloading with reqwest
verbose: checksum passed
verbose: deleted temp file: C:\Users\0w0\.rustup\tmp\pdw93618vak27kie_file.toml
info: latest update on 2019-09-26, rust version 1.38.0 (625451e37 2019-09-23)
verbose: removing toolchain directory: 'C:\Users\0w0\.rustup\toolchains\stable-x86_64-pc-windows-msvc'
error: some components unavailable for download for channel stable: 'lldb-preview', 'miri'
If you require these components, please install and use the latest successful build version,
which you can find at <https://rust-lang.github.io/rustup-components-history>.
After determining the correct date, install it with a command such as:
rustup toolchain install nightly-2018-12-27
Then you can use the toolchain with commands such as:
cargo +nightly-2018-12-27 build
|
My actions were completely the same, but for linux. |
Wonderful, thank you for that reproduction process. I shall try it out and see if I can work out what's going on. |
Okay this is something odd about how we install My analysis thus-far is:
So I'm going to look into how |
Some components have no target (target="*") and as such when we install them, we should not ascribe a target to them. Before this, installing `--profile complete` would incorrectly show `rust-src` as not installed, despite being so. After this fix, anyone updating such a broken toolchain install must first `rustup component remove rust-src` and then reinstall it either before or after upgrading. Fixes: rust-lang#2081
Problem
I have
rustup
1.20.2 installed withcomplete
profile.When I try to do:
I get the following error:
Steps
rustup
1.20.2 and use complete profile.rustup component add rust-src
Notes
`rustup` metadata:
The text was updated successfully, but these errors were encountered: