FWIW, has anyone here tried building LLVM on NetBSD/m68k? At least a stage1 build should just work while there might still be some issues that prevent a two-stage build.
What do you know? It completed :) I used: PKG_OPTIONS.llvm=llvm-target-m68k \ -llvm-target-aarch64 -llvm-target-amdgpu -llvm-target-arc \ -llvm-target-arm -llvm-target-avr -llvm-target-bpf \ -llvm-target-csky -llvm-target-directx -llvm-target-hexagon \ -llvm-target-lanai -llvm-target-loongarch \ -llvm-target-mips -llvm-target-msp430 -llvm-target-nvptx \ -llvm-target-powerpc -llvm-target-riscv -llvm-target-sparc \ -llvm-target-spirv -llvm-target-systemz -llvm-target-ve \ -llvm-target-webassembly -llvm-target-x86 -llvm-target-xcore \ -llvm-target-xtensa https://www.klos.com/~john/llvm-18.1.8nb3.tgz It's built from pkgsrc-2024Q4, so all the dependencies can be found here: https://cdn.netbsd.org/pub/pkgsrc/packages/NetBSD/m68k/10.0_2024Q4/All/ I haven't run it yet, but this is a start. John