Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 16 Dec 2017 09:08:17 +0100
From:      Jan Beich <jbeich@FreeBSD.org>
To:        Alexey Dokuchaev <danfe@FreeBSD.org>
Cc:        svn-ports-head@freebsd.org, svn-ports-all@freebsd.org, clusteradm@FreeBSD.org, ports-committers@freebsd.org
Subject:   Re: svn commit: r456402 - in head/lang/ocaml: . files
Message-ID:  <vah7-w0we-wny@FreeBSD.org>
In-Reply-To: <20171216074159.GA4791@FreeBSD.org> (Alexey Dokuchaev's message of "Sat, 16 Dec 2017 07:41:59 %2B0000")
References:  <201712151531.vBFFV86t045131@repo.freebsd.org> <20171215170122.GA55820@FreeBSD.org> <d13f-kial-wny@FreeBSD.org> <20171215173736.GA92502@FreeBSD.org> <y3m3-hnob-wny@FreeBSD.org> <20171216074159.GA4791@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Alexey Dokuchaev <danfe@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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?vah7-w0we-wny>