From owner-freebsd-arch@FreeBSD.ORG Thu Jan 19 12:57:29 2006 Return-Path: X-Original-To: arch@freebsd.org Delivered-To: freebsd-arch@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6332916A420 for ; Thu, 19 Jan 2006 12:57:29 +0000 (GMT) (envelope-from ru@ip.net.ua) Received: from tigra.ip.net.ua (tigra.ip.net.ua [82.193.96.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 06CC343D46 for ; Thu, 19 Jan 2006 12:57:27 +0000 (GMT) (envelope-from ru@ip.net.ua) Received: from localhost (rocky.ip.net.ua [82.193.96.2]) by tigra.ip.net.ua (8.12.11/8.12.11) with ESMTP id k0JCvQNR058645; Thu, 19 Jan 2006 14:57:26 +0200 (EET) (envelope-from ru@ip.net.ua) Received: from tigra.ip.net.ua ([82.193.96.10]) by localhost (rocky.ip.net.ua [82.193.96.2]) (amavisd-new, port 10024) with LMTP id 07616-01; Thu, 19 Jan 2006 14:57:21 +0200 (EET) Received: from heffalump.ip.net.ua (heffalump.ip.net.ua [82.193.96.213]) by tigra.ip.net.ua (8.12.11/8.12.11) with ESMTP id k0JCpTIt058513 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 19 Jan 2006 14:51:29 +0200 (EET) (envelope-from ru@ip.net.ua) Received: (from ru@localhost) by heffalump.ip.net.ua (8.13.4/8.13.4) id k0JCpP3g052540; Thu, 19 Jan 2006 14:51:25 +0200 (EET) (envelope-from ru) Date: Thu, 19 Jan 2006 14:51:25 +0200 From: Ruslan Ermilov To: Alexander Leidinger Message-ID: <20060119125124.GB52459@ip.net.ua> References: <20060119084827.lsj89qu01wgogogs@netchild.homeip.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="kORqDWCi7qDJ0mEj" Content-Disposition: inline In-Reply-To: <20060119084827.lsj89qu01wgogogs@netchild.homeip.net> User-Agent: Mutt/1.5.9i X-Virus-Scanned: by amavisd-new at ip.net.ua Cc: arch@freebsd.org Subject: Re: The cause of the build problems with ccache X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Jan 2006 12:57:29 -0000 --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--