-
Notifications
You must be signed in to change notification settings - Fork 889
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
complete profile is an attractive nuisance #2661
Comments
You may have interrupted the download. |
No.
No. This is a completely fresh start. rustup and cargo directories don't exist. It only happens in complete profile. I guess two components provide the same file or something like that.
|
Don't use the complete profile. It is not intended for use. |
Ah Ok. So could we remove this user visible option? |
I agree that it is confusing and I'll bring it up for discussion at our next dev-tools meeting. I'm considering hiding |
I'm using the I even removed the Host: macOS big sur 11.1 (20C69)
The install works using the
|
this is needed bc of some bug(?) in rustup not being able to install the necessary toolchain without error using the `default` profile see my comment in the rustup project: rust-lang/rustup#2661 (comment)
this is needed bc of some bug(?) in rustup not being able to install the necessary toolchain without error using the `default` profile see my comment in the rustup project: rust-lang/rustup#2661 (comment)
For reference, from the dev-tools meeting, I was tasked with taking the discussion to the In the meantime the dev-tools team, as a whole, was okay with the idea of hiding the |
Like @blesson3, I'm running into the exact same issue, but on Linux, Pop!_OS 20.04 (an Ubuntu variant). Note that this happens both with
Note also that it's the exact same file that's conflicting ( |
@rubin55 The |
This comment has been minimized.
This comment has been minimized.
522: specify the `minimal` profile when installing rust toolchain (due to bug in rustup?) r=Emilgardis a=blesson3 this is needed bc of some bug(?) in rustup not being able to install the necessary toolchain without error using the `default` profile, so the `minimal` profile is needed. see my comment in the rustup project regarding this issue: rust-lang/rustup#2661 (comment) this is the error I get when running cross ``` # clear all toolchains $ rm -rf ~/.rustup $ cross build --target aarch64-unknown-linux-gnu warning: toolchain 'nightly-x86_64-unknown-linux-gnu' 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-gnu` instead? info: syncing channel updates for 'nightly-x86_64-unknown-linux-gnu' info: latest update on 2021-02-22, rust version 1.52.0-nightly (3e826bb11 2021-02-21) info: downloading component 'cargo' info: downloading component 'clippy' info: downloading component 'rust-docs' 15.0 MiB / 15.0 MiB (100 %) 10.0 MiB/s in 1s ETA: 0s info: downloading component 'rust-std' 24.9 MiB / 24.9 MiB (100 %) 12.7 MiB/s in 2s ETA: 0s info: downloading component 'rustc' 47.9 MiB / 47.9 MiB (100 %) 13.5 MiB/s in 3s ETA: 0s info: downloading component 'rustfmt' info: installing component 'cargo' info: using up to 500.0 MiB of RAM to unpack components info: installing component 'clippy' info: installing component 'rust-docs' 15.0 MiB / 15.0 MiB (100 %) 6.0 MiB/s in 2s ETA: 0s info: rolling back changes error: failed to install component: 'rust-docs-x86_64-unknown-linux-gnu', detected conflict: '"share/doc/rust/html/std/keyword.self.html"' error: couldn't install toolchain `nightly-x86_64-unknown-linux-gnu` caused by: `"rustup" "toolchain" "add" "nightly-x86_64-unknown-linux-gnu"` failed with exit code: Some(1) note: run with `RUST_BACKTRACE=1` for a backtrace ``` I get the same error when running cross with the following (randomly selected toolchains) - `aarch64-unknown-linux-gnu` - `armv7-linux-androideabi` - `thumbv6m-none-eabi` - `s390x-unknown-linux-gnu` `cargo test` seems to pass and cross-compilation seems to work okay now (with this PR). ### Another work-around that isn't this pull request <details> <summary>install the toolchain outside of cross using the `minimal` profile, then run cross command</summary> ``` $ rm -rf ~/.rustup $ rustup toolchain add nightly-x86_64-unknown-linux-gnu --profile minimal warning: toolchain 'nightly-x86_64-unknown-linux-gnu' 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-gnu` instead? info: syncing channel updates for 'nightly-x86_64-unknown-linux-gnu' info: latest update on 2021-02-22, rust version 1.52.0-nightly (3e826bb11 2021-02-21) info: downloading component 'cargo' info: downloading component 'rust-std' 24.9 MiB / 24.9 MiB (100 %) 12.4 MiB/s in 2s ETA: 0s info: downloading component 'rustc' 47.9 MiB / 47.9 MiB (100 %) 13.6 MiB/s in 3s ETA: 0s info: installing component 'cargo' info: using up to 500.0 MiB of RAM to unpack components info: installing component 'rust-std' 24.9 MiB / 24.9 MiB (100 %) 11.1 MiB/s in 2s ETA: 0s info: installing component 'rustc' 47.9 MiB / 47.9 MiB (100 %) 12.6 MiB/s in 3s ETA: 0s nightly-x86_64-unknown-linux-gnu installed - (error reading rustc version) info: default toolchain set to 'nightly-x86_64-unknown-linux-gnu' info: checking for self-updates $ cross build --target aarch64-unknown-linux-gnu info: downloading component 'rust-std' for 'aarch64-unknown-linux-gnu' info: installing component 'rust-std' for 'aarch64-unknown-linux-gnu' info: using up to 500.0 MiB of RAM to unpack components 26.6 MiB / 26.6 MiB (100 %) 11.5 MiB/s in 2s ETA: 0s Compiling libc v0.2.77 Compiling proc-macro2 v1.0.21 Compiling syn v1.0.41 ... ``` </details> Co-authored-by: Matt Blessed <[email protected]>
Problem
rustup-init fails with: detected conflict: '"share/doc/rust/html/rustc/favicon.svg"'
when installing nightly complete:
Steps
Operating system: Linux amd64
Use installer settings:
Possible Solution(s)
Notes
The text was updated successfully, but these errors were encountered: