Building Julia on WSL

I’m getting these errors when trying to cross-compile the Windows build of Julia on WSL:

002d:err:module:LdrInitializeThunk "libLLVM.dll" failed to initialize, aborting
002d:err:module:LdrInitializeThunk Initializing dlls for L"Z:\\mnt\\d\\repos\\julia\\usr\\tools\\llvm-config.exe" failed, status c0000005

What might I need to do here?

I think maybe installing cygwin just doesn’t mix well with building inside WSL. I got Julia to build on WSL on a different machine.