New comment by sgn on void-packages repository https://github.com/void-linux/void-packages/pull/25376#issuecomment-705266136 Comment: > Thanks a lot! For some reason, crossbuilding for `i686` works fine (without applying your suggestion). The dependencies is incorrect, I think, it's like ``` exe ----> lib -----> lsrc.c ----> gen-src.h ----> prototype `---> esrc.c ``` Where `esrc.c` should depend on `gen-src.h` but not declared so. and ninja decided to build `esrc.c` before `gen-src.h The dependency graph will be generated by host machine so they should only depend on host meson/ninja.