microsoft / vcpkg

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

[zlib] Build error on x86-windows (issue downloading libraries from github?) #40746

Open AntonRevin opened 2 weeks ago

AntonRevin commented 2 weeks ago

Package: zlib:x86-windows@1.3.1

Host Environment

To Reproduce

vcpkg install

Failure logs

-- Downloading https://github.com/madler/zlib/archive/v1.3.1.tar.gz -> madler-zlib-v1.3.1.tar.gz...

CMake Error at scripts/cmake/vcpkg_download_distfile.cmake:32 (message):

      Failed to download file with error: no such file or directory
      If you are using 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. If you are using Windows, vcpkg will automatically use your Windows IE Proxy Settings
         set by your proxy software. See https://github.com/microsoft/vcpkg-tool/pull/77
         The value set by your proxy might be wrong, or have same `https://` prefix issue.

      3. Your proxy's remote server is out of service.

      If you've tried directly download the link, and believe this is not a temporary
      download server failure, please submit an issue at https://github.com/Microsoft/vcpkg/issues
      to report this upstream download server failure.

Call Stack (most recent call first):
  scripts/cmake/vcpkg_download_distfile.cmake:270 (z_vcpkg_download_distfile_show_proxy_and_fail)
  scripts/cmake/vcpkg_from_github.cmake:106 (vcpkg_download_distfile)
  ports/zlib/portfile.cmake:2 (vcpkg_from_github)
  scripts/ports.cmake:192 (include)

Additional context

vcpkg.json ``` { "$schema": "https://raw.githubusercontent.com/microsoft/vcpkg/master/scripts/vcpkg.schema.json", "name": "project-name", "version-semver": "0.0.0", "dependencies": [ "libtcod", "sdl2", { "name": "sdl2", "default-features": false, "platform": "windows" } ] } ```
autoantwort commented 2 weeks ago

Hm cant repro locally. Can you open https://github.com/madler/zlib/archive/v1.3.1.tar.gz in your browser? Maybe your antivirus software deleted the file after it was downloaded (no such file or directory)

AntonRevin commented 2 weeks ago

I am able to access the lib from a browser without issues. Interestingly, I built another project with a similar set of dependencies recently without issue.

Suspect it may be due to a filepath using non-standard characters (i.e., including 'ö')