From nobody Tue Mar 05 15:37:08 2024 X-Original-To: freebsd-ports@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Tq06z3hnBz5Cv4V for ; Tue, 5 Mar 2024 15:37:15 +0000 (UTC) (envelope-from mat@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Tq06z37vsz47DX; Tue, 5 Mar 2024 15:37:15 +0000 (UTC) (envelope-from mat@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1709653035; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=u77/HYbm0QRaasnlt36BVBx/UJcO021W3cI3iJn33oM=; b=yZFBbtsgyg4DDiUXfw+wJWUNtDuJgdO97HdkW/lBeMSwirr3pdYTGJm0xZr3sfe9FduIlF IfMFy55UFsRcuNjxEGRSNggQw5rBcMxbMdr1IbygrwINwNz4lhVf/zFytjz/iLrIgshdEQ 2n7gdb6N9yCd0ZpGiIXYy3cgsEa2jsXGfxdJv11PU2COq9f8DfVXbKZGd8J3G31pJv8qWW cArUwalNttmS+7ICYsXDuijEuYMP/PavU4sFgR6yazcP2TPTtW4qjy2WNh2WfB1+1C4jTX LalZZR8lKajsfQcxc4HLf/mdTaGFKoqjiJTQuqRUrJ/Ny5mZGsDVLuqYipobYQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1709653035; a=rsa-sha256; cv=none; b=srbXUjNewMtQNf++JmewYVxqQJA4kadlrdBdemm8x8iHk9CbH9ZaS5sKLDhShPdzpRuwqt +SBqh87CHibeHxFyLzVVhv5vMH6l0OrycUJiyzOqd1c6dDy1cE/J7wdvPXVSCmna1cOC9Q FznD4qDwNryhDxrSh3KpoyWZoxDtnme6rwJckhrM1avMdBVCejOKScZrIQINUlY6Z3VG52 jWENUQmVwwuGwuBWMvesgcIZFmCBknsIUrGV4sRHlbtv4N3e7bHjyH3OiKzo4LwvytvZR/ FOSSQg8e/VgFtOjyZzpVSNJEB7lBrZbuV2Y40Qt2A9UW5pKfx3EH8A3l05lOIA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1709653035; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=u77/HYbm0QRaasnlt36BVBx/UJcO021W3cI3iJn33oM=; b=WaftY15DN85ciKLevXf2ZIqn8zIAA7SPJ0lb7cnK1MkGIaZkbhrX3+dEybC1yYWV6VaSXQ OdSCzXis1UAoQqvHd9xgUkg/jgmlw0l6t0D4zsqGDCiqzdb+W1LvBACGoLTxSUlfd6OXsr zJeKcl37UAO2FFDuMcUajmKLU56x3jWtaWdV/R6RQkIKA5AAcAodFoYV64MFytzUQyxAHj tU64KknvV+rBY22NCt3bXvt2whWb/bCWa9QWu8HvZIZiJDEKP3g1Fk/6rLAbrve4afLa6f BCcZoW92faGgKaKFKmJ9n6fhjZ1Q5dUbyBxEagJfb41mhXNmaMUnImcmk82BGg== Received: from relay.mat.cc (cow.mat.cc [IPv6:2a01:678:2:200::49]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "cow.mat.cc", Issuer "R3" (verified OK)) (Authenticated sender: mat/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4Tq06z21jFz18qB; Tue, 5 Mar 2024 15:37:15 +0000 (UTC) (envelope-from mat@freebsd.org) Received: from aching.in.mat.cc (unknown [IPv6:2a01:678:ab:50:716:1ded:630c:7c39]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by relay.mat.cc (Postfix) with ESMTPSA id 05CDF214D8; Tue, 5 Mar 2024 16:37:12 +0100 (CET) Date: Tue, 5 Mar 2024 16:37:08 +0100 From: Mathieu Arnold To: Oliver Epper Cc: FreeBSD Ports Subject: Re: compiling for other architecture Message-ID: References: List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="qrlbjqtybmdwi46f" Content-Disposition: inline In-Reply-To: --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--