From owner-freebsd-questions@FreeBSD.ORG Tue May 25 18:41:59 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 5716516A4CE for ; Tue, 25 May 2004 18:41:59 -0700 (PDT) Received: from mailout1.informatik.tu-muenchen.de (mailout1.informatik.tu-muenchen.de [131.159.0.18]) by mx1.FreeBSD.org (Postfix) with ESMTP id B8DF243D2F for ; Tue, 25 May 2004 18:41:58 -0700 (PDT) (envelope-from barner@in.tum.de) Received: by zi025.glhnet.mhn.de (Postfix, from userid 1000) id AC52D3F23; Wed, 26 May 2004 03:42:32 +0200 (CEST) Date: Wed, 26 May 2004 03:42:32 +0200 From: Simon Barner To: dan@ntlbusiness.com Message-ID: <20040526014232.GM33068@zi025.glhnet.mhn.de> References: <20040526004809.OYZJ8778.mta02-svc.ntlworld.com@mta2-svc> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="djJN5oi3zFpblwUd" Content-Disposition: inline In-Reply-To: <20040526004809.OYZJ8778.mta02-svc.ntlworld.com@mta2-svc> User-Agent: Mutt/1.5.6i X-Virus-Scanned: by amavisd-new at informatik.tu-muenchen.de cc: freebsd-questions@FreeBSD.org Subject: Re: GCC Query. 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: Wed, 26 May 2004 01:41:59 -0000 --djJN5oi3zFpblwUd Content-Type: text/plain; charset=us-ascii Content-Disposition: inline dan@ntlbusiness.com wrote: > Which release of FreeBSD by standard has GCC 3.3.3 or higher? 5.2.1 has GCC 3.3.3 - don't know whether some lower versions of FreeBSD 5.x also had it (they're all GCC 3.x based), but you wouldn't want to install anything below 5.2.1 anyway (if you decide to go for FreeBSD 5). > Otherwise, are there any decent guides of how to setup GCC properly after > upgrading 2.95 (FreeBSD 4.8-RELEASE). I've had major troubles since updating > it - that things aren't being recognised as new - and have had to use > symbolic links (which I still don't think are working 100%). I used the > ports/lang/gcc33 port, should this have not have overwritten any gcc i had > currently? No! You _must not_ overwrite your _system compiler_ with a port. The source tree is only guaranteed to compile with the system compiler (from that very tree). If you need GCC 3.x on FreeBSD 4, use one of the ports, but you will need to build your world with /usr/bin/gcc (a.k.a. 2.95.4). Ports should work just fine with gcc 3.x, but you should not mix and build some with gcc 2.x and some with 3.x. This is mainly because C++ name mangeling has changed in 3.x (read c++ shared libs compiled with different versions of GCC are incompatible). Simon --djJN5oi3zFpblwUd Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAs/YICkn+/eutqCoRAi0bAKCPe7ELb/IAsxMpJfuqhEXeSWcdrACfXvhb v2WM/OeuI7Y+ESrOBMGcC8c= =4dYr -----END PGP SIGNATURE----- --djJN5oi3zFpblwUd--