This is the mail archive of the crossgcc@cygnus.com mailing list for the crossgcc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Problems building cross compiler for MIPS on a Sun Sparc.


   Date: Tue, 10 Mar 1998 21:46:02 +0100
   From: Kristina.Lundqvist@docs.uu.se

   11	cd mana/gcc-mips/binutils-2.8.1
   [...]
   13	./configure --prefix=${HOME}/mana/gcc-mips/attempt1 --enable-targets=sun4,mips-unknown-elf --build=sparc-sun-solaris2 --host=sparc-sun-solaris2
   [...]
   20	cd gcc-2.8.1
   21	./configure --prefix=${HOME}/mana/gcc-mips/attempt1 --target=mips-unknown-elf --with-elf --build=sparc-sun-solaris2 --host=sparc-sun-solaris2 --with-gnu-as --with-gnu-ld

   [...]
   _muldi3
   ./as: unrecognized option `-G'

You've configured binutils [in particular gas] and gcc for different targets.
Pass --target=mips-unknown-elf when you configure binutils.
Note that you can shorten mips-unknown-elf to mips-elf if you want.

Cheers.