microsoft / vcpkg

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

[qtbase] Build failure #31819

Closed huhuang03 closed 1 year ago

huhuang03 commented 1 year ago

Package: qtbase[brotli,concurrent,core,dbus,default-features,doubleconversion,freetype,gui,harfbuzz,icu,jpeg,network,opengl,openssl,pcre2,png,sql,sql-psql,sql-sqlite,testlib,thread,widgets,zstd]:x64-osx -> 6.5.1

Host Environment

To Reproduce

vcpkg install qtbase

Failure logs

-- Downloading https://download.qt.io/archive/qt/6.5/6.5.1/submodules/qtbase-everywhere-src-6.5.1.tar.xz -> qtbase-everywhere-src-6.5.1.tar.xz...
[DEBUG] To include the environment variables in debug output, pass --debug-env
[DEBUG] Trying to load bundleconfig from /Users/hwf/source/vcpkg/vcpkg-bundle.json
[DEBUG] Failed to open: /Users/hwf/source/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] 1000: popen( curl --fail -L https://download.qt.io/archive/qt/6.5/6.5.1/submodules/qtbase-everywhere-src-6.5.1.tar.xz --create-dirs --output /Users/hwf/source/vcpkg/downloads/qtbase-everywhere-src-6.5.1.tar.xz.13925.part 2>&1)
[DEBUG] 1000: cmd_execute_and_stream_data() returned 22 after  5434958 us
error: Failed to download from mirror set
error: https://download.qt.io/archive/qt/6.5/6.5.1/submodules/qtbase-everywhere-src-6.5.1.tar.xz: 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] /Users/runner/work/1/s/src/vcpkg/base/downloads.cpp(961): 
[DEBUG] Time in subprocesses: 5434958us
[DEBUG] Time in parsing JSON: 15us
[DEBUG] Time in JSON reader: 0us
[DEBUG] Time in filesystem: 403us
[DEBUG] Time in loading ports: 0us
[DEBUG] Exiting after 5.4 s (5436298us)

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)
  ports/qtbase/cmake/qt_install_submodule.cmake:67 (vcpkg_download_distfile)
  ports/qtbase/cmake/qt_install_submodule.cmake:84 (qt_download_submodule_impl)
  ports/qtbase/cmake/qt_install_submodule.cmake:336 (qt_download_submodule)
  ports/qtbase/portfile.cmake:284 (qt_install_submodule)
  scripts/ports.cmake:147 (include)

Additional context

FrankXie05 commented 1 year ago

Could you please manually access this link? (I can access) https://download.qt.io/archive/qt/6.5/6.5.1/submodules/qtbase-everywhere-src-6.5.1.tar.xz

huhuang03 commented 1 year ago

After manually access. I find it redirect to mirrors.sjtug.sjtu.edu.cn, and then finally redirect to https://s3.jcloud.sjtu.edu.cn/899a892efef34b1b944a19981040f55b-oss01/rsync/qt/14c8ef0d1a319444e412d8514c4c18038f1bd0b which is 403

Maybe qt site auto use mirror by location. I will check.

Thank you

huhuang03 commented 1 year ago

The reason is the mirror is in maintain so not useable in 6.3 - 6.5 https://sjtug.org/post/mirror-news/2023-06-03-maintain/