In case you have executed pacman -Syu today and updated packages, there were some breaking changes in MSYS2 repository
Please execute next to rollback:
for x64:
pacman -U http://repo.msys2.org/mingw/x86_64/mingw-w64-x86_64-crt-git-5.0.0.4609.566d621-1-any.pkg.tar.xz http://repo.msys2.org/mingw/x86_64/mingw-w64-x86_64-headers-git-5.0.0.4609.566d621-1-any.pkg.tar.xz
for x86:
pacman -U http://repo.msys2.org/mingw/i686/mingw-w64-i686-crt-git-5.0.0.4609.566d621-1-any.pkg.tar.xz http://repo.msys2.org/mingw/i686/mingw-w64-i686-headers-git-5.0.0.4609.566d621-1-any.pkg.tar.xz