From owner-freebsd-current@freebsd.org Wed Sep 28 04:22:58 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 449FCBEA990 for ; Wed, 28 Sep 2016 04:22:58 +0000 (UTC) (envelope-from gjb@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 2AD77A5E; Wed, 28 Sep 2016 04:22:58 +0000 (UTC) (envelope-from gjb@FreeBSD.org) Received: from FreeBSD.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by freefall.freebsd.org (Postfix) with ESMTP id 85C18176B; Wed, 28 Sep 2016 04:22:57 +0000 (UTC) (envelope-from gjb@FreeBSD.org) Date: Wed, 28 Sep 2016 04:22:55 +0000 From: Glen Barber To: Ross Alexander Cc: freebsd-current@freebsd.org Subject: Re: should aarch64 cross-build work at amd64? Message-ID: <20160928042254.GL86426@FreeBSD.org> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="Jl+DbTnyraiZ/loT" Content-Disposition: inline In-Reply-To: X-Operating-System: FreeBSD 11.0-CURRENT amd64 X-SCUD-Definition: Sudden Completely Unexpected Dataloss X-SULE-Definition: Sudden Unexpected Learning Event X-PEKBAC-Definition: Problem Exists, Keyboard Between Admin/Computer User-Agent: Mutt/1.5.24 (2015-08-30) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 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: Wed, 28 Sep 2016 04:22:58 -0000 --Jl+DbTnyraiZ/loT Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Sep 27, 2016 at 09:46:29PM -0600, Ross Alexander wrote: > On Fri, 23 Sep 2016 22:19:15 +0000, Glenn Barber wrote: >=20 > >On Sat, Sep 24, 2016 at 12:54:05AM +0300, Boris Samorodov wrote: > >> 24.09.2016 00:44, Boris Samorodov ?????: > >> > 24.09.2016 00:39, Glen Barber ?????: > >> >> On Sat, Sep 24, 2016 at 12:35:30AM +0300, Boris Samorodov wrote: > >> >>> make[1]: /poudriere/jails/HEAD-aarch64/usr/src/Makefile.inc1 line = 177: > >> >>> In-tree binutils does not support the aarch64 architecture. Instal= l the > >> >>> aarch64-binutils port or package or set CROSS_BINUTILS_PREFIX. > >> >> > >> >> These lines are relevant. > >> > > >> > Ops. Thank you. > >> > >> The error when aarch64-binutils are installed: > >> ----- > >> % sudo poudriere jail -c -j HEAD-aarch64 -a arm.aarch64 -v head -m > >> svn+https -J 8 > > > >Try with 'arm64.aarch64'. > >Glen >=20 > Glen, >=20 > The more I read this, the less I understand. I've built and install'd > aarch64-binutils on my poud box, then created an "-x -a arm64.aarch64 -m = svn" > jail - which worked fine - but that jail won't build anything. No > /usr/bin/ld, so toolchain is borked, so can't build ports-mgmt/pkg. > What utterly obvious thing have I missed? I've spent hours trying to > fake out the nxb-bin stuff, or to find some other point of entry, no > joy. >=20 > FreeBSD aubey2.bogons 12.0-CURRENT FreeBSD 12.0-CURRENT #0 r306286: > Fri Sep 23 21:32:37 MDT 2016 > toor@aubey2.bogons:/usr/obj/usr/src/sys/GENERIC amd64 >=20 > poudriere-devel-3.1.99.20160624_2 >=20 > qemu-user-static-2.6.90.g20160728 >=20 > aarch64-binutils-2.25.1_3,1 >=20 > # /usr/sbin/binmiscctl lookup aarch64 > name: aarch64 > interpreter: /usr/local/bin/qemu-aarch64-static > flags: ENABLED USE_MASK > magic size: 20 > magic offset: 0 > magic: 0x7f 0x45 0x4c 0x46 0x02 0x01 0x01 0x00 0x00 0x00 0x00 0x00 > 0x00 0x00 0x00 0x00 0x02 0x00 0xb7 0x00 > mask: 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0x00 0xff 0xff 0xff 0x= ff > 0xff 0xff 0xff 0xff 0xfe 0xff 0xff 0xff >=20 > failing jail is "11-stab-arm64 11.0-PRERELEASE r306344 arm64.aarch64 svn = 2016-09-26 18:54:15 /usr/local/pd/jails/11-stab-arm64" >=20 You should not need to use binmiscctl and QEMU. Try: # poudriere jail -c -j HEAD-aarch64 -a arm.aarch64 -v head -m \ svn+https Glen --Jl+DbTnyraiZ/loT Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJX60WYAAoJEAMUWKVHj+KTaMQP/Rq64Q0JZfNb0GTDbiXXxbWk VdfZEuG2aG6mw49tG9Sp1/KoEyNpRH6Y5ktyEjJ0LnfwMrkGmuqzwLsm53uniZB+ dsGuTdvUphHo+nq/eNZ5xP69Cx5BXHtgWmJg5XOhz+4bdYRAmK2qWIvMQpCmwa5M nAnc2gy+h+yFhyZygf/SRB2UC+DYQ17X4vuMVA2DtA51blIUJ08YJirHmPS1Gvlj tAFQRdKfPYtZeSyMoIDiRWRZ5lXIltmDWBQh7ZBt8dJLLCigApu+ZCs06XTGuIwN pfUIl6aPFQZYdG07uj72yjQAX4xHAmY9Q3ElccotVlq6wswgzeNAh3sk8R726yRu Q5Nr270RJ2UDa7Ry1WLITdRpDc1if2T/I7OlzgISrcorEcXl3oGUlIMm53V9fTzO mroEowKFrL/K467CLX5VWiWCd5CdaJpZ/n7DE3rvGYqDZQNUnOqUUmHeKyKX2XmO vCeQXKZJanI6Hlm3Ik7pbw1809A0z+66KlYEFWF1Ir32emwTZ9MK5VAUXuM6oHEA BiV1WezlEUyFNSIOPuO53LBkwhM8QcNuYK9J27XMK7uTw6KuaOo3onH67wlLckVI NjIF/sN2VHnpAyS1dyZmDnaoiTcowMD0vDx1tjxe+oM6YsRGWH6TyHLRJV9SjijH k/h/klmCILUKbpnVE8DR =PeNC -----END PGP SIGNATURE----- --Jl+DbTnyraiZ/loT--