Port-arm archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Building packages for evbarm



On Sat, Oct 30, 2021 at 12:52:25AM +0000, Emmanuel Dreyfus wrote:
> Hello
> 
> I played a bit with various scenarios for building packages for evbarm-aarch64
> (for a Rasbperry Pi 3)
> 
> - Building natively on an USB attached disk.
> - Cross building from a fast amd64 host. I found this useful:
>   https://github.com/wfarr/pkgsrc/blob/master/doc/HOWTO-use-crosscompile
> - Building from a qemu aarch64 VM on a amd64 host. I ran it that way:
>   qemu-system-aarch64 -M virt -cpu cortex-a53 -smp 4 -m 4g \
>       -drive file=/dev/rxbd2d,if=none,format=raw,cache=none,id=q1 \
>       -device virtio-blk-device,drive=q1 \
>       -net nic -net tap,ifname=tap0,script=no \
>       -bios QEMU_EFI.fd -nographic
> 
> Cross-building is fast but has a lot a failures, with some packages that
> just give up at configure stage when they detect a cross-compiler.
> 
> qemu is even slower than native build, hence it is not an option.
> 
> I came to the conclusion that native build is the best option, but it
> could be improved by using a faster aarch64 board with SATA disk
> attachment. Anyone has a well supported model to suggest for that?
> 
> Is there any option I missed?

Perhaps distcc, with the configure state running natively but the
workers running crosscompilers on amd64.  I've never done this, but
it's documented on https://wiki.netbsd.org/tutorials/pkgsrc/cross_compile_distcc/


  Harold


Home | Main Index | Thread Index | Old Index