From owner-freebsd-questions@FreeBSD.ORG Mon Apr 10 14:43: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 7AEED16A401 for ; Mon, 10 Apr 2006 14:43:53 +0000 (UTC) (envelope-from stapleton.41@gmail.com) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.199]) by mx1.FreeBSD.org (Postfix) with ESMTP id 152F343D53 for ; Mon, 10 Apr 2006 14:43:52 +0000 (GMT) (envelope-from stapleton.41@gmail.com) Received: by xproxy.gmail.com with SMTP id s9so649632wxc for ; Mon, 10 Apr 2006 07:43:51 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=HW18CR5OzCqN4iQtgcUKsJo1SjSPE26L/V/0Nn/KUIfpmaH38lwVs1OLyRC4JS7+plP1egXtJAW+0xOFtQ7fJt7w6QziB13DqzCn1D+qDGEKs4pDqGZR1ZB+BeGW2QXhgkUBHFuQglLqHI/d45vAVq9bYs429cUB+II3tqepVTo= Received: by 10.70.72.12 with SMTP id u12mr3809968wxa; Mon, 10 Apr 2006 07:43:51 -0700 (PDT) Received: by 10.70.75.7 with HTTP; Mon, 10 Apr 2006 07:43:51 -0700 (PDT) Message-ID: <80f4f2b20604100743t7d64053en84728f5c7e10f627@mail.gmail.com> Date: Mon, 10 Apr 2006 10:43:51 -0400 From: "Jim Stapleton" To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Subject: 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:43:53 -0000 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. Now when I try to make things, I get a lot of errors and most compilation f= ails. I backed up the original binaries (gcc -> gcc-original), and things seem to be fixed, and compiles work. What should I do? 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. Thanks, -Jim