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

target 'csky-unknown-linux-gnuabiv2hf' not found in channel #3616

Closed
CrotchBurnt opened this issue Jan 2, 2024 · 12 comments
Closed

target 'csky-unknown-linux-gnuabiv2hf' not found in channel #3616

CrotchBurnt opened this issue Jan 2, 2024 · 12 comments
Labels

Comments

@CrotchBurnt
Copy link

Problem

While installing:

...
You can uninstall at any time with rustup self uninstall and
these changes will be reverted.

Current installation options:

default host triple: x86_64-unknown-linux-gnu
default toolchain: stable (default)
profile: default
modify PATH variable: yes

  1. Proceed with installation (default)
  2. Customize installation
  3. Cancel installation

info: profile set to 'default'
info: default host triple is x86_64-unknown-linux-gnu
info: syncing channel updates for 'stable-x86_64-unknown-linux-gnu'
error: server sent a broken manifest: missing package for component rust-std: target 'csky-unknown-linux-gnuabiv2hf' not found in channel. Perhaps check https://doc.rust-lang.org/nightly/rustc/platform-support.html for available targets

My OS version: Fedora Linux 39 (Workstation Edition) Linux 6.6.8-200.fc39.x86_64

Steps

  1. curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

Possible Solution(s)

No response

Notes

No response

Rustup version

rustup 1.26.0 (5af9b9484 2023-04-05)
info: This is the version for the rustup toolchain manager, not the rustc compiler.

Installed toolchains

Default host: x86_64-unknown-linux-gnu
rustup home:  /home/xxxx/.rustup

no active toolchain
@CrotchBurnt CrotchBurnt added the bug label Jan 2, 2024
@rami3l
Copy link
Member

rami3l commented Jan 2, 2024

Thanks for filing this issue!

Unfortunately, as explained in the link in the error message, the target you're referring to is a tier 3 one, so no officially prebuilt components are provided for it: rustup is working as expected in this case.

If you intend to build Rust code for this target and would like to install the relevant components manually, you might be able to find some useful information at https://doc.rust-lang.org/beta/rustc/platform-support/mipsel-sony-psx.html. You might need to adapt the instructions based on your target accordingly.

I'm sorry for the inconveniences, wish you have a nice day!

@rami3l rami3l closed this as not planned Won't fix, can't repro, duplicate, stale Jan 2, 2024
@CrotchBurnt
Copy link
Author

It's strange because my CPU is an AMD x86_64 one, not some C-SKY.

Fedora Linux 6.6.8-200.fc39.x86_64

@rami3l rami3l reopened this Jan 4, 2024
@rami3l
Copy link
Member

rami3l commented Jan 4, 2024

@CrotchBurnt Did you encounter this problem with a fresh rust installation?

If so, I suspect this to be an upstream issue similar to #963. I'll definitely look into it when I have time.

Reopening this issue for tracking purposes.

@CrotchBurnt
Copy link
Author

@CrotchBurnt Did you encounter this problem with a fresh rust installation?

If so, I suspect this to be an upstream issue similar to #963. I'll definitely look into it when I have time.

Reopening this issue for tracking purposes.

Yes, it's a fresh installation. I tried on my OpenSUSE with the same CPU architecture, same error showed.

@xen0n
Copy link
Contributor

xen0n commented Jan 4, 2024

I have just encountered a similar error while installing rustup on a riscv64gc-unknown-linux-gnu device.

...
info: profile set to 'default'
info: setting default host triple to riscv64gc-unknown-linux-gnu
info: syncing channel updates for 'nightly-riscv64gc-unknown-linux-gnu'
error: server sent a broken manifest: missing package for component rust-std: target 'arm64e-apple-darwin' not found in channel.  Perhaps check https://doc.rust-lang.org/nightly/rustc/platform-support.html for available targets

It definitely seems the upstream manifest is broken somehow.

@rami3l
Copy link
Member

rami3l commented Jan 4, 2024

The origin of the error message seems to be the following:

rustup/src/dist/manifest.rs

Lines 314 to 316 in fe7b117

let _ctpkg = cpkg
.get_target(c.target.as_ref())
.with_context(|| RustupError::MissingPackageForComponent(c.short_name(self)))?;

rustup/src/dist/manifest.rs

Lines 321 to 334 in fe7b117

fn validate(&self) -> Result<()> {
// Every component mentioned must have an actual package to download
for pkg in self.packages.values() {
match pkg.targets {
PackageTargets::Wildcard(ref tpkg) => {
self.validate_targeted_package(tpkg)?;
}
PackageTargets::Targeted(ref tpkgs) => {
for tpkg in tpkgs.values() {
self.validate_targeted_package(tpkg)?;
}
}
}
}

@rami3l
Copy link
Member

rami3l commented Jan 4, 2024

@CrotchBurnt @xen0n Is the problem always about rust-std?

I wonder why our CI hasn't caught it...

@xen0n
Copy link
Contributor

xen0n commented Jan 4, 2024

@CrotchBurnt @xen0n Is the problem always about rust-std?

I wonder why our CI hasn't caught it...

Yeah, for now it seems to be the case.

@rami3l
Copy link
Member

rami3l commented Jan 17, 2024

@CrotchBurnt @xen0n How often are you encountering this issue? I can't seem to be able to reproduce it on my ARM64 Mac with either an ARM64 image or an x64 image:

$ docker run --arch=amd64 --rm -it fedora
Resolved "fedora" as an alias (/etc/containers/registries.conf.d/000-shortnames.conf)
Trying to pull registry.fedoraproject.org/fedora:latest...
Getting image source signatures
Copying blob sha256:718a00fe32127ad01ddab9fc4b7c968ab2679c92c6385ac6865ae6e2523275e4
Copying config sha256:368a084ba17dcba88f5b23acfa47481131010219524fd9c41af87d709a04845b
Writing manifest to image destination
# uname -a
Linux ae0cb3f14644 6.6.8-200.fc39.aarch64 #1 SMP PREEMPT_DYNAMIC Thu Dec 21 04:21:07 UTC 2023 x86_64 GNU/Linux
# curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
...
Current installation options:


   default host triple: x86_64-unknown-linux-gnu
     default toolchain: stable (default)
               profile: default
  modify PATH variable: yes

1) Proceed with installation (default)
2) Customize installation
3) Cancel installation
>

info: profile set to 'default'
info: default host triple is x86_64-unknown-linux-gnu
info: syncing channel updates for 'stable-x86_64-unknown-linux-gnu'
info: latest update on 2023-12-28, rust version 1.75.0 (82e1608df 2023-12-21)
info: downloading component 'cargo'
info: downloading component 'clippy'
info: downloading component 'rust-docs'
 14.3 MiB /  14.3 MiB (100 %)   9.9 MiB/s in  1s ETA:  0s
info: downloading component 'rust-std'
 23.6 MiB /  23.6 MiB (100 %)   9.1 MiB/s in  2s ETA:  0s
info: downloading component 'rustc'
 61.4 MiB /  61.4 MiB (100 %)   8.4 MiB/s in  7s ETA:  0s
info: downloading component 'rustfmt'
info: installing component 'cargo'
  7.5 MiB /   7.5 MiB (100 %)   6.4 MiB/s in  1s ETA:  0s
info: installing component 'clippy'
info: installing component 'rust-docs'
 14.3 MiB /  14.3 MiB (100 %)   1.2 MiB/s in 16s ETA:  0s
info: installing component 'rust-std'
 23.6 MiB /  23.6 MiB (100 %)   5.3 MiB/s in  4s ETA:  0s
info: installing component 'rustc'
 61.4 MiB /  61.4 MiB (100 %)   6.3 MiB/s in  9s ETA:  0s
info: installing component 'rustfmt'
info: default toolchain set to 'stable-x86_64-unknown-linux-gnu'

  stable-x86_64-unknown-linux-gnu installed - rustc 1.75.0 (82e1608df 2023-12-21)
...

@CrotchBurnt
Copy link
Author

@rami3l I ran curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh just now, and the error's gone.

You can uninstall at any time with rustup self uninstall and
these changes will be reverted.

Current installation options:


   default host triple: x86_64-unknown-linux-gnu
     default toolchain: stable (default)
               profile: default
  modify PATH variable: yes

1) Proceed with installation (default)
2) Customize installation
3) Cancel installation
>

info: profile set to 'default'
info: default host triple is x86_64-unknown-linux-gnu
info: syncing channel updates for 'stable-x86_64-unknown-linux-gnu'
info: latest update on 2023-12-28, rust version 1.75.0 (82e1608df 2023-12-21)
info: downloading component 'cargo'
  7.5 MiB /   7.5 MiB (100 %) 1012.0 KiB/s in  7s ETA:  0s
info: downloading component 'clippy'
  2.1 MiB /   2.1 MiB (100 %)   1.1 MiB/s in  2s ETA:  0s
info: downloading component 'rust-docs'
 14.3 MiB /  14.3 MiB (100 %)   1.1 MiB/s in 13s ETA:  0s
info: downloading component 'rust-std'
 23.6 MiB /  23.6 MiB (100 %)   1.2 MiB/s in 21s ETA:  0s
info: downloading component 'rustc'
 61.4 MiB /  61.4 MiB (100 %)   1.1 MiB/s in 53s ETA:  0sS
info: downloading component 'rustfmt'
  2.3 MiB /   2.3 MiB (100 %)   1.1 MiB/s in  2s ETA:  0s
info: installing component 'cargo'
info: installing component 'clippy'
info: installing component 'rust-docs'
 14.3 MiB /  14.3 MiB (100 %)   9.5 MiB/s in  1s ETA:  0s
info: installing component 'rust-std'
 23.6 MiB /  23.6 MiB (100 %)  17.4 MiB/s in  1s ETA:  0s
info: installing component 'rustc'
 61.4 MiB /  61.4 MiB (100 %)  20.7 MiB/s in  2s ETA:  0s^[[2~
info: installing component 'rustfmt'
info: default toolchain set to 'stable-x86_64-unknown-linux-gnu'

  stable-x86_64-unknown-linux-gnu installed - rustc 1.75.0 (82e1608df 2023-12-21)


Rust is installed now. Great!

To get started you may need to restart your current shell.
This would reload your PATH environment variable to include
Cargo's bin directory ($HOME/.cargo/bin).

To configure your current shell, run:
source "$HOME/.cargo/env"

@xen0n
Copy link
Contributor

xen0n commented Jan 17, 2024

Thanks for the ping! I've just retried on riscv64gc-unknown-linux-gnu and theproblem is gone. Maybe it was just a transient configuration problem that has since been fixed.

@rami3l
Copy link
Member

rami3l commented Jan 17, 2024

@CrotchBurnt @xen0n That's interesting. Thanks again for the report!

I'm closing this issue for now, feel free to contact us again when the bug happens again 👀

@rami3l rami3l closed this as completed Jan 17, 2024
@rami3l rami3l closed this as not planned Won't fix, can't repro, duplicate, stale Jan 17, 2024
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

3 participants