From owner-freebsd-questions@FreeBSD.ORG Mon Jul 10 16:10:31 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 E9F2E16A4DE for ; Mon, 10 Jul 2006 16:10:30 +0000 (UTC) (envelope-from backyard1454-bsd@yahoo.com) Received: from web81608.mail.mud.yahoo.com (web81608.mail.mud.yahoo.com [68.142.199.160]) by mx1.FreeBSD.org (Postfix) with SMTP id 8823843D46 for ; Mon, 10 Jul 2006 16:10:30 +0000 (GMT) (envelope-from backyard1454-bsd@yahoo.com) Received: (qmail 55956 invoked by uid 60001); 10 Jul 2006 16:10:29 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=NnUNoWOTsbskz9hmXaPFfk/Zu3LL3g++rrJdYq2JvY3YWgiW/CyRMHUb1lT1XIhuxz43c9p8gw8PIvekadIgtD8qP7T0dUO+AFVRFFY/BJLpauoKJzQDR3GnUreB//LPH5VcVOoiSotwfxfPCED1lrpo+OT8VQnzg4T0TTkohBE= ; Message-ID: <20060710161029.55954.qmail@web81608.mail.mud.yahoo.com> Received: from [63.240.228.37] by web81608.mail.mud.yahoo.com via HTTP; Mon, 10 Jul 2006 09:10:29 PDT Date: Mon, 10 Jul 2006 09:10:29 -0700 (PDT) From: To: Jim Stapleton , freebsd-questions@freebsd.org In-Reply-To: <80f4f2b20607100827w30e976b7qdd447f098799eca4@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Cc: Subject: Re: Upgrading Included GCC X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: backyard1454-bsd@yahoo.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Jul 2006 16:10:31 -0000 --- Jim Stapleton wrote: > On 7/10/06, Dan Nelson > wrote: > > In the last episode (Jul 10), Jacob Jennings said: > > > Hello, I am on FreeBSD 5.5-STABLE and was > wondering if there is a way > > > to replace the system's GCC, shipped with 5.5, > (GCC 3.4.2) to GCC 4.1 > > > without upgrading the whole source tree to > another release? Is there > > > a way to do this that will not include much risk > of breaking my > > > system? Thanks. > > > > You can install ports/lang/gcc41, which will give > you "gcc41" and > > "g++41" executables. > > > > -- > > Dan Nelson > > dnelson@allantgroup.com > > _______________________________________________ > > freebsd-questions@freebsd.org mailing list > > > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" > > > > If I'm reading the OP's comment right, he may try to > do what I did the > first time... I was smart enough to back up the > overwritten files > first... which saved me a reinstall. > > DO NOT replace teh gcc, g++, etc. base files for the > GCC compiler with > the newly compiled files, that will cause a lot of > compilation issues > for many core things and does not work properly. I > don't know why, > but it doesn't; it seems a lot of things get very > tied to a particular > version of the compiler. > > -Jim Stapleton > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" > it just sounds like a bad idea to attempt to do this anyway. The developers of the Release you are running seem to think GCC 3.4.2 was a stable enough compiler to run the system and build things correctly. I'm not the worlds smartest programmer, but if GCC 4.1 was good enough to build FreeBSD I'm sure it would be part of the BASE system. Your best bet would be to install it from ports and use it with the appropriate environment variables. Keep in mind if this is anything like Gentoo the GCC 4.x and 3.x libraries ARE NOT compatible. If it works like Gentoo replacing 3.x with 4.x you WILL BREAK otherwise functioning software when the standard libraries change. Again if it works like Gentoo this is KDE at the very least. This means all the ports would likeley need to be upgraded. Of course if your do get GCC 4.1 to properly compile a FreeBSD World target (lots of hackign here to replace the Compiler portion of the World target) perhaps the hacker mailing list would be interested. And if I'm not mistaken Rel_6.X still uses the 3.X gcc suite. I would have to check it but I belive it is 3.4.x or 3.5.x... Latest and greatest isn't always the best thing, stable and old means consistent binaries. It's your call, but don't replace the BASE compiler unless you fully understand the implications, and like hacking code to make the World target build and the kernel so you can get benefit from using the newer version of GCC. I would suspect only marginal gains if any at all just because I would think it would be part of FreeBSD if it made the system components correctly. my two cents -brian