Skip to content

Confusing error message when you attempt to build for a target that rustc isn't prepared for #24544

@posix4e

Description

@posix4e

I am trying to build rustboot

rustc -O --target i686-unknown-linux-gnu --crate-type lib -o main.o --emit obj main.rs

Get's
te-type lib -o main.o --emit obj main.rs
main.rs:7:1: 7:19 error: can't find crate for core
main.rs:7 extern crate core;
^~~~~~~~~~~~~~~~~~

The actual error should tell you that you are trying to build for a target that rustc can't handle.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-diagnosticsArea: Messages for errors, warnings, and lints

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions