From owner-freebsd-questions@FreeBSD.ORG Mon Apr 10 15:01:27 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 C4D7916A403 for ; Mon, 10 Apr 2006 15:01:27 +0000 (UTC) (envelope-from stapleton.41@gmail.com) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.197]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8636043D6A for ; Mon, 10 Apr 2006 15:01:22 +0000 (GMT) (envelope-from stapleton.41@gmail.com) Received: by xproxy.gmail.com with SMTP id s9so652951wxc for ; Mon, 10 Apr 2006 08:01:21 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=SzVJ1s/VMreXx3T383k3vR3DlOG4NPyx4EKv097BGRlNo2RqjyZs5YVCS9Ew2sbsOpe1qaYgaK3yPKdAKCMyX10Q0G8j6AA2qpx9C/sNrr5RQM6qbBoDSchNGTz0rYxJUxYpQe2MPcyYOXThGXJvhya3zJAEXL6+4laCyWjTD+s= Received: by 10.70.75.13 with SMTP id x13mr803764wxa; Mon, 10 Apr 2006 08:01:21 -0700 (PDT) Received: by 10.70.75.7 with HTTP; Mon, 10 Apr 2006 08:01:21 -0700 (PDT) Message-ID: <80f4f2b20604100801j72e547e4k4b40883a331be422@mail.gmail.com> Date: Mon, 10 Apr 2006 11:01:21 -0400 From: "Jim Stapleton" To: "Jim Stapleton" , freebsd-questions@freebsd.org In-Reply-To: <20060410145051.GA49978@owl.midgard.homeip.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <80f4f2b20604100743t7d64053en84728f5c7e10f627@mail.gmail.com> <20060410145051.GA49978@owl.midgard.homeip.net> Cc: 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 15:01:27 -0000 how do I setup make.conf to automatically use the new compiler? Is there any way to set this new compiler as the default (such as building the OS), without causing issues? Or would that be just a royal pain in the posterior that is not worth the effort? On 4/10/06, Erik Trulsson wrote: > 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 compilati= on fails. > > Yes, a bad idea indeed. Do not try to change the base compiler unless yo= u > 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 >