microsoft / vcpkg

C++ Library Manager for Windows, Linux, and MacOS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[libcap] Build error on x64-linux

d9mz opened this issue · comments

commented

Package: libcap:x64-linux@2.69#3

Host Environment

  • Host: x64-linux
  • Compiler: GNU 14.1.1
  • vcpkg-tool version: 2024-04-23-d6945642ee5c3076addd1a42c331bbf4cfc97457
    vcpkg-scripts version: bd2b548 2024-05-14 (5 hours ago)

To Reproduce

vcpkg install

Failure logs

-- Downloading https://git.kernel.org/pub/scm/libs/libcap/libcap.git/snapshot/libcap-3c7dda330bd9a154bb5b878d31fd591e4951fe17.tar.gz -> libpcap-2.69.tar.gz...
[DEBUG] To include the environment variables in debug output, pass --debug-env
[DEBUG] Trying to load bundleconfig from /home/switch/vcpkg/vcpkg-bundle.json
[DEBUG] Failed to open: /home/switch/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
[DEBUG] 1000: execute_process(curl --fail -L https://git.kernel.org/pub/scm/libs/libcap/libcap.git/snapshot/libcap-3c7dda330bd9a154bb5b878d31fd591e4951fe17.tar.gz --create-dirs --output /home/switch/vcpkg/downloads/libpcap-2.69.tar.gz.223465.part)
[DEBUG] 1000: cmd_execute_and_stream_data() returned 22 after   211104 us
error: Failed to download from mirror set
error: https://git.kernel.org/pub/scm/libs/libcap/libcap.git/snapshot/libcap-3c7dda330bd9a154bb5b878d31fd591e4951fe17.tar.gz: curl failed to download with exit code 22
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

curl: (22) The requested URL returned error: 403

[DEBUG] /source/src/vcpkg/base/downloads.cpp(997): 
[DEBUG] Time in subprocesses: 211104us
[DEBUG] Time in parsing JSON: 1us
[DEBUG] Time in JSON reader: 0us
[DEBUG] Time in filesystem: 189us
[DEBUG] Time in loading ports: 0us
[DEBUG] Exiting after 212 ms (211543us)

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)
  buildtrees/versioning_/versions/libcap/23bb9f2743e684bacba57b8cc8a931756f0e7447/portfile.cmake:1 (vcpkg_download_distfile)
  scripts/ports.cmake:175 (include)



Additional context

vcpkg.json
{
  "$schema": "https://raw.githubusercontent.com/microsoft/vcpkg-tool/main/docs/vcpkg.schema.json",
  "name": "aya",
  "version": "1.0.0",
  "builtin-baseline": "345ac44ab8d6a16239d3af55df9608bf725e7a48",
  "dependencies": [
    "boost",
    "curl",
    "discord-rpc",
    "libjpeg-turbo",
    "freetype",
    "libpng",
    "lz4",
    "openssl",
    "rapidjson",
    "sdl2",
    "zlib",
    "zstd"
  ]
}

commented

I noticed issue #37875 had the same issue as me, is it just a matter of updating my baseline to resolve this issue?

is it just a matter of updating my baseline to resolve this issue?

This is one way to get an update. #38599 should resolve the issue.

commented

solved, just updated the baseline