Received: from list by lists.gnu.org with archive (Exim 4.71) id 1cfVGh-0007vJ-IH for mharc-grub-devel@gnu.org; Sun, 19 Feb 2017 12:27:27 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38278) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cfVGf-0007uv-8g for grub-devel@gnu.org; Sun, 19 Feb 2017 12:27:26 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cfVGb-0006tD-AD for grub-devel@gnu.org; Sun, 19 Feb 2017 12:27:25 -0500 Received: from b-painless.mh.aa.net.uk ([81.187.30.52]:48490) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cfVGb-0006sz-4P for grub-devel@gnu.org; Sun, 19 Feb 2017 12:27:21 -0500 Received: from 3.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.4.1.b.e.2.f.f.b.0.b.8.0.1.0.0.2.ip6.arpa ([2001:8b0:bff2:eb14::3] helo=riva.pelham.vpn.ucam.org) by b-painless.mh.aa.net.uk with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1cfVGa-0006Uw-8l for grub-devel@gnu.org; Sun, 19 Feb 2017 17:27:20 +0000 Received: from ns1.pelham.vpn.ucam.org ([172.20.153.2] helo=riva.ucam.org) by riva.pelham.vpn.ucam.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cfVGX-0002oD-CS for grub-devel@gnu.org; Sun, 19 Feb 2017 17:27:17 +0000 Date: Sun, 19 Feb 2017 17:27:17 +0000 From: Colin Watson To: grub-devel@gnu.org Subject: Re: kernel build still pulls in host includes even with -nostdinc Message-ID: <20170219172717.GA8796@riva.ucam.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 81.187.30.52 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 19 Feb 2017 17:27:26 -0000 On Sun, Feb 19, 2017 at 09:02:50AM +0000, Vladimir 'phcoder' Serbinenko wrote: > On Sun, Feb 19, 2017, 07:41 Andrei Borzenkov wrote: > > Could someone comment on this? > > > > gcc -DHAVE_CONFIG_H -I. -I.. -Wall -W -DGRUB_MACHINE_PCBIOS=1 > > -DGRUB_MACHINE=I386_PC -m32 -nostdinc -isystem > > /usr/lib/gcc/x86_64-linux-gnu/5/include > > > > So we do have definitions from /usr/lib/gcc/x86_64-linux-gnu/5/include > > used. > > > > How harmless/harmful is it? > > We use it for va_args definition and related macros. I don't think we want > to reimplement those Yeah, I'd say that that include directory is really part of the compiler rather than part of the host system as such. -- Colin Watson [cjwatson@ubuntu.com]