From owner-freebsd-questions@FreeBSD.ORG Fri Nov 24 16:11:13 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3456016A407 for ; Fri, 24 Nov 2006 16:11:13 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id C68D843D8F for ; Fri, 24 Nov 2006 16:10:14 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (elvis.mu.org [192.203.228.196]) by elvis.mu.org (Postfix) with ESMTP id 986DF1A3C20; Fri, 24 Nov 2006 08:10:56 -0800 (PST) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id E1F7B51A00; Fri, 24 Nov 2006 11:10:40 -0500 (EST) Date: Fri, 24 Nov 2006 11:10:40 -0500 From: Kris Kennaway To: Mark Message-ID: <20061124161040.GA51857@xor.obsecurity.org> References: <200611240809.kAO89Cki016265@asarian-host.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="17pEHd4RhPHOinZp" Content-Disposition: inline In-Reply-To: <200611240809.kAO89Cki016265@asarian-host.net> User-Agent: Mutt/1.4.2.2i Cc: freebsd-questions@freebsd.org Subject: Re: GCC upgrade X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Nov 2006 16:11:13 -0000 --17pEHd4RhPHOinZp Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Nov 24, 2006 at 08:09:13AM +0000, Mark wrote: > Hello, >=20 > I'd like tp upgrade my gcc version (from 2.95.4). I have two questions > about it, though. >=20 > 1) What is the best gcc version to upgrade to? I see plenty in the ports, > from the whole 3.x series to 4.3. And I wonder why they all still remain > in the ports? So I'm not sure upgrading to 4.3 is the best idea. And even > when I upgraded to what I thought was the latest gcc (on a Vmware box), it > said: >=20 > "gcc version 4.1.2 20061103 (prerelease)" >=20 > Bummer. >=20 > 2): To get ports to actually use the new one, I did something like: >=20 > asarian-host: {root} % cd /usr/bin > asarian-host: {root} % rm gcc > asarian-host: {root} % ln /usr/local/bin/gcc41 gcc >=20 > But there's plenty of 'old' gcc stuff still in /usr/bin/. >=20 > Will what I did suffice? Or am I missing some sort of procedure to get rid > of the gcc environment in /usr/bin/? Subsidiarily, will I run into > conflicts this way? (with old gcc stuff still residing in /usr/bin/). >=20 > I tested the new gcc, btw (compiled MySQL server with it, which takes > quite a while). Seems to work fine. But I'm not enough of a C expert to > know precisely how to do a safe upgrade of this kind. If you're not an expert then just leave it alone. Replacing the system compiler might sound like a cool thing to do, but what will actually happen is that you'll make your FreeBSD system unbuildable. Kris --17pEHd4RhPHOinZp Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQFFZxmAWry0BWjoQKURAizyAKC0I5crNWJNmmhJh5YPmpmqtcK5SgCgs4aG l3VSoY1iS2AdSY9r5XiCLtc= =UYIO -----END PGP SIGNATURE----- --17pEHd4RhPHOinZp--