From owner-freebsd-questions@FreeBSD.ORG Wed Apr 4 00:37:19 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D7A671065670 for ; Wed, 4 Apr 2012 00:37:19 +0000 (UTC) (envelope-from conrads@cox.net) Received: from eastrmfepo203.cox.net (eastrmfepo203.cox.net [68.230.241.218]) by mx1.freebsd.org (Postfix) with ESMTP id 6CD538FC08 for ; Wed, 4 Apr 2012 00:37:19 +0000 (UTC) Received: from eastrmimpo210.cox.net ([68.230.241.225]) by eastrmfepo203.cox.net (InterMail vM.8.01.04.00 201-2260-137-20101110) with ESMTP id <20120404003707.SZTA18532.eastrmfepo203.cox.net@eastrmimpo210.cox.net>; Tue, 3 Apr 2012 20:37:07 -0400 Received: from serene.no-ip.org ([98.164.83.206]) by eastrmimpo210.cox.net with bizsmtp id tcd61i00i4T5sES02cd7nq; Tue, 03 Apr 2012 20:37:07 -0400 X-CT-Class: Clean X-CT-Score: 0.00 X-CT-RefID: str=0001.0A02020A.4F7B97B3.00A8,ss=1,re=0.000,fgs=0 X-CT-Spam: 0 X-Authority-Analysis: v=1.1 cv=Zi2uI+LquZqMXpb1fhDBv/rwJwbtur+OSt/42QZjprM= c=1 sm=1 a=RcyhSEpB3QQA:10 a=G8Uczd0VNMoA:10 a=kj9zAlcOel0A:10 a=cRs4AX/51puMaUeRAuoQtw==:17 a=s1O25tkdAAAA:8 a=kviXuzpPAAAA:8 a=5zJTAqlClnnpuZl2090A:9 a=89K7nnteOq14v7VY0sIA:7 a=CjuIK1q_8ugA:10 a=OyOq_G8mXAEA:10 a=4vB-4DCPJfMA:10 a=cRs4AX/51puMaUeRAuoQtw==:117 X-CM-Score: 0.00 Authentication-Results: cox.net; none Received: from cox.net (localhost [127.0.0.1]) by serene.no-ip.org (8.14.5/8.14.5) with ESMTP id q340b5cB089983; Tue, 3 Apr 2012 19:37:05 -0500 (CDT) (envelope-from conrads@cox.net) Date: Tue, 3 Apr 2012 19:37:00 -0500 From: "Conrad J. Sabatier" To: Warren Block Message-ID: <20120403193700.3d8efa26@cox.net> In-Reply-To: References: <4F76DD24.4060104@herveybayaustralia.com.au> <20120331135624.GA46283@ozzmosis.com> <20343.7837.796535.407848@jerusalem.litteratus.org> <20120401073525.1c05bc0f@cox.net> <20344.21184.853321.579064@jerusalem.litteratus.org> <20120401130201.272897fc@cox.net> <20120401141129.1f94e50e@cox.net> <20120401160653.0a79b997@cox.net> X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.6; amd64-portbld-freebsd10.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Robert Huff , FreeBSD Questions Subject: Re: using clang (was: Re: ps, clang and make variables) 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: Wed, 04 Apr 2012 00:37:19 -0000 On Sun, 1 Apr 2012 17:57:31 -0600 (MDT) Warren Block wrote: > On Sun, 1 Apr 2012, Conrad J. Sabatier wrote: > > > On Sun, 1 Apr 2012 14:11:29 -0500 > > "Conrad J. Sabatier" wrote: > > > >> On Sun, 1 Apr 2012 12:29:45 -0600 (MDT) > >> Warren Block wrote: > >>> > >>> Have you tried clang with ccache? Any tricks? > >> > >> No, I haven't tried that. Actually, I don't believe I've ever even > >> tried using ccache at all (at least, not that I can recall). :-) > >> > > > > You've piqued my curiosity here. :-) > > > > I'm doing a buildworld at the moment using ccache with clang. So > > far, all is well, no problems. Didn't do anything special to get > > started, just "ccache make -DNO_CLEAN -j8 buildworld" (I have all > > that clang-enabling stuff already in /etc/make.conf). I know this > > first run won't really show me much, other than that it *will* > > compile OK. Subsequent runs should be interesting, though. :-) > > A few tests earlier today showed that with everything in cache, it > took about 1.5 to 2 times as long to build with clang versus gcc > 4.2.1. It was faster with a full cache than without, of course: > clang took 38 minutes with nothing in cache, about 12 minutes with > everything cached, and gcc buildworlds have been as fast as six > minutes. A gcc all-cached test I just tried was 7:47. > > For some reason, buildworlds on this Core I5 are much faster when > running powerd -a hadp than without. And somewhat variable. Well, unfortunately, I'm unable to do a successful buildworld at the moment, with or without ccache, so the results are still up in the air on that. :-) Will keep trying, though. I *hate* when this happens! :-) -- Conrad J. Sabatier conrads@cox.net