x86_64-w64-mingw32 download failed
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
environment:
matrix:
- HOST_ARCH_ARG: --host=x86_64-w64-mingw32
ADD_PATH: /mingw64/bin
# scripts that run after cloning repository
install:
- C:\msys64\usr\bin\bash -lc "pacman --noconfirm -S mingw-w64-x86_64-cmake"
#
# run custom scripts instead of automatic MSBuild
build_script:
- C:\msys64\usr\bin\bash -lc "
cd $APPVEYOR_BUILD_FOLDER;
export PATH=$PATH:$ADD_PATH;
bin/appveyor.sh
"
#
notifications:
- provider: Email
to:
- [email blocked]
on_build_success: true
on_build_failure: true
~
Keyboard shortcuts
Generic
? | 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
Support Staff 1 Posted by Feodor Fitsner on 26 Oct, 2020 02:33 AM
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.
Support Staff 2 Posted by Feodor Fitsner on 27 Oct, 2020 02:04 AM
It should be fixed now. This is the test: https://ci.appveyor.com/project/appveyor-tests/msys2-test
3 Posted by Adrian Suciu on 27 Oct, 2020 05:14 PM
I tried running the same test as here:
https://ci.appveyor.com/project/appveyor-tests/msys2-test
But for me it fails. I can't really tell what's going on.
https://ci.appveyor.com/project/adisuciu/scopy-mingw-build-deps/builds/35986460/job/bc7aj2vrngnxhaso
Do you have any suggestions ?
-Adrian
Support Staff 4 Posted by Feodor Fitsner on 27 Oct, 2020 05:34 PM
Run it on
Visual Studio 2019
image by adding toappveyor.yml
this:5 Posted by Adrian Suciu on 28 Oct, 2020 10:23 AM
Works great, thanks !
6 Posted by bradbell on 06 Nov, 2020 01:22 PM
This did not work for me.
See
https://github.com/coin-or/CppAD/commit/fb4353a329
and
https://ci.appveyor.com/project/bradbell/cppad/builds/36173198
Support Staff 7 Posted by Feodor Fitsner on 06 Nov, 2020 06:16 PM
Change
IMAGE: Visual Studio 2019
toAPPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
to make it work.8 Posted by bradbell on 08 Nov, 2020 12:43 PM
This fixed the problem; see the top of
https://ci.appveyor.com/project/bradbell/cppad/builds/36194552
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
https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/c...