Link to home
Start Free TrialLog in
Avatar of GodsEraser
GodsEraserFlag for United States of America

asked on

MIPS cross compiler

I"m trying to build a mips cross compiler for Ubuntu Linux.. Could someone walk me through the procedure?

I tried this here http://www.linuxselfhelp.com/HOWTO/MIPS-HOWTO-9.html.. but I'm not finding egcs, (I'm thinking it was merged into gcc..)

Does anyone have any experience on where to start and how to do this correctly?

Thanks,
ASKER CERTIFIED SOLUTION
Avatar of Duncan Roe
Duncan Roe
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of GodsEraser

ASKER

I checked google and yes, many of them were rather old (as I've seen with needing egcs)..

Is there a newer tutorial or can someone walk me through it? it's kinda my first time doing anything like this.
Ok.. so after some searching, I found that I need my target to be a bare-metal MIPS CPU. elf format.

I compiled binutils and things went fine.. But when I tried compiling GMP to create GCC, I got an error..

configure: error: could not find a working compiler, see config.log for details..

My target is "mipsel-elf" (little endian mips).. any ideas?
Look in the config log to see what test it was running.
I had not heard of GMP before - what is it?
Since gcc is building as a cross-compiler, it should not try to use the built compiler to build another gcc (as it would if you were building native)
I moved on to other things..