Ok, my setup was pretty cursed it seems. I had some of the tools, including lld, from LLVM instead of MSYS2. I removed LLVM from my path and installed all the missing tools in MSYS2. Though it still can't find vulkan, so I'll just compile without vulkan for now.