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

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

Closed
posix4e opened this Issue Apr 17, 2015 · 1 comment

Comments

Projects
None yet
3 participants
@posix4e
Copy link
Contributor

posix4e commented Apr 17, 2015

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.

@brson

This comment has been minimized.

Copy link
Contributor

brson commented Dec 1, 2016

Fixed.

@brson brson closed this Dec 1, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.