I’m working on a project targeted at Raspberry Pi. The Model 3B and Model 4B both seem to use ARMv8 CPUs, which, from my reading, should be the
arm64 architecture for the purposes of
But it seems like Rasbpian and most distros for Pi are using 32-bit userland at least (often with a 32-bit kernel as well), which presents problems when you’re evidently compiling a 64-bit executable. So while a 64-bit exe is fine for distros like Gentoo, or Raspbian with entirely too much tweaking, it seems like a 32-bit binary (i.e. ARMv8 without the
aarch64 extension) is really desirable for most Pi users.
Is there a way to generate an ARMv8, 32-bit build with just a value in
arch? I.E. a build with output(s) that could be copied to a Raspbian device and be used immediately? I could use some docker/QEMU magic to do it “manually,” but that takes much more time and is harder to cache. (Not to mention that openssl seems to be broken inside docker/QEMU containers, even on bionic.)