Does it show you what the illegal instruction is exactly?
As for compiling from source, it takes a while (even longer, since you’d need to do it inside the VM that you intend to use it in), but if you want to go for it, then this is the link with the (as far as I know) easiest instructions: Building Zig from source for dummies? - #6 by matklad