microsoft / vcpkg

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

[libiconv] build failure #39204

Open swede1128 opened 3 weeks ago

swede1128 commented 3 weeks ago

Operating system

Windows 11

Compiler

MSVC visual studio 2022 community

Steps to reproduce the behavior

./vcpkg install libiconv

Failure logs

-- Downloading https://ftp.gnu.org/gnu/libiconv/libiconv-1.16.tar.gz -> libiconv-1.16.tar.gz... -- Cleaning sources at D:/SwedesProjects/_vcpkg/buildtrees/libiconv/src/1.16-de9101a181.clean. Use --editable to skip cleaning for the packages you specify. -- Extracting source D:/SwedesProjects/_vcpkg/downloads/libiconv-1.16.tar.gz -- Applying patch 0002-Config-for-MSVC.patch -- Applying patch 0003-Add-export.patch -- Using source at D:/SwedesProjects/_vcpkg/buildtrees/libiconv/src/1.16-de9101a181.clean -- Configuring x64-windows -- Downloading https://repo.msys2.org/msys/x86_64/bash-4.4.023-2-x86_64.pkg.tar.xz -> msys-bash-4.4.023-2-x86_64.pkg.tar.xz... -- Downloading https://repo.msys2.org/msys/x86_64/bash-4.4.023-2-x86_64.pkg.tar.xz... Failed. Status: 22;"HTTP response code said error" -- Downloading https://www2.futureware.at/~nickoe/msys2-mirror/msys/x86_64/bash-4.4.023-2-x86_64.pkg.tar.xz -> msys-bash-4.4.023-2-x86_64.pkg.tar.xz... -- Downloading https://www2.futureware.at/~nickoe/msys2-mirror/msys/x86_64/bash-4.4.023-2-x86_64.pkg.tar.xz... Failed. Status: 22;"HTTP response code said error" -- Downloading https://mirror.yandex.ru/mirrors/msys2/msys/x86_64/bash-4.4.023-2-x86_64.pkg.tar.xz -> msys-bash-4.4.023-2-x86_64.pkg.tar.xz... -- Downloading https://mirror.yandex.ru/mirrors/msys2/msys/x86_64/bash-4.4.023-2-x86_64.pkg.tar.xz... Failed. Status: 22;"HTTP response code said error" -- Downloading https://mirrors.tuna.tsinghua.edu.cn/msys2/msys/x86_64/bash-4.4.023-2-x86_64.pkg.tar.xz -> msys-bash-4.4.023-2-x86_64.pkg.tar.xz... -- Downloading https://mirrors.tuna.tsinghua.edu.cn/msys2/msys/x86_64/bash-4.4.023-2-x86_64.pkg.tar.xz... Failed. Status: 22;"HTTP response code said error" -- Downloading https://mirrors.ustc.edu.cn/msys2/msys/x86_64/bash-4.4.023-2-x86_64.pkg.tar.xz -> msys-bash-4.4.023-2-x86_64.pkg.tar.xz... -- Downloading https://mirrors.ustc.edu.cn/msys2/msys/x86_64/bash-4.4.023-2-x86_64.pkg.tar.xz... Failed. Status: 22;"HTTP response code said error" -- Downloading https://mirror.bit.edu.cn/msys2/msys/x86_64/bash-4.4.023-2-x86_64.pkg.tar.xz -> msys-bash-4.4.023-2-x86_64.pkg.tar.xz... -- Downloading https://mirror.bit.edu.cn/msys2/msys/x86_64/bash-4.4.023-2-x86_64.pkg.tar.xz... Failed. Status: 28;"Timeout was reached" -- Downloading https://mirror.selfnet.de/msys2/msys/x86_64/bash-4.4.023-2-x86_64.pkg.tar.xz -> msys-bash-4.4.023-2-x86_64.pkg.tar.xz... -- Downloading https://mirror.selfnet.de/msys2/msys/x86_64/bash-4.4.023-2-x86_64.pkg.tar.xz... Failed. Status: 22;"HTTP response code said error" -- Downloading https://mirrors.sjtug.sjtu.edu.cn/msys2/msys/x86_64/bash-4.4.023-2-x86_64.pkg.tar.xz -> msys-bash-4.4.023-2-x86_64.pkg.tar.xz... -- Downloading https://mirrors.sjtug.sjtu.edu.cn/msys2/msys/x86_64/bash-4.4.023-2-x86_64.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.

  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_acquire_msys.cmake:90 (vcpkg_download_distfile) scripts/cmake/vcpkg_acquire_msys.cmake:128 (msys_package_download) scripts/cmake/vcpkg_acquire_msys.cmake:170 (msys_package) scripts/cmake/vcpkg_configure_make.cmake:295 (vcpkg_acquire_msys) ports/libiconv/portfile.cmake:28 (vcpkg_configure_make) scripts/ports.cmake:141 (include)

Additional context

tried update/upgrade to vcpkg to no avail

dg0yt commented 3 weeks ago

msys-bash-4.4.023-2-x86_64.pkg.tar.xz...

This is lacking updates from vcpkg.

LilyWangLL commented 3 weeks ago

Please run command git pull and .\bootstrap-vcpkg.bat to update your vcpkg, the version of bash is 5.2.026-1 on latest vcpkg.

swede1128 commented 3 weeks ago

I've run git pull and .\bootstrap-vcpkg.bat but the vcpkg still tries to build libicon version 1.16#8 which uses the old unavailable bash files when it should be building libicon version 1.17

dg0yt commented 3 weeks ago

Did you pull from master?.
If you use manifest mode, did you update the manifest's baseline?