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

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

Open
letsch323letsch opened this issue Nov 15, 2014 · 8 comments

Comments

@letsch323letsch
Copy link

Whats this error?

@alexispurslane
Copy link

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
Copy link
Author

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

@letsch323letsch
Copy link
Author

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

@utkarshkukreti
Copy link
Contributor

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
Copy link
Author

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
Copy link
Author

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

@utkarshkukreti
Copy link
Contributor

@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
Copy link
Contributor

@letsch323letsch oh, nice :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants