From owner-freebsd-questions@FreeBSD.ORG Mon Aug 13 04:57:53 2007 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 B3C4816A468 for ; Mon, 13 Aug 2007 04:57:53 +0000 (UTC) (envelope-from mkhitrov@gmail.com) Received: from rv-out-0910.google.com (rv-out-0910.google.com [209.85.198.191]) by mx1.freebsd.org (Postfix) with ESMTP id 8ED9B13C491 for ; Mon, 13 Aug 2007 04:57:53 +0000 (UTC) (envelope-from mkhitrov@gmail.com) Received: by rv-out-0910.google.com with SMTP id f1so951433rvb for ; Sun, 12 Aug 2007 21:57:53 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=NHOHNu9Jo1FL99JFY0yjCk++R8XvEeaf3+hrNYGsNRWk0Hbrq3Xc8RXVULwjqeYW0SHviChFyKRHTP/KiX/j8soCM2+k/S1Km5QQXVw6O+dqQzQeD4Gb1NAYm3dwPJUgRnrR6BhYGOjLGepBsmvCxb6XNBa9FyRKnWzbf4g8quI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=CC7rLOAoLKh1M6qRHMkZuUdZdjkpauI0vFBxLrpUXM4Q+culdMxgIX5AxaUrLvQumL7wyavArY1xLfl2HiXExBwpC8wPtno/AwtugLu5nDS/+JJ2jtkyc2akVeR9p3HwM5xAcF6dGTT26VO5fWmXS2201PfYXFhmPuUE/NkjDMI= Received: by 10.142.225.11 with SMTP id x11mr626066wfg.1186981073247; Sun, 12 Aug 2007 21:57:53 -0700 (PDT) Received: by 10.143.10.17 with HTTP; Sun, 12 Aug 2007 21:57:53 -0700 (PDT) Message-ID: <26ddd1750708122157n70e6b832p33d378c75c8fd698@mail.gmail.com> Date: Mon, 13 Aug 2007 00:57:53 -0400 From: "Maxim Khitrov" To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: ccache never "hits" on buildworld or buildkernel 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: Mon, 13 Aug 2007 04:57:53 -0000 Hello, I'm using ccache to build FreeBSD source and ports. Ports work great, I build something once and the second time just about everything is found in the cache. For buildworld and buildkernel, however, everything is a miss. Even when not a single thing changed about the configuration or the actual source files. Below is my make.conf configuration for ccache. Ccache is being used via world-cc and world-c++ binaries for these two operations; I can see the miss counter go up in 'ccache -s'. Why is it unable to properly cache when building the source? Thanks. make.conf: .if (!empty(.CURDIR:M/usr/src*) || !empty(.CURDIR:M/usr/obj*)) && \ !defined(NOCCACHE) && exists(/usr/local/libexec/ccache) CC= /usr/local/libexec/ccache/world-cc CXX=/usr/local/libexec/ccache/world-c++ .endif .if !empty(.CURDIR:M/usr/ports*) && !defined(NOCCACHE) \ && exists(/usr/local/libexec/ccache) CC= /usr/local/libexec/ccache/cc CXX=/usr/local/libexec/ccache/c++ .endif uname -a: FreeBSD -.-.- 7.0-CURRENT FreeBSD 7.0-CURRENT #0: Sun Aug 12 15:45:05 EDT 2007 max@-.-.-:/usr/obj/usr/src/sys/KERNEL i386