This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Problem to build a Cross-Compiler for MIPS on X-86 machine
- From: Jie Zhang <jzhang918 at gmail dot com>
- To: Mohammad Qayum <maqayum at gmail dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Sun, 7 Feb 2010 17:30:03 +0800
- Subject: Re: Problem to build a Cross-Compiler for MIPS on X-86 machine
- References: <6e31555e1002070111r3db5721exb0b969f75325a9d7@mail.gmail.com>
On Sun, Feb 7, 2010 at 5:11 PM, Mohammad Qayum <maqayum@gmail.com> wrote:
> Hi all,
>
> I am trying to build a Cross-compiler for MIPS on a x-86 linux
> machine. I built binutils-1.16.1 first and then tried to compile GCC.
> I tried several versions of GCC(4.4.0, 3.4.6, 3.44) to compile and
> using following commands:
> ../gcc-3.4.4/configure --target=$TARGET --prefix=$PREFIX \
> ?--enable-languages=c --without-headers \
> ?--with-gnu-ld --with-gnu-as \
> ?--disable-shared --disable-threads
> make all
> where target is mips-elf. I am getting same error always while make.
> Can somebody give me a solution.
>
Check if mips-elf-ar was built and installed correctly. Check if it's
in $PATH. And binutils-1.16.1 is too old. Why not use the latest
release?
Jie