x86_64-w64-mingw32 download failed

bradbell's Avatar


25 Oct, 2020 11:39 AM

Starting at Sat, 24 Oct 2020 18:14:55 +0000 I am getting errors while appveyor is downloading the mingw environment; See the output below

Build started
git clone -q --branch=master https://github.com/coin-or/CppAD.git C:\projects\cppad
git checkout -qf a327681ec1b81123d64266b6c92177e0f9e04e84
Running Install scripts
C:\msys64\usr\bin\bash -lc "pacman --noconfirm -S mingw-w64-x86_64-cmake"
resolving dependencies...
looking for conflicting packages...
Packages (20) mingw-w64-x86_64-brotli-1.0.7-1  mingw-w64-x86_64-c-ares-1.15.0-1  mingw-w64-x86_64-curl-7.65.3-1  mingw-w64-x86_64-jansson-2.12-1  mingw-w64-x86_64-jemalloc-5.2.0-1  mingw-w64-x86_64-jsoncpp-1.9.1-1  mingw-w64-x86_64-libarchive-3.4.0-2  mingw-w64-x86_64-libidn2-2.2.0-1  mingw-w64-x86_64-libmetalink-0.1.3-3  mingw-w64-x86_64-libpsl-0.21.0-1  mingw-w64-x86_64-libssh2-1.9.0-1  mingw-w64-x86_64-libunistring-0.9.10-1  mingw-w64-x86_64-libuv-1.30.1-1  mingw-w64-x86_64-lz4-1.9.1-1  mingw-w64-x86_64-lzo2-2.10-1  mingw-w64-x86_64-nettle-3.5.1-1  mingw-w64-x86_64-nghttp2-1.39.1-1  mingw-w64-x86_64-rhash-1.3.8-1  mingw-w64-x86_64-zstd-1.4.1-1  mingw-w64-x86_64-cmake-3.15.0-1
Total Download Size:   10.99 MiB
Total Installed Size:  61.10 MiB
:: Proceed with installation? [Y/n] warning: no /var/cache/pacman/pkg/ cache exists, creating...
:: Retrieving packages...
downloading mingw-w64-x86_64-c-ares-1.15.0-1-any.pkg.tar.xz...
error: failed retrieving file 'mingw-w64-x86_64-brotli-1.0.7-1-any.pkg.tar.xz' from repo.msys2.org : The requested URL returned error: 404
... snip ...

Here is a copy of my appveyor.yml file:

platform: - x64

# msys2 environment
    - HOST_ARCH_ARG: --host=x86_64-w64-mingw32
      ADD_PATH: /mingw64/bin

# scripts that run after cloning repository
  - C:\msys64\usr\bin\bash -lc "pacman --noconfirm -S mingw-w64-x86_64-cmake"

# run custom scripts instead of automatic MSBuild
  - C:\msys64\usr\bin\bash -lc "
      export PATH=$PATH:$ADD_PATH;
  - provider: Email
     - [email blocked]
    on_build_success: true
    on_build_failure: true


  1. Support Staff 1 Posted by Feodor Fitsner on 26 Oct, 2020 02:33 AM

    Feodor Fitsner's Avatar

    Could be a similar issue: https://help.appveyor.com/discussions/problems/28463-build-fail-pac...

    We are currently updating VS 2019 image and thus MSYS2 - will be ready tomorrow. Let's see if that helps.

  2. Support Staff 2 Posted by Feodor Fitsner on 27 Oct, 2020 02:04 AM

    Feodor Fitsner's Avatar

    It should be fixed now. This is the test: https://ci.appveyor.com/project/appveyor-tests/msys2-test

  3. 3 Posted by Adrian Suciu on 27 Oct, 2020 05:14 PM

    Adrian Suciu's Avatar

    I tried running the same test as here:

    But for me it fails. I can't really tell what's going on.


    Do you have any suggestions ?


  4. Support Staff 4 Posted by Feodor Fitsner on 27 Oct, 2020 05:34 PM

    Feodor Fitsner's Avatar

    Run it on Visual Studio 2019 image by adding to appveyor.yml this:

    image: Visual Studio 2019
  5. 5 Posted by Adrian Suciu on 28 Oct, 2020 10:23 AM

    Adrian Suciu's Avatar

    Works great, thanks !

  6. 6 Posted by bradbell on 06 Nov, 2020 01:22 PM

    bradbell's Avatar
  7. Support Staff 7 Posted by Feodor Fitsner on 06 Nov, 2020 06:16 PM

    Feodor Fitsner's Avatar

    Change IMAGE: Visual Studio 2019 to APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019 to make it work.

  8. 8 Posted by bradbell on 08 Nov, 2020 12:43 PM

    bradbell's Avatar

    This fixed the problem; see the top of

    I have a question about this appveyor image. Does it have the proper setup to also use the Visual Studio compiler from the command line; see

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac