This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: MIPS cross-gcc
- To: help-gcc at gnu dot org
- Subject: Re: MIPS cross-gcc
- From: Bruce Robinson <brucer at cts dot com>
- Date: Wed, 13 Oct 1999 22:16:10 -0700
- Newsgroups: gnu.gcc.help
- Organization: CTS Network Services
- References: <19991010191026.25758.00000501@ng-ft1.aol.com>
- Xref: wodc7nx0 gnu.gcc.help:1401
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