I made a patch fixing build and install problems under MSYS2, including llvmjit.
I have tested this in my environment and it works, of course need more extensive testing.Attached is a patch that fixes it. Tag REL_11_5. Easy to adapt for other versions.