Skip to content

msys: install ffmpeg with V=1 - #53

Merged
jcelerier merged 1 commit into
masterfrom
ffmpeg/msys-install-verbose
Oct 28, 2026
Merged

jcelerier merged 1 commit into
masterfrom
ffmpeg/msys-install-verbose

Conversation

@jcelerier

Copy link
Copy Markdown
Member

Both Windows media jobs have failed since #51 moved FFmpeg to master (master run 39309685941 on 2026-10-19, and #52), in install-libavutil-headers:

  • x86_64: /usr/bin/sh: -c: line 1: unexpected EOF while looking for matching '"'
  • arm64: Error 127

Cause. FFmpeg 33d5616fbe ("ffbuild: show install destinations in the INSTALL build output", 2026-08-10, not in 9.0) made non-verbose INSTALL_FILES emit one printf per file, all chained into a single shell command per library (ffbuild/common.mak:33). libavutil installs 103 headers, so that command is ~13-17k characters; the smaller libraries (libavcodec ~4k) install fine. Both errors are what a truncated command produces. The exact limit it hits between mingw32-make and sh is inferred, not observed.

Fix. MSYS/ffmpeg.sh already builds with V=1; install with it too. With V set, INSTALL_FILES is just install -m 644 <files> "<dir>" (common.mak:20), ~3k characters for libavutil. No FFmpeg patch needed. (install cannot read a response file, so the alternative would be patching FFmpeg's makefiles to go through $(file >...) + xargs.)

Not verified on Windows locally; this PR's media-windows jobs are the test.

🤖 Generated with Claude Code

https://claude.ai/code/session_01JeL19ofVgPe9u9q7J1V9ex

Since ffmpeg 33d5616fbe (after 9.0, so since #51 moved us to master), a
non-verbose install prints each file with its own printf, all chained into
one shell command per library. libavutil's ~100 headers make that command
~13-17k characters and it reaches sh truncated: both Windows media jobs fail
in install-libavutil-headers ("unexpected EOF while looking for matching
`"'" on x86_64, Error 127 on arm64), on master since 2026-10-19 as well.
With V=1 the recipe is one `install -m 644 <files> <dir>`, ~3k characters.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JeL19ofVgPe9u9q7J1V9ex
@jcelerier
jcelerier merged commit ab9ca3e into master Oct 28, 2026
14 checks passed
@jcelerier
jcelerier deleted the ffmpeg/msys-install-verbose branch October 28, 2026 00:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant