Cross compiling gcc for mipsel error [as: unrecognized option `-G']
Andrew Haley
aph@redhat.com
Tue Nov 7 10:15:00 GMT 2006
Francois DERMU writes:
> That's what I get when I do a "gcc -dumpmachine" on my already installed
> gcc (the one that comes with my Ubuntu dist.)
So why on Earth did you post that? We're talking about a cross
compiler.
> Then I configured my gcc
> ../gcc-3.4.4/configure --enable-languages="c,c++,java"
> --prefix=/usr/local/majax --target=mipsel i486-linux-gnu
You wrote:
> Then I configured my gcc
> ../gcc-3.4.4/configure --enable-languages="c,c++,java"
> --prefix=/usr/local/majax --target=mipsel i486-linux-gnu
> What command should I right to get the right parameter ?
Well, you surely shouldn't have "i486-linux-gnu" as a configure
parameter. Your target should be something like "mipsel-linux-gnu".
> Andrew Haley wrote:
> > Francois DERMU writes:
> > > Sorry my mistake...
> > >
> > > First I had my binutils and headers installed in a subdir (majax) of the
> > > $prefix to be sure not to break anything on my machine (and that really
> > > helped me !!!)
> > > then I copied the content of it directly to the $prefix
> > > but then on the I forgot to change it on the configuration command:
> > > ../gcc-3.4.4/configure --enable-languages="c,c++,java"
> > > --prefix=/usr/local-->/majax<-- --target=mipsel i486-linux-gnu
> >
> > What does this configure line mean? "i486-linux-gnu"?
> >
> > Doesn't make any sense.
> >
> > Andrew.
More information about the Gcc-help
mailing list