Page 1 of 1
How to make a cross compiler for i386-elf?
Posted: Tue Jun 02, 2020 3:26 am
by mrosdev
Can anyone tell me
how to make an
i386-elf-gcc and
i386-elf-binutils?
Re: How to make a cross compiler for i386-elf?
Posted: Tue Jun 02, 2020 7:17 am
by Octocontrabass
Here are the instructions.
Do you need help with any of that?
Re: How to make a cross compiler for i386-elf?
Posted: Tue Jun 02, 2020 9:47 am
by nexos
Follow that tutorial and just replace occurrences of i686 with i386
Re: How to make a cross compiler for i386-elf?
Posted: Tue Jun 02, 2020 10:35 am
by mrosdev
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?
Posted: Tue Jun 02, 2020 12:32 pm
by iansjack
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.
Re: How to make a cross compiler for i386-elf?
Posted: Tue Jun 02, 2020 12:44 pm
by PeterX
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
Re: How to make a cross compiler for i386-elf?
Posted: Tue Jun 02, 2020 1:09 pm
by kzinti
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.
Re: How to make a cross compiler for i386-elf?
Posted: Sat Jun 20, 2020 8:50 am
by mrosdev