pacman -Syu
pacman -S make
pacman -S mingw-w64-ucrt-x86_64-SDL2_mixer
pacman -S mingw-w64-ucrt-x86_64-gcc
The explain for all error above is seem like ruby2d can't build with mingw64 env, so we need to install ucrt64 library
https://www.msys2.org/docs/environments/