gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

Beginners > How can I compile a gcc cross-compiler for ARM?

#16739 - feng_ye - Tue Feb 24, 2004 4:37 am

Hello everybody, I'm new here.

I intend to compile a cross-compiler for ARM on my Debian Linux (initially woody, which just upgraded to Sarge, using kernel 2.4.18). For the beginning of time, I referenced to devrs.com and Dooby's doc and linux.gbadev.org(said based on Dooby's doc) to get some cross-compiler how-tos. But I failed to compile my gcc for either way. From the make output, I saw "Bad instruction" or "no such instruction".

So I turn to google, which told me I shall add the formally built binutils's bin directory to my PATH enviornment variable. Then I add both ./binutils/bin and ./binutils/arm-thumb-elf/bin to my PATH. But the 'configure' script turned out to stop functioning, saying 'config.guess' cannot determine the host type. I have no idea of all these.

Is there anyone who had setup your environment on such a system? Or anyone who has a familiar experience?

Any help will be appreciated , thank you!
_________________
Into the void..

#16747 - sajiimori - Tue Feb 24, 2004 7:43 am

Building a cross-compiler is not easy. What's wrong with using DevKit Advance? Or are you not targeting GBA?