Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Aug 2017 18:03:00 +0200
From:      Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
To:        Andrea Venturoli <ml@netfence.it>
Cc:        Jan Beich <jbeich@freebsd.org>, freebsd-ports@freebsd.org
Subject:   Re: qemu-aarch64-static
Message-ID:  <CAB88xy_bvpRRsBHOW6hg13RTACHkc9juMrjEBMW7NRunw_UExg@mail.gmail.com>
In-Reply-To: <cc27572c-22c8-f5b2-6c2d-e563751d6423@netfence.it>
References:  <29906b14-8efa-ba65-985a-fd5b90c76b9b@netfence.it> <fucq-0zjk-wny@FreeBSD.org> <cc27572c-22c8-f5b2-6c2d-e563751d6423@netfence.it>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
yes, the qemu emulation of other architecture means that the CPU is
emulated by software, that's really expensive.
You should consider around 10x slower or even more. ccache can help a
lot in this case.

Best regards,
Luca


On Tue, Aug 22, 2017 at 7:40 AM, Andrea Venturoli <ml@netfence.it> wrote:
> On 08/17/17 21:22, Jan Beich wrote:
>
>> Yep. Link the binary (i.e. "date") statically or run it inside
>> jail/chroot.
>> Otherwise, /libexec/ld-elf.so.1 references the host system, which on amd64
>> wouldn't recognize aarch64 shared libraries.
>
>
> Thanks a lot.
> Now it seems so obvious to me, but I really wouldn't have thought about this
> little detail :)
>
>
>
>> That page is a bit out of date. Nowadays building for aarch64 is as simple
>> as
>>
>>    $ pkg install poudriere qemu-user-static
>>    $ service qemu_user_static onestart
>>    $ poudriere jail -cj 111aarch64 -a arm64.aarch64 -v 11.1-RELEASE
>>    $ poudriere bulk -j 111aarch64 category/port
>
>
> I can confirm this is working.
>
>
>
>> To speed up port builds you may want to consider using native
>> cross-toolchain by creating a jail with -x flag.
>
>
> Do you have any more info on this?
> Except from poudriere's man page's description I could find no other docs.
> Is there any more elaborate description on what this does and how?
>
> I built the jail with -x, but how do I check it's using "native-xtools"?
>
> I tried building ports-mgmt/pkg and it requires ten times more than native
> build (i.e. 24 minutes for aarch64 vs. less than 3 minutes for amd64). Is
> this normal?
>
>
>
>  bye & Thanks
>         av.
>
> _______________________________________________
> freebsd-ports@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-ports
> To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org"



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?CAB88xy_bvpRRsBHOW6hg13RTACHkc9juMrjEBMW7NRunw_UExg>