Re: compiling for other architecture
- Reply: Oliver Epper : "Re: compiling for other architecture"
- In reply to: Oliver Epper : "compiling for other architecture"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 05 Mar 2024 15:37:08 UTC
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, > > 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? > > Can anyone point me to more recent information on how I can build for armv6 > on a x86_64 machine? > > greetings > Oliver > > P.S.: I know how to build for different architectures. My questions are all > about the "dos and don'ts" and best practices when it comes to the FreeBSDs > ports system. -- Mathieu Arnold