pacman -Syuu
restart, pacman -Syuu
restart, pacboy -S gcc:x
pacboy -S cmake:x
pacman -Syuu
msys2 is rather odd in it's setup$ history | grep pacman
176 pacman -S make
197 pacman -S mingw-w64-x86_64-gcc
198 pacman -S mingw-w64-x86_64-SDL2
199 pacman -S mingw-w64-x86_64-freetype
200 pacman -S mingw-w64-x86_64-cmake
201 pacman -S mingw-w64-x86_64-make
pacboy -S gcc:x
pacboy -S cmake:x
always worked for me