linux-mips
[Top] [All Lists]

Re: mips32 cross compiler on X86 linux

To: linux-mips@oss.sgi.com
Subject: Re: mips32 cross compiler on X86 linux
From: Guo-Rong Koh <grk@freemail.com.au>
Date: Mon, 15 Jul 2002 20:20:35 -0700
Sender: owner-linux-mips@oss.sgi.com
Try this:

http://www.ltc.com/~brad/mips/mips-cross-toolchain/

Guo-Rong

At Mon, 15 Jul 2002 19:32:52 -0700 (PDT), 
Long Li (long21st@yahoo.com) wrote:
> Hi, 
> 
> I am a newbie to the cross compiler. I read some
> documents online and started to build a gcc cross
> compiler for MIPS4Kc(32-bit isa) on X86 linux. Here is
> what I did:
> 
> 1. I built binutils-2.11.2 with the following
> configurations:
> 
> configure --prefix=/home/lli/my-bin
> --target=mips32-linux --with-cpu=mips32-4kc
> 
> 2. The binutils was built successfully. Then I built
> the gcc-3.0.4
> with the configurations:
> 
>   --prefix=/home/lli/my-bin --target=mips32-linux
> --with-cpu=mips32-4kc
>   --with-gnu-as --with-gnu-ld 
>   --enable-languages="c c++"
> 
> I got the error messages:
>  
>   /home/lli/my-bin/mips32-linux/bin/ld:
> /home/lli/my-bin/mips32-linux/lib/crti.o: Relocations
> in generic ELF (EM: 3)
> /home/lli/my-bin/mips32-linux/lib/crti.o: could not
> read symbols: File in
> wrong format
> collect2: ld returned 1 exit status
> make[2]: *** [libgcc_s.so] Error 1
> make[2]: Leaving directory `/home/lli/objdir/gcc'
> make[1]: *** [libgcc.a] Error 2
> make[1]: Leaving directory `/home/lli/objdir/gcc'
> make: *** [all-gcc] Error 2
> 
> 
> Is my configuration correct to build a MIPS32-4kc
> cross compiler on Linux? If not, how should I do?
> Could you give me some help?
> 
> Thank you very much. I really appreciate it.
> 
> 
> Best,
> 
> 
> Long Li
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Autos - Get free new car price quotes
> http://autos.yahoo.com



--------------------------------------------------------

Looking for a free email account?
Get one now at http://www.freemail.com.au/

--------------------------------------------------------
<Prev in Thread] Current Thread [Next in Thread>