From owner-freebsd-current@FreeBSD.ORG Tue Nov 15 10:48:17 2005 Return-Path: X-Original-To: freebsd-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 A700816A41F for ; Tue, 15 Nov 2005 10:48: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 A439D43D5C for ; Tue, 15 Nov 2005 10:48:15 +0000 (GMT) (envelope-from steve@acidy.com) Received: (qmail 17506 invoked by uid 512); 15 Nov 2005 10:48: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.044854 secs); 15 Nov 2005 10:48:14 -0000 Received: from no-reverse.dialnet.com (HELO shark.scudamores.com) (212.44.26.151) by acidy.com with SMTP; 15 Nov 2005 10:48:14 -0000 Received: from [192.168.42.145] ([192.168.42.145]) by shark.scudamores.com with Microsoft SMTPSVC(5.0.2195.6713); Tue, 15 Nov 2005 10:48:13 +0000 Message-ID: <4379BCEB.6030806@acidy.com> Date: Tue, 15 Nov 2005 10:48:11 +0000 From: Steve Hodgson User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Nicolas Blais References: <200511141702.45491.nb_root@videotron.ca> <20051115062059.GC56313@ip.net.ua> <200511150542.34910.nb_root@videotron.ca> In-Reply-To: <200511150542.34910.nb_root@videotron.ca> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 15 Nov 2005 10:48:13.0883 (UTC) FILETIME=[140E90B0:01C5E9D2] Cc: freebsd-current@freebsd.org Subject: Re: can't compile -CURRENT since 2 days ago 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: Tue, 15 Nov 2005 10:48:17 -0000 Nicolas Blais wrote: >>Your build environment is screwed, there shouldn't be CC='/usr/bin/cc'. >>During buildworld, /usr/obj/usr/src/tmp/usr/include is populated with >>fresh headers, and a special (not /usr/bin/cc) compiler and friends >>are used to pick up headers from this location and not /usr/include. >>This CC='/usr/bin/cc' prevents this from happening, hence the breakage. >> >> >>Cheers, >> >> > >So, ccache's port recommending this: > >.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 > >in /etc/make.conf is wrong? > > Well, if ccache was clever enough to support kernel builds then it would be ok. But since I've never managed to get it to work reliably I use: .if ${.CURDIR:M/usr/src*} || ${.CURDIR:M/usr/obj*} CC=cc CXX=c++ .else .if defined(NOCCACHE) CC=/usr/bin/cc CXX=/usr/bin/c++ .else CC=cc CXX=c++ .endif .endif Not sure if it is ccache itself or the make.conf example that is wrong.