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

rustc/cargo not properly detecting the host #133204

Open
ETJAKEOC opened this issue Nov 19, 2024 · 2 comments
Open

rustc/cargo not properly detecting the host #133204

ETJAKEOC opened this issue Nov 19, 2024 · 2 comments
Labels
C-discussion Category: Discussion or questions that doesn't represent real issues.

Comments

@ETJAKEOC
Copy link

I tried this command:

cargo fetch --verbose --target stable-x86_64-unknown-linux-gnu

I expected to see this happen: explanation

Rust to work properly

Instead, this happened: explanation

error: rustc -vV didn't have a line for host:, got:

rustc 1.82.0 (f6e511eec 2024-10-15)
binary: rustc
commit-hash: f6e511eec7342f59a25f7c0534f1dbea00d01b14
commit-date: 2024-10-15
host: x86_64-unknown-linux-gnu
release: 1.82.0
LLVM version: 19.1.1

RUST_BACKTRACE=1 cargo fetch --verbose --target stable-x86_64-unknown-linux-gnu
error: `rustc -vV` didn't have a line for `host:`, got:

For reference, I am trying to compile eza, the ls replacement. If there is any other information that I can provide or other commands that you would like me to run, please, let me know.

@ETJAKEOC ETJAKEOC added the C-bug Category: This is a bug. label Nov 19, 2024
@rustbot rustbot added the needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. label Nov 19, 2024
@Urgau
Copy link
Member

Urgau commented Nov 19, 2024

stable-x86_64-unknown-linux-gnu is not a valid target name.

If you wanted to use stable, you should use +stable instead:

cargo +stable fetch --verbose --target x86_64-unknown-linux-gnu

@Urgau Urgau added C-discussion Category: Discussion or questions that doesn't represent real issues. and removed C-bug Category: This is a bug. needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. labels Nov 19, 2024
@saethlin
Copy link
Member

saethlin commented Nov 19, 2024

This is a common tripping point for new users (I definitely remember being annoyed by it), but I think it's caused by rustup not the compiler.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-discussion Category: Discussion or questions that doesn't represent real issues.
Projects
None yet
Development

No branches or pull requests

4 participants