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

[<port name>] build failure #43318

Closed
dgkane64 opened this issue Jan 16, 2025 · 2 comments
Closed

[<port name>] build failure #43318

dgkane64 opened this issue Jan 16, 2025 · 2 comments
Labels
category:question This issue is a question

Comments

@dgkane64
Copy link

Operating system

Windows

Compiler

MSVC

Steps to reproduce the behavior

vcpkg install abseil

Failure logs

Downloading https://mirror.selfnet.de/msys2/msys/x86_64/msys2-runtime-3.4.6-1-x86_64.pkg.tar.zst
error: Failed to download from mirror set
error: https://mirror.msys2.org/msys/x86_64/msys2-runtime-3.4.6-1-x86_64.pkg.tar.zst: failed: status code 404
error: https://repo.msys2.org/msys/x86_64/msys2-runtime-3.4.6-1-x86_64.pkg.tar.zst: failed: status code 404
error: https://mirror.yandex.ru/mirrors/msys2/msys/x86_64/msys2-runtime-3.4.6-1-x86_64.pkg.tar.zst: failed: status code 404
error: https://mirrors.tuna.tsinghua.edu.cn/msys2/msys/x86_64/msys2-runtime-3.4.6-1-x86_64.pkg.tar.zst: failed: status code 404
error: https://mirrors.ustc.edu.cn/msys2/msys/x86_64/msys2-runtime-3.4.6-1-x86_64.pkg.tar.zst: failed: status code 404
error: https://mirror.selfnet.de/msys2/msys/x86_64/msys2-runtime-3.4.6-1-x86_64.pkg.tar.zst: failed: status code 404
[DEBUG] D:\a_work\1\s\src\vcpkg\base\downloads.cpp(1051):
[DEBUG] Time in subprocesses: 0us
[DEBUG] Time in parsing JSON: 24us
[DEBUG] Time in JSON reader: 0us
[DEBUG] Time in filesystem: 14610us
[DEBUG] Time in loading ports: 0us
[DEBUG] Exiting after 7.4 s (7348163us)

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_acquire_msys.cmake:25 (vcpkg_download_distfile)
scripts/cmake/vcpkg_acquire_msys.cmake:124 (z_vcpkg_acquire_msys_download_package)
scripts/cmake/vcpkg_acquire_msys.cmake:209 (z_vcpkg_acquire_msys_download_packages)
scripts/cmake/vcpkg_find_acquire_program(PKGCONFIG).cmake:30 (vcpkg_acquire_msys)
scripts/cmake/vcpkg_find_acquire_program.cmake:118 (include)
scripts/cmake/vcpkg_fixup_pkgconfig.cmake:203 (vcpkg_find_acquire_program)
C:/Users/tr009491/AppData/Local/vcpkg/registries/git-trees/95cfb844950f2cc3e1a530bd23967ee2ea218f74/portfile.cmake:34 (vcpkg_fixup_pkgconfig)
scripts/ports.cmake:147 (include)

error: building abseil:x64-windows failed with: BUILD_FAILED

Additional context

I looked at https://repo.msys2.org/msys/x86_64/ and the file:

https://repo.msys2.org/msys/x86_64/msys2-runtime-3.4.6-1-x86_64.pkg.tar.zst

did not appear to be there.

vcpkg.json
vcpkg-configuration.json

@dgkane64 dgkane64 added the category:port-bug The issue is with a library, which is something the port should already support label Jan 16, 2025
@github-actions github-actions bot added category:question This issue is a question and removed category:port-bug The issue is with a library, which is something the port should already support labels Jan 16, 2025
Copy link

Try updating your vcpkg version via git pull to resolve this issue. MSYS2 downloads are removed from the upstream servers from time to time, so using an up-to-date vcpkg version is necessary.

@dgkane64
Copy link
Author

This vcpkg is part of the latest installation of Visual Studio 2022 and is not a git repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:question This issue is a question
Projects
None yet
Development

No branches or pull requests

1 participant