llvm-mos-sdk
llvm-mos-sdk copied to clipboard
Bootstrap MOS compiler doesn't work on non x86_64
On aarch64 (also presume others) the x86_64 dynamically linked bootstrap is downloaded. This cannot execute via a qemu-binfmt misc binary execution on Linux because it requires an additional flag setting for qemu-x86_64-static (-L
To solve this properly we'd really need an aarch and an aarch64 build of the entire SDK. Should be possible, but would take a lot of time to get the backend building to a fourth and fifth target.
Probably just aarch64; desktop OSes on arm32 is pretty darn rare these days. But we'd need separate builds on Apple M1 and AArch64 Linux.
The main issue is CI; it's difficult to set up arm devices in the cloud, so we'd probably need to physically buy and manage runner devices. Or do some hacking to cross compile and test with qemu, but that only works for Linux.
Either way, it's doable, but a pain, so I'd personally hope to see a few independent calls for this before setting out to do it.