linux-mips
[Top] [All Lists]

Re: gcc-4.1.0 cross-compile for MIPS

To: kernel coder <lhrkernelcoder@gmail.com>
Subject: Re: gcc-4.1.0 cross-compile for MIPS
From: James E Wilson <wilson@specifix.com>
Date: Fri, 23 Jun 2006 12:01:21 -0700
Cc: linux-mips@linux-mips.org
In-reply-to: <f69849430606182340t72ed5a68l95a724ea933faf12@mail.gmail.com>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <f69849430606160522i12050d00n9a4a39810f13b8a0@mail.gmail.com> <1150497195.17820.4.camel@aretha.corp.specifix.com> <f69849430606182340t72ed5a68l95a724ea933faf12@mail.gmail.com>
Sender: linux-mips-bounce@linux-mips.org
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, http://www.specifix.com


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