haileys / rustboot

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

Error loading target specification: Could not find specification for target i386-intel-linux #26

Open letsch323letsch opened 10 years ago

letsch323letsch commented 10 years ago

Whats this error?

alexispurslane commented 10 years ago

What operating system are you on? Did you remember to install binutils:

*For nix**

$ wget http://ftp.gnu.org/gnu/binutils/binutils-2.24.tar.gz
$ tar xf binutils-2.24.tar.gz
$ cd binutils-2.24
$ ./configure --target=i386-elf --disable-werror --prefix=/your/home/directory
$ make && make install

As far as windows is concerned, I can't help you.

letsch323letsch commented 10 years ago

I had installed binutils. But I try to install it again. I'm on Mac OS X Yosemite. Thanks

letsch323letsch commented 10 years ago

I had installed binutils. When I try to run it: screenshot 2014-11-16 09 42 24

utkarshkukreti commented 10 years ago

That target was renamed recently (about 2 weeks or so ago) to i686-unknown-linux-gnu. Changing that in the Makefile will fix that specific error. (You would also need to apply the changes in pull request #25.)

letsch323letsch commented 10 years ago

rustc -O --target i686-unknown-linux-gnu --crate-type lib -o main.o --emit obj main.rs error: requires sized lang_item error: aborting due to previous error make: *\ [main.o] Error 101 is coming now when I change to i686-unknown-linux-gnu.

letsch323letsch commented 10 years ago

I restarted the Terminal..then its run!!!!!!!!! Thanks Thanks Thanks

utkarshkukreti commented 10 years ago

@letsch323letsch did you apply the changes in pull request #25?

PS: One liner to do that:

curl https://github.com/charliesome/rustboot/pull/25.patch | git apply
utkarshkukreti commented 10 years ago

@letsch323letsch oh, nice :)