microsoft / vcpkg

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

[libiconv as dependency of glib] build failure #31522

Closed mynickmynick closed 1 year ago

mynickmynick commented 1 year ago

Operating system

Windows 10

Compiler

not sure which one is being used by vcpkg , probably MSVC

Steps to reproduce the behavior

.\vcpkg install glib:x64-windows

Failure logs

.\vcpkg install glib:x64-windows Computing installation plan... The following packages will be built and installed:

CMake Error at scripts/cmake/vcpkg_download_distfile.cmake:32 (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. Your 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:273 (z_vcpkg_download_distfile_show_proxy_and_fail) scripts/cmake/vcpkg_acquire_msys.cmake:26 (vcpkg_download_distfile) scripts/cmake/vcpkg_acquire_msys.cmake:67 (z_vcpkg_acquire_msys_download_package) scripts/cmake/vcpkg_acquire_msys.cmake:186 (z_vcpkg_acquire_msys_declare_package) scripts/cmake/vcpkg_configure_make.cmake:207 (vcpkg_acquire_msys) ports/libiconv/portfile.cmake:29 (vcpkg_configure_make) scripts/ports.cmake:147 (include)

error: building libiconv:x64-windows failed with: BUILD_FAILED error: Please ensure you're using the latest port files with git pull and vcpkg update. Then check for known issues at: https://github.com/microsoft/vcpkg/issues?q=is%3Aissue+is%3Aopen+in%3Atitle+libiconv You can submit a new issue at: https://github.com/microsoft/vcpkg/issues/new?template=report-package-build-failure.md&title=[libiconv]+Build+error Include '[libiconv] Build error' in your bug report title, the following version information in your bug description, and attach any relevant failure logs from above. vcpkg-tool version: 2022-12-14-7ae0d8527fb488fde10a89c2813802dc9b03b6f9 vcpkg-scripts version: f14984af3 2023-01-09 (4 months ago)

Please use the prefilled template from C:\vcpkg\vcpkg\installed\vcpkg\issue_body.md when reporting your issue. PS C:\vcpkg\vcpkg>

Additional context

I have had the same problem before, I tried to change main tagged commits, checked out the commit 2023.01.09 but the same problem holds, seems it s not managing to download libtool-2.4.6-9-x86_64.pkg.tar.xz from ANY of the several mirrors

mynickmynick commented 1 year ago

sorry I solved by checking out latest vcpkg master, I usually prefer to check out a tagged version to avoid last minute bugs , but then there are drawbacks like this one

autoantwort commented 1 year ago

Yeah the solution is to use the latest vcpkg version. mysys removes old releases from time to time.

MonicaLiu0311 commented 1 year ago

Problem solved, close this issue.