microsoft / vcpkg

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

[vcpkg] build failure #34875

Closed VladDREEMURR closed 1 year ago

VladDREEMURR commented 1 year ago

Operating system

Windows

Compiler

Windows PowerShell

Steps to reproduce the behavior

.\vcpkg.exe install boost:x64-windows boost:x86-windows

Failure logs

-- Downloading https://github.com/boostorg/config/archive/boost-1.83.0.tar.gz -> boostorg-config-boost-1.83.0.tar.gz... [DEBUG] To include the environment variables in debug output, pass --debug-env [DEBUG] Trying to load bundleconfig from C:\Users\HP\Documents\Git Files\vc\vcpkg\vcpkg-bundle.json [DEBUG] Failed to open: C:\Users\HP\Documents\Git Files\vc\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 Downloading https://github.com/boostorg/config/archive/boost-1.83.0.tar.gz warning: Download failed -- retrying after 1000ms warning: Download failed -- retrying after 2000ms warning: Download failed -- retrying after 4000ms error: Failed to download from mirror set error: https://github.com/boostorg/config/archive/boost-1.83.0.tar.gz: WinHttpReceiveResponse failed with exit code 12175 error: https://github.com/boostorg/config/archive/boost-1.83.0.tar.gz: WinHttpReceiveResponse failed with exit code 12175 error: https://github.com/boostorg/config/archive/boost-1.83.0.tar.gz: WinHttpReceiveResponse failed with exit code 12175 error: https://github.com/boostorg/config/archive/boost-1.83.0.tar.gz: WinHttpReceiveResponse failed with exit code 12175 [DEBUG] D:\a_work\1\s\src\vcpkg\base\downloads.cpp(1051): [DEBUG] Time in subprocesses: 0us [DEBUG] Time in parsing JSON: 3us [DEBUG] Time in JSON reader: 0us [DEBUG] Time in filesystem: 2931us [DEBUG] Time in loading ports: 0us [DEBUG] Exiting after 8.1 s (8100679us)

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) ports/boost-config/portfile.cmake:3 (vcpkg_from_github) scripts/ports.cmake:168 (include)

error: building boost-config:x64-windows failed with: BUILD_FAILED Elapsed time to handle boost-config:x64-windows: 8.2 s 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+boost-config You can submit a new issue at: https://github.com/microsoft/vcpkg/issues/new?title=[boost-config]+Build+error&body=Copy+issue+body+from+C%3A%2FUsers%2FHP%2FDocuments%2FGit%20Files%2Fvc%2Fvcpkg%2Finstalled%2Fvcpkg%2Fissue_body.md

Additional context

No response

Adela0814 commented 1 year ago

@VladDREEMURR Please pull the latest vcpkg and try again.

VladDREEMURR commented 1 year ago

@Adela0814 aaand... here it is again Maybe I should send whole process after pull? As far as I can see, the error hasn't changed

PS C:\Users\HP\Documents\Git Files\vc\vcpkg> .\bootstrap-vcpkg.bat Downloading https://github.com/microsoft/vcpkg-tool/releases/download/2023-10-18/vcpkg.exe -> C:\Users\HP\Documents\Git Files\vc\vcpkg\vcpkg.exe... done. Validating signature... done.

vcpkg package management program version 2023-10-18-27de5b69dac4b6fe8259d283cd4011e6d20a84ce

See LICENSE.txt for license information. Telemetry

vcpkg collects usage data in order to help us improve your experience. The data collected by Microsoft is anonymous. You can opt-out of telemetry by re-running the bootstrap-vcpkg script with -disableMetrics, passing --disable-metrics to vcpkg on the command line, or by setting the VCPKG_DISABLE_METRICS environment variable.

Read more about vcpkg telemetry at docs/about/privacy.md PS C:\Users\HP\Documents\Git Files\vc\vcpkg> .\vcpkg.exe install boost:x64-windows boost:x86-windows Computing installation plan... The following packages will be built and installed: boost:x64-windows -> 1.83.0#1 boost:x86-windows -> 1.83.0#1

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) ports/boost-config/portfile.cmake:3 (vcpkg_from_github) scripts/ports.cmake:168 (include)

error: building boost-config:x64-windows failed with: BUILD_FAILED Elapsed time to handle boost-config:x64-windows: 8.6 s 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+boost-config You can submit a new issue at: https://github.com/microsoft/vcpkg/issues/new?title=[boost-config]+Build+error&body=Copy+issue+body+from+C%3A%2FUsers%2FHP%2FDocuments%2FGit%20Files%2Fvc%2Fvcpkg%2Finstalled%2Fvcpkg%2Fissue_body.md

VladDREEMURR commented 1 year ago

So it is the same error

Adela0814 commented 1 year ago

Please try this link https://github.com/boostorg/config/archive/boost-1.83.0.tar.gz. Maybe there's a problem with your network.

VladDREEMURR commented 1 year ago

I can't try this link because of problems with confidentiality. It is on all browsers

Adela0814 commented 1 year ago

Unfortunately, it seems that your network cannot access this resource, vcpkg cannot do more.