can't compile -CURRENT since 2 days ago

Ruslan Ermilov ru at FreeBSD.org
Tue Nov 15 04:44:05 PST 2005


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
: @@ -1,5 +1,5 @@
:  #
: -# $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
: @@ -12,6 +12,9 @@ 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20051115/4ae184b3/attachment.bin


More information about the freebsd-current mailing list