microsoft / vcpkg

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

[boost-core] Build error on x64-windows #39409

Closed k-nero closed 4 months ago

k-nero commented 4 months ago

Package: boost-core:x64-windows@1.85.0

Host Environment

To Reproduce

vcpkg install Failure logs

-- Downloading https://github.com/boostorg/core/archive/boost-1.85.0.tar.gz -> boostorg-core-boost-1.85.0.tar.gz...
[DEBUG] To include the environment variables in debug output, pass --debug-env
[DEBUG] Trying to load bundleconfig from D:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\vcpkg\vcpkg-bundle.json
[DEBUG] Bundle config: readonly=true, usegitregistry=true, embeddedsha=7f9f0e44db287e8e67c0e888141bfa200ab45121, deployment=VisualStudio, vsversion=17.0
[DEBUG] VS telemetry opted in at SOFTWARE\WOW6432Node\Microsoft\VSCommon\17.0\SQM\\OptIn
[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
Downloading https://github.com/boostorg/core/archive/boost-1.85.0.tar.gz
[DEBUG] Trying to hash C:\Users\Nero\AppData\Local\vcpkg\downloads\boostorg-core-boost-1.85.0.tar.gz.10784.part
[DEBUG] C:\Users\Nero\AppData\Local\vcpkg\downloads\boostorg-core-boost-1.85.0.tar.gz.10784.part has hash a1e774c98b537dd42018742af68f5889af1afd4e6c9809399987124e56a3b9ae2f20e8173170bc6fc0ad76fb95e2da7b9d385a4037e9ee12011fc02bf8f7e009
error: Failed to download from mirror set
error: File does not have the expected hash:
url: https://github.com/boostorg/core/archive/boost-1.85.0.tar.gz
File: C:\Users\Nero\AppData\Local\vcpkg\downloads\boostorg-core-boost-1.85.0.tar.gz.10784.part
Expected hash: 3a7be75e52f5c20830fccb9e7391a1e4556ebb072e6324df95b1ba38bed46e24f4c9f27a62a1099eddc90f2ac1ede083f0c850e2dc27fd42375d028516f675b3
Actual hash: a1e774c98b537dd42018742af68f5889af1afd4e6c9809399987124e56a3b9ae2f20e8173170bc6fc0ad76fb95e2da7b9d385a4037e9ee12011fc02bf8f7e009
[DEBUG] D:\a\_work\1\s\src\vcpkg\base\downloads.cpp(1031): 
[DEBUG] Time in subprocesses: 0us
[DEBUG] Time in parsing JSON: 12us
[DEBUG] Time in JSON reader: 0us
[DEBUG] Time in filesystem: 1024us
[DEBUG] Time in loading ports: 0us
[DEBUG] Exiting after 1.9 s (1922313us)

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/Nero/AppData/Local/vcpkg/registries/git-trees/195375664be82cbc16178de90096e451de070d80/portfile.cmake:3 (vcpkg_from_github)
  scripts/ports.cmake:175 (include)

Additional context

vcpkg.json ``` { "$schema": "https://raw.githubusercontent.com/microsoft/vcpkg-tool/main/docs/vcpkg.schema.json", "dependencies": [ { "name": "drogon", "version>=": "1.9.5", "host": true, "platform": "x64" }, { "name": "boost-log", "version>=": "1.84.0", "host": true, "platform": "x64" }, { "name": "boost-describe", "version>=": "1.84.0", "host": true, "platform": "x64" }, { "name": "jwt-cpp", "version>=": "0.6.0", "host": true, "platform": "x64" }, { "name": "inih", "version>=": "57", "host": true, "platform": "x64", "default-features": false, "features": [ "cpp" ] }, { "name": "boost-json", "version>=": "1.84.0", "host": true, "platform": "x64" }, { "name": "boost-beast", "version>=": "1.84.0", "host": true, "platform": "x64" }, { "name": "hiredis", "version>=": "1.2.0", "host": true, "platform": "x64", "default-features": false, "features": [ { "name": "ssl", "platform": "x64" } ] }, { "name": "grpc", "version>=": "1.51.1", "host": true, "platform": "x64" }, { "name": "usockets", "version>=": "0.8.6#1", "host": true, "platform": "x64", "default-features": false, "features": [ "ssl", "network" ] }, { "name": "uwebsockets", "version>=": "20.60.0", "host": true, "platform": "x64" }, { "name": "sqlitecpp", "version>=": "3.3.1", "host": true, "platform": "x64" } ], "builtin-baseline": "01f602195983451bc83e72f4214af2cbc495aa94" } ```
k-nero commented 4 months ago

I'm not using any proxy or VPN btw

pedrolamarao commented 4 months ago

I am seeing a similar build failure with a dependency on libsodium -- suddenly, SHA512SUM mismatch.

dg0yt commented 4 months ago

Boost moved git tags, and vcpkg was already updated. Now you do have to move, too.

MonicaLiu0311 commented 4 months ago
Expected hash: 3a7be75e52f5c20830fccb9e7391a1e4556ebb072e6324df95b1ba38bed46e24f4c9f27a62a1099eddc90f2ac1ede083f0c850e2dc27fd42375d028516f675b3
Actual hash: a1e774c98b537dd42018742af68f5889af1afd4e6c9809399987124e56a3b9ae2f20e8173170bc6fc0ad76fb95e2da7b9d385a4037e9ee12011fc02bf8f7e009

Now: https://github.com/microsoft/vcpkg/blob/master/ports/boost-core/portfile.cmake#L7