Join Nostr
2026-06-18 22:54:58 UTC

solo on Nostr: does anyone have any experience with cross compilation using clang & setting up ...

does anyone have any experience with cross compilation using clang & setting up everything for that?

I need to cross compile with clang targeting arm from an x86-64 host. my target is specifically running ubuntu, and I need to install a bunch of ubuntu deps (like linux headers & a bunch of other system libs) so those would need to be shoved into a sysroot

I need this setup to also be easily used by others, so the install needs to be automated

basically, is there anything good for scripting the setup of an ubuntu sysroot for a target arch (though I will only ever be targeting armv8a here)

if it makes any difference, my host is running arch linux (anything in nixpkgs is also available to me), however the other people who will need to run it are using ubuntu.