LinuxSA Mailing list archives
Index:
[thread]
[date]
[subject]
[author]
From: Toby C <tjcorkin@teaching.cs.adelaide.edu.au>
To : LinuxSA <linuxsa@linuxsa.org.au>
Date: Wed, 25 Nov 1998 23:41:03 +1030
Cross-compiling with GCC
I'm currently trying to make up MIPS executables, for the r3000 CPU, under
x86/Linux (recently upgraded to rh5.2 distrib).
When i type:
gcc (or egcs) -mcpu=r3000 hello.c
i get told that cpu=r3000 is an invalid option. (although it's in the manual
pages.)
When I try
gcc -b MIPS -mcpu=r3000 hello.c
I get told that it cannot find/exec cpp
(cpp is present, under a i386-linux directory though, but I guess by saying
i want the machine type to be MIPS, it's looking under /usr/lib/MIPS-linux/
instead, which doesn't exist)
The question is thus - how do i cross-compile? Do I need to get a different
install of MIPS GCC with x86 executables? Or do I just need a correct
compiling switch?
Can any gcc gurus help?
Yours,
Toby
(goes back to reading man pages)
--
Check out the LinuxSA web pages at http://www.linuxsa.org.au/
To unsubscribe from the LinuxSA list:
mail linuxsa-request@linuxsa.org.au with "unsubscribe" as the subject
Index:
[thread]
[date]
[subject]
[author]
Return to the LinuxSA Mailing List Information Page