llvm-mos-sdk icon indicating copy to clipboard operation
llvm-mos-sdk copied to clipboard

Bootstrap MOS compiler doesn't work on non x86_64

Open Min1123 opened this issue 2 years ago • 2 comments

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 allow the executable to find the libraries that the executable is linked against. This prevents building.

Min1123 avatar Jun 07 '22 12:06 Min1123

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.

johnwbyrd avatar Nov 29 '22 00:11 johnwbyrd

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.

mysterymath avatar Dec 18 '22 17:12 mysterymath