Closed zzl221000 closed 4 months ago
I am unable to reproduce it on my freshly-created Windows 10 VM. ffmpeg
builds without errors for me.
I am unable to reproduce it on my freshly-created Windows 10 VM.
ffmpeg
builds without errors for me.
cl.exe @C:/Users/75014/scoop/apps/vcpkg/current/buildtrees/ffmpeg/x64-windows-rel/cflags.rsp -nologo -DHAVE_UNISTD_H=0 -c -Fo./ffconf.cU0VjuSq/test.o ./ffconf.cU0VjuSq/test.c
test.c
link.exe @C:/Users/75014/scoop/apps/vcpkg/current/buildtrees/ffmpeg/x64-windows-rel/ldflags.rsp -libpath:C:/Users/75014/scoop/apps/vcpkg/current/installed/x64-windows/lib -o ./ffconf.cU0VjuSq/test.exe ./ffconf.cU0VjuSq/test.o
link: unknown option -- l
Try 'link --help' for more information.
C compiler test failed.
@AregevDev
The link
report mentions an unknown option l
, which leaves me quite puzzled. I've checked the ldflags.rsp
and build-x64-windows-rel-config.log
files but found no relevant parameters. What should be my approach to troubleshooting this issue?
@JonLiu1993 @AregevDev
If git is installed locally and git is in the path this will cause this issue
link.exe
in git will instant of link.exe
in msvc
${GIT_ROOT}/usr/bin/link.exe
Do you have msys2 installed? Did you install git from Git for Windows?
Do you have msys2 installed? Did you install git from Git for Windows?
I don't have msys2 installed.
I installed git using scoop
scoop install git
The current ffmpeg version of vcpkg is 7.0. Obviously, the vcpkg you are using is not the latest version. I suggest you delete your vcpkg and re-run the command:
1. git clone https://github.com/microsoft/vcpkg
2. cd vcpkg
3. .\bootstrap-vcpkg.bat
4. .\vcpkg install vcpkg install ffmpeg[avcodec,avdevice,avfilter,avformat,core,swresample,swscale]:x64-windows
Please try again.
@AregevDev same issue
Package: ffmpeg[avcodec,avdevice,avfilter,avformat,core,swresample,swscale]:x64-windows@7.0
Host Environment
To Reproduce
vcpkg install ffmpeg[avcodec,avdevice,avfilter,avformat,core,swresample,swscale]:x64-windows
Failure logs
-- Downloading https://github.com/ffmpeg/ffmpeg/archive/n7.0.tar.gz -> ffmpeg-ffmpeg-n7.0.tar.gz...
-- Extracting source D:/test/vcpkg/downloads/ffmpeg-ffmpeg-n7.0.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-dependencies.patch
-- Applying patch 0005-fix-nasm.patch
-- Applying patch 0007-fix-lib-naming.patch
-- Applying patch 0012-Fix-ssl-110-detection.patch
-- Applying patch 0013-define-WINVER.patch
-- Applying patch 0020-fix-aarch64-libswscale.patch
-- Applying patch 0024-fix-osx-host-c11.patch
-- Applying patch 0040-ffmpeg-add-av_stream_get_first_dts-for-chromium.patch
-- Applying patch 0041-add-const-for-opengl-definition.patch
-- Applying patch 0042-fix-arm64-linux.patch
-- Using source at D:/test/vcpkg/buildtrees/ffmpeg/src/n7.0-0112236629.clean
-- Downloading https://www.nasm.us/pub/nasm/releasebuilds/2.16.01/win64/nasm-2.16.01-win64.zip;https://gstreamer.freedesktop.org/src/mirror/nasm-2.16.01-win64.zip;https://vcpkg.github.io/assets/nasm/nasm-2.16.01-win64.zip -> nasm-2.16.01-win64.zip...
-- Downloading https://mirror.msys2.org/msys/x86_64/automake1.16-1.16.5-1-any.pkg.tar.zst;https://repo.msys2.org/msys/x86_64/automake1.16-1.16.5-1-any.pkg.tar.zst;https://mirror.yandex.ru/mirrors/msys2/msys/x86_64/automake1.16-1.16.5-1-any.pkg.tar.zst;https://mirrors.tuna.tsinghua.edu.cn/msys2/msys/x86_64/automake1.16-1.16.5-1-any.pkg.tar.zst;https://mirrors.ustc.edu.cn/msys2/msys/x86_64/automake1.16-1.16.5-1-any.pkg.tar.zst;https://mirror.selfnet.de/msys2/msys/x86_64/automake1.16-1.16.5-1-any.pkg.tar.zst -> msys2-automake1.16-1.16.5-1-any.pkg.tar.zst...
-- Downloading https://mirror.msys2.org/msys/x86_64/bash-5.2.026-1-x86_64.pkg.tar.zst;https://repo.msys2.org/msys/x86_64/bash-5.2.026-1-x86_64.pkg.tar.zst;https://mirror.yandex.ru/mirrors/msys2/msys/x86_64/bash-5.2.026-1-x86_64.pkg.tar.zst;https://mirrors.tuna.tsinghua.edu.cn/msys2/msys/x86_64/bash-5.2.026-1-x86_64.pkg.tar.zst;https://mirrors.ustc.edu.cn/msys2/msys/x86_64/bash-5.2.026-1-x86_64.pkg.tar.zst;https://mirror.selfnet.de/msys2/msys/x86_64/bash-5.2.026-1-x86_64.pkg.tar.zst -> msys2-bash-5.2.026-1-x86_64.pkg.tar.zst...
-- Downloading https://mirror.msys2.org/msys/x86_64/coreutils-8.32-5-x86_64.pkg.tar.zst;https://repo.msys2.org/msys/x86_64/coreutils-8.32-5-x86_64.pkg.tar.zst;https://mirror.yandex.ru/mirrors/msys2/msys/x86_64/coreutils-8.32-5-x86_64.pkg.tar.zst;https://mirrors.tuna.tsinghua.edu.cn/msys2/msys/x86_64/coreutils-8.32-5-x86_64.pkg.tar.zst;https://mirrors.ustc.edu.cn/msys2/msys/x86_64/coreutils-8.32-5-x86_64.pkg.tar.zst;https://mirror.selfnet.de/msys2/msys/x86_64/coreutils-8.32-5-x86_64.pkg.tar.zst -> msys2-coreutils-8.32-5-x86_64.pkg.tar.zst...
-- Downloading https://mirror.msys2.org/msys/x86_64/file-5.45-1-x86_64.pkg.tar.zst;https://repo.msys2.org/msys/x86_64/file-5.45-1-x86_64.pkg.tar.zst;https://mirror.yandex.ru/mirrors/msys2/msys/x86_64/file-5.45-1-x86_64.pkg.tar.zst;https://mirrors.tuna.tsinghua.edu.cn/msys2/msys/x86_64/file-5.45-1-x86_64.pkg.tar.zst;https://mirrors.ustc.edu.cn/msys2/msys/x86_64/file-5.45-1-x86_64.pkg.tar.zst;https://mirror.selfnet.de/msys2/msys/x86_64/file-5.45-1-x86_64.pkg.tar.zst -> msys2-file-5.45-1-x86_64.pkg.tar.zst...
-- Downloading https://mirror.msys2.org/msys/x86_64/gawk-5.3.0-1-x86_64.pkg.tar.zst;https://repo.msys2.org/msys/x86_64/gawk-5.3.0-1-x86_64.pkg.tar.zst;https://mirror.yandex.ru/mirrors/msys2/msys/x86_64/gawk-5.3.0-1-x86_64.pkg.tar.zst;https://mirrors.tuna.tsinghua.edu.cn/msys2/msys/x86_64/gawk-5.3.0-1-x86_64.pkg.tar.zst;https://mirrors.ustc.edu.cn/msys2/msys/x86_64/gawk-5.3.0-1-x86_64.pkg.tar.zst;https://mirror.selfnet.de/msys2/msys/x86_64/gawk-5.3.0-1-x86_64.pkg.tar.zst -> msys2-gawk-5.3.0-1-x86_64.pkg.tar.zst...
-- Downloading https://mirror.msys2.org/msys/x86_64/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;https://mirror.yandex.ru/mirrors/msys2/msys/x86_64/grep-1~3.0-6-x86_64.pkg.tar.zst;https://mirrors.tuna.tsinghua.edu.cn/msys2/msys/x86_64/grep-1~3.0-6-x86_64.pkg.tar.zst;https://mirrors.ustc.edu.cn/msys2/msys/x86_64/grep-1~3.0-6-x86_64.pkg.tar.zst;https://mirror.selfnet.de/msys2/msys/x86_64/grep-1~3.0-6-x86_64.pkg.tar.zst -> msys2-grep-1~3.0-6-x86_64.pkg.tar.zst...
-- Downloading https://mirror.msys2.org/msys/x86_64/gzip-1.13-1-x86_64.pkg.tar.zst;https://repo.msys2.org/msys/x86_64/gzip-1.13-1-x86_64.pkg.tar.zst;https://mirror.yandex.ru/mirrors/msys2/msys/x86_64/gzip-1.13-1-x86_64.pkg.tar.zst;https://mirrors.tuna.tsinghua.edu.cn/msys2/msys/x86_64/gzip-1.13-1-x86_64.pkg.tar.zst;https://mirrors.ustc.edu.cn/msys2/msys/x86_64/gzip-1.13-1-x86_64.pkg.tar.zst;https://mirror.selfnet.de/msys2/msys/x86_64/gzip-1.13-1-x86_64.pkg.tar.zst -> msys2-gzip-1.13-1-x86_64.pkg.tar.zst...
-- Downloading https://mirror.msys2.org/msys/x86_64/diffutils-3.10-1-x86_64.pkg.tar.zst;https://repo.msys2.org/msys/x86_64/diffutils-3.10-1-x86_64.pkg.tar.zst;https://mirror.yandex.ru/mirrors/msys2/msys/x86_64/diffutils-3.10-1-x86_64.pkg.tar.zst;https://mirrors.tuna.tsinghua.edu.cn/msys2/msys/x86_64/diffutils-3.10-1-x86_64.pkg.tar.zst;https://mirrors.ustc.edu.cn/msys2/msys/x86_64/diffutils-3.10-1-x86_64.pkg.tar.zst;https://mirror.selfnet.de/msys2/msys/x86_64/diffutils-3.10-1-x86_64.pkg.tar.zst -> msys2-diffutils-3.10-1-x86_64.pkg.tar.zst...
-- Downloading https://mirror.msys2.org/msys/x86_64/make-4.4.1-2-x86_64.pkg.tar.zst;https://repo.msys2.org/msys/x86_64/make-4.4.1-2-x86_64.pkg.tar.zst;https://mirror.yandex.ru/mirrors/msys2/msys/x86_64/make-4.4.1-2-x86_64.pkg.tar.zst;https://mirrors.tuna.tsinghua.edu.cn/msys2/msys/x86_64/make-4.4.1-2-x86_64.pkg.tar.zst;https://mirrors.ustc.edu.cn/msys2/msys/x86_64/make-4.4.1-2-x86_64.pkg.tar.zst;https://mirror.selfnet.de/msys2/msys/x86_64/make-4.4.1-2-x86_64.pkg.tar.zst -> msys2-make-4.4.1-2-x86_64.pkg.tar.zst...
-- Downloading https://mirror.msys2.org/msys/x86_64/pkgconf-2.1.1-1-x86_64.pkg.tar.zst;https://repo.msys2.org/msys/x86_64/pkgconf-2.1.1-1-x86_64.pkg.tar.zst;https://mirror.yandex.ru/mirrors/msys2/msys/x86_64/pkgconf-2.1.1-1-x86_64.pkg.tar.zst;https://mirrors.tuna.tsinghua.edu.cn/msys2/msys/x86_64/pkgconf-2.1.1-1-x86_64.pkg.tar.zst;https://mirrors.ustc.edu.cn/msys2/msys/x86_64/pkgconf-2.1.1-1-x86_64.pkg.tar.zst;https://mirror.selfnet.de/msys2/msys/x86_64/pkgconf-2.1.1-1-x86_64.pkg.tar.zst -> msys2-pkgconf-2.1.1-1-x86_64.pkg.tar.zst...
-- Downloading https://mirror.msys2.org/msys/x86_64/sed-4.9-1-x86_64.pkg.tar.zst;https://repo.msys2.org/msys/x86_64/sed-4.9-1-x86_64.pkg.tar.zst;https://mirror.yandex.ru/mirrors/msys2/msys/x86_64/sed-4.9-1-x86_64.pkg.tar.zst;https://mirrors.tuna.tsinghua.edu.cn/msys2/msys/x86_64/sed-4.9-1-x86_64.pkg.tar.zst;https://mirrors.ustc.edu.cn/msys2/msys/x86_64/sed-4.9-1-x86_64.pkg.tar.zst;https://mirror.selfnet.de/msys2/msys/x86_64/sed-4.9-1-x86_64.pkg.tar.zst -> msys2-sed-4.9-1-x86_64.pkg.tar.zst...
-- Downloading https://mirror.msys2.org/msys/x86_64/msys2-runtime-3.5.3-3-x86_64.pkg.tar.zst;https://repo.msys2.org/msys/x86_64/msys2-runtime-3.5.3-3-x86_64.pkg.tar.zst;https://mirror.yandex.ru/mirrors/msys2/msys/x86_64/msys2-runtime-3.5.3-3-x86_64.pkg.tar.zst;https://mirrors.tuna.tsinghua.edu.cn/msys2/msys/x86_64/msys2-runtime-3.5.3-3-x86_64.pkg.tar.zst;https://mirrors.ustc.edu.cn/msys2/msys/x86_64/msys2-runtime-3.5.3-3-x86_64.pkg.tar.zst;https://mirror.selfnet.de/msys2/msys/x86_64/msys2-runtime-3.5.3-3-x86_64.pkg.tar.zst -> msys2-msys2-runtime-3.5.3-3-x86_64.pkg.tar.zst...
-- Downloading https://mirror.msys2.org/msys/x86_64/perl-5.38.2-2-x86_64.pkg.tar.zst;https://repo.msys2.org/msys/x86_64/perl-5.38.2-2-x86_64.pkg.tar.zst;https://mirror.yandex.ru/mirrors/msys2/msys/x86_64/perl-5.38.2-2-x86_64.pkg.tar.zst;https://mirrors.tuna.tsinghua.edu.cn/msys2/msys/x86_64/perl-5.38.2-2-x86_64.pkg.tar.zst;https://mirrors.ustc.edu.cn/msys2/msys/x86_64/perl-5.38.2-2-x86_64.pkg.tar.zst;https://mirror.selfnet.de/msys2/msys/x86_64/perl-5.38.2-2-x86_64.pkg.tar.zst -> msys2-perl-5.38.2-2-x86_64.pkg.tar.zst...
-- Downloading https://mirror.msys2.org/msys/x86_64/libiconv-1.17-1-x86_64.pkg.tar.zst;https://repo.msys2.org/msys/x86_64/libiconv-1.17-1-x86_64.pkg.tar.zst;https://mirror.yandex.ru/mirrors/msys2/msys/x86_64/libiconv-1.17-1-x86_64.pkg.tar.zst;https://mirrors.tuna.tsinghua.edu.cn/msys2/msys/x86_64/libiconv-1.17-1-x86_64.pkg.tar.zst;https://mirrors.ustc.edu.cn/msys2/msys/x86_64/libiconv-1.17-1-x86_64.pkg.tar.zst;https://mirror.selfnet.de/msys2/msys/x86_64/libiconv-1.17-1-x86_64.pkg.tar.zst -> msys2-libiconv-1.17-1-x86_64.pkg.tar.zst...
-- Downloading https://mirror.msys2.org/msys/x86_64/libintl-0.22.4-1-x86_64.pkg.tar.zst;https://repo.msys2.org/msys/x86_64/libintl-0.22.4-1-x86_64.pkg.tar.zst;https://mirror.yandex.ru/mirrors/msys2/msys/x86_64/libintl-0.22.4-1-x86_64.pkg.tar.zst;https://mirrors.tuna.tsinghua.edu.cn/msys2/msys/x86_64/libintl-0.22.4-1-x86_64.pkg.tar.zst;https://mirrors.ustc.edu.cn/msys2/msys/x86_64/libintl-0.22.4-1-x86_64.pkg.tar.zst;https://mirror.selfnet.de/msys2/msys/x86_64/libintl-0.22.4-1-x86_64.pkg.tar.zst -> msys2-libintl-0.22.4-1-x86_64.pkg.tar.zst...
-- Downloading https://mirror.msys2.org/msys/x86_64/gmp-6.3.0-1-x86_64.pkg.tar.zst;https://repo.msys2.org/msys/x86_64/gmp-6.3.0-1-x86_64.pkg.tar.zst;https://mirror.yandex.ru/mirrors/msys2/msys/x86_64/gmp-6.3.0-1-x86_64.pkg.tar.zst;https://mirrors.tuna.tsinghua.edu.cn/msys2/msys/x86_64/gmp-6.3.0-1-x86_64.pkg.tar.zst;https://mirrors.ustc.edu.cn/msys2/msys/x86_64/gmp-6.3.0-1-x86_64.pkg.tar.zst;https://mirror.selfnet.de/msys2/msys/x86_64/gmp-6.3.0-1-x86_64.pkg.tar.zst -> msys2-gmp-6.3.0-1-x86_64.pkg.tar.zst...
-- Downloading https://mirror.msys2.org/msys/x86_64/gcc-libs-13.3.0-1-x86_64.pkg.tar.zst;https://repo.msys2.org/msys/x86_64/gcc-libs-13.3.0-1-x86_64.pkg.tar.zst;https://mirror.yandex.ru/mirrors/msys2/msys/x86_64/gcc-libs-13.3.0-1-x86_64.pkg.tar.zst;https://mirrors.tuna.tsinghua.edu.cn/msys2/msys/x86_64/gcc-libs-13.3.0-1-x86_64.pkg.tar.zst;https://mirrors.ustc.edu.cn/msys2/msys/x86_64/gcc-libs-13.3.0-1-x86_64.pkg.tar.zst;https://mirror.selfnet.de/msys2/msys/x86_64/gcc-libs-13.3.0-1-x86_64.pkg.tar.zst -> msys2-gcc-libs-13.3.0-1-x86_64.pkg.tar.zst...
-- Downloading https://mirror.msys2.org/msys/x86_64/libbz2-1.0.8-4-x86_64.pkg.tar.zst;https://repo.msys2.org/msys/x86_64/libbz2-1.0.8-4-x86_64.pkg.tar.zst;https://mirror.yandex.ru/mirrors/msys2/msys/x86_64/libbz2-1.0.8-4-x86_64.pkg.tar.zst;https://mirrors.tuna.tsinghua.edu.cn/msys2/msys/x86_64/libbz2-1.0.8-4-x86_64.pkg.tar.zst;https://mirrors.ustc.edu.cn/msys2/msys/x86_64/libbz2-1.0.8-4-x86_64.pkg.tar.zst;https://mirror.selfnet.de/msys2/msys/x86_64/libbz2-1.0.8-4-x86_64.pkg.tar.zst -> msys2-libbz2-1.0.8-4-x86_64.pkg.tar.zst...
-- Downloading https://mirror.msys2.org/msys/x86_64/liblzma-5.6.2-1-x86_64.pkg.tar.zst;https://repo.msys2.org/msys/x86_64/liblzma-5.6.2-1-x86_64.pkg.tar.zst;https://mirror.yandex.ru/mirrors/msys2/msys/x86_64/liblzma-5.6.2-1-x86_64.pkg.tar.zst;https://mirrors.tuna.tsinghua.edu.cn/msys2/msys/x86_64/liblzma-5.6.2-1-x86_64.pkg.tar.zst;https://mirrors.ustc.edu.cn/msys2/msys/x86_64/liblzma-5.6.2-1-x86_64.pkg.tar.zst;https://mirror.selfnet.de/msys2/msys/x86_64/liblzma-5.6.2-1-x86_64.pkg.tar.zst -> msys2-liblzma-5.6.2-1-x86_64.pkg.tar.zst...
-- Downloading https://mirror.msys2.org/msys/x86_64/libzstd-1.5.6-1-x86_64.pkg.tar.zst;https://repo.msys2.org/msys/x86_64/libzstd-1.5.6-1-x86_64.pkg.tar.zst;https://mirror.yandex.ru/mirrors/msys2/msys/x86_64/libzstd-1.5.6-1-x86_64.pkg.tar.zst;https://mirrors.tuna.tsinghua.edu.cn/msys2/msys/x86_64/libzstd-1.5.6-1-x86_64.pkg.tar.zst;https://mirrors.ustc.edu.cn/msys2/msys/x86_64/libzstd-1.5.6-1-x86_64.pkg.tar.zst;https://mirror.selfnet.de/msys2/msys/x86_64/libzstd-1.5.6-1-x86_64.pkg.tar.zst -> msys2-libzstd-1.5.6-1-x86_64.pkg.tar.zst...
-- Downloading https://mirror.msys2.org/msys/x86_64/zlib-1.3.1-1-x86_64.pkg.tar.zst;https://repo.msys2.org/msys/x86_64/zlib-1.3.1-1-x86_64.pkg.tar.zst;https://mirror.yandex.ru/mirrors/msys2/msys/x86_64/zlib-1.3.1-1-x86_64.pkg.tar.zst;https://mirrors.tuna.tsinghua.edu.cn/msys2/msys/x86_64/zlib-1.3.1-1-x86_64.pkg.tar.zst;https://mirrors.ustc.edu.cn/msys2/msys/x86_64/zlib-1.3.1-1-x86_64.pkg.tar.zst;https://mirror.selfnet.de/msys2/msys/x86_64/zlib-1.3.1-1-x86_64.pkg.tar.zst -> msys2-zlib-1.3.1-1-x86_64.pkg.tar.zst...
-- Downloading https://mirror.msys2.org/msys/x86_64/libreadline-8.2.010-1-x86_64.pkg.tar.zst;https://repo.msys2.org/msys/x86_64/libreadline-8.2.010-1-x86_64.pkg.tar.zst;https://mirror.yandex.ru/mirrors/msys2/msys/x86_64/libreadline-8.2.010-1-x86_64.pkg.tar.zst;https://mirrors.tuna.tsinghua.edu.cn/msys2/msys/x86_64/libreadline-8.2.010-1-x86_64.pkg.tar.zst;https://mirrors.ustc.edu.cn/msys2/msys/x86_64/libreadline-8.2.010-1-x86_64.pkg.tar.zst;https://mirror.selfnet.de/msys2/msys/x86_64/libreadline-8.2.010-1-x86_64.pkg.tar.zst -> msys2-libreadline-8.2.010-1-x86_64.pkg.tar.zst...
-- Downloading https://mirror.msys2.org/msys/x86_64/mpfr-4.2.1-1-x86_64.pkg.tar.zst;https://repo.msys2.org/msys/x86_64/mpfr-4.2.1-1-x86_64.pkg.tar.zst;https://mirror.yandex.ru/mirrors/msys2/msys/x86_64/mpfr-4.2.1-1-x86_64.pkg.tar.zst;https://mirrors.tuna.tsinghua.edu.cn/msys2/msys/x86_64/mpfr-4.2.1-1-x86_64.pkg.tar.zst;https://mirrors.ustc.edu.cn/msys2/msys/x86_64/mpfr-4.2.1-1-x86_64.pkg.tar.zst;https://mirror.selfnet.de/msys2/msys/x86_64/mpfr-4.2.1-1-x86_64.pkg.tar.zst -> msys2-mpfr-4.2.1-1-x86_64.pkg.tar.zst...
-- Downloading https://mirror.msys2.org/msys/x86_64/libpcre-8.45-4-x86_64.pkg.tar.zst;https://repo.msys2.org/msys/x86_64/libpcre-8.45-4-x86_64.pkg.tar.zst;https://mirror.yandex.ru/mirrors/msys2/msys/x86_64/libpcre-8.45-4-x86_64.pkg.tar.zst;https://mirrors.tuna.tsinghua.edu.cn/msys2/msys/x86_64/libpcre-8.45-4-x86_64.pkg.tar.zst;https://mirrors.ustc.edu.cn/msys2/msys/x86_64/libpcre-8.45-4-x86_64.pkg.tar.zst;https://mirror.selfnet.de/msys2/msys/x86_64/libpcre-8.45-4-x86_64.pkg.tar.zst -> msys2-libpcre-8.45-4-x86_64.pkg.tar.zst...
-- Downloading https://mirror.msys2.org/msys/x86_64/libxcrypt-4.4.36-1-x86_64.pkg.tar.zst;https://repo.msys2.org/msys/x86_64/libxcrypt-4.4.36-1-x86_64.pkg.tar.zst;https://mirror.yandex.ru/mirrors/msys2/msys/x86_64/libxcrypt-4.4.36-1-x86_64.pkg.tar.zst;https://mirrors.tuna.tsinghua.edu.cn/msys2/msys/x86_64/libxcrypt-4.4.36-1-x86_64.pkg.tar.zst;https://mirrors.ustc.edu.cn/msys2/msys/x86_64/libxcrypt-4.4.36-1-x86_64.pkg.tar.zst;https://mirror.selfnet.de/msys2/msys/x86_64/libxcrypt-4.4.36-1-x86_64.pkg.tar.zst -> msys2-libxcrypt-4.4.36-1-x86_64.pkg.tar.zst...
-- Downloading https://mirror.msys2.org/msys/x86_64/ncurses-6.5-1-x86_64.pkg.tar.zst;https://repo.msys2.org/msys/x86_64/ncurses-6.5-1-x86_64.pkg.tar.zst;https://mirror.yandex.ru/mirrors/msys2/msys/x86_64/ncurses-6.5-1-x86_64.pkg.tar.zst;https://mirrors.tuna.tsinghua.edu.cn/msys2/msys/x86_64/ncurses-6.5-1-x86_64.pkg.tar.zst;https://mirrors.ustc.edu.cn/msys2/msys/x86_64/ncurses-6.5-1-x86_64.pkg.tar.zst;https://mirror.selfnet.de/msys2/msys/x86_64/ncurses-6.5-1-x86_64.pkg.tar.zst -> msys2-ncurses-6.5-1-x86_64.pkg.tar.zst...
-- Applying patch D:/test/vcpkg/scripts/cmake/compile_wrapper_consider_clang-cl.patch
-- Using msys root at D:/test/vcpkg/downloads/tools/msys2/0f89fce739d5829e
-- Found external ninja('1.11.0').
-- Getting CMake variables for x64-windows
-- Downloading https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-pkgconf-1~2.2.0-1-any.pkg.tar.zst;https://repo.msys2.org/mingw/mingw64/mingw-w64-x86_64-pkgconf-1~2.2.0-1-any.pkg.tar.zst;https://mirror.yandex.ru/mirrors/msys2/mingw/mingw64/mingw-w64-x86_64-pkgconf-1~2.2.0-1-any.pkg.tar.zst;https://mirrors.tuna.tsinghua.edu.cn/msys2/mingw/mingw64/mingw-w64-x86_64-pkgconf-1~2.2.0-1-any.pkg.tar.zst;https://mirrors.ustc.edu.cn/msys2/mingw/mingw64/mingw-w64-x86_64-pkgconf-1~2.2.0-1-any.pkg.tar.zst;https://mirror.selfnet.de/msys2/mingw/mingw64/mingw-w64-x86_64-pkgconf-1~2.2.0-1-any.pkg.tar.zst -> msys2-mingw-w64-x86_64-pkgconf-1~2.2.0-1-any.pkg.tar.zst...
-- Using cached msys2-msys2-runtime-3.5.3-3-x86_64.pkg.tar.zst.
-- Using msys root at D:/test/vcpkg/downloads/tools/msys2/1e74ca60daa10104
-- Building Options: --toolchain=msvc --enable-pic --disable-doc --enable-debug --enable-runtime-cpudetect --disable-autodetect --pkg-config=D:/test/vcpkg/installed/x64-windows/tools/pkgconf/pkgconf.exe --target-os=win32 --enable-w32threads --enable-d3d11va --enable-d3d12va --enable-dxva2 --enable-mediafoundation --disable-inline-asm --cc=cl.exe --host_cc=cl.exe --cxx=cl.exe --windres=rc.exe --ld=link.exe --ar='ar-lib lib.exe' --ranlib=: --disable-ffmpeg --disable-ffplay --disable-ffprobe --enable-avcodec --enable-avdevice --enable-avformat --enable-avfilter --disable-postproc --enable-swresample --enable-swscale --disable-alsa --disable-amf --disable-libaom --disable-libass --disable-avisynth --disable-bzlib --disable-libdav1d --disable-libfdk-aac --disable-libfontconfig --disable-libfreetype --disable-libfribidi --disable-iconv --disable-libilbc --disable-lzma --disable-libmp3lame --disable-libmodplug --disable-cuda --disable-nvenc --disable-nvdec --disable-cuvid --disable-ffnvcodec --disable-opencl --disable-opengl --disable-libopenh264 --disable-libopenjpeg --disable-libopenmpt --disable-openssl --enable-schannel --disable-libopus --disable-sdl2 --disable-libsnappy --disable-libsoxr --disable-libspeex --disable-libssh --disable-libtensorflow --disable-libtesseract --disable-libtheora --disable-libvorbis --disable-libvpx --disable-libwebp --disable-libx264 --disable-libx265 --disable-libxml2 --disable-zlib --disable-libsrt --disable-libmfx --enable-cross-compile --disable-static --enable-shared --extra-cflags=-DHAVE_UNISTD_H=0 --pkg-config=D:/test/vcpkg/downloads/tools/msys2/1e74ca60daa10104/mingw64/bin/pkg-config.exe
-- Building Release Options: --enable-optimizations --extra-ldflags=-libpath:"D:/test/vcpkg/installed/x64-windows/lib"
-- Building ffmpeg for Release
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:127 (message):
Command failed: D:/test/vcpkg/downloads/tools/msys2/0f89fce739d5829e/usr/bin/bash.exe ./build.sh
Working Directory: D:/test/vcpkg/buildtrees/ffmpeg/x64-windows-rel
Error code: 1
See logs for more information:
D:\test\vcpkg\buildtrees\ffmpeg\build-x64-windows-rel-config.log
D:\test\vcpkg\buildtrees\ffmpeg\build-x64-windows-rel-out.log
Call Stack (most recent call first):
ports/ffmpeg/portfile.cmake:727 (vcpkg_execute_required_process)
scripts/ports.cmake:192 (include)
I suggest you delete your git and reinstall it on the official website, and if you have installed msys, delete the msys cache and try again.
Scoop has made trouble before. Thanks for the hint about an unexpected link.exe
side by side with git.exe
.
Package: ffmpeg[avcodec,avdevice,avfilter,avformat,core,swresample,swscale]:x64-windows@6.1.1#10
Host Environment
To Reproduce
vcpkg install ffmpeg[avcodec,avdevice,avfilter,avformat,core,swresample,swscale]:x64-windows
Failure logs
C:\Users\75014\scoop\apps\vcpkg\current\buildtrees\ffmpeg\build-x64-windows-rel-out.log
``` BUILD_ARCH=x86_64 OPTION_VARIABLE=OPTIONS_x86_64 === CONFIGURING === cl.exe is unable to create an executable file. C compiler test failed. If you think configure made a mistake, make sure you are using the latest version from Git. If the latest version fails, report the problem to the ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.libera.chat. Include the log file "ffbuild/config.log" produced by configure as this will help solve the problem. ```C:\Users\75014\scoop\apps\vcpkg\current\buildtrees\ffmpeg\build-x64-windows-rel-config.log
``` # C:/Users/75014/scoop/apps/vcpkg/current/buildtrees/ffmpeg/src/n6.1.1-2b415d2741.clean/configure --prefix='C:/Users/75014/scoop/apps/vcpkg/current/packages/ffmpeg_x64-windows' --toolchain=msvc --enable-pic --disable-doc --enable-debug --enable-runtime-cpudetect --disable-autodetect --pkg-config='C:/Users/75014/scoop/apps/vcpkg/current/installed/x64-windows/tools/pkgconf/pkgconf.exe' --target-os=win32 --enable-w32threads --enable-d3d11va --enable-dxva2 --enable-mediafoundation --disable-inline-asm --cc=cl.exe --cxx=cl.exe --windres=rc.exe --ld=link.exe --ar='ar-lib lib.exe' --ranlib=':' --disable-ffmpeg --disable-ffplay --disable-ffprobe --enable-avcodec --enable-avdevice --enable-avformat --enable-avfilter --disable-postproc --enable-swresample --enable-swscale --disable-alsa --disable-amf --disable-libaom --disable-libass --disable-avisynth --disable-bzlib --disable-libdav1d --disable-libfdk-aac --disable-libfontconfig --disable-libfreetype --disable-libfribidi --disable-iconv --disable-libilbc --disable-lzma --disable-libmp3lame --disable-libmodplug --disable-cuda --disable-nvenc --disable-nvdec --disable-cuvid --disable-ffnvcodec --disable-opencl --disable-opengl --disable-libopenh264 --disable-libopenjpeg --disable-libopenmpt --disable-openssl --enable-schannel --disable-libopus --disable-sdl2 --disable-libsnappy --disable-libsoxr --disable-libspeex --disable-libssh --disable-libtensorflow --disable-libtesseract --disable-libtheora --disable-libvorbis --disable-libvpx --disable-libwebp --disable-libx264 --disable-libx265 --disable-libxml2 --disable-zlib --disable-libsrt --disable-libmfx --enable-cross-compile --disable-static --enable-shared --extra-cflags='-DHAVE_UNISTD_H=0' --pkg-config='C:/Users/75014/scoop/apps/vcpkg/current/downloads/tools/msys2/1e74ca60daa10104/mingw64/bin/pkg-config.exe' --enable-optimizations --extra-ldflags='-libpath:C:/Users/75014/scoop/apps/vcpkg/current/installed/x64-windows/lib' --arch=x86_64 --enable-asm --enable-x86asm ALLUSERSPROFILE='C:\ProgramData' ... Skipped 4814 lines ... } log_file () { log BEGIN "$1"; log_file_i=1; while IFS= read -r log_file_line; do printf '%5d\t%s\n' "$log_file_i" "$log_file_line"; log_file_i=$(($log_file_i+1)); done < "$1" >> "$logfile"; log END "$1" } map () { m=$1; shift; for v in "$@"; do eval $m; done } nvcc_o () { eval printf '%s\\n' $NVCC_O } popvar () { for pvar in $*; do eval level=\${${pvar}_level:-0}; test $level = 0 && continue; eval level=$(($level-1)); eval $pvar="\${${pvar}_${level}}"; eval ${pvar}_level=$level; eval unset ${pvar}_${level}; done } prepend () { var=$1; shift; eval "$var=\"$* \$$var\"" } print_config () { pfx=$1; files=$2; shift 2; map 'eval echo "$v \${$v:-no}"' "$@" | awk "BEGIN { split(\"$files\", files) } { c = \"$pfx\" toupper(\$1); v = \$2; sub(/yes/, 1, v); sub(/no/, 0, v); for (f in files) { file = files[f]; if (file ~ /\\.h\$/) { printf(\"#define %s %d\\n\", c, v) >>file; } else if (file ~ /\\.asm\$/) { printf(\"%%define %s %d\\n\", c, v) >>file; } else if (file ~ /\\.mak\$/) { n = -v ? \"\" : \"!\"; printf(\"%s%s=yes\\n\", n, c) >>file; } else if (file ~ /\\.texi\$/) { pre = -v ? \"\" : \"@c \"; yesno = \$2; c2 = tolower(c); gsub(/_/, \"-\", c2); printf(\"%s@set %s %s\\n\", pre, c2, yesno) >>file; } } }" } print_enabled () { suf=$1; shift; for v in "$@"; do enabled $v && printf "%s\n" ${v%$suf}; done } print_in_columns () { tr ' ' '\n' | sort | tr '\r\n' ' ' | awk -v col_width=24 -v width="$ncols" ' { num_cols = width > col_width ? int(width / col_width) : 1; num_rows = int((NF + num_cols-1) / num_cols); y = x = 1; for (y = 1; y <= num_rows; y++) { i = y; for (x = 1; x <= num_cols; x++) { if (i <= NF) { line = sprintf("%s%-" col_width "s", line, $i); } i = i + num_rows; } print line; line = ""; } }' | sed 's/ *$//' } print_include () { hdr=$1; test "${hdr%.h}" = "${hdr}" && echo "#include $hdr" || echo "#include <$hdr>" } pushvar () { for pvar in $*; do eval level=\${${pvar}_level:=0}; eval ${pvar}_${level}="\$$pvar"; eval ${pvar}_level=$(($level+1)); done } rand_list () { IFS=', '; set -- $*; unset IFS; for thing in "$@"; do comp=${thing%:*}; prob=${thing#$comp}; prob=${prob#:}; is_in ${comp} $COMPONENT_LIST && eval comp=\$$(toupper ${comp%s})_LIST; echo "prob ${prob:-0.5}"; printf '%s\n' $comp; done } remove_suffix () { suffix=$1; shift; for v in "$@"; do echo ${v%$suffix}; done } request () { for var in $*; do eval ${var}_requested=yes; eval $var=; done } requested () { test "${1#!}" = "$1" && op="=" || op="!="; eval test "x\$${1#!}_requested" $op "xyes" } require () { log require "$@"; name_version="$1"; name="${1%% *}"; shift; check_lib $name "$@" || die "ERROR: $name_version not found" } require_cc () { log require_cc "$@"; name="$1"; check_cc "$@" || die "ERROR: $name failed" } require_cpp () { log require_cpp "$@"; name_version="$1"; name="${1%% *}"; shift; check_lib_cpp "$name" "$@" || die "ERROR: $name_version not found" } require_cpp_condition () { log require_cpp_condition "$@"; condition="$3"; check_cpp_condition "$@" || die "ERROR: $condition not satisfied" } require_headers () { log require_headers "$@"; headers="$1"; check_headers "$@" || die "ERROR: $headers not found" } require_pkg_config () { log require_pkg_config "$@"; pkg_version="$2"; check_pkg_config "$@" || die "ERROR: $pkg_version not found using pkg-config$pkg_config_fail_message" } require_pkg_config_cpp () { log require_pkg_config_cpp "$@"; pkg_version="$2"; check_pkg_config_cpp "$@" || die "ERROR: $pkg_version not found using pkg-config$pkg_config_fail_message" } resolve () { resolve_out=; eval resolve_in=\$$1; for v in $resolve_in; do eval 'resolve_out="$resolve_out$'$v' "'; done; eval $1=\$resolve_out } reverse () { eval ' reverse_out= for v in $'$1'; do reverse_out="$v $reverse_out" done '$1'=$reverse_out ' } sanitize_var_name () { echo $@ | sed 's/[^A-Za-z0-9_]/_/g' } set_all () { value=$1; shift; for var in $*; do eval $var=$value; done } set_default () { for opt in "$@"; do eval : \${$opt:=\$${opt}_default}; done } set_sanitized () { var=$1; shift; eval $(sanitize_var_name "$var")='$*' } set_weak () { value=$1; shift; for var in "$@"; do eval : \${$var:=$value}; done } sh_quote () { v=$(echo "$1" | sed "s/'/'\\\\''/g"); test "x$v" = "x${v#*[!A-Za-z0-9_/.+-]}" || v="'$v'"; echo "$v" } show_help () { cat <