microsoft / vcpkg

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

CMake Error at scripts/cmake/vcpkg_download_distfile.cmake:83 (message): #19722

Closed kartikkhullar closed 3 years ago

kartikkhullar commented 3 years ago

Host Environment

I am not using any type of proxy, but still I am receiving this error. I have tried switching internet connections, but still it doesn't work.

Failure logs

-- Downloading https://github.com/mumble-voip/ice/archive/3.7.tar.gz -> mumble-voip-ice-3.7.tar.gz...
[DEBUG] Feature flag 'binarycaching' unset
[DEBUG] Feature flag 'manifests' = off
[DEBUG] Feature flag 'compilertracking' unset
[DEBUG] Feature flag 'registries' unset
[DEBUG] Feature flag 'versions' unset
[DEBUG] Downloading https://github.com/mumble-voip/ice/archive/3.7.tar.gz
Error: Failed to download from mirror set:
File does not have the expected hash:
             url : [ https://github.com/mumble-voip/ice/archive/3.7.tar.gz ]
       File path : [ C:\Users\khull\vcpkg\downloads\mumble-voip-ice-3.7.tar.gz.1276.part ]
   Expected hash : [ 12cebb53ad1a9271e7db8c12df5f2db9f8cbaec97b562596c4c592bd2449177b6927156100166b432b7e27b13f0d202155748691fd1e848eb6db815f16bcc57f ]
     Actual hash : [ 9f44de4e063d7a7b6a2b4adbae999fe3a6daafb8a7e945b616f89a453db81c41d1fec927f3149862649e5a92623c50f0ef2e0e58042c6070059b78dcf5ad9255 ]

[DEBUG] C:\a\1\s\src\vcpkg\base\downloads.cpp(626)
[DEBUG] Exiting after 7637325 us (7637068 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_from_github.cmake:173 (vcpkg_download_distfile)
  ports/zeroc-ice/portfile.cmake:1 (vcpkg_from_github)
  scripts/ports.cmake:140 (include)

Error: Building package zeroc-ice:x64-windows-static-md 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: zeroc-ice:x64-windows-static-md
  Vcpkg version: 2021-08-12-85ab112d5ee102bc6eac8cdbbfdd173a71374e04

Additionally, attach any relevant sections from the log files above.
autoantwort commented 3 years ago

Hm normally there should be more output when the download tool fails. Can you maybe run vcpkg with the --debug option and paste the log inside backticks (```, not ''')

kartikkhullar commented 3 years ago

Hm normally there should be more output when the download tool fails. Can you maybe run vcpkg with the --debug option and paste the log inside backticks (```, not ''')

Updated the output logs, please check

mathisloge commented 3 years ago

This doesn't look like a offical port. Can't find a zeroc-ice port. Do you have it added yourself?

The error above is very clear that you have a hash mismatch of the package. Since this looks like a custom port, you will need to update the hash in the portfile of your port to the expected hash

kartikkhullar commented 3 years ago

This doesn't look like a offical port. Can't find a zeroc-ice port. Do you have it added yourself?

The error above is very clear that you have a hash mismatch of the package. Since this looks like a custom port, you will need to update the hash in the portfile of your port to the expected hash

Do you mean, I need to update it to actual hash ?

autoantwort commented 3 years ago

Yes