[Top] [All Lists]

mips32 cross compiler on X86 linux

Subject: mips32 cross compiler on X86 linux
From: Long Li <>
Date: Mon, 15 Jul 2002 19:32:52 -0700 (PDT)

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

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-gnu-as --with-gnu-ld 
  --enable-languages="c c++"

I got the error messages:
/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]: *** [] 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.


Long Li

Do You Yahoo!?
Yahoo! Autos - Get free new car price quotes

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