From owner-freebsd-current@FreeBSD.ORG Wed Aug 25 19:58:58 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7ABF016A4CF; Wed, 25 Aug 2004 19:58:58 +0000 (GMT) Received: from cpanel.ezone.ru (cpanel.ezone.ru [213.85.31.234]) by mx1.FreeBSD.org (Postfix) with ESMTP id 608A043D53; Wed, 25 Aug 2004 19:58:57 +0000 (GMT) (envelope-from mcsi@mcsi.pp.ru) Received: from [81.195.16.219] (ppp16-219.pppoe.mtu-net.ru [81.195.16.219]) (authenticated bits=0) by cpanel.ezone.ru (8.13.1/8.12.11) with ESMTP id i7PJwVKs008549; Wed, 25 Aug 2004 23:58:39 +0400 (MSD) (envelope-from mcsi@mcsi.pp.ru) Message-ID: <412CEF62.5010600@mcsi.pp.ru> Date: Wed, 25 Aug 2004 23:58:26 +0400 From: Maxim Maximov User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.2) Gecko/20040810 X-Accept-Language: ru, en-us, en MIME-Version: 1.0 To: Kris Kennaway References: <412CBC91.3070900@portaone.com> <412CD983.2040700@cronyx.ru> <20040825183342.GA81434@xor.obsecurity.org> In-Reply-To: <20040825183342.GA81434@xor.obsecurity.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, hits=-4.9 required=5.0 tests=BAYES_00 autolearn=ham version=2.64 X-Spam-Checker-Version: SpamAssassin 2.64 (2004-01-11) on mail3.ezone.ru cc: Maxim Sobolev cc: current@freebsd.org cc: Roman Kurakin Subject: Re: ccache support for make buildworld/make release X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Aug 2004 19:58:58 -0000 Kris Kennaway wrote: > On Wed, Aug 25, 2004 at 10:25:07PM +0400, Roman Kurakin wrote: > >>Maxim Sobolev wrote: >> >> >>>Folks, >>> >>>I wonder if anyone considered adding ccache support for >>>buildworld/release targets. ccache is a tool, which wraps around gcc, >>>allowing to cache object files generated by the compiler to greatly >>>speed-up compilation of the same code over and over >>>(http://ccache.samba.org/). >>> >>>It acts as a caching pre-processor to C/C++ compilers, using the -E >>>compiler switch and a hash to detect when a compilation can be >>>satisfied from cache. This often results in a 5 to 10 times speedup. >> >>Hm. It seems that this is very cool tool. I would glad to see it in FreeBSD. >>Since I've 5 branch compiles tooooo long and fast systems for compilation >>does not always available/possible to use while development. >> >>I volonteer to test this if needed. > > > BTW, I don't think there's anything to set up..you just set > CC="ccache cc" or similar. > > Kris The command env CC="/usr/local/bin/ccache cc" make buildworld failed with today's CURRENT in libc compilation. Either there's a bug in ccache or something in FreeBSD's build enviroment needs to be tweaked for using ccache: /usr/local/bin/ccache cc -O -pipe -I/usr/src/lib/libc/include -I/usr/src/lib/libc/../../include -I/usr/src/lib/libc/i386 -D__DBINTERFACE_PRIVATE -I/usr/src/lib/libc/../../contrib/gdtoa -DINET6 -I/usr/obj/usr/src/lib/libc -DPOSIX_MISTAKE -I/usr/src/lib/libc/locale -DBROKEN_DES -DPORTMAP -DDES_BUILTIN -I/usr/src/lib/libc/rpc -DYP -DHESIOD -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized -c /usr/src/lib/libc/rpc/des_crypt.c /usr/local/bin/ccache cc -O -pipe -I/usr/src/lib/libc/include -I/usr/src/lib/libc/../../include -I/usr/src/lib/libc/i386 -D__DBINTERFACE_PRIVATE -I/usr/src/lib/libc/../../contrib/gdtoa -DINET6 -I/usr/obj/usr/src/lib/libc -DPOSIX_MISTAKE -I/usr/src/lib/libc/locale -DBROKEN_DES -DPORTMAP -DDES_BUILTIN -I/usr/src/lib/libc/rpc -DYP -DHESIOD -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized -c /usr/src/lib/libc/rpc/des_soft.c /usr/local/bin/ccache cc -O -pipe -I/usr/src/lib/libc/include -I/usr/src/lib/libc/../../include -I/usr/src/lib/libc/i386 -D__DBINTERFACE_PRIVATE -I/usr/src/lib/libc/../../contrib/gdtoa -DINET6 -I/usr/obj/usr/src/lib/libc -DPOSIX_MISTAKE -I/usr/src/lib/libc/locale -DBROKEN_DES -DPORTMAP -DDES_BUILTIN -I/usr/src/lib/libc/rpc -DYP -DHESIOD -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized -c /usr/src/lib/libc/rpc/crypt_client.c /usr/local/bin/ccache cc -O -pipe -I/usr/src/lib/libc/include -I/usr/src/lib/libc/../../include -I/usr/src/lib/libc/i386 -D__DBINTERFACE_PRIVATE -I/usr/src/lib/libc/../../contrib/gdtoa -DINET6 -I/usr/obj/usr/src/lib/libc -DPOSIX_MISTAKE -I/usr/src/lib/libc/locale -DBROKEN_DES -DPORTMAP -DDES_BUILTIN -I/usr/src/lib/libc/rpc -DYP -DHESIOD -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized -c /usr/src/lib/libc/rpc/key_call.c /usr/src/lib/libc/rpc/key_call.c:33:10: extra tokens at end of #ident directive *** Error code 1 Stop in /usr/src/lib/libc. *** Error code 1 Stop in /usr/src/lib. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. Exit 1 -- Maxim Maximov