microsoft / vcpkg

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

[boost-vcpkg-helpers] Build error #27292

Closed munitioner closed 1 year ago

munitioner commented 1 year ago

D:\Program Files (x86)\vcpkg\vcpkg>.\vcpkg install pcl[qt,vtk]:x64-windows

Computing installation plan...
The following packages will be built and installed:
  * boost-algorithm[core]:x64-windows -> 1.80.0
  * boost-align[core]:x64-windows -> 1.80.0
  * boost-any[core]:x64-windows -> 1.80.0
  * boost-array[core]:x64-windows -> 1.80.0
  * boost-asio[core]:x64-windows -> 1.80.0#1
  * boost-assert[core]:x64-windows -> 1.80.0
  * boost-atomic[core]:x64-windows -> 1.80.0
  ...
  ...

Additional packages (*) will be modified to complete this operation.
Detecting compiler hash for triplet x64-windows...
Restored 0 package(s) from C:\Users\DELL\AppData\Local\vcpkg\archives in 1.789 ms. Use --debug to see more details.
Installing 1/143 boost-vcpkg-helpers:x64-windows...
Building boost-vcpkg-helpers[core]:x64-windows...
-- Installing: D:/Program Files (x86)/vcpkg/vcpkg/packages/boost-vcpkg-helpers_x64-windows/share/boost-vcpkg-helpers/boost-modular-headers.cmake
-- Installing: D:/Program Files (x86)/vcpkg/vcpkg/packages/boost-vcpkg-helpers_x64-windows/share/boost-vcpkg-helpers/usage
-- Downloading https://raw.githubusercontent.com/boostorg/boost/boost-1.80.0/LICENSE_1_0.txt -> boost_LICENSE_1_0.txt...
[DEBUG] To include the environment variables in debug output, pass --debug-env
[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://raw.githubusercontent.com/boostorg/boost/boost-1.80.0/LICENSE_1_0.txt
[DEBUG] Download failed -- retrying after 1000 ms.
[DEBUG] Download failed -- retrying after 2000 ms.
[DEBUG] Download failed -- retrying after 4000 ms.
Error: Failed to download from mirror set:
https://raw.githubusercontent.com/boostorg/boost/boost-1.80.0/LICENSE_1_0.txt: WinHttpSendRequest() failed: 12007
https://raw.githubusercontent.com/boostorg/boost/boost-1.80.0/LICENSE_1_0.txt: WinHttpSendRequest() failed: 12007
https://raw.githubusercontent.com/boostorg/boost/boost-1.80.0/LICENSE_1_0.txt: WinHttpSendRequest() failed: 12007
https://raw.githubusercontent.com/boostorg/boost/boost-1.80.0/LICENSE_1_0.txt: WinHttpSendRequest() failed: 12007

[DEBUG] D:\a\_work\1\s\src\vcpkg\base\downloads.cpp(766):
[DEBUG] Time in subprocesses: 0 us
[DEBUG] Time in parsing JSON: 3 us
[DEBUG] Time in JSON reader: 0 us
[DEBUG] Time in filesystem: 1058 us
[DEBUG] Time in loading ports: 0 us
[DEBUG] Exiting after 7.085 s (7040818 us)

CMake Error at scripts/cmake/vcpkg_download_distfile.cmake:32 (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. Your 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:273 (z_vcpkg_download_distfile_show_proxy_and_fail)
  ports/boost-vcpkg-helpers/portfile.cmake:11 (vcpkg_download_distfile)
  scripts/ports.cmake:147 (include)

error: building boost-vcpkg-helpers:x64-windows failed with: BUILD_FAILED
error: 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-vcpkg-helpers
You can submit a new issue at:
    https://github.com/microsoft/vcpkg/issues/new?template=report-package-build-failure.md&title=[boost-vcpkg-helpers]+Build+error
Include '[boost-vcpkg-helpers] Build error' in your bug report title, the following version information in your bug description, and attach any relevant failure logs from above.
    vcpkg-tool version: 2022-10-12-b586c2752f75bcc3f6a243749e9a0d94d0d93ccd
    vcpkg-scripts version: 79fa9d85c 2022-10-17 (12 hours ago)

Please use the prefilled template from D:\Program Files (x86)\vcpkg\vcpkg\installed\vcpkg\issue_body.md when reporting your issue.
FrankXie05 commented 1 year ago

Could you access https://raw.githubusercontent.com/boostorg/boost/boost-1.80.0/LICENSE_1_0.txt directly and download successfully? boost_LICENSE_1_0.txt

FrankXie05 commented 1 year ago

This issue hasn’t been updated for a long time; if it is still an issue, please reopen this issue.

huangxn987 commented 1 year ago

./vcpkg.exe install cgal error info:

Computing installation plan... The following packages will be built and installed:

[DEBUG] D:\a_work\1\s\src\vcpkg\base\downloads.cpp(766): [DEBUG] Time in subprocesses: 0 us [DEBUG] Time in parsing JSON: 4 us [DEBUG] Time in JSON reader: 0 us [DEBUG] Time in filesystem: 1311 us [DEBUG] Time in loading ports: 0 us [DEBUG] Exiting after 7.103 s (7091516 us)

CMake Error at scripts/cmake/vcpkg_download_distfile.cmake:32 (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. Your 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:273 (z_vcpkg_download_distfile_show_proxy_and_fail) ports/boost-vcpkg-helpers/portfile.cmake:11 (vcpkg_download_distfile) scripts/ports.cmake:147 (include)

error: building boost-vcpkg-helpers:x86-windows failed with: BUILD_FAILED error: 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-vcpkg-helpers You can submit a new issue at: https://github.com/microsoft/vcpkg/issues/new?template=report-package-build-failure.md&title=[boost-vcpkg-helpers]+Build+error Include '[boost-vcpkg-helpers] Build error' in your bug report title, the following version information in your bug description, and attach any relevant failure logs from above. vcpkg-tool version: 2022-10-17-3247920fbdd47d08f36cbd480addd9890d3c2435 vcpkg-scripts version: fcfda3c78 2022-10-31 (15 hours ago)

Please use the prefilled template from E:\ProjectFile\1_SourceCode\7_Downloads\vcpkg\installed\vcpkg\issue_body.md when reporting your issue.

FrankXie05 commented 1 year ago

@huangxn987 Have you tried this suggestion https://github.com/microsoft/vcpkg/issues/27292#issuecomment-1281874932 ? And please turn off the firewall and try again.

SamuelXue commented 1 year ago

https://raw.githubusercontent.com/boostorg/boost/boost-1.80.0/LICENSE_1_0.txt

No, I can't access and download this file.

FrankXie05 commented 1 year ago

@SamuelXue This link is valid. Please confirm whether your network is good and turn off the firewall. :)

FrankXie05 commented 1 year ago

@SamuelXue Maybe rerun the script bootstrap-vcpkg.bat and try again.

huangxn987 commented 1 year ago

@huangxn987您是否尝试过这个建议#27292(评论)?请关闭防火墙并重试。

I don't know if it has anything to do with win11. Win10 is normal.

FrankXie05 commented 1 year ago

Sorry, I can't reproduce your problem. May be due to proxy issues with windows11. Please make sure your network and proxy, if there are still problems, please report to windows11. :)