microsoft / vcpkg

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

[boost-cmake] Build error on x64-windows #39994

Closed Mrguanglei closed 1 month ago

Mrguanglei commented 3 months ago

Computing installation plan... The following packages will be built and installed: boost:x64-windows@1.85.0#1

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

  Failed to download file with error: no such file or directory
  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-cmake/portfile.cmake:5 (vcpkg_from_github) scripts/ports.cmake:192 (include)

error: building boost-cmake:x64-windows failed with: BUILD_FAILEDSee https://learn.microsoft.com/vcpkg/troubleshoot/build-failures?WT.mc_id=vcpkg_inproduct_cli for more information. Elapsed time to handle boost-cmake:x64-windows: 90.9 ms 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-cmake You can submit a new issue at: https://github.com/microsoft/vcpkg/issues/new?title=[boost-cmake]+Build+error+on+x64-windows&body=Copy+issue+body+from+E%3A%2FC%E8%AF%AD%E8%A8%80%2F3D_mesh%2FProject1%2Fvcpkg%2Fvcpkg%2Finstalled%2Fvcpkg%2Fissue_body.md

FrankXie05 commented 3 months ago

This link https://github.com/boostorg/boost/archive/boost-1.85.0.tar.gz is valid. Please make sure your network is connected and proxy is enabled through vcpkg.

newne commented 3 months ago

the same problem. Here is the console output:

(base) PS E:\code\vcpkg> .\vcpkg.exe install cgal
Computing installation plan...
The following packages will be built and installed:
  * boost-format:x64-windows@1.85.0#1
  * boost-geometry:x64-windows@1.85.0#2
  * boost-graph:x64-windows@1.85.0#1
  * boost-heap:x64-windows@1.85.0#1
  * boost-iostreams[bzip2,core,lzma,zlib,zstd]:x64-windows@1.85.0#1
  * boost-math:x64-windows@1.85.0#2
  * boost-multi-array:x64-windows@1.85.0#1
  * boost-multiprecision:x64-windows@1.85.0#2
  * boost-polygon:x64-windows@1.85.0#1
  * boost-property-map:x64-windows@1.85.0#1
  * boost-ptr-container:x64-windows@1.85.0#1
  * boost-qvm:x64-windows@1.85.0#1
  * boost-rational:x64-windows@1.85.0#1
  * boost-units:x64-windows@1.85.0#1
  * boost-xpressive:x64-windows@1.85.0#1
  * bzip2[core,tool]:x64-windows@1.0.8#5
    cgal:x64-windows@5.6.1#1
  * gmp:x64-windows@6.3.0
  * liblzma:x64-windows@5.6.2
  * mpfr:x64-windows@4.2.1
  * vcpkg-cmake-get-vars:x64-windows@2023-12-31
  * zlib:x64-windows@1.3.1
  * zstd:x64-windows@1.5.6
Additional packages (*) will be modified to complete this operation.
Detecting compiler hash for triplet x64-windows...
-- Automatically setting %HTTP(S)_PROXY% environment variables to "127.0.0.1:7890".
Compiler found: C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/VC/Tools/MSVC/14.38.33130/bin/Hostx64/x64/cl.exe
Restored 0 package(s) from C:\Users\ncgne\AppData\Local\vcpkg\archives in 15.9 ms. Use --debug to see more details.
Installing 1/23 boost-format:x64-windows@1.85.0#1...
Building boost-format:x64-windows@1.85.0#1...
-- Downloading https://github.com/boostorg/format/archive/boost-1.85.0.tar.gz -> boostorg-format-boost-1.85.0.tar.gz...
[DEBUG] To include the environment variables in debug output, pass --debug-env
[DEBUG] Trying to load bundleconfig from E:\code\vcpkg\vcpkg-bundle.json
[DEBUG] Failed to open: E:\code\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
warning: Download failed -- retrying after 1000ms
warning: Download failed -- retrying after 2000ms
warning: Download failed -- retrying after 4000ms
error: Missing boostorg-format-boost-1.85.0.tar.gz and downloads are blocked by x-block-origin.
error: https://github.com/boostorg/format/archive/boost-1.85.0.tar.gz: WinHttpSendRequest failed with exit code 12029
error: https://github.com/boostorg/format/archive/boost-1.85.0.tar.gz: WinHttpSendRequest failed with exit code 12029
error: https://github.com/boostorg/format/archive/boost-1.85.0.tar.gz: WinHttpSendRequest failed with exit code 12029
error: https://github.com/boostorg/format/archive/boost-1.85.0.tar.gz: WinHttpSendRequest failed with exit code 12029
[DEBUG] D:\a\_work\1\s\src\vcpkg\base\downloads.cpp(1030):
[DEBUG] Time in subprocesses: 0us
[DEBUG] Time in parsing JSON: 3us
[DEBUG] Time in JSON reader: 0us
[DEBUG] Time in filesystem: 5744us
[DEBUG] Time in loading ports: 0us
[DEBUG] Exiting after 15 s (15026172us)

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

error: building boost-format:x64-windows failed with: BUILD_FAILEDSee https://learn.microsoft.com/vcpkg/troubleshoot/build-failures?WT.mc_id=vcpkg_inproduct_cli for more information.
Elapsed time to handle boost-format:x64-windows: 15 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-format
You can submit a new issue at:
  https://github.com/microsoft/vcpkg/issues/new?title=[boost-format]+Build+error+on+x64-windows&body=Copy+issue+body+from+E%3A%2Fcode%2Fvcpkg%2Finstalled%2Fvcpkg%2Fissue_body.md
MrLyagushka commented 3 months ago

Попробуй переименовать названия папок, в которых лежит библиотека. Мне это помогло. Try renaming the names of the folders in which the library is located. It helped me.

github-actions[bot] commented 1 month ago

This is an automated message. Per our repo policy, stale issues get closed if there has been no activity in the past 28 days. The issue will be automatically closed in 14 days. If you wish to keep this issue open, please add a new comment.

JonLiu1993 commented 1 month ago

Duplicate of #41199