From owner-freebsd-questions@FreeBSD.ORG Tue Apr 21 15:37:20 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 30365106564A for ; Tue, 21 Apr 2009 15:37:20 +0000 (UTC) (envelope-from naylor.b.david@gmail.com) Received: from mail-ew0-f171.google.com (mail-ew0-f171.google.com [209.85.219.171]) by mx1.freebsd.org (Postfix) with ESMTP id 8520E8FC25 for ; Tue, 21 Apr 2009 15:37:19 +0000 (UTC) (envelope-from naylor.b.david@gmail.com) Received: by ewy19 with SMTP id 19so2219351ewy.43 for ; Tue, 21 Apr 2009 08:37:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:organization:to:subject :date:user-agent:cc:references:in-reply-to:mime-version:content-type :content-transfer-encoding:message-id; bh=KHmkJ9YP9RtCEvj0GfYO+7M6/tiWlfd/lMLVk8AtYtE=; b=ps3R/jcc2Nep6glwpyibs1WCl09Uy+We+o1lnBuNOLAJ61lajTmNEJzUG/H3zZjGn/ ixD1Te6dSxUnwEscvM8zPveA2c6nUySCdxqYJfBBDLvUXt7gm66Dl/tAw1JVNGazIYmB +4UcZcz2Tp76ZOKL4al12Q7hOjXk/gZbnJvJo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:organization:to:subject:date:user-agent:cc:references :in-reply-to:mime-version:content-type:content-transfer-encoding :message-id; b=c8izMfy2nZmhEr4ChDwTigkBC3h4DXKwfwCGYSsc7JVNzlCOqBjjovef7XvN/NBqH4 QoX0VqKf6NqJjuJ18qTPHC1OmjsuJMnqPlzzkwbzspxo335LyVZn/vt75sJdeWvCO4ge ijFY6HcLTlcMv1x5UwMW4EPx4QzqcRlSvkPC0= Received: by 10.210.128.10 with SMTP id a10mr5092417ebd.99.1240328238372; Tue, 21 Apr 2009 08:37:18 -0700 (PDT) Received: from ?0.0.0.0? ([196.34.241.123]) by mx.google.com with ESMTPS id 5sm3116524eyf.7.2009.04.21.08.37.15 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 21 Apr 2009 08:37:17 -0700 (PDT) From: David Naylor Organization: Private To: Mel Flynn Date: Tue, 21 Apr 2009 17:37:50 +0200 User-Agent: KMail/1.9.10 References: <200904202148.42415.naylor.b.david@gmail.com> <200904211032.04835.mel.flynn+fbsd.questions@mailing.thruhere.net> In-Reply-To: <200904211032.04835.mel.flynn+fbsd.questions@mailing.thruhere.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart23406195.8x19HtcRjv"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200904211737.54778.naylor.b.david@gmail.com> Cc: freebsd-questions@freebsd.org 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 15:37:20 -0000 --nextPart23406195.8x19HtcRjv Content-Type: text/plain; charset="iso-8859-6" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Tuesday 21 April 2009 10:32:04 Mel Flynn wrote: > 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=3Darticle&item=3Dpcbsd_vs_kubunt= u&num=3D > >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". I know, benchmarking anything but the simplest things are influenced by too= =20 many factors. Pity it doesn't provide an unbiased comparison of FreeBSD an= d=20 Linux. =20 > > In order to check if this is so (and to get the speed improvements of G= CC > > 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.=20 What type of incompatibility. I know FreeBSD has reservations about GPLv3 = (I=20 personally don't understand why everyone cannot be friends and use BSD=20 Licenses). So is this a policy incompatibility or a legal one (i.e. would = it=20 be 'illegal' for me to use GCC 4.3+ to compile world/kernel, as an=20 end-user/consumer of FreeBSD). I assume the same discussion applies to=20 binutils. =20 > That said, install=20 > 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/gc= c, > so I have my doubts. I suppose it would be nice if there was an easy way to use an out-of-source= =20 compiler in FreeBSD. Like set PORTS_COMPILER=3Dgcc43 and the port will=20 installed and used... One may have dreams. =20 > > 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. You mean llvm, waiting patiently. I suppose my suggestion above will becom= e=20 even more important (at least for compiling ports) since it will be a while= =20 till llvm has decent c++ support. =20 Thanks for your reply --nextPart23406195.8x19HtcRjv Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEABECAAYFAknt6FIACgkQUaaFgP9pFrKqQACgg6zU7qmbx1cTXZDw3iuSWAkW a2EAn2J6sIf3SGT+NN7Q9kw65Fwnj614 =WyV+ -----END PGP SIGNATURE----- --nextPart23406195.8x19HtcRjv--