From owner-freebsd-questions@FreeBSD.ORG Mon Jan 26 12:45:36 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 37D0B5C9 for ; Mon, 26 Jan 2015 12:45:36 +0000 (UTC) Received: from sdf.lonestar.org (mx.sdf.org [192.94.73.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mx.sdf.org", Issuer "SDF.ORG" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 1899BCCA for ; Mon, 26 Jan 2015 12:45:35 +0000 (UTC) Received: from sdf.org (IDENT:bennett@otaku.freeshell.org [192.94.73.9]) by sdf.lonestar.org (8.14.8/8.14.5) with ESMTP id t0QCjU96016958 (using TLSv1/SSLv3 with cipher DHE-RSA-AES256-GCM-SHA384 (256 bits) verified NO) for ; Mon, 26 Jan 2015 12:45:30 GMT Received: (from bennett@localhost) by sdf.org (8.14.8/8.12.8/Submit) id t0QCjUMD009768 for freebsd-questions@freebsd.org; Mon, 26 Jan 2015 06:45:30 -0600 (CST) From: Scott Bennett Message-Id: <201501261245.t0QCjUMD009768@sdf.org> Date: Mon, 26 Jan 2015 06:45:30 -0600 To: freebsd-questions@freebsd.org Subject: Re: buildworld, buildkernel, and devel/cache User-Agent: Heirloom mailx 12.5 6/20/10 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Jan 2015 12:45:36 -0000 On Mon, 26 Jan 2015 10:24:22 +0200 Ivan Klymenko wrote: >? Mon, 26 Jan 2015 00:02:04 -0600 >Scott Bennett ?????: > >> I am now running FreeBSD 10.1-STABLE (amd64) r277396 and have >> installed devel/ccache. In /etc/make.conf I have >> >> WITH_CCACHE_BUILD=yes >> CCACHE_CPP2=1 >> >> In /etc/src.conf I have >> >> WITH_LLDB= >> >> In /root/.profile I have >> >> CCACHE_DIR=/buildwork/ccache >> export PATH=/usr/local/libexec/ccache:$PATH >> export CCACHE_PATH=/usr/bin:/usr/local/bin >> >> In /root/.cshrc.extensions, a file I source from /root/.cshrc, I have >> >> setenv CCACHE_DIR /buildwork/ccache >> setenv PATH /usr/local/libexec/ccache:$PATH >> setenv CCACHE_PATH /usr/bin:/usr/local/bin >> >> ccache seems to be working just fine for building ports with >> portmaster, but I don't see any evidence that either "make >> buildworld" or "make buildkernel" make any use of ccache at all. >> I've searched the archives for several FreeBSD lists, but haven't >> turned up anything helpful. If someone knows what I need to do to >> get ccache involved in buildworld and buildkernel, would you share it >> here please? I would very much like to reduce the times for those >> builds. Also, if so, please Cc me directly because I'm currently >> subscribed only to the digest form of these lists, which means I may >> not see responses until the digest arrives, which is often a day or >> more after a followup is posted. Thanks greatly for any help on this! >> > >This file is in some ways you can >help /usr/local/share/doc/ccache/ccache-howto-freebsd.txt I had read that and hadn't seen how that would work, but after seeing your reply, I tried adding the three lines to /etc/make.conf and got errors, like I had expected: make: "/etc/make.conf" line 18: Missing dependency operator make: RE substitution error: repetition-operator operand invalid make: Unclosed substitution for CXX (, missing) make: "/etc/make.conf" line 20: Undefined variable "${CXX:C,^c++,/usr/local/libexec/ccache/world/c++,1}" make: Fatal errors encountered -- cannot continue make: stopped in /usr/src So my question remains. Please respond if you have something that you have tried and know works. Thanks in advance. Scott Bennett, Comm. ASMELG, CFIAG ********************************************************************** * Internet: bennett at sdf.org *xor* bennett at freeshell.org * *--------------------------------------------------------------------* * "A well regulated and disciplined militia, is at all times a good * * objection to the introduction of that bane of all free governments * * -- a standing army." * * -- Gov. John Hancock, New York Journal, 28 January 1790 * **********************************************************************