From owner-freebsd-current@FreeBSD.ORG Sat Sep 14 18:42:32 2013 Return-Path: Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 43151C7F; Sat, 14 Sep 2013 18:42:32 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id C44912428; Sat, 14 Sep 2013 18:42:30 +0000 (UTC) Received: from [IPv6:2001:7b8:3a7::8f9:73f5:56d9:8cd2] (unknown [IPv6:2001:7b8:3a7:0:8f9:73f5:56d9:8cd2]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id B2EE45C44; Sat, 14 Sep 2013 20:42:23 +0200 (CEST) Content-Type: multipart/signed; boundary="Apple-Mail=_15C3E84C-61CC-4712-BD19-0E73B49E020B"; protocol="application/pgp-signature"; micalg=pgp-sha1 Mime-Version: 1.0 (Mac OS X Mail 6.6 \(1510\)) Subject: Re: aicasm build error From: Dimitry Andric In-Reply-To: <1379181005.1197.24.camel@revolution.hippie.lan> Date: Sat, 14 Sep 2013 20:42:13 +0200 Message-Id: <55AEA8C2-9C47-4AB4-8626-EB7AC28839FC@FreeBSD.org> References: <1379181005.1197.24.camel@revolution.hippie.lan> To: Ian Lepore X-Mailer: Apple Mail (2.1510) Cc: freebsd-current@FreeBSD.org X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Sep 2013 18:42:32 -0000 --Apple-Mail=_15C3E84C-61CC-4712-BD19-0E73B49E020B Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii On Sep 14, 2013, at 19:50, Ian Lepore wrote: > For a while I've been getting a build error on aicasm during the early > steps of the build. Today I finally dug into it and discovered it's > because the build is using a mix of header files, some from /usr/include > on the build host, and some from obj/... for the target being built. It > happens because dev/aic7xxx/aicasm/Makefile contains CFLAGS+= -I. and > the current directory when aicasm builds is obj/.../. In my > case it was picking up machine/_types.h from objdir. > > Apparently this is usually harmless, but if the build host system and > the target versions are far enough apart, or with a cross-build where > the host and target are different architectures, you can get problems. > > After a little digging, I just now discovered Marcel fixed this long ago > in r70000, but then it got undone in r236578 a couple months ago. Is > there any reason not to restore Marcel's fix, such as with the attached > patch? It got undone for a specific reason, which is mentioned in the commit message for r236578. This hack might make it work, but it might also cause other issues. The problem really is how to make sure aicasm is compiled with the *host* compiler, not the compiler from /usr/obj. -Dimitry --Apple-Mail=_15C3E84C-61CC-4712-BD19-0E73B49E020B Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.20 (Darwin) iEYEARECAAYFAlI0rgwACgkQsF6jCi4glqOcbgCgxIQwk9YlnclN4lhavyBOzvrw 28wAoN5vIIqbBoNr9xG5sV8hOJlEPvCl =pS0u -----END PGP SIGNATURE----- --Apple-Mail=_15C3E84C-61CC-4712-BD19-0E73B49E020B--