Re: should aarch64 cross-build work at amd64?

From: Ross Alexander <rwa_at_athabascau.ca>
Date: Tue, 27 Sep 2016 21:46:29 -0600 (MDT)
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. Install 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_at_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 svn 2016-09-26 18:54:15 /usr/local/pd/jails/11-stab-arm64"

advance thanks,
Ross
--
Ross Alexander, (780) 675-6823 desk / (780) 689-0749 cell, rwa_at_athabascau.ca

    "Plato's scheme of folly, which would have the philosophers take
     over the management of affairs, has been turned on its head; the
     men of affairs have taken over the direction and pursuit of
     knowledge."
                 -- Thorstein Veblen, _The Higher Learning in America_

-- 
    This communication is intended for the use of the recipient to whom it
    is addressed, and may contain confidential, personal, and or privileged
    information. Please contact us immediately if you are not the intended
    recipient of this communication, and do not copy, distribute, or take
    action relying on it. Any communications received in error, or
    subsequent reply, should be deleted or destroyed.
---
Received on Wed Sep 28 2016 - 02:08:04 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:08 UTC