Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cocoyaxi[libcurl] build failure #25908

Closed
seccpur opened this issue Jul 21, 2022 · 3 comments · Fixed by #26514
Closed

cocoyaxi[libcurl] build failure #25908

seccpur opened this issue Jul 21, 2022 · 3 comments · Fixed by #26514
Assignees
Labels
category:port-bug The issue is with a library, which is something the port should already support

Comments

@seccpur
Copy link

seccpur commented Jul 21, 2022

Host Environment

  • OS: Windows 10
  • Compiler: VC++ 2022

To Reproduce
Steps to reproduce the behavior:
./vcpkg install co[libcurl]:x64-windows

package: co[core,libcurl]:x64-windows -> 2.0.2#1
vcpkg-tool version: 2021-11-24-48b94a6946b8a70abd21529218927fd478d02b6c

Failure logs

PS D:\repo\vcpkg-master> .\vcpkg install co[libcurl]:x64-windows
Computing installation plan...
The following packages will be built and installed:
    co[core,libcurl]:x64-windows -> 2.0.2#1
Detecting compiler hash for triplet x64-windows...
Restored 0 packages from C:\Users\PROJECT\AppData\Local\vcpkg\archives in 151.9 us. Use --debug to see more details.
Starting package 1/1: co:x64-windows
Building package co[core,libcurl]:x64-windows...
-- Downloading https://github.com/idealvin/co/archive/25915760f5cbcde1c5af625dd4d19a632ae43f12.tar.gz -> idealvin-co-25915760f5cbcde1c5af625dd4d19a632ae43f12.tar.gz...
[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://github.com/idealvin/co/archive/25915760f5cbcde1c5af625dd4d19a632ae43f12.tar.gz
Error: Failed to download from mirror set:
File does not have the expected hash:
             url : [ https://github.com/idealvin/co/archive/25915760f5cbcde1c5af625dd4d19a632ae43f12.tar.gz ]
       File path : [ D:\Repo\vcpkg-master\downloads\idealvin-co-25915760f5cbcde1c5af625dd4d19a632ae43f12.tar.gz.22440.part ]
   Expected hash : [ 892d70923409306ab548cf4568f15ffd13949047a5a7810c68d60c1afd184eafd2076f62eb6249ae64b38c409255cb873fa28740ceab37b908b70174ddf6d077 ]
     Actual hash : [ ad0d914e05371816862ef404fd8910106da90aa774c14e3e30cdf9c248a08a0ef00a40e2fdf54ac8f7b87886a50470b8415c0cca34f0a489989ca117973b3a61 ]


[DEBUG] D:\a\_work\1\s\src\vcpkg\base\downloads.cpp(656)
[DEBUG] Time in subprocesses: 0 us
[DEBUG] Time in parsing JSON: 1 us
[DEBUG] Time in JSON reader: 0 us
[DEBUG] Time in filesystem: 863 us
[DEBUG] Time in loading ports: 0 us
[DEBUG] Exiting after 6.618 s (6610960 us)

CMake Error at scripts/cmake/vcpkg_download_distfile.cmake:84 (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. You 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:309 (z_vcpkg_download_distfile_show_proxy_and_fail)
  scripts/cmake/vcpkg_from_github.cmake:175 (vcpkg_download_distfile)
  ports/co/portfile.cmake:5 (vcpkg_from_github)
  scripts/ports.cmake:142 (include)


Error: Building package co:x64-windows failed with: BUILD_FAILED
Please ensure you're using the latest portfiles 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+co
You can submit a new issue at:
  https://github.com/microsoft/vcpkg/issues/new?template=report-package-build-failure.md&title=[co]+Build+error
including:
  package: co[core,libcurl]:x64-windows -> 2.0.2#1
    vcpkg-tool version: 2021-11-24-48b94a6946b8a70abd21529218927fd478d02b6c
    vcpkg-scripts version: unknown

Additionally, attach any relevant sections from the log files above.
@Cheney-W Cheney-W added the category:question This issue is a question label Jul 22, 2022
@Cheney-W
Copy link
Contributor

Please update your VCPKG first. co does not currently have any features.

@seccpur
Copy link
Author

seccpur commented Jul 25, 2022

Tried with the latest vcpkg after pulling from git, but without success.

PS D:\NewRepo\vcpkg-master> .\vcpkg install cocoyaxi[libcurl]:x64-windows-static
Computing installation plan...
A suitable version of cmake was not found (required v3.22.2). Downloading portable cmake v3.22.2...
Downloading cmake...
  https://github.com/Kitware/CMake/releases/download/v3.22.2/cmake-3.22.2-windows-i386.zip -> D:\NewRepo\vcpkg-master\downloads\cmake-3.22.2-windows-i386.zip
Extracting cmake...
The following packages will be built and installed:
    cocoyaxi[core,libcurl]:x64-windows-static -> 2.0.3#2
  * curl[core,non-http,openssl,schannel,ssl,sspi]:x64-windows-static -> 7.84.0
  * openssl[core]:x64-windows-static -> 3.0.5
  * vcpkg-cmake[core]:x64-windows -> 2022-07-02
  * vcpkg-cmake-config[core]:x64-windows -> 2022-02-06#1
  * vcpkg-cmake-get-vars[core]:x64-windows -> 2022-05-10#1
  * zlib[core]:x64-windows-static -> 1.2.12#1
Additional packages (*) will be modified to complete this operation.
Detecting compiler hash for triplet x64-windows...
A suitable version of git was not found (required v2.7.4). Downloading portable git v2.7.4...
Downloading git...
  https://github.com/git-for-windows/git/releases/download/v2.35.1.windows.2/PortableGit-2.35.1.2-32-bit.7z.exe -> D:\NewRepo\vcpkg-master\downloads\PortableGit-2.35.1.2-32-bit.7z.exe
Extracting git...
A suitable version of powershell-core was not found (required v7.2.5). Downloading portable powershell-core v7.2.5...
Downloading powershell-core...
  https://github.com/PowerShell/PowerShell/releases/download/v7.2.5/PowerShell-7.2.5-win-x86.zip -> D:\NewRepo\vcpkg-master\downloads\PowerShell-7.2.5-win-x86.zip
Extracting powershell-core...
Detecting compiler hash for triplet x64-windows-static...
Restored 0 package(s) from C:\Users\PROJECT\AppData\Local\vcpkg\archives in 1.168 ms. Use --debug to see more details.
Installing 1/7 vcpkg-cmake:x64-windows...
Building vcpkg-cmake[core]:x64-windows...
-- Installing: D:/NewRepo/vcpkg-master/packages/vcpkg-cmake_x64-windows/share/vcpkg-cmake/vcpkg_cmake_configure.cmake
-- Installing: D:/NewRepo/vcpkg-master/packages/vcpkg-cmake_x64-windows/share/vcpkg-cmake/vcpkg_cmake_build.cmake
-- Installing: D:/NewRepo/vcpkg-master/packages/vcpkg-cmake_x64-windows/share/vcpkg-cmake/vcpkg_cmake_install.cmake
-- Installing: D:/NewRepo/vcpkg-master/packages/vcpkg-cmake_x64-windows/share/vcpkg-cmake/vcpkg-port-config.cmake
-- Installing: D:/NewRepo/vcpkg-master/packages/vcpkg-cmake_x64-windows/share/vcpkg-cmake/copyright
-- Performing post-build validation
-- Performing post-build validation done
A suitable version of 7zip was not found (required v21.7.0). Downloading portable 7zip v21.7.0...
Downloading 7zip...
  https://www.7-zip.org/a/7z2107-extra.7z -> D:\NewRepo\vcpkg-master\downloads\7z2107-extra.7z
Extracting 7zip...
Stored binary cache: "C:\Users\PROJECT\AppData\Local\vcpkg\archives\6b\6be5626089172c019cf1104c82ca92ad9cda9594a9e8686154a4b108620a7071.zip"
Elapsed time to handle vcpkg-cmake:x64-windows: 4.367 s
Installing 2/7 vcpkg-cmake-config:x64-windows...
Building vcpkg-cmake-config[core]:x64-windows...
-- Installing: D:/NewRepo/vcpkg-master/packages/vcpkg-cmake-config_x64-windows/share/vcpkg-cmake-config/vcpkg_cmake_config_fixup.cmake
-- Installing: D:/NewRepo/vcpkg-master/packages/vcpkg-cmake-config_x64-windows/share/vcpkg-cmake-config/vcpkg-port-config.cmake
-- Installing: D:/NewRepo/vcpkg-master/packages/vcpkg-cmake-config_x64-windows/share/vcpkg-cmake-config/copyright
-- Performing post-build validation
-- Performing post-build validation done
Stored binary cache: "C:\Users\PROJECT\AppData\Local\vcpkg\archives\66\66f1db94eea6ee7da0ec458fca7cb71b8ce5f2e33196797bfcdb3192fc158698.zip"
Elapsed time to handle vcpkg-cmake-config:x64-windows: 91.15 ms
Installing 3/7 vcpkg-cmake-get-vars:x64-windows...
Building vcpkg-cmake-get-vars[core]:x64-windows...
-- Installing: D:/NewRepo/vcpkg-master/packages/vcpkg-cmake-get-vars_x64-windows/share/vcpkg-cmake-get-vars/vcpkg_cmake_get_vars.cmake
-- Installing: D:/NewRepo/vcpkg-master/packages/vcpkg-cmake-get-vars_x64-windows/share/vcpkg-cmake-get-vars/cmake_get_vars
-- Installing: D:/NewRepo/vcpkg-master/packages/vcpkg-cmake-get-vars_x64-windows/share/vcpkg-cmake-get-vars/cmake_get_vars/CMakeLists.txt
-- Installing: D:/NewRepo/vcpkg-master/packages/vcpkg-cmake-get-vars_x64-windows/share/vcpkg-cmake-get-vars/vcpkg-port-config.cmake
-- Installing: D:/NewRepo/vcpkg-master/packages/vcpkg-cmake-get-vars_x64-windows/share/vcpkg-cmake-get-vars/copyright
-- Performing post-build validation
-- Performing post-build validation done
Stored binary cache: "C:\Users\PROJECT\AppData\Local\vcpkg\archives\a4\a43322c160e3e137155e619a84e79bef50943a5244353f6fb8f19fff5c5bcc08.zip"
Elapsed time to handle vcpkg-cmake-get-vars:x64-windows: 101.6 ms
Installing 4/7 openssl:x64-windows-static...
Building openssl[core]:x64-windows-static...
-- Downloading https://github.com/openssl/openssl/archive/openssl-3.0.5.tar.gz -> openssl-openssl-openssl-3.0.5.tar.gz...
-- Extracting source D:/NewRepo/vcpkg-master/downloads/openssl-openssl-openssl-3.0.5.tar.gz
-- Applying patch D:/NewRepo/vcpkg-master/ports/openssl/windows/flags.patch
-- Using source at D:/NewRepo/vcpkg-master/buildtrees/openssl/src/nssl-3.0.5-df50913d32.clean
-- Downloading https://strawberryperl.com/download/5.32.1.1/strawberry-perl-5.32.1.1-32bit.zip -> strawberry-perl-5.32.1.1-32bit.zip...
-- Downloading https://www.nasm.us/pub/nasm/releasebuilds/2.15.05/win32/nasm-2.15.05-win32.zip;https://fossies.org/windows/misc/nasm-2.15.05-win32.zip -> nasm-2.15.05-win32.zip...
-- Downloading https://download.qt.io/official_releases/jom/jom_1_1_3.zip;https://mirrors.ocf.berkeley.edu/qt/official_releases/jom/jom_1_1_3.zip -> jom_1_1_3.zip...
-- Found external ninja('1.10.2').
-- Getting CMake variables for x64-windows-static
-- Copying openssl release source files...
-- Copying openssl release source files... done
-- Configure x64-windows-static-rel
-- Configure x64-windows-static-rel done
-- Build x64-windows-static-rel
-- Build x64-windows-static-rel done
-- Copying openssl debug source files...
-- Copying openssl debug source files... done
-- Configure x64-windows-static-dbg
-- Configure x64-windows-static-dbg done
-- Build x64-windows-static-dbg
-- Build x64-windows-static-dbg done
-- Installing: D:/NewRepo/vcpkg-master/packages/openssl_x64-windows-static/share/openssl/copyright
-- Fixing pkgconfig file: D:/NewRepo/vcpkg-master/packages/openssl_x64-windows-static/lib/pkgconfig/libcrypto.pc
-- Fixing pkgconfig file: D:/NewRepo/vcpkg-master/packages/openssl_x64-windows-static/lib/pkgconfig/libssl.pc
-- Fixing pkgconfig file: D:/NewRepo/vcpkg-master/packages/openssl_x64-windows-static/lib/pkgconfig/openssl.pc
-- Downloading https://repo.msys2.org/mingw/i686/mingw-w64-i686-pkg-config-0.29.2-3-any.pkg.tar.zst;https://www2.futureware.at/~nickoe/msys2-mirror/mingw/i686/mingw-w64-i686-pkg-config-0.29.2-3-any.pkg.tar.zst;https://mirror.yandex.ru/mirrors/msys2/mingw/i686/mingw-w64-i686-pkg-config-0.29.2-3-any.pkg.tar.zst;https://mirrors.tuna.tsinghua.edu.cn/msys2/mingw/i686/mingw-w64-i686-pkg-config-0.29.2-3-any.pkg.tar.zst;https://mirrors.ustc.edu.cn/msys2/mingw/i686/mingw-w64-i686-pkg-config-0.29.2-3-any.pkg.tar.zst;https://mirror.bit.edu.cn/msys2/mingw/i686/mingw-w64-i686-pkg-config-0.29.2-3-any.pkg.tar.zst;https://mirror.selfnet.de/msys2/mingw/i686/mingw-w64-i686-pkg-config-0.29.2-3-any.pkg.tar.zst;https://mirrors.sjtug.sjtu.edu.cn/msys2/mingw/i686/mingw-w64-i686-pkg-config-0.29.2-3-any.pkg.tar.zst -> msys-mingw-w64-i686-pkg-config-0.29.2-3-any.pkg.tar.zst...
-- Downloading https://repo.msys2.org/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst;https://www2.futureware.at/~nickoe/msys2-mirror/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst;https://mirror.yandex.ru/mirrors/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst;https://mirrors.tuna.tsinghua.edu.cn/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst;https://mirrors.ustc.edu.cn/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst;https://mirror.bit.edu.cn/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst;https://mirror.selfnet.de/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst;https://mirrors.sjtug.sjtu.edu.cn/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst -> msys-mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst...
-- Using msys root at D:/NewRepo/vcpkg-master/downloads/tools/msys2/9a1ec3f33446b195
-- Fixing pkgconfig file: D:/NewRepo/vcpkg-master/packages/openssl_x64-windows-static/debug/lib/pkgconfig/libcrypto.pc
-- Fixing pkgconfig file: D:/NewRepo/vcpkg-master/packages/openssl_x64-windows-static/debug/lib/pkgconfig/libssl.pc
-- Fixing pkgconfig file: D:/NewRepo/vcpkg-master/packages/openssl_x64-windows-static/debug/lib/pkgconfig/openssl.pc
-- Installing: D:/NewRepo/vcpkg-master/packages/openssl_x64-windows-static/share/openssl/usage
-- Performing post-build validation
-- Performing post-build validation done
Stored binary cache: "C:\Users\PROJECT\AppData\Local\vcpkg\archives\5c\5c7b2c382184f86b61a7c29f2abeea3688783c21436d141ba06671c6d30988f9.zip"
Elapsed time to handle openssl:x64-windows-static: 5.213 min
Installing 5/7 zlib:x64-windows-static...
Building zlib[core]:x64-windows-static...
-- Downloading https://github.com/madler/zlib/archive/v1.2.12.tar.gz -> madler-zlib-v1.2.12.tar.gz...
-- Extracting source D:/NewRepo/vcpkg-master/downloads/madler-zlib-v1.2.12.tar.gz
-- Applying patch cmake_dont_build_more_than_needed.patch
-- Applying patch 0001-Prevent-invalid-inclusions-when-HAVE_-is-set-to-0.patch
-- Applying patch debug-postfix-mingw.patch
-- Applying patch 0002-android-build-mingw.patch
-- Using source at D:/NewRepo/vcpkg-master/buildtrees/zlib/src/v1.2.12-f2d39b538c.clean
-- Found external ninja('1.10.2').
-- Configuring x64-windows-static
-- Building x64-windows-static-dbg
-- Building x64-windows-static-rel
-- Installing: D:/NewRepo/vcpkg-master/packages/zlib_x64-windows-static/share/zlib/vcpkg-cmake-wrapper.cmake
-- Fixing pkgconfig file: D:/NewRepo/vcpkg-master/packages/zlib_x64-windows-static/lib/pkgconfig/zlib.pc
-- Using cached msys-mingw-w64-i686-pkg-config-0.29.2-3-any.pkg.tar.zst.
-- Using cached msys-mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst.
-- Using msys root at D:/NewRepo/vcpkg-master/downloads/tools/msys2/9a1ec3f33446b195
-- Fixing pkgconfig file: D:/NewRepo/vcpkg-master/packages/zlib_x64-windows-static/debug/lib/pkgconfig/zlib.pc
-- Installing: D:/NewRepo/vcpkg-master/packages/zlib_x64-windows-static/share/zlib/copyright
-- Performing post-build validation
-- Performing post-build validation done
Stored binary cache: "C:\Users\PROJECT\AppData\Local\vcpkg\archives\1a\1a6eef2bc562a2052c9fd124ba4214e956d629bcee68a1caf6161789673b07dd.zip"
Elapsed time to handle zlib:x64-windows-static: 9.012 s
Installing 6/7 curl:x64-windows-static...
Building curl[core,non-http,openssl,schannel,ssl,sspi]:x64-windows-static...
-- Downloading https://github.com/curl/curl/archive/curl-7_84_0.tar.gz -> curl-curl-curl-7_84_0.tar.gz...
-- Extracting source D:/NewRepo/vcpkg-master/downloads/curl-curl-curl-7_84_0.tar.gz
-- Applying patch 0002_fix_uwp.patch
-- Applying patch 0005_remove_imp_suffix.patch
-- Applying patch 0012-fix-dependency-idn2.patch
-- Applying patch 0020-fix-pc-file.patch
-- Applying patch 0021-normaliz.patch
-- Applying patch 0022-deduplicate-libs.patch
-- Applying patch mbedtls-ws2_32.patch
-- Applying patch export-components.patch
-- Using source at D:/NewRepo/vcpkg-master/buildtrees/curl/src/url-7_84_0-fad13a6c94.clean
-- Found external ninja('1.10.2').
-- Configuring x64-windows-static
-- Building x64-windows-static-dbg
-- Building x64-windows-static-rel
-- Fixing pkgconfig file: D:/NewRepo/vcpkg-master/packages/curl_x64-windows-static/lib/pkgconfig/libcurl.pc
-- Using cached msys-mingw-w64-i686-pkg-config-0.29.2-3-any.pkg.tar.zst.
-- Using cached msys-mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst.
-- Using msys root at D:/NewRepo/vcpkg-master/downloads/tools/msys2/9a1ec3f33446b195
-- Fixing pkgconfig file: D:/NewRepo/vcpkg-master/packages/curl_x64-windows-static/debug/lib/pkgconfig/libcurl.pc
-- Installing: D:/NewRepo/vcpkg-master/packages/curl_x64-windows-static/share/curl/vcpkg-cmake-wrapper.cmake
-- Installing: D:/NewRepo/vcpkg-master/packages/curl_x64-windows-static/share/curl/copyright
-- Performing post-build validation
-- Performing post-build validation done
Stored binary cache: "C:\Users\PROJECT\AppData\Local\vcpkg\archives\c3\c32cf8759a2e611bb6ed090273c8787e9bbd0b4d3d25e9b055162eac8a8b241b.zip"
Elapsed time to handle curl:x64-windows-static: 1.563 min
Installing 7/7 cocoyaxi:x64-windows-static...
Building cocoyaxi[core,libcurl]:x64-windows-static...
-- Downloading https://github.com/idealvin/cocoyaxi/archive/3fd22601de4d7a06548ca4d24ac36b4f82cde8c5.tar.gz -> idealvin-cocoyaxi-3fd22601de4d7a06548ca4d24ac36b4f82cde8c5.tar.gz...
[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://github.com/idealvin/cocoyaxi/archive/3fd22601de4d7a06548ca4d24ac36b4f82cde8c5.tar.gz
Error: Failed to download from mirror set:
File does not have the expected hash:
             url : [ https://github.com/idealvin/cocoyaxi/archive/3fd22601de4d7a06548ca4d24ac36b4f82cde8c5.tar.gz ]
       File path : [ D:\NewRepo\vcpkg-master\downloads\idealvin-cocoyaxi-3fd22601de4d7a06548ca4d24ac36b4f82cde8c5.tar.gz.40464.part ]
   Expected hash : [ 15a7fbd934b44ffd981067c18a66bf07423d8ded102d0c15b79c2f451192f17541b9c1a3d4eb913d9f8c7a55e051e4e1968e16a1113fa81038b3ad9534c57874 ]
     Actual hash : [ 2b261458e81cc7488bc4d12335b623a750071082b949ffa638e09ca2263ebfab7f8dd83dcb7c6b0085046fda26b5a52992f8907afb39f8f9e74601479c2fb9a7 ]


[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: 3513 us
[DEBUG] Time in loading ports: 0 us
[DEBUG] Exiting after 1.978 s (1967448 us)

CMake Error at scripts/cmake/vcpkg_download_distfile.cmake:24 (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:249 (z_vcpkg_download_distfile_show_proxy_and_fail)
  scripts/cmake/vcpkg_from_github.cmake:106 (vcpkg_download_distfile)
  ports/cocoyaxi/portfile.cmake:1 (vcpkg_from_github)
  scripts/ports.cmake:147 (include)


error: building cocoyaxi:x64-windows-static failed with: BUILD_FAILED
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+cocoyaxi
You can submit a new issue at:
    https://github.com/microsoft/vcpkg/issues/new?template=report-package-build-failure.md&title=[cocoyaxi]+Build+error
Include '[cocoyaxi] 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-07-21-a0e87e227afb536c62188c11ad029954f28fdb22
    vcpkg-scripts version: unknown

You can also use the prefilled template from D:\NewRepo\vcpkg-master\installed\vcpkg\issue_body.md.

@Cheney-W Cheney-W changed the title co[libcurl] build failure cocoyaxi[libcurl] build failure Jul 28, 2022
@Cheney-W Cheney-W added category:port-bug The issue is with a library, which is something the port should already support and removed category:question This issue is a question labels Jul 28, 2022
@Cheney-W Cheney-W linked a pull request Jul 28, 2022 that will close this issue
@seccpur
Copy link
Author

seccpur commented Aug 10, 2022

Tried after pulling from git again , still without success. Here the log:

PS D:\NewRepo\vcpkg-master> .\vcpkg install cocoyaxi[libcurl]:x64-windows-static
Computing installation plan...
A suitable version of cmake was not found (required v3.24.0). Downloading portable cmake v3.24.0...
Downloading cmake...
https://github.com/Kitware/CMake/releases/download/v3.24.0/cmake-3.24.0-windows-i386.zip -> D:\NewRepo\vcpkg-master\downloads\cmake-3.24.0-windows-i386.zip
Extracting cmake...
The following packages will be built and installed:
cocoyaxi[core,libcurl]:x64-windows-static -> 2.0.3#2

[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: 970 us
[DEBUG] Time in loading ports: 0 us
[DEBUG] Exiting after 1.81 s (1801921 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)
scripts/cmake/vcpkg_from_github.cmake:106 (vcpkg_download_distfile)
ports/cocoyaxi/portfile.cmake:1 (vcpkg_from_github)
scripts/ports.cmake:147 (include)

error: building cocoyaxi:x64-windows-static failed with: BUILD_FAILED
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+cocoyaxi
You can submit a new issue at:
https://github.com/microsoft/vcpkg/issues/new?template=report-package-build-failure.md&title=[cocoyaxi]+Build+error
Include '[cocoyaxi] 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-07-21-a0e87e227afb536c62188c11ad029954f28fdb22
vcpkg-scripts version: unknown

You can also use the prefilled template from D:\NewRepo\vcpkg-master\installed\vcpkg\issue_body.md.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:port-bug The issue is with a library, which is something the port should already support
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants