microsoft / vcpkg

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

[libsodium] Build error on x86-windows #40939

Open stewartjohnsonETC opened 5 days ago

stewartjohnsonETC commented 5 days ago

Package: libsodium:x86-windows@1.0.19#1

Host Environment

To Reproduce

vcpkg install

Failure logs

-- Downloading https://github.com/jedisct1/libsodium/archive/1.0.19.tar.gz -> jedisct1-libsodium-1.0.19.tar.gz...
[DEBUG] To include the environment variables in debug output, pass --debug-env
[DEBUG] Trying to load bundleconfig from D:\git\vcpkg\vcpkg-bundle.json
[DEBUG] Failed to open: D:\git\vcpkg\vcpkg-bundle.json
[DEBUG] Bundle config: readonly=false, usegitregistry=false, embeddedsha=nullopt, deployment=Git, vsversion=nullopt
[DEBUG] Metrics enabled.
[DEBUG] Feature flag 'binarycaching' unset
[DEBUG] Feature flag 'compilertracking' unset
[DEBUG] Feature flag 'registries' unset
[DEBUG] Feature flag 'versions' unset
[DEBUG] Feature flag 'dependencygraph' unset
[DEBUG] Trying to hash D:\git\vcpkg\downloads\jedisct1-libsodium-1.0.19.tar.gz.34624.part
[DEBUG] D:\git\vcpkg\downloads\jedisct1-libsodium-1.0.19.tar.gz.34624.part has hash efeb4c0dc352993fc128974abb27e4be60521e85ce191c8c38a84168d4e7d7b1d2c26843250077dd21dadb13678bf56712375e74754eb02100b8cc418ebffb94
error: Missing jedisct1-libsodium-1.0.19.tar.gz and downloads are blocked by x-block-origin.
error: File does not have the expected hash:
url: https://github.com/jedisct1/libsodium/archive/1.0.19.tar.gz
File: D:\git\vcpkg\downloads\jedisct1-libsodium-1.0.19.tar.gz.34624.part
Expected hash: 6094d7bf191ea3be85f2ddab76b71f1b9c69c786493db5b84d3c5d5a0237003377ddf6a8687a962ea651fe4a9369cf5ee1676ba0bae82690f5f7ef31a698efa9
Actual hash: efeb4c0dc352993fc128974abb27e4be60521e85ce191c8c38a84168d4e7d7b1d2c26843250077dd21dadb13678bf56712375e74754eb02100b8cc418ebffb94
[DEBUG] D:\a\_work\1\s\src\vcpkg\base\downloads.cpp(1030): 
[DEBUG] Time in subprocesses: 0us
[DEBUG] Time in parsing JSON: 6us
[DEBUG] Time in JSON reader: 0us
[DEBUG] Time in filesystem: 1234us
[DEBUG] Time in loading ports: 0us
[DEBUG] Exiting after 967 ms (917312us)

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

      Failed to download file with error: 1
      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)
  C:/Users/stjohnson/AppData/Local/vcpkg/registries/git-trees/38de4073e90ae48d9d7bc68db71b850b5645f5ab/portfile.cmake:1 (vcpkg_from_github)
  scripts/ports.cmake:192 (include)

Additional context

vcpkg.json ``` { "name": "natstest", "version-string": "1.0.0", "dependencies": [ "cnats" ] } ```
JonLiu1993 commented 5 days ago

@stewartjohnsonETC, The latest version of libsodium is 1.0.20#3, please use git pull get the latest version of vcpkg and try again.