From owner-freebsd-questions@FreeBSD.ORG Mon Apr 10 14:50:53 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 D184C16A404 for ; Mon, 10 Apr 2006 14:50:53 +0000 (UTC) (envelope-from erikt@owl.midgard.homeip.net) Received: from pne-smtpout2-sn2.hy.skanova.net (pne-smtpout2-sn2.hy.skanova.net [81.228.8.164]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5B73F43D49 for ; Mon, 10 Apr 2006 14:50:53 +0000 (GMT) (envelope-from erikt@owl.midgard.homeip.net) Received: from falcon.midgard.homeip.net (83.253.29.241) by pne-smtpout2-sn2.hy.skanova.net (7.2.070) id 4430FC02001CCD79 for freebsd-questions@freebsd.org; Mon, 10 Apr 2006 16:50:52 +0200 Received: (qmail 49427 invoked from network); 10 Apr 2006 16:50:51 +0200 Received: from owl.midgard.homeip.net (10.1.5.7) by falcon.midgard.homeip.net with SMTP; 10 Apr 2006 16:50:51 +0200 Received: (qmail 49993 invoked by uid 1001); 10 Apr 2006 16:50:51 +0200 Date: Mon, 10 Apr 2006 16:50:51 +0200 From: Erik Trulsson To: Jim Stapleton Message-ID: <20060410145051.GA49978@owl.midgard.homeip.net> Mail-Followup-To: Jim Stapleton , freebsd-questions@freebsd.org References: <80f4f2b20604100743t7d64053en84728f5c7e10f627@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <80f4f2b20604100743t7d64053en84728f5c7e10f627@mail.gmail.com> User-Agent: Mutt/1.5.11 Cc: freebsd-questions@freebsd.org Subject: Re: newbie question on upgrading GCC 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: Mon, 10 Apr 2006 14:50:53 -0000 On Mon, Apr 10, 2006 at 10:43:51AM -0400, Jim Stapleton wrote: > I did a "make install clean" in the lang/gcc40/ directory to get a > newer version of GCC, and it seems happy, so the next thing I did was > I replaced my /usr/bin/gcc, /usr/bin/g++, etc. binaries with hard > links to the /usr/local/bin/gcc-freebsd-4.0, > /usr/local/bin/g++-freebsd-4.0, etc. binaries. That sounds like a bad idea. > > Now when I try to make things, I get a lot of errors and most compilation fails. Yes, a bad idea indeed. Do not try to change the base compiler unless you really know what you are doing. > > I backed up the original binaries (gcc -> gcc-original), and things > seem to be fixed, and compiles work. What should I do? You should leave the standard compiler alone. If you wish to use the newer compiler invoke it as gcc40 (IIRC), but don't try use it to rebuild FreeBSD itself. > > Also, the ports install does not make a "cc-freebsd-4.0" binary, so > I'm leary of replacing it with a hard link to the gcc-freebsd-4.0 > biary, although when I run "cc --version", it tells me that it is gcc > 3.4.x, which is the default gcc install. -- Erik Trulsson ertr1013@student.uu.se