0

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-libgccit 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 linux32before 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?

Community
  • 1
  • 1
Isaac D. Cohen
  • 797
  • 2
  • 10
  • 26

2 Answers2

0

I had no luck with that cross-compiler on ubunutu. But when I tried on Debian it worked. I also realized that I was using binutils-2.9 from the year 1997... no wonder why it does not know what x86_64_unknown_linux_gnu is!

Isaac D. Cohen
  • 797
  • 2
  • 10
  • 26
0

I had the same problem while build the binutils from source file. The source file is downloaded from the GNU website. I solved the problem by using "apt-get source binutils" to get the source. It looks like the source downloaded by this way including the patch to let it work on your OS.

ffcactus
  • 152
  • 8