From owner-freebsd-current@FreeBSD.ORG Mon Aug 22 16:18:17 2005 Return-Path: X-Original-To: current@freebsd.org 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 C8B3016A41F for ; Mon, 22 Aug 2005 16:18:17 +0000 (GMT) (envelope-from steve@acidy.com) Received: from acidy.com (iade006wl01.blackmesh.com [216.66.28.50]) by mx1.FreeBSD.org (Postfix) with SMTP id 12E6C43D60 for ; Mon, 22 Aug 2005 16:18:14 +0000 (GMT) (envelope-from steve@acidy.com) Received: (qmail 7186 invoked by uid 512); 22 Aug 2005 16:18:14 -0000 Received: from steve@acidy.com by terrence by uid 510 with qmail-scanner-1.21st (clamdscan: 0.70rc. spamassassin: 2.63. Clear:RC:1(212.44.26.151):. Processed in 0.152622 secs); 22 Aug 2005 16:18:14 -0000 Received: from no-reverse.dialnet.com (HELO shark.scudamores.com) (212.44.26.151) by acidy.com with SMTP; 22 Aug 2005 16:18:14 -0000 Received: from [192.168.42.144] ([192.168.42.144]) by shark.scudamores.com with Microsoft SMTPSVC(5.0.2195.6713); Mon, 22 Aug 2005 17:18:13 +0100 Message-ID: <4309FAC2.2040305@acidy.com> Date: Mon, 22 Aug 2005 17:18:10 +0100 From: Steve Hodgson User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Kevin Oberman References: <20050822155243.8BF6F5D07@ptavv.es.net> In-Reply-To: <20050822155243.8BF6F5D07@ptavv.es.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 22 Aug 2005 16:18:13.0384 (UTC) FILETIME=[185DE880:01C5A735] Cc: current@freebsd.org Subject: Re: buildworld not using proper build environment X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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: Mon, 22 Aug 2005 16:18:17 -0000 >ARGH! It was ccache that did me in! Even though I expressly typed "make >-DNOCCACHE", ccache was sneaking in somewhere. I commented out all of >the ccache section of make.conf and it fixed the problem. > >Sorry for the wasted bandwidth. If I get a little time, I may try to >figure out why ccache did this, but it's not a high priority. > >Thanks very much for your time! > > I thought I read earlier in this thread that ccache wasn't being used - my apologies for not butting in. I have the same problem, which is that the example ccache make.conf states that: .if !defined(NOCCACHE) .if ${.CURDIR:M/usr/src*} CC=/usr/local/libexec/ccache/cc CXX=/usr/local/libexec/ccache/c++ .else CC=cc CXX=c++ .endif .else CC=/usr/bin/cc CXX=/usr/bin/c++ .endif This means if you specify NOCCACHE you get the system gcc rather than the /usr/src gcc (since cc=/usr/bin/cc ignores the build environment PATH), hence the problem. What I've never figured out is why the check on line 2 doesn't work, because it doesn't for me - I always have to specify NOCCACHE to not use ccache, even when building world. I've changed the bottom of that section to read... .else CC=cc CXX=c++ .endif which means that specifying NOCCACHE still honours the mangled PATH from the build enviroment, and all works ok. Steve