Re: can't compile -CURRENT since 2 days ago

From: Ruslan Ermilov <ru_at_FreeBSD.org>
Date: Tue, 15 Nov 2005 14:41:05 +0200
On Tue, Nov 15, 2005 at 05:42:28AM -0500, 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?
> 
Yes, rev. 1.2 to ports/devel/ccache/files/ccache-howto-freebsd.txt.in
is wrong:

revision 1.2
date: 2004/12/03 01:21:59;  author: ahze;  state: Exp;  lines: +4 -1
Add more to the example so you can disable ccache with out having to change PATH

: Index: ccache-howto-freebsd.txt.in
: ===================================================================
: RCS file: /home/ncvs/ports/devel/ccache/files/ccache-howto-freebsd.txt.in,v
: retrieving revision 1.1
: retrieving revision 1.2
: diff -u -p -r1.1 -r1.2
: --- ccache-howto-freebsd.txt.in 2 Dec 2004 14:10:34 -0000       1.1
: +++ ccache-howto-freebsd.txt.in 3 Dec 2004 01:21:59 -0000       1.2
: _at__at_ -1,5 +1,5 _at__at_
:  #
: -# $FreeBSD: ports/devel/ccache/files/ccache-howto-freebsd.txt.in,v 1.1 2004/12/02 14:10:34 ahze Exp $
: +# $FreeBSD: ports/devel/ccache/files/ccache-howto-freebsd.txt.in,v 1.2 2004/12/03 01:21:59 ahze Exp $
:  #
:  
:  To use ccache add the following to /etc/make.conf
: _at__at_ -12,6 +12,9 _at__at_ CXX=%%LOCALBASE%%/libexec/ccache/c++
:  CC=cc
:  CXX=c++
:  .endif
: +.else
: +CC=/usr/bin/cc
: +CXX=/usr/bin/c++
:  .endif

Revert it, set NOCCACHE as you did, and everything will build normally.


Cheers,
-- 
Ruslan Ermilov
ru_at_FreeBSD.org
FreeBSD committer

Received on Tue Nov 15 2005 - 11:44:04 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:47 UTC