From owner-freebsd-current@freebsd.org Mon Jun 13 16:21:24 2016 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6AEFFAF1614 for ; Mon, 13 Jun 2016 16:21:24 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 4E1F92D82; Mon, 13 Jun 2016 16:21:24 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from mail.xzibition.com (localhost [IPv6:::1]) by freefall.freebsd.org (Postfix) with ESMTP id 3F550139C; Mon, 13 Jun 2016 16:21:24 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from mail.xzibition.com (localhost [172.31.3.2]) by mail.xzibition.com (Postfix) with ESMTP id E926320ADA; Mon, 13 Jun 2016 16:21:23 +0000 (UTC) X-Virus-Scanned: amavisd-new at mail.xzibition.com Received: from mail.xzibition.com ([172.31.3.2]) by mail.xzibition.com (mail.xzibition.com [172.31.3.2]) (amavisd-new, port 10026) with LMTP id JSL7_XWj-heC; Mon, 13 Jun 2016 16:21:21 +0000 (UTC) Subject: Re: 11.0 -r301139: WITH_META_MODE=yes vs. "sh: ./make_keys: Exec format error"? [still true of -r301815] DKIM-Filter: OpenDKIM Filter v2.9.2 mail.xzibition.com F233720AD4 To: "Simon J. Gerraty" , Mark Millard References: <890D3808-1939-4BEA-886F-324EBA8C8671@dsl-only.net> <92116.1464890038@kaos.jnpr.net> <4a2034a9-a2e1-d951-aecf-43e043c48d75@FreeBSD.org> <55609B4E-DCC8-4666-BA15-17B6EF7D593F@dsl-only.net> <38443.1465735161@kaos.jnpr.net> <41913.1465784040@kaos.jnpr.net> Cc: FreeBSD Current From: Bryan Drewery Openpgp: id=F9173CB2C3AAEA7A5C8A1F0935D771BB6E4697CF; url=http://www.shatow.net/bryan/bryan2.asc Organization: FreeBSD Message-ID: Date: Mon, 13 Jun 2016 09:21:26 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.1.0 MIME-Version: 1.0 In-Reply-To: <41913.1465784040@kaos.jnpr.net> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="iKhFuWUxDfdonPRlbohEKMrqQc3s5u1sn" X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.22 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: Mon, 13 Jun 2016 16:21:24 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --iKhFuWUxDfdonPRlbohEKMrqQc3s5u1sn Content-Type: multipart/mixed; boundary="iCRA49VFmSm5deDSGi2I18ELsDV1CuBIL" From: Bryan Drewery To: "Simon J. Gerraty" , Mark Millard Cc: FreeBSD Current Message-ID: Subject: Re: 11.0 -r301139: WITH_META_MODE=yes vs. "sh: ./make_keys: Exec format error"? [still true of -r301815] References: <890D3808-1939-4BEA-886F-324EBA8C8671@dsl-only.net> <92116.1464890038@kaos.jnpr.net> <4a2034a9-a2e1-d951-aecf-43e043c48d75@FreeBSD.org> <55609B4E-DCC8-4666-BA15-17B6EF7D593F@dsl-only.net> <38443.1465735161@kaos.jnpr.net> <41913.1465784040@kaos.jnpr.net> In-Reply-To: <41913.1465784040@kaos.jnpr.net> --iCRA49VFmSm5deDSGi2I18ELsDV1CuBIL Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 6/12/2016 7:14 PM, Simon J. Gerraty wrote: > Mark Millard wrote: >> Cross builds work just fine based on the FreeBSD tree when omitting WI= TH_META_MODE=3D. >> >=20 > Hmm must do something odd then. >=20 >> As of -r301825 there is almost no use of HOST_CC at the upper levels o= r in share/mk/*: >=20 > Yes, which means if cross-building works it must be requring a separate= > walk of the tree or similar dance. Yeah it's done in 2 walks with a shared objdir. I am going to rework these build-tools files to store their native binaries in BTOOLSDIR (like DIRDEPS does for these for bootstrap-tools target actually). Then always use the one from the BTOOLSDIR, avoiding the chance of a target one being built and ran from './'. > It cannot work by building tools like make_keys in the same pass as the= > library, since that would require use of something other than CC. >=20 >=20 >>> # grep HOST_CC /usr/src/Makefile* >>> # grep HOST_CC /usr/src/share/mk/* >>> /usr/src/share/mk/bsd.compiler.mk:.for var in CC CXX HOST_CC HOST_CXX= >> >> where that last does: >=20 > Yes, that's for ccache, but I don't see HOST_CC used anywhere. >=20 > Sorry, guess I have no clue how cross-building currently works in > FreeBSD, but as is it won't work with DIRDEPS - which pretty much > expects to be able to build the tree in a single pass. >=20 > META_MODE should be orgthogonal, but that appears not to be so. >=20 It's mostly orthogonal. Since there is a shared objdir for both the 'build-tools' and 'lib' and 'everything' walks, the CFLAGS/CC does change and cause rebuilds. I have some hacks in there now that I'm not happy with and am going to rework. --=20 Regards, Bryan Drewery --iCRA49VFmSm5deDSGi2I18ELsDV1CuBIL-- --iKhFuWUxDfdonPRlbohEKMrqQc3s5u1sn Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBAgAGBQJXXt2GAAoJEDXXcbtuRpfP0TIH/iFsu4QxkHRuJ3DbUXK+Dls/ +EHDeWtFbdw/fx8Pp1teHw0bSTLXGxoHgOLTVxxZF0bwXmk0m5wx4j+9cD2T5dZk HrPiSc5RQ8m9yZrr3RifXCcmEccn7/4toJ88zVDFlEUUqE4lXpbKqlrtqvlI09lY jqPUz4CC0egTWQc5ygwzLVoLNygDgnPg4yBj6/sxnV2m+H5l9BfhwMe+wF1tynIS j49aQCR8ZuBtAgAjKr6wECvUrHi+/qAamtCvacP7IicdbD7+po5TwPY+figlB7Bq JRNmiwR3X12OMSgONgFKf++kw2vjloRyjC7opryD+90zxv/OcK7YZbBdHxwz3K8= =PyiS -----END PGP SIGNATURE----- --iKhFuWUxDfdonPRlbohEKMrqQc3s5u1sn--