I am trying to install a cross-compiler for i386-elf on my Ubuntu 13.10. I found instructions here. But when I enter the command make all-target-libgcc
it says:
checking for suffix of object files...
configure: error: cannot compute suffix of object files: cannot compile
I found this question twice on this site; once here and again here. I looked at all the answers and tried them, but none of them worked. I found a comment on one of them telling me to try this:
aptitude build-dep gcc-avr binutils-avr
and then this:
install gcc-avr binutils-avr
But that is for avr and I am trying to compile for i386-elf. I am thinking that I might have this problem because I write linux32
before each command. The reason I do that is because otherwise it gives me this error:
Invalid configuration `x86_64-unknown-linux-gnu': machine `x86_64-unknown' not recognized
Invalid configuration `x86_64-unknown-linux-gnu': machine `x86_64-unknown' not recognized
Unrecognized host system name x86_64-unknown-linux-gnu.
when compiling the binutils. Can anyone tell me how to use the previous commands to build a cross-compiler for i386-elf? Or more solutions to try for that error?