Thanks. If I am trying to build a cross GCC 3.4 (sparc-coff). Do I need to firstly build a sparc-coff GNU binutils before that? Since gcc3.4.6 is a rather old release, which release of GNU binutils would do such a job? X Cui ---------- Forwarded message ---------- From: Ian Lance Taylor <iant@xxxxxxxxxx> Date: Mon, May 31, 2010 at 1:22 PM Subject: Re: Option not supported error in GCC cross compilation To: Xiao-lei Cui <climber.cui@xxxxxxxxx> Xiao-lei Cui <climber.cui@xxxxxxxxx> writes: > Thanks for the reply. I am building a coff-gcc to fulfill some > requirements at work. The tool chain we are trying to develop based on > GCC needs to support coff format on SPARC V7/V8. > I forgot to mention that the version I am trying to build is > GCC-3.4.6, and the native GCC on my Linux is version 4.1. Please reply to the mailing list, not just to me. As far as I know gcc 3.4.6 should support sparc-coff. However, it's hard to provide any useful information about such an old release. Ian > On Sat, May 29, 2010 at 8:27 AM, Ian Lance Taylor <iant@xxxxxxxxxx> wrote: >> Xiao-lei Cui <climber.cui@xxxxxxxxx> writes: >> >>> I am trying to build a GCC that generates COFF format object file >>> for SPARC architecture. I am building it on i586-Linux. >>> I first built a cross GNU binuitils by specifying : >>> --target=sparc-coff. It looks like this step is successful. >>> However, the build of GCC failed, and the make process terminated >>> by reporting that "sparc-unknown-coff option is not supported". I am >>> newbie in building a cross GCC. not sure if this means that I did >>> something wrong or GCC can not be built in such way. >>> Any ideas/ suggestions? >> >> Support for the sparc-coff target was removed in the gcc 4.1 release. >> >> Is there any particular reason you want to use COFF rather than ELF? >> The sparc-elf target is still supported. >> >> Ian >> > > >