MIPS cross compiler

Posted on 2009-12-22
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 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?

Question by:GodsEraser
    LVL 34

    Accepted Solution

    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
    If you look past the first screen of Google results there may be more.

    Author Comment

    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.

    Author Comment

    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?
    LVL 34

    Expert Comment

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

    Author Closing Comment

    I moved on to other things..

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Top 6 Sources for Identifying Threat Actor TTPs

    Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

    Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
    Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
    Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
    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…

    737 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

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now