Error: Failed to download from mirror set
I install dependencies KiCad’s dependencies can be installed using vcpkg as described below:
.\vcpkg install boost cairo curl glew gettext glm icu libxslt ngspice opencascade opengl openssl python3 wxpython wxwidgets zlib harfbuzz
I get the error message:
Error: Failed to download from mirror set:
https://repo.msys2.org/msys/x86_64/binutils-2.34-4-x86_64.pkg.tar.zst: failed: status code 404
https://www2.futureware.at/~nickoe/msys2-mirror/msys/x86_64/binutils-2.34-4-x86_64.pkg.tar.zst: failed: status code 404
https://mirror.yandex.ru/mirrors/msys2/msys/x86_64/binutils-2.34-4-x86_64.pkg.tar.zst: failed: status code 404
https://mirrors.tuna.tsinghua.edu.cn/msys2/msys/x86_64/binutils-2.34-4-x86_64.pkg.tar.zst: failed: status code 404
https://mirrors.ustc.edu.cn/msys2/msys/x86_64/binutils-2.34-4-x86_64.pkg.tar.zst: WinHttpSendRequest() failed: 12002
https://mirror.bit.edu.cn/msys2/msys/x86_64/binutils-2.34-4-x86_64.pkg.tar.zst: WinHttpSendRequest() failed: 12007
https://mirror.selfnet.de/msys2/msys/x86_64/binutils-2.34-4-x86_64.pkg.tar.zst: WinHttpSendRequest() failed: 12175
https://mirrors.sjtug.sjtu.edu.cn/msys2/msys/x86_64/binutils-2.34-4-x86_64.pkg.tar.zst: failed: status code 404
[DEBUG] C:\a\1\s\src\vcpkg\base\downloads.cpp(626)
[DEBUG] Exiting after 238862229 us (238852582 us)
CMake Error at scripts/cmake/vcpkg_download_distfile.cmake:83 (message):
Failed to download file with error: 1
If you use a proxy, please check your proxy setting. Possible causes are:
1. You are actually using an HTTP proxy, but setting HTTPS_PROXY variable
to `https://address:port`. This is not correct, because `https://` prefix
claims the proxy is an HTTPS proxy, while your proxy (v2ray, shadowsocksr
, etc..) is an HTTP proxy. Try setting `http://address:port` to both
HTTP_PROXY and HTTPS_PROXY instead.
2. You are using Fiddler. Currently a bug (https://github.com/microsoft/vcpkg/issues/17752)
will set HTTPS_PROXY to `https://fiddler_address:port` which lead to problem 1 above.
Workaround is open Windows 10 Settings App, and search for Proxy Configuration page,
Change `http=address:port;https=address:port` to `address`, and fill the port number.
3. You proxy's remote server is out of service.
In future vcpkg releases, if you are using Windows, you no longer need to set
HTTP(S)_PROXY environment variables. Vcpkg will simply apply Windows IE Proxy
Settings set by your proxy software. See (https://github.com/microsoft/vcpkg-tool/pull/49)
and (https://github.com/microsoft/vcpkg-tool/pull/77)
Otherwise, please submit an issue at https://github.com/Microsoft/vcpkg/issues
Call Stack (most recent call first):
scripts/cmake/vcpkg_download_distfile.cmake:274 (z_vcpkg_download_distfile_show_proxy_and_fail)
scripts/cmake/vcpkg_acquire_msys.cmake:84 (vcpkg_download_distfile)
scripts/cmake/vcpkg_acquire_msys.cmake:123 (z_vcpkg_acquire_msys_download_package)
scripts/cmake/vcpkg_acquire_msys.cmake:228 (z_vcpkg_acquire_msys_declare_package)
scripts/cmake/vcpkg_configure_make.cmake:309 (vcpkg_acquire_msys)
ports/libiconv/portfile.cmake:29 (vcpkg_configure_make)
scripts/ports.cmake:140 (include)
Error: Building package libiconv:x64-windows failed with: BUILD_FAILED
Please ensure you're using the latest portfiles with `.\vcpkg update`, then
submit an issue at https://github.com/Microsoft/vcpkg/issues including:
Package: libiconv:x64-windows
Vcpkg version: 2021-08-12-85ab112d5ee102bc6eac8cdbbfdd173a71374e04
Additionally, attach any relevant sections from the log files above.
I don't use a proxy.
Edited by Kevin Nguyen