The cause of the build problems with ccache

Alexander Leidinger Alexander at Leidinger.net
Wed Jan 18 23:48:31 PST 2006


Hi,

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 this
jumps directly into your face if you look at the error message).

Does the intermediate compiler in /usr/obj get build with a different default
include path?

If yes:
 - This would also result in picking up the wrong includes when someone tries
to build the world with a different compiler (e.g. icc).
 - Wouldn't it be better to discard the default include path and add the
include path we want explicitly on the command line?

Bye,
Alexander.

-- 
http://www.Leidinger.net  Alexander @ Leidinger.net: PGP ID = B0063FE7
http://www.FreeBSD.org     netchild @ FreeBSD.org  : PGP ID = 72077137
Courage is your greatest present need.



More information about the freebsd-arch mailing list