microsoft / vcpkg

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

[hifi-client-deps] build failure #36962

Closed GREAT-DNG closed 7 months ago

GREAT-DNG commented 8 months ago

Operating system

x64-windows

Compiler

MSVC 19.29.30154.0

Steps to reproduce the behavior

`vcpkg install hifi-client-deps`

Failure logs

-- Note: bullet3 only supports static library linkage. Building static library.
-- Using cached bulletphysics-bullet3-3.22.tar.gz.
-- Cleaning sources at C:/Users/User/VCPKG/8656fb1e/buildtrees/bullet3/src/3.22-d2f56169ec.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source C:/Users/User/VCPKG/8656fb1e/downloads/bulletphysics-bullet3-3.22.tar.gz
-- Applying patch cmake-fix.patch
-- Applying patch enable-profiling.patch
-- Using source at C:/Users/User/VCPKG/8656fb1e/buildtrees/bullet3/src/3.22-d2f56169ec.clean
-- Found external ninja('1.10.2').
-- Configuring x64-windows
-- Building x64-windows-dbg
-- Building x64-windows-rel
-- Using cached 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...
[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://repo.msys2.org/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst
[DEBUG] Downloading https://www2.futureware.at/~nickoe/msys2-mirror/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst
[DEBUG] Downloading https://mirror.yandex.ru/mirrors/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst
[DEBUG] Downloading https://mirrors.tuna.tsinghua.edu.cn/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst
[DEBUG] Downloading https://mirrors.ustc.edu.cn/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst
[DEBUG] Downloading https://mirror.bit.edu.cn/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst
[DEBUG] Download failed -- retrying after 1000 ms.
[DEBUG] Download failed -- retrying after 2000 ms.
[DEBUG] Download failed -- retrying after 4000 ms.
[DEBUG] Downloading https://mirror.selfnet.de/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst
[DEBUG] Downloading https://mirrors.sjtug.sjtu.edu.cn/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst
Error: Failed to download from mirror set:
https://repo.msys2.org/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst: failed: status code 404
https://www2.futureware.at/~nickoe/msys2-mirror/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst: failed: status code 404
https://mirror.yandex.ru/mirrors/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst: failed: status code 404
https://mirrors.tuna.tsinghua.edu.cn/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst: failed: status code 404
https://mirrors.ustc.edu.cn/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst: failed: status code 404
https://mirror.bit.edu.cn/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst: WinHttpSendRequest() failed: 12007
https://mirror.bit.edu.cn/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst: WinHttpSendRequest() failed: 12007
https://mirror.bit.edu.cn/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst: WinHttpSendRequest() failed: 12007
https://mirror.bit.edu.cn/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst: WinHttpSendRequest() failed: 12007
https://mirror.selfnet.de/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst: failed: status code 404
https://mirrors.sjtug.sjtu.edu.cn/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst: failed: status code 404

[DEBUG] D:\a\_work\1\s\src\vcpkg\base\downloads.cpp(788): 
[DEBUG] Time in subprocesses: 0 us
[DEBUG] Time in parsing JSON: 14 us
[DEBUG] Time in JSON reader: 0 us
[DEBUG] Time in filesystem: 4795 us
[DEBUG] Time in loading ports: 0 us
[DEBUG] Exiting after 16.8 s (16797055 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_acquire_msys.cmake:26 (vcpkg_download_distfile)
  scripts/cmake/vcpkg_acquire_msys.cmake:116 (z_vcpkg_acquire_msys_download_package)
  scripts/cmake/vcpkg_find_acquire_program.cmake:530 (vcpkg_acquire_msys)
  scripts/cmake/vcpkg_fixup_pkgconfig.cmake:151 (vcpkg_find_acquire_program)
  ports/bullet3/portfile.cmake:37 (vcpkg_fixup_pkgconfig)
  scripts/ports.cmake:146 (include)

Additional context

Package: bullet3[core]:x64-windows -> 3.22

vcpkg-tool version: 2022-06-17-9268e366206712e38102b28dbd1617697a99ff2e vcpkg-scripts version: cef0b3e 2022-06-20 (1 year, 8 months ago)

FrankXie05 commented 8 months ago

See https://github.com/microsoft/vcpkg/issues/36502

GREAT-DNG commented 8 months ago

See #36502

@FrankXie05 Could you specifically indicate what in that issue should help me?

StarGate-One commented 8 months ago

See #36502

@FrankXie05 Could you specifically indicate what in that issue should help me?

MSYS2 removes older library tools after a certain amount of time, and vcpkg is updated, in this case this library was update in May 2023.

To fix in classical mode:

  1. cd <vcpkg-root>
  2. git pull
  3. .\vcpkg-bootstrap.bat
  4. .\vcpkg upgrade --no-dry-run

In manifest mode I am not sure of the exact steps but it would be similar to classic mode, then you would need to re-establish your baseline.

You may also want to look into asset caching.

Hope this helps.

GREAT-DNG commented 8 months ago

MSYS2 removes older library tools after a certain amount of time, and vcpkg is updated, in this case this library was update in May 2023.

@StarGate-One, I understand, but the problem is that I need exactly it, I'm trying to build Vircadia, there is a possibility that there will be build problems with the new version. Is it possible to install it manually by simply specifying the archive? And where can you get this archive in this case?

To fix in classical mode...

This did not help, here are the outputs of the commands:

> git pull
Already up to date.

vcpkg-bootstrap.bat was missing, I think it was just renamed:

> bootstrap-vcpkg.bat
Downloading https://github.com/microsoft/vcpkg-tool/releases/download/2022-06-17/vcpkg.exe -> C:\Users\User\VCPKG\8656fb1e\vcpkg.exe... done.
Validating signature... done.
> vcpkg upgrade --no-dry-run
All installed packages are up-to-date with the local portfiles

In manifest mode I am not sure of the exact steps but it would be similar to classic mode, then you would need to re-establish your baseline.

I encountered vcpkg for the first time and I don’t quite understand how to implement it, can you describe in more detail?

You may also want to look into asset caching.

As far as I understand, the cache is built on packages received from MSYS2, but what if it is no longer there?

I also noticed that the script passes additional parameters to vcpkg, perhaps this matters: --vcpkg-root C:\Users\User\VCPKG\8656fb1e install --triplet x64-windows hifi-client-deps

FrankXie05 commented 8 months ago

Extract them to vcpkg\downloads and rename them to end with *.pkg.tar.zst

msys2-msys2-runtime-3.4.10-4-x86_64.pkg.tar.zip msys2-mingw-w64-x86_64-pkgconf-1~2.1.0-1-any.pkg.tar.zip

dg0yt commented 8 months ago

@FrankXie05 Bad idea, and completely missing the point.

Unless a user has the full set of old msys2 packages, the user shall use the latest vcpkg. Only the HEAD of vcpkg receives updates/fixes. Everything else will lead from one problem to another. In particular when ignoring msys2 ABI and dependency issues.

For using non-HEAD versions of ports, there is manifest mode, and there are overlay ports.

GREAT-DNG commented 8 months ago

Extract them to vcpkg\downloads and rename them to end with *.pkg.tar.zst

@FrankXie05 I unpacked it and they already had the required extension. But this had no effect.

GREAT-DNG commented 8 months ago

For using non-HEAD versions of ports, there is manifest mode, and there are overlay ports.

@dg0yt Judging by the fact that the vcpkg.json files are present and most likely in use, the manifest mode is already in use. But what are overlay ports and how can you use it to solve the problem?

dg0yt commented 8 months ago

https://learn.microsoft.com/en-us/vcpkg/

StarGate-One commented 8 months ago

To fix in classical mode:

  1. cd <vcpkg-root>
  2. git pull
  1. .\vcpkg-bootstrap.bat ---> should have been .\bootstrap-vcpkg.bat
    1. .\vcpkg upgrade --no-dry-run
GREAT-DNG commented 8 months ago

.\vcpkg-bootstrap.bat ---> should have been .\bootstrap-vcpkg.bat

@StarGate-One I already mentioned this

github-actions[bot] commented 7 months 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.