?
Solved

MIPS cross compiler

Posted on 2009-12-22
5
Medium Priority
?
1,034 Views
Last Modified: 2012-05-08
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,
0
Comment
Question by:GodsEraser
  • 3
  • 2
5 Comments
 
LVL 35

Accepted Solution

by:
Duncan Roe earned 1500 total points
ID: 26115678
Yes, egcs merged back to gcc some years ago. A Google for "gcc mips" finds some promising links - a lot of them rather old - but there's some good advice in http://old.nabble.com/gcc-4.3.1-for-mips-linux-failed-to-execute-dynamically-linked-elf-executables-td19263040.html
If you look past the first screen of Google results there may be more.
0
 

Author Comment

by:GodsEraser
ID: 26115845
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.
0
 

Author Comment

by:GodsEraser
ID: 26117402
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?
0
 
LVL 35

Expert Comment

by:Duncan Roe
ID: 26117436
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)
0
 

Author Closing Comment

by:GodsEraser
ID: 31669279
I moved on to other things..
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In real business world data are crucial and sometimes data are shared among different information systems. Hence, an agreeable file transfer protocol need to be established.
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Introduction to Processes

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question