Date: Tue, 15 Nov 2005 14:41:05 +0200 From: Ruslan Ermilov <ru@FreeBSD.org> To: Nicolas Blais <nb_root@videotron.ca> Cc: freebsd-current@FreeBSD.org, ahze@FreeBSD.org Subject: Re: can't compile -CURRENT since 2 days ago Message-ID: <20051115124105.GA70048@ip.net.ua> In-Reply-To: <200511150542.34910.nb_root@videotron.ca> References: <200511141702.45491.nb_root@videotron.ca> <20051115062059.GC56313@ip.net.ua> <200511150542.34910.nb_root@videotron.ca>
next in thread | previous in thread | raw e-mail | index | archive | help
--Nq2Wo0NMKNjxTN9z Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Nov 15, 2005 at 05:42:28AM -0500, Nicolas Blais wrote: > > Your build environment is screwed, there shouldn't be CC=3D'/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=3D'/usr/bin/cc' prevents this from happening, hence the breakag= e. > > > > > > Cheers, >=20 > So, ccache's port recommending this: >=20 > .if !defined(NOCCACHE) > .if ${.CURDIR:M/usr/src*} > CC=3D/usr/local/libexec/ccache/cc > CXX=3D/usr/local/libexec/ccache/c++ > .else > CC=3Dcc > CXX=3Dc++ > .endif > .else > CC=3D/usr/bin/cc > CXX=3D/usr/bin/c++ > .endif >=20 > in /etc/make.conf is wrong? >=20 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 : =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D : 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 2= 004/12/02 14:10:34 ahze Exp $ : +# $FreeBSD: ports/devel/ccache/files/ccache-howto-freebsd.txt.in,v 1.2 2= 004/12/03 01:21:59 ahze Exp $ : # : =20 : To use ccache add the following to /etc/make.conf : @@ -12,6 +12,9 @@ CXX=3D%%LOCALBASE%%/libexec/ccache/c++ : CC=3Dcc : CXX=3Dc++ : .endif : +.else : +CC=3D/usr/bin/cc : +CXX=3D/usr/bin/c++ : .endif Revert it, set NOCCACHE as you did, and everything will build normally. Cheers, --=20 Ruslan Ermilov ru@FreeBSD.org FreeBSD committer --Nq2Wo0NMKNjxTN9z Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFDeddhqRfpzJluFF4RAqZKAJ4wWq0e5wNYsWd3PMQiKrxskytx4wCdFYHB Lh9i5+EiJ7Npe10gLhfqCIo= =6MqO -----END PGP SIGNATURE----- --Nq2Wo0NMKNjxTN9z--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20051115124105.GA70048>