Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Jun 2016 09:21:26 -0700
From:      Bryan Drewery <bdrewery@FreeBSD.org>
To:        "Simon J. Gerraty" <sjg@juniper.net>, Mark Millard <markmi@dsl-only.net>
Cc:        FreeBSD Current <freebsd-current@freebsd.org>
Subject:   Re: 11.0 -r301139: WITH_META_MODE=yes vs. "sh: ./make_keys: Exec format error"? [still true of -r301815]
Message-ID:  <cbf423c3-59bc-7efb-aa04-bde529f133d7@FreeBSD.org>
In-Reply-To: <41913.1465784040@kaos.jnpr.net>
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> <AAA6AB83-2357-4677-88DF-BC375ADDC3EF@dsl-only.net> <41913.1465784040@kaos.jnpr.net>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--iKhFuWUxDfdonPRlbohEKMrqQc3s5u1sn
Content-Type: multipart/mixed; boundary="iCRA49VFmSm5deDSGi2I18ELsDV1CuBIL"
From: Bryan Drewery <bdrewery@FreeBSD.org>
To: "Simon J. Gerraty" <sjg@juniper.net>, Mark Millard <markmi@dsl-only.net>
Cc: FreeBSD Current <freebsd-current@freebsd.org>
Message-ID: <cbf423c3-59bc-7efb-aa04-bde529f133d7@FreeBSD.org>
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>
 <AAA6AB83-2357-4677-88DF-BC375ADDC3EF@dsl-only.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 <markmi@dsl-only.net> 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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?cbf423c3-59bc-7efb-aa04-bde529f133d7>