Date: Thu, 19 Jan 2006 14:51:25 +0200 From: Ruslan Ermilov <ru@freebsd.org> To: Alexander Leidinger <Alexander@Leidinger.net> Cc: arch@freebsd.org Subject: Re: The cause of the build problems with ccache Message-ID: <20060119125124.GB52459@ip.net.ua> In-Reply-To: <20060119084827.lsj89qu01wgogogs@netchild.homeip.net> References: <20060119084827.lsj89qu01wgogogs@netchild.homeip.net>
next in thread | previous in thread | raw e-mail | index | archive | help
--kORqDWCi7qDJ0mEj Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jan 19, 2006 at 08:48:27AM +0100, Alexander Leidinger wrote: > Hi, >=20 > I looked at the cause of the build errors when using ccache. When building > with ccache, the compiler uses /usr/include instead of the includes in > /usr/src (after the "unsigned char" -> "void" change in the md5 header th= is > jumps directly into your face if you look at the error message). >=20 > Does the intermediate compiler in /usr/obj get build with a different def= ault > include path? >=20 Yes. The magic is in this line in Makefile.inc1: XMAKE=3D TOOLS_PREFIX=3D${WORLDTMP} ${BMAKE} -DNO_FORTRAN -DNO_GDB ^^^^^^^^^^^^^^^^^^^^^^^^ > If yes: > - This would also result in picking up the wrong includes when someone t= ries > to build the world with a different compiler (e.g. icc). >=20 I believe so. > - Wouldn't it be better to discard the default include path and add the > include path we want explicitly on the command line? >=20 This was attempted before and failed. I don't remember all the details now (you can also go ask Marcel and David), but I remember GCC is picky about standard paths: it would treat them differently from other locations, resulting in a different set of warnings etc. And we want it to work exactly as if these paths were standard. The compiler set uses stuff in ${WORLDTMP}: new headers, libraries, etc. Cheers, --=20 Ruslan Ermilov ru@FreeBSD.org FreeBSD committer --kORqDWCi7qDJ0mEj Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFDz4tMqRfpzJluFF4RAo8ZAKCby4rCehBJqxVnaTx4+OLQD6LBqwCePAyS cM9Z3OSffo/OL/YLDbeEy48= =5y/G -----END PGP SIGNATURE----- --kORqDWCi7qDJ0mEj--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060119125124.GB52459>