This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: MIPS cross-gcc


I recently built a cross C compiler for mips-ecoff on CYGWIN and ran
into the same problem. Is an install document for GCC I found the note:

Building and Installing a Cross-Compiler
========================================

   GNU CC can function as a cross-compiler for many machines, but not
all.

   * Cross-compilers for the Mips as target using the Mips assembler
     currently do not work, because the auxiliary programs
     `mips-tdump.c' and `mips-tfile.c' can't be compiled on anything
     but a Mips.  It does work to cross compile for a Mips if you use
     the GNU assembler and linker.

After browsing the configure and make files I believe I solved the 
problem by using --with-gnu-as in the configuration. I also used
--with-gnu-ld just because it was there.

I did get everything built, including NEWLIB, and am now starting to
run simple C programs on an embedded MIPS platform. I'm was curious
whether I should be using mips-elf, but mips-ecoff seemed to have
specific support for small globals. I'll probably know better when
I try to get GDB built and working.

I hope this helps.

Good Luck,
Bruce Robinson
brucer@cts.com


Kadiyala wrote:
> 
> Was anyone successful in making a cross-gcc for the mips-elf target. When I
> tried making it on an x86 linux, as it builds the binutils with no problems,
> but while building gcc, it fails with the message, could not find mips-tfile.
> On closer examination, I believe mips-tfile is not needed for a mips-elf
> target, and is only needed for the mips-ecoff target. Any insight into the
> problem is appreciated.
> 
> Thanks,
> 
> Suresh
> Suresh Kadiyala
> kadiyala@aol.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]