From owner-freebsd-questions@FreeBSD.ORG Tue Apr 21 08:32:08 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 308A7106566C for ; Tue, 21 Apr 2009 08:32:08 +0000 (UTC) (envelope-from mel.flynn+fbsd.questions@mailing.thruhere.net) Received: from mailhub.rachie.is-a-geek.net (rachie.is-a-geek.net [66.230.99.27]) by mx1.freebsd.org (Postfix) with ESMTP id F23868FC08 for ; Tue, 21 Apr 2009 08:32:07 +0000 (UTC) (envelope-from mel.flynn+fbsd.questions@mailing.thruhere.net) Received: from sarevok.dnr.servegame.org (mailhub.rachie.is-a-geek.net [192.168.2.11]) by mailhub.rachie.is-a-geek.net (Postfix) with ESMTP id 7BBE27E837; Tue, 21 Apr 2009 00:32:06 -0800 (AKDT) From: Mel Flynn To: freebsd-questions@freebsd.org Date: Tue, 21 Apr 2009 10:32:04 +0200 User-Agent: KMail/1.11.2 (FreeBSD/8.0-CURRENT; KDE/4.2.2; i386; ; ) References: <200904202148.42415.naylor.b.david@gmail.com> In-Reply-To: <200904202148.42415.naylor.b.david@gmail.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-6" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200904211032.04835.mel.flynn+fbsd.questions@mailing.thruhere.net> Cc: David Naylor Subject: Re: Compiling FreeBSD with GCC 4.3+ 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: Tue, 21 Apr 2009 08:32:08 -0000 Hi David, On Monday 20 April 2009 21:48:39 David Naylor wrote: > There has been an article recently published by phoronix > (http://www.phoronix.com/scan.php?page=article&item=pcbsd_vs_kubuntu&num=1) > that compares PC-BSD to Kubuntu. Kubuntu uses GCC 4.3.3 compared to > FreeBSD's GCC 4.2.2. There is a considerable performance difference > between the two OS's, the article contributes this difference to the > compiler. Nice shot in the dark, since except the calculations a lot of these are influenced by "journaled FS vs stock UFS". > In order to check if this is so (and to get the speed improvements of GCC > 4.3+) one needs to compile the ports (and preferable world/kernel as well) > with GCC 4.3+. It's license is incompatible with world/kernel. That said, install lang/gcc43 and set CC/CXX for ports. World/kernel would be a lot harder. Maybe setting WITHOUT_GCC in /etc/src.conf and setting CC/CXX would work, but there's quite a few modifications to gcc that aren't in ports lang/gcc, so I have my doubts. > Is there an easy way to set this up and does anyone know the compatibility > of world/kernel/ports with GCC 4.3+? > > Also has anyone tried this and benchmarked the result? Not me, but be sure to stick around for the new non-gcc compiler coming to a FreeBSD near you. And with the work done by Marcel Molenaar on gpart, hopefully we can have ZFS and gjournal as choices in the installer. -- Mel