Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Mar 2024 16:37:08 +0100
From:      Mathieu Arnold <mat@freebsd.org>
To:        Oliver Epper <oliver.epper@gmail.com>
Cc:        FreeBSD Ports <freebsd-ports@freebsd.org>
Subject:   Re: compiling for other architecture
Message-ID:  <cn6rpylhua7fxzvewf2mkamjakmjm733ezyer3rtvyvywh7ois@exe67emqjohf>
In-Reply-To: <CAP8tsuQ=j4CSMno75nbh32-FEcvAtrrEDxup5d1u5n_3fibuuA@mail.gmail.com>
References:  <CAP8tsuQ=j4CSMno75nbh32-FEcvAtrrEDxup5d1u5n_3fibuuA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--qrlbjqtybmdwi46f
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hi,

I don't think you need to do much of the things you are saying, cross
building can't really work because most ports will compile something and
then try to run it, which won't work because an armv6 binary won't run
on a x86_64 machine.

What works on the other hand is using poudriere and qemu-user-static.

you install both, and if you want to build packages for armv6, you just
create a jail with the arch as "arm.armv6", and then simply run
poudriere bulk with the arm jail. It will build everything in a jail,
and you'll get arm packages in the end.

On Sun, Mar 03, 2024 at 01:53:31PM +0100, Oliver Epper wrote:
> Hi all,
>=20
> I am currently working on an updated port of net/pjsip. I have a personal
> use case building for the raspberry-pi, too. All the information that I
> found so far seemed outdated. Many are talking about building a
> cross-compiler. With clang that should not be necessary, right?
>=20
> Can anyone point me to more recent information on how I can build for arm=
v6
> on a x86_64 machine?
>=20
> greetings
> Oliver
>=20
> P.S.: I know how to build for different architectures. My questions are a=
ll
> about the "dos and don'ts" and best practices when it comes to the FreeBS=
Ds
> ports system.

--=20
Mathieu Arnold

--qrlbjqtybmdwi46f
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQITBAABCgB9FiEE9XJBpJetWizkEBUef2IOCp6dQb4FAmXnPCRfFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEY1
NzI0MUE0OTdBRDVBMkNFNDEwMTUxRTdGNjIwRTBBOUU5RDQxQkUACgkQf2IOCp6d
Qb7m1QwAiVaNn/kah5gGjo3A27B2wIwLkTHktyxvIBJs6L6xCLl/ev9boaq3itgH
cGDkKNQGaowl996HoOOf9uvJ7z1eGNMCB4ZGtqBdpBj2YGDTFHIJ7Mj/tvSisSrS
jfoD/+d/OlRbdZ25MJgfpuhBXHw+90qB9oPZbdaBUWaHswySt2Cdr1CyC5EbvfGK
NcWZC+Z5VhfMLmI4CbFH4iZbDMjmo52jz2xrkWCuJ0cgUR6kMGo0Jkp6QNwSUCqa
wrWT+mw4eLFvNQuzCYKeN0KQHDge7X4z57jOAGpTdAzRzzjyswZths747+Yh9hcR
9aLBEmJ0RoY72ZpsFduY3U+aymiaN/l0wUezRGQE3wMoofBxwZxGMt/C2ysF2aJ2
Xr0sMpSv2B3SUuHYhxTrSeTbB4dD6AVCxylicZ42ms7iUW8yFhC6YlICqvaYXsRe
KB4eeG//i4XlwpG3mBgOVIE3xc0u+CG7iTMJnyqJPAL5fgkhWmvj6F7jmZv6skFG
sC0gDA/t
=USRB
-----END PGP SIGNATURE-----

--qrlbjqtybmdwi46f--



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