From owner-freebsd-current@freebsd.org Wed Sep 28 08:02:08 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 7A724C00DE2 for ; Wed, 28 Sep 2016 08:02:08 +0000 (UTC) (envelope-from bsam@passap.ru) Received: from forward2j.cmail.yandex.net (forward2j.cmail.yandex.net [IPv6:2a02:6b8:0:1630::15]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "forwards.mail.yandex.net", Issuer "Yandex CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1C399944; Wed, 28 Sep 2016 08:02:08 +0000 (UTC) (envelope-from bsam@passap.ru) Received: from smtp3m.mail.yandex.net (smtp3m.mail.yandex.net [IPv6:2a02:6b8:0:2519::125]) by forward2j.cmail.yandex.net (Yandex) with ESMTP id D763821195; Wed, 28 Sep 2016 11:01:55 +0300 (MSK) Received: from smtp3m.mail.yandex.net (localhost.localdomain [127.0.0.1]) by smtp3m.mail.yandex.net (Yandex) with ESMTP id E0B1B2840D6F; Wed, 28 Sep 2016 11:01:43 +0300 (MSK) Received: by smtp3m.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id hxK84DMxxK-1hg81hkO; Wed, 28 Sep 2016 11:01:43 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) X-Yandex-Suid-Status: 1 0,1 0,1 0 Subject: Re: should aarch64 cross-build work at amd64? To: Glen Barber , Ross Alexander References: <20160928042254.GL86426@FreeBSD.org> Cc: freebsd-current@freebsd.org From: Boris Samorodov Message-ID: <77ddd505-9eb4-de1e-1bbe-eb3d2bbd0ba8@passap.ru> Date: Wed, 28 Sep 2016 11:00:43 +0300 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: <20160928042254.GL86426@FreeBSD.org> Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="ndUs5G6lUAwad3rJ5a4uUf8VKdlQ3dlhH" 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 08:02:08 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --ndUs5G6lUAwad3rJ5a4uUf8VKdlQ3dlhH Content-Type: multipart/mixed; boundary="eDUb0tU3LihGiFCpqJdoQOuDtN7Em7TrU"; protected-headers="v1" From: Boris Samorodov To: Glen Barber , Ross Alexander Cc: freebsd-current@freebsd.org Message-ID: <77ddd505-9eb4-de1e-1bbe-eb3d2bbd0ba8@passap.ru> Subject: Re: should aarch64 cross-build work at amd64? References: <20160928042254.GL86426@FreeBSD.org> In-Reply-To: <20160928042254.GL86426@FreeBSD.org> --eDUb0tU3LihGiFCpqJdoQOuDtN7Em7TrU Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 28.09.2016 07:22, Glen Barber =D0=BF=D0=B8=D1=88=D0=B5=D1=82: > 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: >> >>> 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. Insta= ll 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 >> >> Glen, >> >> 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. >> >> 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 >> >> poudriere-devel-3.1.99.20160624_2 >> >> qemu-user-static-2.6.90.g20160728 >> >> aarch64-binutils-2.25.1_3,1 >> >> # /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= 0xff >> 0xff 0xff 0xff 0xff 0xfe 0xff 0xff 0xff >> >> failing jail is "11-stab-arm64 11.0-PRERELEASE r306344 arm64.aarch64 s= vn 2016-09-26 18:54:15 /usr/local/pd/jails/11-stab-arm64" >> >=20 > You should not need to use binmiscctl and QEMU. Try: >=20 > # poudriere jail -c -j HEAD-aarch64 -a arm.aarch64 -v head -m \ > svn+https Last time I tried the needed option for arch was "-a arm64.aarch64". Glen, it was you who helped me to fugure out the option. :-) --=20 WBR, Boris Samorodov (bsam) FreeBSD Committer, http://www.FreeBSD.org The Power To Serve --eDUb0tU3LihGiFCpqJdoQOuDtN7Em7TrU-- --ndUs5G6lUAwad3rJ5a4uUf8VKdlQ3dlhH 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 iQIcBAEBCgAGBQJX63irAAoJEJYOILA6P20ogaAP/AhdHoZBMcgmNIoNFqA7dKRA Yazh7ggPq6xbke6fZfHbv+yFXURWpel13+KBIoZCTXsfh+s78cnNVT1kSn2uzB6t U3tfXczrSo05ateLr9ivX+lfzIhL4fbJ58lKZF2DV7G0A0z+xhSHq6G6j30GVQi2 o11A+su2er6ppKTXHeQmBYJd50nHoqEfbE7WIJ6oo8yvols4ytVyNBUYfNxwTL5j 2VAH1i71GEpdFeoeHjE5qsfXf5qgU10BEvAbS6u0NRGjcEvr8dQxRXPucGU3s02w 3fBsWmfAYJezpZxr2DId6WTC0qSohgPKD46wQFg+CL0JCtyutO9kycHlSrQyjyYC ahvKZqM9u6JQElWEvT0UT55JLl3082e4KaDniHkqxpZIU6BBWSiRcjjveMlcNnCQ 79v9yeEOM1OwFM0LO2DcXXQxisFuRpik25hPJNQ7949k8vq/ClmaXYrTPhmC0D4w rqpo4fWwCpvdGeDVSTSa7uRRrxu3qEQFYZNYq1xZx5VqnbuXI7FlHsEdMYD2n0gH zGHSQUTeD4BdokmLThlUFAh5JuHov+l4h/xfSAX+PGrAQQU4kGPHlPoFcvE31BmT UI6VVob7TjAEMQi8PAVYOk0JoWvxdTrSUtcKaZMaNRfGoENbsWYkjrV9lr7/BweG r4URKmTZnhIU1QJux9bn =zrpO -----END PGP SIGNATURE----- --ndUs5G6lUAwad3rJ5a4uUf8VKdlQ3dlhH--