New comment by jjsullivan5196 on void-packages repository https://github.com/void-linux/void-packages/issues/24959#issuecomment-694765306 Comment: I think I figured out the problem, more context from irc ``` I think if you run `llvm-config --system-libs` or something like that it might spit out all the missing libs for me it prints `-lz -lrt -ldl -lpthread -lm` for your config it will probably include -lxml anyway point being that dependency comes from LLVM so it's kind of a question for the llvm project how to properly link in their dependency it sounds like a packaging mishap if `llvm-config --system-libs` doesn't resolve this for you ``` So it seems that `llvm-config --system-libs` should spit out linker flags for any dependencies it needs when linking, but as it stands it just prints a blank line. This is what the cmake uses for cross dependencies. This would make me think the problem is somewhere in the `llvm10` template. ~For now, manually adding the packages/linker flags appears to work. There's also a weird problem where `ld` ignores the extra flags unless `-Wl,--no-as-needed` is set.~ Found a problem, seems the AVR target causes some other issues ``` zig version zig: symbol lookup error: zig: undefined symbol: LLVMInitializeAVRTarget, version LLVM_10 ``` I'll see what I can do about that.