microsoft / vcpkg

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

[ffmpeg] Build error on x64-mingw-dynamic #39466

Open jiayuancs opened 3 months ago

jiayuancs commented 3 months ago

Package: ffmpeg[avcodec,avdevice,avfilter,avformat,core,swresample,swscale]:x64-mingw-dynamic@6.1.1#9

Host Environment

To Reproduce

vcpkg install ffmpeg:x64-mingw-dynamic

Failure logs

-- Using cached ffmpeg-ffmpeg-n6.1.1.tar.gz.
-- Cleaning sources at C:/ProgramEnvironment/vcpkg/buildtrees/ffmpeg/src/n6.1.1-2b415d2741.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source C:/ProgramEnvironment/vcpkg/downloads/ffmpeg-ffmpeg-n6.1.1.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 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 C:/ProgramEnvironment/vcpkg/buildtrees/ffmpeg/src/n6.1.1-2b415d2741.clean
-- Using cached msys2-automake1.16-1.16.5-1-any.pkg.tar.zst.
-- Using cached msys2-bash-5.2.026-1-x86_64.pkg.tar.zst.
-- Using cached msys2-coreutils-8.32-5-x86_64.pkg.tar.zst.
-- Using cached msys2-file-5.45-1-x86_64.pkg.tar.zst.
-- Using cached msys2-gawk-5.3.0-1-x86_64.pkg.tar.zst.
-- Using cached msys2-grep-1~3.0-6-x86_64.pkg.tar.zst.
-- Using cached msys2-gzip-1.13-1-x86_64.pkg.tar.zst.
-- Using cached msys2-diffutils-3.10-1-x86_64.pkg.tar.zst.
-- Using cached msys2-make-4.4.1-2-x86_64.pkg.tar.zst.
-- Using cached msys2-pkgconf-2.1.1-1-x86_64.pkg.tar.zst.
-- Using cached msys2-sed-4.9-1-x86_64.pkg.tar.zst.
-- Using cached msys2-msys2-runtime-3.5.3-3-x86_64.pkg.tar.zst.
-- Using cached msys2-perl-5.38.2-2-x86_64.pkg.tar.zst.
-- Using cached msys2-libiconv-1.17-1-x86_64.pkg.tar.zst.
-- Using cached msys2-libintl-0.22.4-1-x86_64.pkg.tar.zst.
-- Using cached msys2-gmp-6.3.0-1-x86_64.pkg.tar.zst.
-- Using cached msys2-gcc-libs-13.3.0-1-x86_64.pkg.tar.zst.
-- Using cached msys2-libbz2-1.0.8-4-x86_64.pkg.tar.zst.
-- Using cached msys2-liblzma-5.6.2-1-x86_64.pkg.tar.zst.
-- Using cached msys2-libzstd-1.5.6-1-x86_64.pkg.tar.zst.
-- Using cached msys2-zlib-1.3.1-1-x86_64.pkg.tar.zst.
-- Using cached msys2-libreadline-8.2.010-1-x86_64.pkg.tar.zst.
-- Using cached msys2-mpfr-4.2.1-1-x86_64.pkg.tar.zst.
-- Using cached msys2-libpcre-8.45-4-x86_64.pkg.tar.zst.
-- Using cached msys2-libxcrypt-4.4.36-1-x86_64.pkg.tar.zst.
-- Using cached msys2-ncurses-6.5-1-x86_64.pkg.tar.zst.
-- Using msys root at C:/ProgramEnvironment/vcpkg/downloads/tools/msys2/0f89fce739d5829e
-- Found external ninja('1.12.1').
-- Getting CMake variables for x64-mingw-dynamic
-- Using cached 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 C:/ProgramEnvironment/vcpkg/downloads/tools/msys2/1e74ca60daa10104
-- Building Options: --enable-pic --disable-doc --enable-debug --enable-runtime-cpudetect --disable-autodetect --pkg-config=C:/ProgramEnvironment/vcpkg/installed/x64-windows/tools/pkgconf/pkgconf.exe --target-os=mingw64 --cc=x86_64-w64-mingw32-gcc.exe --cxx=x86_64-w64-mingw32-g++.exe --windres=x86_64-w64-mingw32-windres.exe --nm=x86_64-w64-mingw32-nm.exe --ar='x86_64-w64-mingw32-ar.exe' --ranlib=x86_64-w64-mingw32-ranlib.exe --strip=x86_64-w64-mingw32-strip.exe --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=-D_WIN32_WINNT=0x0601 --pkg-config=C:/ProgramEnvironment/vcpkg/downloads/tools/msys2/1e74ca60daa10104/mingw64/bin/pkg-config.exe
-- Building Release Options: --enable-optimizations --extra-ldflags=-L"C:/ProgramEnvironment/vcpkg/installed/x64-mingw-dynamic/lib"
-- Building ffmpeg for Release
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:112 (message):
    Command failed: C:/ProgramEnvironment/vcpkg/downloads/tools/msys2/0f89fce739d5829e/usr/bin/bash.exe ./build.sh
    Working Directory: C:/ProgramEnvironment/vcpkg/buildtrees/ffmpeg/x64-mingw-dynamic-rel
    Error code: 1
    See logs for more information:
      C:\ProgramEnvironment\vcpkg\buildtrees\ffmpeg\build-x64-mingw-dynamic-rel-config.log
      C:\ProgramEnvironment\vcpkg\buildtrees\ffmpeg\build-x64-mingw-dynamic-rel-out.log
      C:\ProgramEnvironment\vcpkg\buildtrees\ffmpeg\build-x64-mingw-dynamic-rel-err.log

Call Stack (most recent call first):
  ports/ffmpeg/portfile.cmake:659 (vcpkg_execute_required_process)
  scripts/ports.cmake:191 (include)
C:\ProgramEnvironment\vcpkg\buildtrees\ffmpeg\build-x64-mingw-dynamic-rel-err.log ``` chmod: C:UsersjiayuAppDataLocalTemp/ffconf.XXa11896/test.exe: No such file or directory C:/ProgramEnvironment/vcpkg/buildtrees/ffmpeg/src/n6.1.1-2b415d2741.clean/configure: line 4622: can't create C:UsersjiayuAppDataLocalTemp/ffconf.XXa11896/test.sh: nonexistent directory ```
C:\ProgramEnvironment\vcpkg\buildtrees\ffmpeg\build-x64-mingw-dynamic-rel-out.log ``` BUILD_ARCH=x86_64 OPTION_VARIABLE=OPTIONS_x86_64 === CONFIGURING === Unable to create and execute files in C:\Users\jiayu\AppData\Local\Temp. Set the TMPDIR environment variable to another directory and make sure that it is not mounted noexec. Sanity 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. ```

The C:\ProgramEnvironment\vcpkg\buildtrees\ffmpeg\build-x64-mingw-dynamic-rel-config.log file is too large, exceeding the 65,536 character limit. Therefore, I have placed it here: build-x64-mingw-dynamic-rel-config.log

dg0yt commented 3 months ago
mktemp -u XXXXXX
a21568
chmod: C:UsersjiayuAppDataLocalTemp/ffconf.XXa11896/test.sh: No such file or directory
C:/ProgramEnvironment/vcpkg/buildtrees/ffmpeg/src/n6.1.1-2b415d2741.clean/configure: line 4626: C:UsersjiayuAppDataLocalTemp/ffconf.XXa11896/test.sh: not found
Sanity test failed.

Maybe incorrectly mixing Windows style path and POSIX style subpath.