ScarletNX builds for NetBSD 11 on x86-64. It is a secondary platform: CI doesn't build it, and support is the code and the preset below. No NetBSD machine has run it yet.
The netbsd-x86_64-cross preset cross-builds from Linux with Clang and LLD against a NetBSD sysroot.
scripts/netbsd-sysroot.sh makes one without root: NetBSD's base and comp sets (the C library, and its headers,
crt files and libgcc, which base lacks), and pkgsrc's SDL3, each checked against the SHA512 list it is published
with.
scripts/netbsd-sysroot.sh .cache/netbsd-sysroot
export SNX_SYSROOT=$PWD/.cache/netbsd-sysroot
cmake --preset netbsd-x86_64-cross
cmake --build --preset netbsd-x86_64-cross
This build has not been built against the sysroot yet, and nothing has run: there is no emulator for NetBSD programs on Linux, and no NetBSD host.
-stdlib=libstdc++, and -lgcc_s for _Unwind_Resume, which Clang's NetBSD driver doesn't link.memfd_create in libc (shm_open is librt's). Guest
threads wait on NetBSD's __futex, which takes Linux's operations.SNX_SYSTEM_SDL3), as on FreeBSD: pkgsrc's is 3.4.16, older than the pinned
source build.renderdoc= says so and captures nothing.Made from docs/hosts/netbsd.md at 69237645142c. GPL-3.0-or-later.