microsoft / vcpkg

C++ Library Manager for Windows, Linux, and MacOS
MIT License
23.27k stars 6.42k forks source link

[geogram] build failure x64-windows #20085

Closed XuRongYan closed 3 years ago

XuRongYan commented 3 years ago

Host Environment

To Reproduce Steps to reproduce the behavior: ./vcpkg install geogram:x64-windows

Failure logs

PS C:\Users\15369> vcpkg install geogram:x64-windows
Computing installation plan...
The following packages will be built and installed:
    geogram[core]:x64-windows -> 1.7.5#3
  * lapack[core]:x64-windows -> 3#1
  * lapack-reference[blas-select,core,noblas]:x64-windows -> 3.8.0#4
  * vcpkg-gfortran[core]:x64-windows -> 3
Additional packages (*) will be modified to complete this operation.
Detecting compiler hash for triplet x64-windows...
-- Automatically setting HTTP(S)_PROXY environment variables to 127.0.0.1:7890
Could not locate cached archive: C:\Users\15369\AppData\Local\vcpkg\archives\7c\7c4bc6c9e0adad6f175bd0f774626c1148369c98.zip
Could not locate cached archive: C:\Users\15369\AppData\Local\vcpkg\archives\b0\b01b9e0e5a3e3de8aa91c428d48ce677870803a4.zip
Could not locate cached archive: C:\Users\15369\AppData\Local\vcpkg\archives\fb\fb38e540e8e9f3e5f617a955855090703c602c47.zip
Could not locate cached archive: C:\Users\15369\AppData\Local\vcpkg\archives\dc\dc83b0458ed82a5bfc9d4784d2ae5cbe2a476b41.zip
Starting package 1/4: vcpkg-gfortran:x64-windows
Building package vcpkg-gfortran[core]:x64-windows...
-- The Fortran compiler identification is unknown
-- No Fortran compiler found on the PATH. Using MinGW gfortran!
-- Downloading https://repo.msys2.org/mingw/x86_64/mingw-w64-x86_64-libiconv-1.16-1-any.pkg.tar.xz -> msys-mingw-w64-x86_64-libiconv-1.16-1-any.pkg.tar.xz...
-- Downloading https://repo.msys2.org/mingw/x86_64/mingw-w64-x86_64-libiconv-1.16-1-any.pkg.tar.xz... Failed. Status: 22;"HTTP response code said error"
-- Downloading https://www2.futureware.at/~nickoe/msys2-mirror/mingw/x86_64/mingw-w64-x86_64-libiconv-1.16-1-any.pkg.tar.xz -> msys-mingw-w64-x86_64-libiconv-1.16-1-any.pkg.tar.xz...
-- Downloading https://www2.futureware.at/~nickoe/msys2-mirror/mingw/x86_64/mingw-w64-x86_64-libiconv-1.16-1-any.pkg.tar.xz... Failed. Status: 56;"Failure when receiving data from the peer"
-- Downloading https://mirror.yandex.ru/mirrors/msys2/mingw/x86_64/mingw-w64-x86_64-libiconv-1.16-1-any.pkg.tar.xz -> msys-mingw-w64-x86_64-libiconv-1.16-1-any.pkg.tar.xz...
-- Downloading https://mirror.yandex.ru/mirrors/msys2/mingw/x86_64/mingw-w64-x86_64-libiconv-1.16-1-any.pkg.tar.xz... Failed. Status: 22;"HTTP response code said error"
-- Downloading https://mirrors.tuna.tsinghua.edu.cn/msys2/mingw/x86_64/mingw-w64-x86_64-libiconv-1.16-1-any.pkg.tar.xz -> msys-mingw-w64-x86_64-libiconv-1.16-1-any.pkg.tar.xz...
-- Downloading https://mirrors.tuna.tsinghua.edu.cn/msys2/mingw/x86_64/mingw-w64-x86_64-libiconv-1.16-1-any.pkg.tar.xz... Failed. Status: 22;"HTTP response code said error"
-- Downloading https://mirrors.ustc.edu.cn/msys2/mingw/x86_64/mingw-w64-x86_64-libiconv-1.16-1-any.pkg.tar.xz -> msys-mingw-w64-x86_64-libiconv-1.16-1-any.pkg.tar.xz...
-- Downloading https://mirrors.ustc.edu.cn/msys2/mingw/x86_64/mingw-w64-x86_64-libiconv-1.16-1-any.pkg.tar.xz... Failed. Status: 22;"HTTP response code said error"
-- Downloading https://mirror.bit.edu.cn/msys2/mingw/x86_64/mingw-w64-x86_64-libiconv-1.16-1-any.pkg.tar.xz -> msys-mingw-w64-x86_64-libiconv-1.16-1-any.pkg.tar.xz...
-- Downloading https://mirror.bit.edu.cn/msys2/mingw/x86_64/mingw-w64-x86_64-libiconv-1.16-1-any.pkg.tar.xz... Failed. Status: 22;"HTTP response code said error"
-- Downloading https://mirror.selfnet.de/msys2/mingw/x86_64/mingw-w64-x86_64-libiconv-1.16-1-any.pkg.tar.xz -> msys-mingw-w64-x86_64-libiconv-1.16-1-any.pkg.tar.xz...
-- Downloading https://mirror.selfnet.de/msys2/mingw/x86_64/mingw-w64-x86_64-libiconv-1.16-1-any.pkg.tar.xz... Failed. Status: 22;"HTTP response code said error"
-- Downloading https://mirrors.sjtug.sjtu.edu.cn/msys2/mingw/x86_64/mingw-w64-x86_64-libiconv-1.16-1-any.pkg.tar.xz -> msys-mingw-w64-x86_64-libiconv-1.16-1-any.pkg.tar.xz...
-- Downloading https://mirrors.sjtug.sjtu.edu.cn/msys2/mingw/x86_64/mingw-w64-x86_64-libiconv-1.16-1-any.pkg.tar.xz... Failed. Status: 22;"HTTP response code said error"
CMake Error at scripts/cmake/vcpkg_download_distfile.cmake:184 (message):

      Failed to download file.
      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.

         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.

      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)

      Otherwise, please submit an issue at https://github.com/Microsoft/vcpkg/issues

Call Stack (most recent call first):
  scripts/cmake/vcpkg_acquire_msys.cmake:84 (vcpkg_download_distfile)
  scripts/cmake/vcpkg_acquire_msys.cmake:174 (z_vcpkg_acquire_msys_download_package)
  scripts/cmake/vcpkg_find_fortran.cmake:68 (vcpkg_acquire_msys)
  ports/vcpkg-gfortran/portfile.cmake:3 (vcpkg_find_fortran)
  scripts/ports.cmake:139 (include)

Error: Building package vcpkg-gfortran: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: vcpkg-gfortran:x64-windows
  Vcpkg version: 2021-05-05-9f849c4c43e50d1b16186ae76681c27b0c1be9d9

Additionally, attach any relevant sections from the log files above.

Additional context https://mirrors.sjtug.sjtu.edu.cn/msys2/mingw/x86_64/mingw-w64-x86_64-libiconv-1.16-1-any.pkg.tar.xz This mirror seems to be invalid

JackBoosY commented 3 years ago

Please unzip this file and put it into _VCPKGROOT/downloads then try again.

JackBoosY commented 3 years ago

We hope your question was answered to your satisfaction; if it wasn't, you can reopen with more info.