Looks like unexpectedly missing file in your repo. -Kevin Sullivan
$ pacman -S mingw-w64-x86_64-emacs
resolving dependencies...
looking for conflicting packages...
warning: dependency cycle detected:
warning: mingw-w64-x86_64-harfbuzz will be installed before its mingw-w64-x86_64-freetype dependency
Packages (44) mingw-w64-x86_64-SDL2-2.0.9-1 mingw-w64-x86_64-ctags-5.8-5
mingw-w64-x86_64-dbus-1.12.14-1
mingw-w64-x86_64-djvulibre-3.5.27-3
mingw-w64-x86_64-fftw-3.3.8-1 mingw-w64-x86_64-flif-0.3-1
mingw-w64-x86_64-fontconfig-2.13.1-1
mingw-w64-x86_64-freeglut-3.0.0-4
mingw-w64-x86_64-freetype-2.10.0-1
mingw-w64-x86_64-fribidi-1.0.5-1 mingw-w64-x86_64-giflib-5.1.8-1
mingw-w64-x86_64-glib2-2.60.3-1
mingw-w64-x86_64-gnutls-3.6.7.1-1
mingw-w64-x86_64-graphite2-1.3.13-1
mingw-w64-x86_64-gsfonts-20180524-1
mingw-w64-x86_64-harfbuzz-2.4.0-2
mingw-w64-x86_64-imagemagick-7.0.8.14-1
mingw-w64-x86_64-jasper-2.0.16-1 mingw-w64-x86_64-jbigkit-2.1-4
mingw-w64-x86_64-lcms2-2.9-1
mingw-w64-x86_64-libjpeg-turbo-2.0.2-1
mingw-w64-x86_64-liblqr-0.4.2-4 mingw-w64-x86_64-libpng-1.6.37-3
mingw-w64-x86_64-libraqm-0.5.0-1
mingw-w64-x86_64-libtiff-4.0.10-1
mingw-w64-x86_64-libtool-2.4.6-13
mingw-w64-x86_64-libwebp-1.0.2-1
mingw-w64-x86_64-libxml2-2.9.9-1
mingw-w64-x86_64-mpdecimal-2.4.2-1
mingw-w64-x86_64-ncurses-6.1.20180908-1
mingw-w64-x86_64-openjpeg2-2.3.1-1 mingw-w64-x86_64-pcre-8.43-1
mingw-w64-x86_64-python3-3.7.3-3
mingw-w64-x86_64-readline-8.0.000-2
mingw-w64-x86_64-sqlite3-3.28.0-1 mingw-w64-x86_64-tcl-8.6.9-2
mingw-w64-x86_64-termcap-1.3.1-3 mingw-w64-x86_64-tk-8.6.9.1-1
mingw-w64-x86_64-ttf-dejavu-2.37-1
mingw-w64-x86_64-vulkan-headers-1.1.101-1
mingw-w64-x86_64-vulkan-loader-1.1.101-1
mingw-w64-x86_64-wineditline-2.205-1
mingw-w64-x86_64-xpm-nox-4.2.0-5 mingw-w64-x86_64-emacs-26.1-1
Total Download Size: 93.91 MiB
Total Installed Size: 593.20 MiB
:: Proceed with installation? [Y/n]
:: Retrieving packages...
mingw-w64-x86_64-ct... 189.2 KiB 207K/s 00:01 [#####################] 100%
mingw-w64-x86_64-xp... 62.4 KiB 203K/s 00:00 [#####################] 100%
error: failed retrieving file 'mingw-w64-x86_64-wineditline-2.205-1-any.pkg.tar.xz' from
repo.msys2.org : The requested URL returned error: 404
error: failed retrieving file 'mingw-w64-x86_64-wineditline-2.205-1-any.pkg.tar.xz' from
sourceforge.net : Maximum file size exceeded
error: failed retrieving file 'mingw-w64-x86_64-wineditline-2.205-1-any.pkg.tar.xz' from
www2.futureware.at : The requested URL returned error: 404
error: failed retrieving file 'mingw-w64-x86_64-wineditline-2.205-1-any.pkg.tar.xz' from
mirror.yandex.ru : The requested URL returned error: 404
warning: failed to retrieve some files
mingw-w64-x86_64-pc... 885.1 KiB 189K/s 00:05 [#####################] 100%
mingw-w64-x86_64-mp... 254.2 KiB 209K/s 00:01 [#####################] 100%
error: failed retrieving file 'mingw-w64-x86_64-ncurses-6.1.20180908-1-any.pkg.tar.xz' from
repo.msys2.org : The requested URL returned error: 404
assertion "httpc->drain_total >= data->state.drain" failed: file "http2.c", line 496, function: drain_this
Aborted (core dumped)