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

"rustup target add" fails for required components #441

Closed
alexcrichton opened this issue May 11, 2016 · 5 comments
Closed

"rustup target add" fails for required components #441

alexcrichton opened this issue May 11, 2016 · 5 comments

Comments

@alexcrichton
Copy link
Member

If you rustup target add for the host toolchain's standard library it returns an error, but for scripting it'd be nice if it just said "OK" instead perhaps?

@brson
Copy link
Contributor

brson commented May 13, 2016

Yep.

@SWW13
Copy link

SWW13 commented Mar 6, 2018

Adding rustup output for easier search: (I almost overlooked this issue)

$ rustup target add aarch64-unknown-linux-gnu      
info: component 'rust-std' for target 'aarch64-unknown-linux-gnu' is up to date

$ rustup target add x86_64-unknown-linux-gnu       
error: component 'rust-std' for target 'x86_64-unknown-linux-gnu' was automatically added because it is required for toolchain 'stable-x86_64-unknown-linux-gnu'

@agausmann
Copy link

2 years later, and I just encountered a CI error for this. Did this issue get lost?

@Folyd
Copy link

Folyd commented Aug 14, 2018

The same error on travis-ci:

$ if [[ $TRAVIS_OS_NAME = linux && $HOST != $TARGET ]]; then rustup target add $TARGET; fi
error: component 'rust-std' for target 'x86_64-unknown-linux-gnu' was automatically added because it is required for toolchain 'stable-x86_64-unknown-linux-gnu'

@nre-ableton
Copy link

nre-ableton commented Nov 8, 2018

Ditto. I'm seeing this error on our Windows build nodes:

+ rustup.exe target add x86_64-pc-windows-msvc
error: component 'rust-std' for target 'x86_64-pc-windows-msvc' was automatically added because it is required for toolchain 'stable-x86_64-pc-windows-msvc'

Very confusing error message IMHO; I'm really not sure why this command would fail with an error that sounds like a success message.

Edit: Related https://github.com/rust-lang-nursery/rustup.rs/pull/1255/files. IMHO the message was clearer before this PR, but that's just my opinion... 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants