Skip to content

Improve errors for Tier 3 targets #4590

Closed as duplicate
Closed as duplicate

Description

@Noratrieb

Problem you are trying to solve

When trying to install a Tier 3 target, the current error is the following:

$ rustup target add avr-none
error: toolchain 'stable-x86_64-unknown-linux-gnu' does not support target 'avr-none'
note: you can see a list of supported targets with `rustc --print=target-list`

$ rustc --print=target-list | grep avr
avr-none

This is pretty confusing if you're not familiar with it, since rustc clearly supports the target. What people should do in practice is use nightly and build-std (generally preferred), or fully build their own toolchain.

Solution you'd like

A better error message that explains this.

Notes

I just saw someone get confused by this, and I think I've seen it before

Activity

  1. djc commented on Nov 11, 2025

    @djc
    Contributor

    Do you want to try submitting a PR? Seems kinda straightforward...

    We statically include data from the platforms crate into our source code, see:

    https://github.com/rust-lang/rustup/blob/main/tests/suite/known_triples.rs

    This doesn't include tiers yet, but probably not too hard to add that.

  2. rami3l commented on Nov 11, 2025

    @rami3l
    Member

    This is a duplicate; and I have already implemented a PoC 1 year ago I think. Let me see if I can find that branch...

    Update: Here it is! 593ef5a

  3. rami3l commented on Nov 11, 2025

    @rami3l
    Member

    ... and that has been superseded by #4409, so closing this as a duplicate of #4006.

    The current (unreleased) console output should be:

    error: toolchain 'nightly-[HOST_TRIPLE]' has no prebuilt artifacts available for target 'mipsel-sony-psp'
    note: this may happen to a low-tier target as per https://doc.rust-lang.org/nightly/rustc/platform-support.html
    note: you can find instructions on that page to build the target support from source
    
  4. Noratrieb commented on Nov 11, 2025

    @Noratrieb
    MemberAuthor

    oh awesome, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions