Since you mention using Arch package - please try cloning from github directly. The engine bundles the version of mono and compiler that are known to work. AUR unreal-engine package switches to using the system mono, but I don’t think the package is tested for building the engine every time mono is updated.