tag:help.appveyor.com,2012-11-13:/discussions/problems/28461-x86_64-w64-mingw32-download-failedAppVeyor: Discussion 2020-11-08T12:43:42Ztag:help.appveyor.com,2012-11-13:Comment/487667572020-10-25T11:39:24Z2020-10-25T11:39:24Zx86_64-w64-mingw32 download failed<div><p>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<br></p>
<pre>
<code>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 ...</code>
</pre>
<p>Here is a copy of my appveyor.yml file:</p>
<p>platform: - x64</p>
<pre>
<code># 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:
- bradbell@seanet.com
on_build_success: true
on_build_failure: true</code>
</pre>
<p>~</p></div>bradbelltag:help.appveyor.com,2012-11-13:Comment/487667572020-10-26T02:33:08Z2020-10-26T02:33:08Zx86_64-w64-mingw32 download failed<div><p>Could be a similar issue: <a href="https://help.appveyor.com/discussions/problems/28463-build-fail-pacman-s-openssh-rsync-command-exited-with-code-1">https://help.appveyor.com/discussions/problems/28463-build-fail-pac...</a></p>
<p>We are currently updating VS 2019 image and thus MSYS2 - will be ready tomorrow. Let's see if that helps.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/487667572020-10-27T02:04:57Z2020-10-27T02:04:57Zx86_64-w64-mingw32 download failed<div><p>It should be fixed now. This is the test: <a href="https://ci.appveyor.com/project/appveyor-tests/msys2-test">https://ci.appveyor.com/project/appveyor-tests/msys2-test</a></p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/487667572020-10-27T17:14:46Z2020-10-27T17:14:47Zx86_64-w64-mingw32 download failed<div><p>I tried running the same test as here:<br>
<a href="https://ci.appveyor.com/project/appveyor-tests/msys2-test">https://ci.appveyor.com/project/appveyor-tests/msys2-test</a></p>
<p>But for me it fails. I can't really tell what's going on.</p>
<p><a href="https://ci.appveyor.com/project/adisuciu/scopy-mingw-build-deps/builds/35986460/job/bc7aj2vrngnxhaso">https://ci.appveyor.com/project/adisuciu/scopy-mingw-build-deps/bui...</a></p>
<p>Do you have any suggestions ?</p>
<p>-Adrian</p></div>Adrian Suciutag:help.appveyor.com,2012-11-13:Comment/487667572020-10-27T17:34:40Z2020-10-27T17:34:40Zx86_64-w64-mingw32 download failed<div><p>Run it on <code>Visual Studio 2019</code> image by adding to <code>appveyor.yml</code> this:</p>
<pre>
<code>image: Visual Studio 2019</code>
</pre></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/487667572020-10-28T10:23:38Z2020-10-28T10:23:39Zx86_64-w64-mingw32 download failed<div><p>Works great, thanks !</p></div>Adrian Suciutag:help.appveyor.com,2012-11-13:Comment/487667572020-11-06T13:22:13Z2020-11-06T13:22:13Zx86_64-w64-mingw32 download failed<div><p>This did not work for me.</p>
<p>See<br>
<a href="https://github.com/coin-or/CppAD/commit/fb4353a329">https://github.com/coin-or/CppAD/commit/fb4353a329</a><br>
and<br>
<a href="https://ci.appveyor.com/project/bradbell/cppad/builds/36173198">https://ci.appveyor.com/project/bradbell/cppad/builds/36173198</a></p></div>bradbelltag:help.appveyor.com,2012-11-13:Comment/487667572020-11-06T18:16:52Z2020-11-06T18:16:52Zx86_64-w64-mingw32 download failed<div><p>Change <code>IMAGE: Visual Studio 2019</code> to <code>APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019</code> to make it work.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/487667572020-11-08T12:43:41Z2020-11-08T12:43:41Zx86_64-w64-mingw32 download failed<div><p>This fixed the problem; see the top of<br>
<a href="https://ci.appveyor.com/project/bradbell/cppad/builds/36194552">https://ci.appveyor.com/project/bradbell/cppad/builds/36194552</a></p>
<p>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<br>
<a href="https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/compiler-options/how-to-set-environment-variables-for-the-visual-studio-command-line">https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/c...</a></p></div>bradbell