haileys / rustboot

A tiny 32 bit kernel written in Rust
MIT License
1.53k stars 227 forks source link

error: Unrecognized option: 'lib'. while running the rustc command in Makefile #14

Closed jonnadul closed 10 years ago

jonnadul commented 10 years ago

I am not sure if this is a problem with the version of the rust compiler used or what not. PS I am running on a OSX machine.

rustboot:$ make rustc -O --target i386-intel-linux --lib -o main.o -c main.rs error: Unrecognized option: 'lib'. make: *\ [main.o] Error 101

rustc --version rustc 0.10-pre (9e89ffc 2014-03-16 14:11:26 -0700) host: x86_64-apple-darwin

Also I believe I have the latest version of the rustboot code.

rustboot:$ git pull Already up-to-date.

haileys commented 10 years ago

Rust has made quite a bit of progress since I first put together rustboot, so it's quite likely that language and compiler changes mean that rustboot is no longer compilable.

pczarn commented 10 years ago

Replace --lib option with --crate-type=lib --emit=obj

jonnadul commented 10 years ago

That replacement has worked but there is a much bigger porting effort necessary. Thanks for your help guys!