1 messages · Page 1 of 1 (latest)
That could be your anti virus software breaking things
You can try --debug mode and/or Strace or Process Monitor to see what's actually being denied.
--debug
Does rebooting fix anything
Does /var/lib/pacman/db.lck file exist?
/var/lib/pacman/db.lck
pacman --debug -S mingw-w64-ucrt-x86_64-gcc
strace pacman -S mingw-w64-ucrt-x86_64-gcc