[Top] [All Lists]

Re: gcc-4.1.0 cross-compile for MIPS

To: kernel coder <>
Subject: Re: gcc-4.1.0 cross-compile for MIPS
From: James E Wilson <>
Date: Fri, 23 Jun 2006 12:01:21 -0700
In-reply-to: <>
Original-recipient: rfc822;
References: <> <> <>
On Sun, 2006-06-18 at 23:40, kernel coder wrote:
> ../glibc-2.3.6/configure --host=mipsel-linux --prefix="/usr"
> --enable-add-ons --with-headers=/home/shahzad/install/mipsel/include
> "misc/sys/uio.h"'; } |                 \ gcc -mabi=32 -E -dM -MD -MP
> cc1: error: unrecognized command line option "-mabi=32"

It failed, because it tries to give mips compiler options to the native
(x86?) compiler, which obviously won't work.  And you got this failure
because you configured glibc wrong.

As always, the answer to this problem can be found in Dan Kegel's
crosstools package, which knows how to correctly configure glibc.  Since
you apparently haven't taken my previous hints, instead of giving you
the answer, I'm just going to point you at the crosstools package, and
ask you to look it up yourself.
Jim Wilson, GNU Tools Support,

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