How to make a cross compiler for i386-elf?
How to make a cross compiler for i386-elf?
Can anyone tell me how to make an i386-elf-gcc and i386-elf-binutils?
-
- Member
- Posts: 5575
- Joined: Mon Mar 25, 2013 7:01 pm
Re: How to make a cross compiler for i386-elf?
Follow that tutorial and just replace occurrences of i686 with i386
Re: How to make a cross compiler for i386-elf?
Ok, I have a build script for making a cross compiler for i386-elf, but that does not seem to work.
Re: How to make a cross compiler for i386-elf?
It's hardly worth writing a script. Just follow the instructions.
If you have a problem you need to tell people what commands you use and what error messages you get. Saying "it doesn't work" isn't enough.
If you have a problem you need to tell people what commands you use and what error messages you get. Saying "it doesn't work" isn't enough.
Re: How to make a cross compiler for i386-elf?
Someone has taken the effort and built cross compiler for 32bit Linux:
viewtopic.php?f=1&t=36709&p=305386
Perhaps that helps?
Greetings
Peter
viewtopic.php?f=1&t=36709&p=305386
Perhaps that helps?
Greetings
Peter
Re: How to make a cross compiler for i386-elf?
Here is a makefile that will build GCC for you:
https://github.com/kiznit/build-gcc-and-binutils
You want to use:
Note: you will still have to install some dependencies as per the instructions above.
https://github.com/kiznit/build-gcc-and-binutils
You want to use:
Code: Select all
make i686-elf
Re: How to make a cross compiler for i386-elf?
Ok, I built the cross compiler!!! Thank you, everyone!!!