microsoft / vcpkg

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

[ffmpeg] build failure #34659

Open moemoequte opened 10 months ago

moemoequte commented 10 months ago

Operating system

Windows

Compiler

MSVC

Steps to reproduce the behavior

vcpkg install ffmpeg

Failure logs

PS C:\vcpkg> vcpkg install ffmpeg warning: Starting with the September 2023 release, the default triplet for vcpkg libraries will change from x86-windows to the detected host triplet (x64-windows). To resolve this message, add --triplet x86-windows to keep the same behavior. Computing installation plan... The following packages will be built and installed: ffmpeg[avcodec,avdevice,avfilter,avformat,core,swresample,swscale]:x86-windows -> 5.1.2#6 Detecting compiler hash for triplet x86-windows... Restored 0 package(s) from C:\Users\23761\AppData\Local\vcpkg\archives in 89.1 us. Use --debug to see more details. Installing 1/1 ffmpeg:x86-windows... Building ffmpeg[avcodec,avdevice,avfilter,avformat,core,swresample,swscale]:x86-windows... -- Using cached ffmpeg-ffmpeg-n5.1.2.tar.gz. -- Cleaning sources at C:/vcpkg/buildtrees/ffmpeg/src/n5.1.2-f31542651f.clean. Use --editable to skip cleaning for the packages you specify. -- Extracting source C:/vcpkg/downloads/ffmpeg-ffmpeg-n5.1.2.tar.gz -- Applying patch 0001-create-lib-libraries.patch -- Applying patch 0002-fix-msvc-link.patch -- Applying patch 0003-fix-windowsinclude.patch -- Applying patch 0004-fix-debug-build.patch -- Applying patch 0005-fix-nasm.patch -- Applying patch 0006-fix-StaticFeatures.patch -- Applying patch 0007-fix-lib-naming.patch -- Applying patch 0009-Fix-fdk-detection.patch -- Applying patch 0011-Fix-x265-detection.patch -- Applying patch 0012-Fix-ssl-110-detection.patch -- Applying patch 0013-define-WINVER.patch -- Applying patch 0015-Fix-xml2-detection.patch -- Applying patch 0020-fix-aarch64-libswscale.patch -- Applying patch 0022-fix-iconv.patch -- Using source at C:/vcpkg/buildtrees/ffmpeg/src/n5.1.2-f31542651f.clean -- 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-diffutils-3.8-2-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 C:\vcpkg\vcpkg-bundle.json [DEBUG] Failed to open: C:\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 Downloading https://mirrors.tuna.tsinghua.edu.cn/msys2/msys/x86_64/grep-3.0-2-x86_64.pkg.tar.xz Downloading https://mirrors.ustc.edu.cn/msys2/msys/x86_64/grep-3.0-2-x86_64.pkg.tar.xz 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 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: failed: status code 404 error: https://mirrors.tuna.tsinghua.edu.cn/msys2/msys/x86_64/grep-3.0-2-x86_64.pkg.tar.xz: failed: status code 404 error: https://mirrors.ustc.edu.cn/msys2/msys/x86_64/grep-3.0-2-x86_64.pkg.tar.xz: failed: status code 404 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: failed: status code 404 [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: 1638us [DEBUG] Time in loading ports: 0us [DEBUG] Exiting after 12 s (11844177us)

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) ports/ffmpeg/portfile.cmake:48 (vcpkg_acquire_msys) scripts/ports.cmake:147 (include)

error: building ffmpeg:x86-windows failed with: BUILD_FAILED Please ensure you're using the latest port files with git pull and vcpkg update. Then check for known issues at: https://github.com/microsoft/vcpkg/issues?q=is%3Aissue+is%3Aopen+in%3Atitle+ffmpeg You can submit a new issue at: https://github.com/microsoft/vcpkg/issues/new?title=[ffmpeg]+Build+error&body=Copy+issue+body+from+C%3A%2Fvcpkg%2Finstalled%2Fvcpkg%2Fissue_body.md

Additional context

tried directly download the link, but get 404 not found

github-actions[bot] commented 10 months ago

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.

moemoequte commented 10 months ago

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.

I have update my vcpkg, but issue still occurs, and download link reply 404 not found

ChrisKolan commented 10 months ago

I can confirm that updating vcpkg with git pull is not resolving the issue.

dg0yt commented 10 months ago

Make sure you are not using an old fork or tag.

OlivierArgentieri commented 9 months ago

Hi !

I think i got the same issue on OCIO when trying to build OpenRV

As you can see, i got errors on the same domain as this issue image

dg0yt commented 9 months ago

@OlivierArgentieri Again, outdated vcpkg scripts. In this case hard-coded in OpenRV's vcpkg integration via ExternalProject. They could clone vcpkg master, and define the desired baseline in the manifest, instead of cloning the desired baseline version.

OlivierArgentieri commented 9 months ago

@dg0yt Thank you for your time, i will investigate in this way 👍

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