[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: question cross-compiler



Brian Murphy wrote:
[snip]
> >Why didn't you use the recommended way, along the way of the appended
> >script? It would have been much less effort, with more reliable results.
> > 
> >
> Where is the recommended way documented? Who does the recommending?

http://gcc.gnu.org/install/download.html implies this.

> The 
> recommended way
> requires a libc in the process. The standard build process fails if 
> there is no libc. I want to be able to
> build a toolchain without libc - kernel compilation do not require it 
> why should it be there waiting to
> cause problems?

The script I posted builds a cross toolchain without needing libc
(IIRC modulo a bug which drags in gcov).

> >>However it gives a lot of warnings when you try to compile 64 bit and it
> >>seems to be configured for 32 bit despite the 64 in the name. To get 64
> >>bit longs you need to give -mabi=64 on the commandline.
> >>   
> >>
> >
> >That's little surprising if you actually built for a mips32isa-elf target,
> >like the Makefile suggests. Btw, mips32isa-elf doesn't support n32/n64 ABI,
> >so it's unlikely to work in that case.
> > 
> >
> Of course I didn't I had the tar file lying there and sent that the only 
> thing that was needed was for it to be
> configured correctly.

At least recent CVS should work correctly in this case.


Thiemo



Reply to: