From owner-freebsd-questions@FreeBSD.ORG Fri Apr 30 14:49:15 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0D38216A4CE for ; Fri, 30 Apr 2004 14:49:15 -0700 (PDT) Received: from mta4.rcsntx.swbell.net (mta4.rcsntx.swbell.net [151.164.30.28]) by mx1.FreeBSD.org (Postfix) with ESMTP id 39C9143D1D for ; Fri, 30 Apr 2004 14:49:14 -0700 (PDT) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (ca1a377f40ec5ae0b4288e0bd40b7e78@adsl-67-115-73-128.dsl.lsan03.pacbell.net [67.115.73.128])i3ULnC4a004660; Fri, 30 Apr 2004 16:49:12 -0500 (CDT) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 64A5651CAC; Fri, 30 Apr 2004 14:49:11 -0700 (PDT) Date: Fri, 30 Apr 2004 14:49:11 -0700 From: Kris Kennaway To: Jason Lixfeld Message-ID: <20040430214911.GA25139@xor.obsecurity.org> References: <20040430070958.GA76706@xor.obsecurity.org> <66231CBC-9AAD-11D8-94AF-000A95989E4A@lixfeld.ca> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="KsGdsel6WgEHnImy" Content-Disposition: inline In-Reply-To: <66231CBC-9AAD-11D8-94AF-000A95989E4A@lixfeld.ca> User-Agent: Mutt/1.4.2.1i cc: freebsd-questions@freebsd.org cc: Kris Kennaway Subject: Re: GCC3.4 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Apr 2004 21:49:15 -0000 --KsGdsel6WgEHnImy Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Apr 30, 2004 at 09:50:54AM -0400, Jason Lixfeld wrote: > On Apr 30, 2004, at 3:09 AM, Kris Kennaway wrote: >=20 > >On Fri, Apr 30, 2004 at 02:15:22AM -0400, Jason Lixfeld wrote: > >>I've just installed gcc3.4 to, among other things take advantange of > >>the -march=3Dopteron options. I'm in quite a bit of a conundrum here > >>because I've installed, changed the order in $PATH to look in > >>/usr/local/bin before /usr/bin for gcc, cc etc but when I run a make > >>buildworld it fails saying it doen't recognize the -march=3Dopterion > >>option. This means that the old system version of gcc is still being > >>referenced somehow, even though I've set the paths: > > > >This is intentional (the system compiler is rebuilt as part of the > >buildworld process, and thereafter used explicitly). > > > >You can't compile world with a compiler that is not the system > >compiler, because it would fail with errors. If you must have a world > >compiled with gcc 3.x, you'll have to use the FreeBSD 5.x branch, > >which uses gcc 3.x as the system compiler. >=20 > This is a 5.2.1 system but it uses 3.3.3, not 3.4. so I guess I'll=20 > have to wait then until 3.4 is the system compiler. Or just use 3.3 to optimize for your CPU in the analogous way (see make.conf and CPUTYPE). Kris --KsGdsel6WgEHnImy Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAksnWWry0BWjoQKURAqBBAJ96We5OW002T38Q2FcON4clhLf4rQCfaZI+ gXg5jXSNHT6pMHqRG9dCBh4= =cqnw -----END PGP SIGNATURE----- --KsGdsel6WgEHnImy--