microsoft / vcpkg

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

[cgal] / [gmp] build failure on x64-windows (due to 1~ inserted into mirror's filepath for grep 3.02 not matching URLs, see comments) #31446

Closed h3rb-ts closed 1 year ago

h3rb-ts commented 1 year ago

Operating system

x64-windows

Compiler

MSVC

Steps to reproduce the behavior

./vcpkg install cgal:x64-windows

Failure logs

PS F:\vcpkg> .\vcpkg install cgal:x64-windows
Computing installation plan...
The following packages will be built and installed:
  * boost-accumulators[core]:x64-windows -> 1.82.0#1
  * boost-algorithm[core]:x64-windows -> 1.82.0#1
  * boost-align[core]:x64-windows -> 1.82.0#1
  * boost-any[core]:x64-windows -> 1.82.0#1
  * boost-atomic[core]:x64-windows -> 1.82.0#1
  * boost-bimap[core]:x64-windows -> 1.82.0#1
  * boost-callable-traits[core]:x64-windows -> 1.82.0#1
  * boost-chrono[core]:x64-windows -> 1.82.0#1
  * boost-compute[core]:x64-windows -> 1.82.0#1
  * boost-container[core]:x64-windows -> 1.82.0#1
  * boost-conversion[core]:x64-windows -> 1.82.0#1
  * boost-date-time[core]:x64-windows -> 1.82.0#1
  * boost-dynamic-bitset[core]:x64-windows -> 1.82.0#1
  * boost-endian[core]:x64-windows -> 1.82.0#1
  * boost-exception[core]:x64-windows -> 1.82.0#1
  * boost-filesystem[core]:x64-windows -> 1.82.0#1
  * boost-foreach[core]:x64-windows -> 1.82.0#1
  * boost-format[core]:x64-windows -> 1.82.0#1
  * boost-function[core]:x64-windows -> 1.82.0#1
  * boost-functional[core]:x64-windows -> 1.82.0#1
  * boost-fusion[core]:x64-windows -> 1.82.0#1
  * boost-geometry[core]:x64-windows -> 1.82.0#1
  * boost-graph[core]:x64-windows -> 1.82.0#1
  * boost-heap[core]:x64-windows -> 1.82.0#1
  * boost-integer[core]:x64-windows -> 1.82.0#1
  * boost-interval[core]:x64-windows -> 1.82.0#1
  * boost-intrusive[core]:x64-windows -> 1.82.0#1
  * boost-iostreams[bzip2,core,lzma,zlib,zstd]:x64-windows -> 1.82.0#1
  * boost-iterator[core]:x64-windows -> 1.82.0#1
  * boost-lambda[core]:x64-windows -> 1.82.0#1
  * boost-lexical-cast[core]:x64-windows -> 1.82.0#1
  * boost-logic[core]:x64-windows -> 1.82.0#1
  * boost-math[core]:x64-windows -> 1.82.0#1
  * boost-multi-array[core]:x64-windows -> 1.82.0#1
  * boost-multi-index[core]:x64-windows -> 1.82.0#1
  * boost-multiprecision[core]:x64-windows -> 1.82.0#1
  * boost-numeric-conversion[core]:x64-windows -> 1.82.0#1
  * boost-optional[core]:x64-windows -> 1.82.0#1
  * boost-parameter[core]:x64-windows -> 1.82.0#1
  * boost-phoenix[core]:x64-windows -> 1.82.0#1
  * boost-polygon[core]:x64-windows -> 1.82.0#1
  * boost-pool[core]:x64-windows -> 1.82.0#1
  * boost-property-map[core]:x64-windows -> 1.82.0#1
  * boost-property-tree[core]:x64-windows -> 1.82.0#1
  * boost-proto[core]:x64-windows -> 1.82.0#1
  * boost-ptr-container[core]:x64-windows -> 1.82.0#1
  * boost-qvm[core]:x64-windows -> 1.82.0#1
  * boost-random[core]:x64-windows -> 1.82.0#1
  * boost-range[core]:x64-windows -> 1.82.0#1
  * boost-ratio[core]:x64-windows -> 1.82.0#1
  * boost-rational[core]:x64-windows -> 1.82.0#1
  * boost-regex[core]:x64-windows -> 1.82.0#1
  * boost-serialization[core]:x64-windows -> 1.82.0#1
  * boost-smart-ptr[core]:x64-windows -> 1.82.0#1
  * boost-spirit[core]:x64-windows -> 1.82.0#1
  * boost-system[core]:x64-windows -> 1.82.0#1
  * boost-thread[core]:x64-windows -> 1.82.0#1
  * boost-tokenizer[core]:x64-windows -> 1.82.0#1
  * boost-tti[core]:x64-windows -> 1.82.0#1
  * boost-tuple[core]:x64-windows -> 1.82.0#1
  * boost-type-index[core]:x64-windows -> 1.82.0#1
  * boost-typeof[core]:x64-windows -> 1.82.0#1
  * boost-ublas[core]:x64-windows -> 1.82.0#1
  * boost-units[core]:x64-windows -> 1.82.0#1
  * boost-unordered[core]:x64-windows -> 1.82.0#1
  * boost-uuid[core]:x64-windows -> 1.82.0#1
  * boost-variant[core]:x64-windows -> 1.82.0#1
  * boost-variant2[core]:x64-windows -> 1.82.0#1
  * boost-winapi[core]:x64-windows -> 1.82.0#1
  * boost-xpressive[core]:x64-windows -> 1.82.0#1
  * bzip2[core,tool]:x64-windows -> 1.0.8#4
    cgal[core]:x64-windows -> 5.5.2
  * gmp[core]:x64-windows -> 6.2.1#18
  * liblzma[core]:x64-windows -> 5.4.1#1
  * mpfr[core]:x64-windows -> 4.2.0
  * zlib[core]:x64-windows -> 1.2.13
  * zstd[core]:x64-windows -> 1.5.5
Additional packages (*) will be modified to complete this operation.
Detecting compiler hash for triplet x64-windows...
Restored 0 package(s) from C:\Users\herb.gilliland\AppData\Local\vcpkg\archives in 1.55 ms. Use --debug to see more details.
Installing 1/77 boost-typeof:x64-windows...
......... (successful installs removed due to size) .........
Building boost-heap[core]:x64-windows...
-- Using cached boostorg-heap-boost-1.82.0.tar.gz.
-- Cleaning sources at F:/vcpkg/buildtrees/boost-heap/src/ost-1.82.0-6ea5e85005.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source F:/vcpkg/downloads/boostorg-heap-boost-1.82.0.tar.gz
-- Using source at F:/vcpkg/buildtrees/boost-heap/src/ost-1.82.0-6ea5e85005.clean
-- Copying headers
-- Copying headers done
-- Installing: F:/vcpkg/packages/boost-heap_x64-windows/share/boost-heap/usage
-- Installing: F:/vcpkg/packages/boost-heap_x64-windows/share/boost-heap/copyright
-- Performing post-build validation
Stored binaries in 1 destinations.
Elapsed time to handle boost-heap:x64-windows: 400 ms
Installing 67/77 bzip2:x64-windows...
Building bzip2[core,tool]:x64-windows...
-- Using cached bzip2-1.0.8.tar.gz.
-- Cleaning sources at F:/vcpkg/buildtrees/bzip2/src/bzip2-1-336d4794a3.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source F:/vcpkg/downloads/bzip2-1.0.8.tar.gz
-- Applying patch fix-import-export-macros.patch
-- Using source at F:/vcpkg/buildtrees/bzip2/src/bzip2-1-336d4794a3.clean
-- Found external ninja('1.11.0').
-- Configuring x64-windows
-- Building x64-windows-dbg
-- Building x64-windows-rel
-- Fixing pkgconfig file: F:/vcpkg/packages/bzip2_x64-windows/lib/pkgconfig/bzip2.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 F:/vcpkg/downloads/tools/msys2/9a1ec3f33446b195
-- Fixing pkgconfig file: F:/vcpkg/packages/bzip2_x64-windows/debug/lib/pkgconfig/bzip2.pc
-- Installing: F:/vcpkg/packages/bzip2_x64-windows/share/bzip2/copyright
-- Performing post-build validation
Stored binaries in 1 destinations.
Elapsed time to handle bzip2:x64-windows: 5.1 s
Installing 68/77 liblzma:x64-windows...
Building liblzma[core]:x64-windows...
-- Using cached xz-5.4.1.tar.xz.
-- Cleaning sources at F:/vcpkg/buildtrees/liblzma/src/f890ee5207-326fe62969.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source F:/vcpkg/downloads/xz-5.4.1.tar.xz
-- Applying patch fix_config_include.patch
-- Applying patch win_output_name.patch
-- Applying patch add_support_ios.patch
-- Applying patch build-tools.patch
-- Using source at F:/vcpkg/buildtrees/liblzma/src/f890ee5207-326fe62969.clean
-- Found external ninja('1.11.0').
-- Configuring x64-windows
-- Building x64-windows-dbg
-- Building x64-windows-rel
-- Fixing pkgconfig file: F:/vcpkg/packages/liblzma_x64-windows/lib/pkgconfig/liblzma.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 F:/vcpkg/downloads/tools/msys2/9a1ec3f33446b195
-- Fixing pkgconfig file: F:/vcpkg/packages/liblzma_x64-windows/debug/lib/pkgconfig/liblzma.pc
-- Installing: F:/vcpkg/packages/liblzma_x64-windows/share/liblzma/copyright
-- Performing post-build validation
Stored binaries in 1 destinations.
Elapsed time to handle liblzma:x64-windows: 14 s
Installing 69/77 zlib:x64-windows...
Building zlib[core]:x64-windows...
-- Using cached madler-zlib-v1.2.13.tar.gz.
-- Cleaning sources at F:/vcpkg/buildtrees/zlib/src/v1.2.13-f30d2a168d.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source F:/vcpkg/downloads/madler-zlib-v1.2.13.tar.gz
-- Applying patch 0001-Prevent-invalid-inclusions-when-HAVE_-is-set-to-0.patch
-- Applying patch 0002-skip-building-examples.patch
-- Applying patch 0003-build-static-or-shared-not-both.patch
-- Applying patch 0004-android-and-mingw-fixes.patch
-- Using source at F:/vcpkg/buildtrees/zlib/src/v1.2.13-f30d2a168d.clean
-- Found external ninja('1.11.0').
-- Configuring x64-windows
-- Building x64-windows-dbg
-- Building x64-windows-rel
-- Installing: F:/vcpkg/packages/zlib_x64-windows/share/zlib/vcpkg-cmake-wrapper.cmake
-- Fixing pkgconfig file: F:/vcpkg/packages/zlib_x64-windows/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 F:/vcpkg/downloads/tools/msys2/9a1ec3f33446b195
-- Fixing pkgconfig file: F:/vcpkg/packages/zlib_x64-windows/debug/lib/pkgconfig/zlib.pc
-- Installing: F:/vcpkg/packages/zlib_x64-windows/share/zlib/copyright
-- Performing post-build validation
Stored binaries in 1 destinations.
Elapsed time to handle zlib:x64-windows: 5.9 s
Installing 70/77 zstd:x64-windows...
Building zstd[core]:x64-windows...
-- Using cached facebook-zstd-v1.5.5.tar.gz.
-- Cleaning sources at F:/vcpkg/buildtrees/zstd/src/v1.5.5-b23e615f5d.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source F:/vcpkg/downloads/facebook-zstd-v1.5.5.tar.gz
-- Applying patch no-static-suffix.patch
-- Applying patch fix-emscripten-and-clang-cl.patch
-- Using source at F:/vcpkg/buildtrees/zstd/src/v1.5.5-b23e615f5d.clean
-- Found external ninja('1.11.0').
-- Configuring x64-windows
-- Building x64-windows-dbg
-- Building x64-windows-rel
-- Fixing pkgconfig file: F:/vcpkg/packages/zstd_x64-windows/lib/pkgconfig/libzstd.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 F:/vcpkg/downloads/tools/msys2/9a1ec3f33446b195
-- Fixing pkgconfig file: F:/vcpkg/packages/zstd_x64-windows/debug/lib/pkgconfig/libzstd.pc
-- Installing: F:/vcpkg/packages/zstd_x64-windows/share/zstd/usage
-- Performing post-build validation
Stored binaries in 1 destinations.
Elapsed time to handle zstd:x64-windows: 12 s
Installing 71/77 boost-iostreams:x64-windows...
Building boost-iostreams[bzip2,core,lzma,zlib,zstd]:x64-windows...
-- Using cached boostorg-iostreams-boost-1.82.0.tar.gz.
-- Cleaning sources at F:/vcpkg/buildtrees/boost-iostreams/src/ost-1.82.0-b7275d973f.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source F:/vcpkg/downloads/boostorg-iostreams-boost-1.82.0.tar.gz
-- Applying patch Removeseekpos.patch
-- Using source at F:/vcpkg/buildtrees/boost-iostreams/src/ost-1.82.0-b7275d973f.clean
-- Including F:/vcpkg/ports/boost-iostreams/b2-options.cmake
-- Found external ninja('1.11.0').
-- Getting CMake variables for x64-windows
-- Configuring x64-windows
-- Building x64-windows-dbg
-- Building x64-windows-rel
-- Copying headers
-- Copying headers done
-- Installing: F:/vcpkg/packages/boost-iostreams_x64-windows/share/boost-iostreams/usage
-- Installing: F:/vcpkg/packages/boost-iostreams_x64-windows/share/boost-iostreams/copyright
-- Performing post-build validation
Stored binaries in 1 destinations.
Elapsed time to handle boost-iostreams:x64-windows: 11 s
Installing 72/77 boost-multi-array:x64-windows...
Building boost-multi-array[core]:x64-windows...
-- Using cached boostorg-multi_array-boost-1.82.0.tar.gz.
-- Cleaning sources at F:/vcpkg/buildtrees/boost-multi-array/src/ost-1.82.0-60a517844d.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source F:/vcpkg/downloads/boostorg-multi_array-boost-1.82.0.tar.gz
-- Using source at F:/vcpkg/buildtrees/boost-multi-array/src/ost-1.82.0-60a517844d.clean
-- Copying headers
-- Copying headers done
-- Installing: F:/vcpkg/packages/boost-multi-array_x64-windows/share/boost-multi-array/usage
-- Installing: F:/vcpkg/packages/boost-multi-array_x64-windows/share/boost-multi-array/copyright
-- Performing post-build validation
Stored binaries in 1 destinations.
Elapsed time to handle boost-multi-array:x64-windows: 423 ms
Installing 73/77 boost-ptr-container:x64-windows...
Building boost-ptr-container[core]:x64-windows...
-- Using cached boostorg-ptr_container-boost-1.82.0.tar.gz.
-- Cleaning sources at F:/vcpkg/buildtrees/boost-ptr-container/src/ost-1.82.0-559b05f823.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source F:/vcpkg/downloads/boostorg-ptr_container-boost-1.82.0.tar.gz
-- Using source at F:/vcpkg/buildtrees/boost-ptr-container/src/ost-1.82.0-559b05f823.clean
-- Copying headers
-- Copying headers done
-- Installing: F:/vcpkg/packages/boost-ptr-container_x64-windows/share/boost-ptr-container/usage
-- Installing: F:/vcpkg/packages/boost-ptr-container_x64-windows/share/boost-ptr-container/copyright
-- Performing post-build validation
Stored binaries in 1 destinations.
Elapsed time to handle boost-ptr-container:x64-windows: 614 ms
Installing 74/77 boost-units:x64-windows...
Building boost-units[core]:x64-windows...
-- Using cached boostorg-units-boost-1.82.0.tar.gz.
-- Cleaning sources at F:/vcpkg/buildtrees/boost-units/src/ost-1.82.0-a9fdcc40b2.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source F:/vcpkg/downloads/boostorg-units-boost-1.82.0.tar.gz
-- Using source at F:/vcpkg/buildtrees/boost-units/src/ost-1.82.0-a9fdcc40b2.clean
-- Copying headers
-- Copying headers done
-- Installing: F:/vcpkg/packages/boost-units_x64-windows/share/boost-units/usage
-- Installing: F:/vcpkg/packages/boost-units_x64-windows/share/boost-units/copyright
-- Performing post-build validation
Stored binaries in 1 destinations.
Elapsed time to handle boost-units:x64-windows: 1.5 s
Installing 75/77 gmp:x64-windows...
Building gmp[core]:x64-windows...
-- Using cached gmp-6.2.1.tar.xz.
-- Using cached gmp-arm64-asm-fix-5f32dbc41afc.patch.
-- Cleaning sources at F:/vcpkg/buildtrees/gmp/src/v6.2.1-0c723d4b6f.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source F:/vcpkg/downloads/gmp-6.2.1.tar.xz
-- Applying patch asmflags.patch
-- Applying patch cross-tools.patch
-- Applying patch subdirs.patch
-- Applying patch msvc_symbol.patch
-- Applying patch arm64-coff.patch
-- Applying patch F:/vcpkg/downloads/gmp-arm64-asm-fix-5f32dbc41afc.patch
-- Using source at F:/vcpkg/buildtrees/gmp/src/v6.2.1-0c723d4b6f.clean
-- Found external ninja('1.11.0').
-- Getting CMake variables for x64-windows
-- Getting CMake variables for x64-windows
-- Using cached msys-gzip-1.11-1-x86_64.pkg.tar.zst.
-- Using cached msys-bash-5.1.008-1-x86_64.pkg.tar.zst.
-- Using cached msys-autoconf-2.71-3-any.pkg.tar.zst.
-- Using cached msys-diffutils-3.8-2-x86_64.pkg.tar.zst.
-- Using cached msys-binutils-2.37-5-x86_64.pkg.tar.zst.
-- Using cached msys-libtool-2.4.7-3-x86_64.pkg.tar.zst.
-- Using cached msys-file-5.41-2-x86_64.pkg.tar.zst.
-- Using cached msys-zlib-1.2.11-1-x86_64.pkg.tar.xz.
-- Using cached msys-libbz2-1.0.8-3-x86_64.pkg.tar.zst.
-- Using cached msys-coreutils-8.32-2-x86_64.pkg.tar.zst.
-- Downloading https://repo.msys2.org/msys/x86_64/grep-3.0-2-x86_64.pkg.tar.xz;https://www2.futureware.at/~nickoe/msys2-mirror/msys/x86_64/grep-3.0-2-x86_64.pkg.tar.xz;https://mirror.yandex.ru/mirrors/msys2/msys/x86_64/grep-3.0-2-x86_64.pkg.tar.xz;https://mirrors.tuna.tsinghua.edu.cn/msys2/msys/x86_64/grep-3.0-2-x86_64.pkg.tar.xz;https://mirrors.ustc.edu.cn/msys2/msys/x86_64/grep-3.0-2-x86_64.pkg.tar.xz;https://mirror.bit.edu.cn/msys2/msys/x86_64/grep-3.0-2-x86_64.pkg.tar.xz;https://mirror.selfnet.de/msys2/msys/x86_64/grep-3.0-2-x86_64.pkg.tar.xz;https://mirrors.sjtug.sjtu.edu.cn/msys2/msys/x86_64/grep-3.0-2-x86_64.pkg.tar.xz -> msys-grep-3.0-2-x86_64.pkg.tar.xz...
[DEBUG] To include the environment variables in debug output, pass --debug-env
[DEBUG] Trying to load bundleconfig from F:\vcpkg\vcpkg-bundle.json
[DEBUG] Failed to open: F:\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
Downloading https://repo.msys2.org/msys/x86_64/grep-3.0-2-x86_64.pkg.tar.xz
Downloading https://www2.futureware.at/~nickoe/msys2-mirror/msys/x86_64/grep-3.0-2-x86_64.pkg.tar.xz
Downloading https://mirror.yandex.ru/mirrors/msys2/msys/x86_64/grep-3.0-2-x86_64.pkg.tar.xz
warning: Download failed -- retrying after 1000ms
warning: Download failed -- retrying after 2000ms
warning: Download failed -- retrying after 4000ms
Downloading https://mirrors.tuna.tsinghua.edu.cn/msys2/msys/x86_64/grep-3.0-2-x86_64.pkg.tar.xz
warning: Download failed -- retrying after 1000ms
warning: Download failed -- retrying after 2000ms
warning: Download failed -- retrying after 4000ms
Downloading https://mirrors.ustc.edu.cn/msys2/msys/x86_64/grep-3.0-2-x86_64.pkg.tar.xz
warning: Download failed -- retrying after 1000ms
warning: Download failed -- retrying after 2000ms
warning: Download failed -- retrying after 4000ms
Downloading https://mirror.bit.edu.cn/msys2/msys/x86_64/grep-3.0-2-x86_64.pkg.tar.xz
warning: Download failed -- retrying after 1000ms
warning: Download failed -- retrying after 2000ms
warning: Download failed -- retrying after 4000ms
Downloading https://mirror.selfnet.de/msys2/msys/x86_64/grep-3.0-2-x86_64.pkg.tar.xz
Downloading https://mirrors.sjtug.sjtu.edu.cn/msys2/msys/x86_64/grep-3.0-2-x86_64.pkg.tar.xz
warning: Download failed -- retrying after 1000ms
warning: Download failed -- retrying after 2000ms
warning: Download failed -- retrying after 4000ms
error: Failed to download from mirror set
error: https://repo.msys2.org/msys/x86_64/grep-3.0-2-x86_64.pkg.tar.xz: failed: status code 404
error: https://www2.futureware.at/~nickoe/msys2-mirror/msys/x86_64/grep-3.0-2-x86_64.pkg.tar.xz: failed: status code 404
error: https://mirror.yandex.ru/mirrors/msys2/msys/x86_64/grep-3.0-2-x86_64.pkg.tar.xz: WinHttpSendRequest failed with exit code 12002
error: https://mirror.yandex.ru/mirrors/msys2/msys/x86_64/grep-3.0-2-x86_64.pkg.tar.xz: WinHttpSendRequest failed with exit code 12002
error: https://mirror.yandex.ru/mirrors/msys2/msys/x86_64/grep-3.0-2-x86_64.pkg.tar.xz: WinHttpSendRequest failed with exit code 12002
error: https://mirror.yandex.ru/mirrors/msys2/msys/x86_64/grep-3.0-2-x86_64.pkg.tar.xz: WinHttpSendRequest failed with exit code 12002
error: https://mirrors.tuna.tsinghua.edu.cn/msys2/msys/x86_64/grep-3.0-2-x86_64.pkg.tar.xz: WinHttpSendRequest failed with exit code 12002
error: https://mirrors.tuna.tsinghua.edu.cn/msys2/msys/x86_64/grep-3.0-2-x86_64.pkg.tar.xz: WinHttpSendRequest failed with exit code 12002
error: https://mirrors.tuna.tsinghua.edu.cn/msys2/msys/x86_64/grep-3.0-2-x86_64.pkg.tar.xz: WinHttpSendRequest failed with exit code 12002
error: https://mirrors.tuna.tsinghua.edu.cn/msys2/msys/x86_64/grep-3.0-2-x86_64.pkg.tar.xz: WinHttpSendRequest failed with exit code 12002
error: https://mirrors.ustc.edu.cn/msys2/msys/x86_64/grep-3.0-2-x86_64.pkg.tar.xz: WinHttpSendRequest failed with exit code 12002
error: https://mirrors.ustc.edu.cn/msys2/msys/x86_64/grep-3.0-2-x86_64.pkg.tar.xz: WinHttpSendRequest failed with exit code 12002
error: https://mirrors.ustc.edu.cn/msys2/msys/x86_64/grep-3.0-2-x86_64.pkg.tar.xz: WinHttpSendRequest failed with exit code 12002
error: https://mirrors.ustc.edu.cn/msys2/msys/x86_64/grep-3.0-2-x86_64.pkg.tar.xz: WinHttpSendRequest failed with exit code 12002
error: https://mirror.bit.edu.cn/msys2/msys/x86_64/grep-3.0-2-x86_64.pkg.tar.xz: WinHttpSendRequest failed with exit code 12007
error: https://mirror.bit.edu.cn/msys2/msys/x86_64/grep-3.0-2-x86_64.pkg.tar.xz: WinHttpSendRequest failed with exit code 12007
error: https://mirror.bit.edu.cn/msys2/msys/x86_64/grep-3.0-2-x86_64.pkg.tar.xz: WinHttpSendRequest failed with exit code 12007
error: https://mirror.bit.edu.cn/msys2/msys/x86_64/grep-3.0-2-x86_64.pkg.tar.xz: WinHttpSendRequest failed with exit code 12007
error: https://mirror.selfnet.de/msys2/msys/x86_64/grep-3.0-2-x86_64.pkg.tar.xz: failed: status code 404
error: https://mirrors.sjtug.sjtu.edu.cn/msys2/msys/x86_64/grep-3.0-2-x86_64.pkg.tar.xz: WinHttpSendRequest failed with exit code 12002
error: https://mirrors.sjtug.sjtu.edu.cn/msys2/msys/x86_64/grep-3.0-2-x86_64.pkg.tar.xz: WinHttpSendRequest failed with exit code 12002
error: https://mirrors.sjtug.sjtu.edu.cn/msys2/msys/x86_64/grep-3.0-2-x86_64.pkg.tar.xz: WinHttpSendRequest failed with exit code 12002
error: https://mirrors.sjtug.sjtu.edu.cn/msys2/msys/x86_64/grep-3.0-2-x86_64.pkg.tar.xz: WinHttpSendRequest failed with exit code 12002
[DEBUG] D:\a\_work\1\s\src\vcpkg\base\downloads.cpp(961):
[DEBUG] Time in subprocesses: 0us
[DEBUG] Time in parsing JSON: 2us
[DEBUG] Time in JSON reader: 0us
[DEBUG] Time in filesystem: 1616us
[DEBUG] Time in loading ports: 0us
[DEBUG] Exiting after 7.7 min (459908875us)

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:26 (vcpkg_download_distfile)
  scripts/cmake/vcpkg_acquire_msys.cmake:67 (z_vcpkg_acquire_msys_download_package)
  scripts/cmake/vcpkg_acquire_msys.cmake:216 (z_vcpkg_acquire_msys_declare_package)
  scripts/cmake/vcpkg_configure_make.cmake:228 (vcpkg_acquire_msys)
  ports/gmp/portfile.cmake:89 (vcpkg_configure_make)
  scripts/ports.cmake:147 (include)

Additional context

No response

h3rb-ts commented 1 year ago

Attempting to reach directly via Chrome the https with 12002 error code did not succeed.

h3rb-ts commented 1 year ago

Obviously the Russian and Chinese mirrors are not working due to geopolitical reasons. Visiting the initial mirror, msys2.org link to grep 3.0.2, reveals the file has an incorrect name, that does not match 👍 error: https://repo.msys2.org/msys/x86_64/grep-3.0-2-x86_64.pkg.tar.xz: failed: status code 404

[gradle-doc-8.1-2-any.pkg.tar.zst](https://repo.msys2.org/msys/x86_64/gradle-doc-8.1-2-any.pkg.tar.zst)                   20-Apr-2023 21:06     14M
[gradle-doc-8.1-2-any.pkg.tar.zst.sig](https://repo.msys2.org/msys/x86_64/gradle-doc-8.1-2-any.pkg.tar.zst.sig)               22-Apr-2023 12:36     566
[gradle-doc-8.1.1-1-any.pkg.tar.zst](https://repo.msys2.org/msys/x86_64/gradle-doc-8.1.1-1-any.pkg.tar.zst)                 24-Apr-2023 17:48     14M
[gradle-doc-8.1.1-1-any.pkg.tar.zst.sig](https://repo.msys2.org/msys/x86_64/gradle-doc-8.1.1-1-any.pkg.tar.zst.sig)             26-Apr-2023 18:45     566
[grep-1~3.0-3-x86_64.pkg.tar.zst](https://repo.msys2.org/msys/x86_64/grep-1~3.0-3-x86_64.pkg.tar.zst)                    17-Oct-2021 18:51    243K
[grep-1~3.0-3-x86_64.pkg.tar.zst.sig](https://repo.msys2.org/msys/x86_64/grep-1~3.0-3-x86_64.pkg.tar.zst.sig)                17-Oct-2021 19:15     566
[grep-1~3.0-5-x86_64.pkg.tar.zst](https://repo.msys2.org/msys/x86_64/grep-1~3.0-5-x86_64.pkg.tar.zst)                    22-Oct-2022 18:27    244K
[grep-1~3.0-5-x86_64.pkg.tar.zst.sig](https://repo.msys2.org/msys/x86_64/grep-1~3.0-5-x86_64.pkg.tar.zst.sig)                23-Oct-2022 09:51     566
[grep-1~3.0-6-x86_64.pkg.tar.zst](https://repo.msys2.org/msys/x86_64/grep-1~3.0-6-x86_64.pkg.tar.zst)                    15-Nov-2022 17:32    244K
[grep-1~3.0-6-x86_64.pkg.tar.zst.sig](https://repo.msys2.org/msys/x86_64/grep-1~3.0-6-x86_64.pkg.tar.zst.sig)                17-Nov-2022 07:59     566
[grep-3.6-1-x86_64.pkg.tar.zst](https://repo.msys2.org/msys/x86_64/grep-3.6-1-x86_64.pkg.tar.zst)                      17-Jul-2021 16:01    237K
[grep-3.6-1-x86_64.pkg.tar.zst.sig](https://repo.msys2.org/msys/x86_64/grep-3.6-1-x86_64.pkg.tar.zst.sig)                  17-Jul-2021 16:03     566
[grml-zsh-config-0.17.4-1-any.pkg.tar.zst](https://repo.msys2.org/msys/x86_64/grml-zsh-config-0.17.4-1-any.pkg.tar.zst)           14-Jul-2020 10:18     81K
[grml-zsh-config-0.17.4-1-any.pkg.tar.zst.sig](https://repo.msys2.org/msys/x86_64/grml-zsh-config-0.17.4-1-any.pkg.tar.zst.sig)       14-Jul-2020 10:18     119
[grml-zsh-config-0.19.0-1-any.pkg.tar.zst](https://repo.msys2.org/msys/x86_64/grml-zsh-config-0.19.0-1-any.pkg.tar.zst)           03-Sep-2021 17:42     44K
[grml-zsh-config-0.19.0-1-any.pkg.tar.zst.sig](https://repo.msys2.org/msys/x86_64/grml-zsh-config-0.19.0-1-any.pkg.tar.zst.sig)       09-Sep-2021 17:32     566
dg0yt commented 1 year ago

error: https://repo.msys2.org/msys/x86_64/grep-3.0-2-x86_64.pkg.tar.xz: failed: status code 404

Nothing geopolitical. Cf. https://github.com/microsoft/vcpkg/pull/29067.

h3rb-ts commented 1 year ago

File has 1~ inserted into it on the fileservice. The geopolitics are the unreachable secondary mirrors.

dg0yt commented 1 year ago

File has 1~ inserted into it on the fileservice.

No, it is really a different build/package.

The geopolitics are the unreachable secondary mirrors.

Mirrors change, so the list must be updated, too. Cf. https://packages.msys2.org/mirrors for insight into current options.

FrankXie05 commented 1 year ago

@h3rb-ts Sorry, you can temporarily solve this problem by using a proxy server.

dg0yt commented 1 year ago

@h3rb-ts Sorry, you can temporarily solve this problem by using a proxy server.

No. How can a proxy help with removed packages?

FrankXie05 commented 1 year ago
error: Failed to download from mirror set
error: https://repo.msys2.org/msys/x86_64/grep-3.0-2-x86_64.pkg.tar.xz: failed: status code 404|

Access the mirror through a proxy.

dg0yt commented 1 year ago

Proxies don't fix 404. repo.msys2.org isn't just a mirror, but the original server. The package was removed because it was updated a long time ago. You will get more issue reports once people no longer get the package from local asset cache. That's why I added this issue to the series of embarassing incidents in #29067.

dg0yt commented 1 year ago

29067 was merged, so this should be fixed.

akaplanyan commented 1 year ago

I had this issue because the VS came with the preinstalled vcpkg that had a vcpkg_acquire_msys file with links to the deleted files. I uninstalled the VS and installed it once again with the vcpkg being unmarked (it comes as additional options in the right side panel). This resolved the issue.

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