Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Mar 2004 04:28:34 -0800
From:      Kris Kennaway <kris@obsecurity.org>
To:        Augusto Jun Devegili <freebsd@devegili.org>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: gcc 3.3.3 and -mcpu=r2000: bad value for -mcpu= switch
Message-ID:  <20040319122834.GA9041@xor.obsecurity.org>
In-Reply-To: <1079697320.3203.7.camel@gandalf>
References:  <1079697320.3203.7.camel@gandalf>

next in thread | previous in thread | raw e-mail | index | archive | help

--UugvWAfsgieZRqgk
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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

--UugvWAfsgieZRqgk
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)

iD8DBQFAWudyWry0BWjoQKURArm1AJ9ma+Gls/8Ab0qkhgI1s83Zp2Jb7wCgvPMH
YTXS+Emt5gv3sZaD96Jly3U=
=WtgW
-----END PGP SIGNATURE-----

--UugvWAfsgieZRqgk--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040319122834.GA9041>