From owner-freebsd-hackers@freebsd.org Sat Jun 6 09:56:19 2020 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id CA9CE32DF80 for ; Sat, 6 Jun 2020 09:56:19 +0000 (UTC) (envelope-from markm@FreeBSD.org) Received: from gromit.grondar.org (gromit.grondar.org [IPv6:2a01:348:e::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 49fFJy5s3Xz4SFZ; Sat, 6 Jun 2020 09:56:18 +0000 (UTC) (envelope-from markm@FreeBSD.org) Received: from [2a02:8011:300b:42:50cb:c594:c28b:9782] by gromit.grondar.org with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93.0.4 (FreeBSD)) (envelope-from ) id 1jhVYe-0008Rq-VK; Sat, 06 Jun 2020 10:56:09 +0100 Content-Type: multipart/signed; boundary="Apple-Mail=_FC84916C-2943-434C-99B0-378174D7CC25"; protocol="application/pgp-signature"; micalg=pgp-sha512 Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.80.23.2.2\)) Subject: Re: Cross compile FreeBSD on amd64 for arm64 failes via compile determination error From: Mark Murray In-Reply-To: <2e91deb9835aaaadd6dceec95395b81f5257f15b.camel@freebsd.org> Date: Sat, 6 Jun 2020 10:56:08 +0100 Cc: freebsd-hackers@freebsd.org Message-Id: References: <20200605183002.GA2973@lion.0xfce3.net> <2e91deb9835aaaadd6dceec95395b81f5257f15b.camel@freebsd.org> To: Ian Lepore X-Mailer: Apple Mail (2.3608.80.23.2.2) X-Rspamd-Queue-Id: 49fFJy5s3Xz4SFZ X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; ASN(0.00)[asn:39326, ipnet:2a01:348::/32, country:GB]; REPLY(-4.00)[] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 06 Jun 2020 09:56:19 -0000 --Apple-Mail=_FC84916C-2943-434C-99B0-378174D7CC25 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii > On 6 Jun 2020, at 00:25, Ian Lepore wrote: > > You cannot do that. The installworld process uses a path that points > into the obj tree that got built (so that new binaries are used to do > the install work), and those binaries are compiled for the arch that > did the build. That is my experience. I used to work around a closely related problem when I built build* on a fast machine, and did the install* on the slow ones. As I was using automounts, I ended up with incompatible paths baked into the build, so I worked around those with symlinks. I never tried this with anything other than i386/i386 or amd64/amd64, so the above is interesting. Could a viable cross-build* be "fixed" by symlinks, and somehow and easily forcing a cross-build of the bootstrap tools? My RPis wish to know :-) M -- --Apple-Mail=_FC84916C-2943-434C-99B0-378174D7CC25 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.2 Comment: GPGTools - http://gpgtools.org iQEzBAEBCgAdFiEEyzPHvybPbOpU9MCxQlsJDh9CUqAFAl7baDgACgkQQlsJDh9C UqDM5Af+L0VOe/2ETeQCSkv58+DeS8STKVHi9dB/qyDpk/hhX1tZZvDNyt2RTTdi 1sS5MrFFm2VMtjNNd+ldTRpzltPVFK5ElkxxyV/03iiG71J3JlGMIQS/of0VSVQE oFKRM2hT0aLXMRRW1Hnk3Iur9/EKmMx1GeXwE1u95s6C8lM1OY7VdhCyNIjyGAcc 5ThhARxRbyQTfn69+TyXlNdQUBaVfmmawUpI5fP7M9tf2aXWt7H+Sis/MicAUnYs 0F5JVeF18gikHTT3SYCds6YmBZ8zirQJYjKp4uc0EFPuXVJuog2zuB7HJtDRNMJj q3BbXabDHtRm8UAhCeZmOaLJbTi3ZA== =RRg7 -----END PGP SIGNATURE----- --Apple-Mail=_FC84916C-2943-434C-99B0-378174D7CC25--