Having some trouble getting Rust to link to the core library on OS X targeting i686-unknown-linux-gnu:
MacBook:rustboot alex$ make
rustc -O --target i686-unknown-linux-gnu --crate-type lib -o main.o --emit obj main.rs
main.rs:5:1: 5:19 error: can't find crate for `core`
main.rs:5 extern crate core;
^~~~~~~~~~~~~~~~~~
error: aborting due to previous error
make: *** [main.o] Error 101
main.rs looks like this:
#![no_std]
#![allow(ctypes)]
#![feature(lang_items)]
extern crate core;
use core::prelude::*;
#[no_mangle]
#[no_split_stack]
pub fn main() {
}
I suspect it is because I am trying to link to i686-unknown-linux-gnu but the core library doesn't exist for that platform. How do you install or build the libraries for that platform?