New comment by jjsullivan5196 on void-packages repository https://github.com/void-linux/void-packages/issues/24959#issuecomment-695114714 Comment: @andrewrk if you try to do the regular build with the gcc-cross toolchain, it will try to run the arm64 `llvm-config` to get the link options. However, the emulator isn't setup so it can't run, ~and it would report the library include dir being at the host root instead of the arm64 root anyway. (`/lib` instead of `/usr/aarch64-linux-gnu/lib`)~ I'm sorry, I don't have a lot of experience with this, so I can't explain very well. The cross options in zig's cmake does get around this, but I had to hack the template a bit to get it to work. See here https://github.com/jjsullivan5196/void-packages/blob/zig-cross/srcpkgs/zig/template