svn commit: r456402 - in head/lang/ocaml: . files

Jan Beich jbeich at FreeBSD.org
Sat Dec 16 08:08:25 UTC 2017


Alexey Dokuchaev <danfe at FreeBSD.org> writes:

> On Fri, Dec 15, 2017 at 07:05:24PM +0100, Jan Beich wrote:
>
>> ...
>> poudriere can use qemu-user (at least on i386 and amd64) to emulate
>> aarch64, armv6, armv7, mips, mips64. However, emulation is slow thus
>> native-xtools are used to speed up the build via statically-linked host
>> binaries[1] for target architecture under /nxb-bin prepended in PATH.
>
> Thanks, I'll try to use qemu (I don't know what qemu-user is though).
> I've tried it before to emulate sparc64 which we lack in cluster, but
> it did not work.  I've heard that it's better for those other tier-2
> targets you've mentioned.

qemu-user refers to emulators/qemu-user-static which installs qemu-aarch64-static
that can run FreeBSD aarch64 binaries without starting a whole VM.

>
>> EuroBSDCon 2014 had some presentations about this by sbruno and bapt:
>> https://www.youtube.com/watch?v=2J9Lz3pgnbA
>> https://www.youtube.com/watch?v=JfZIoyQhly4
>
> I'll have a look, but native-xtools thing could be a bit too hard for
> me to understand and setup.

native-xtools are already integrated into poudriere, so all you need to
know is to pass -x when creating a jail like in my example. On FreeBSD
before 12.0 the target is a bit broken, so you need /usr/src matching
target on host machine as well.


More information about the svn-ports-all mailing list