gcc 3.3.3 and -mcpu=r2000: bad value for -mcpu= switch

Kris Kennaway kris at obsecurity.org
Fri Mar 19 04:28:42 PST 2004


On Fri, Mar 19, 2004 at 08:55:21AM -0300, Augusto Jun Devegili wrote:
> Hi all,
> 
> I'd like to generate MIPS code from gcc. I've tried
> 
> $ gcc test01.c -o test01 -mcpu=r2000
> 
> and this is the error message I got
> 
> cc1: error: bad value (r2000) for -mcpu= switch
> 
> I'm using gcc (GCC) 3.3.3 [FreeBSD] 20031106 in a FreeBSD 5.2-CURRENT
> i386 box.
> 
> Any ideas?

gcc doesn't support all possible architectures at once, you have to
compile a gcc version targetted at that architecture.  There is
probably a port for this, e.g. devel/mips-rtems-gcc.

kris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20040319/1a81e279/attachment.bin


More information about the freebsd-questions mailing list