I am attempting to install mpv with emerge, but I receive an error:
Code: Select all
FAILED: [code=1] mpv_protocols
/usr/lib/python-exec/python3.13/meson --internal exe --capture mpv_protocols -- /var/tmp/portage/media-video/mpv-0.40.0-r3/work/mpv-0.40.0-build/mpv --no-config --list-protocols
--- stderr ---
ninja: build stopped: subcommand failed.
* ERROR: media-video/mpv-0.40.0-r3::gentoo failed (compile phase):
* ninja -v -l11 -j12 failed
*
* Call stack:
* ebuild.sh, line 143: Called src_compile
* environment, line 2809: Called meson_src_compile
* environment, line 2065: Called eninja
* environment, line 1508: Called die
* The specific snippet of code:
* "$@" || die -n "${*} failed"
*
* If you need support, post the output of `emerge --info '=media-video/mpv-0.40.0-r3::gentoo'`,
* the complete build log and the output of `emerge -pqv '=media-video/mpv-0.40.0-r3::gentoo'`.
* The complete build log is located at '/var/tmp/portage/media-video/mpv-0.40.0-r3/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/media-video/mpv-0.40.0-r3/temp/environment'.
* Working directory: '/var/tmp/portage/media-video/mpv-0.40.0-r3/work/mpv-0.40.0-build'
* S: '/var/tmp/portage/media-video/mpv-0.40.0-r3/work/mpv-0.40.0'
>>> Failed to emerge media-video/mpv-0.40.0-r3, Log file:
>>> '/var/tmp/portage/media-video/mpv-0.40.0-r3/temp/build.log'
* Messages for package media-video/mpv-0.40.0-r3:
* ERROR: media-video/mpv-0.40.0-r3::gentoo failed (compile phase):
* ninja -v -l11 -j12 failed
* Call stack:
* ebuild.sh, line 143: Called src_compile
* environment, line 2809: Called meson_src_compile
* environment, line 2065: Called eninja
* environment, line 1508: Called die
* The specific snippet of code:
* "$@" || die -n "${*} failed"
* If you need support, post the output of `emerge --info '=media-video/mpv-0.40.0-r3::gentoo'`,
* the complete build log and the output of `emerge -pqv '=media-video/mpv-0.40.0-r3::gentoo'`.
* The complete build log is located at '/var/tmp/portage/media-video/mpv-0.40.0-r3/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/media-video/mpv-0.40.0-r3/temp/environment'.
* Working directory: '/var/tmp/portage/media-video/mpv-0.40.0-r3/work/mpv-0.40.0-build'
* S: '/var/tmp/portage/media-video/mpv-0.40.0-r3/work/mpv-0.40.0'
Code: Select all
libavcodec: build version 62.15.100 incompatible with runtime version 61.19.101
Code: Select all
[ebuild N ] media-video/mpv-0.40.0-r3 USE="X alsa cdda cli drm dvd egl iconv jpeg lcms libmpv lua uchardet vulkan wayland xv zlib (-aqua) -archive -bluray (-coreaudio) -debug -dvb -gamepad -jack -javascript -libcaca -nvenc -openal -pipewire -pulseaudio -rubberband -sdl (-selinux) -sixel -sndio -soc -test -tools -vaapi -vdpau -zimg" LUA_SINGLE_TARGET="(luajit) (-lua5-1)" PYTHON_SINGLE_TARGET="python3_13 -python3_11 -python3_12 -python3_14"
The context of the error is that my Gentoo system has gone some months without an update, but everything else could be updated without issue. I did the following:
Code: Select all
doas nvim /var/lib/portage/world
# Pruned world file of extra atoms
# Sync repos
doas emaint --auto sync
# Update System
doas emerge --ask --verbose --update --deep --newuse --with-bdeps=y @world
# Update fails because of mpv
doas emerge --deselect mpv
# Also remove mpv from world file
# Update System (try again)
doas emerge --ask --verbose --update --deep --newuse --with-bdeps=y @world
# Update succeeds
doas emerge --depclean
# Removes now unnecessary packages from edits to `world` file.
# Install mpv
doas emerge -av media-video/mpv
# Fails with error above
This sort of problem is new to me. Does anybody have a theory about what could be wrong? I think the mismatched `libavcodec` would be the most obvious problem - I get the same sort of error when trying to compile it from the source code directly, but I am unsure how to fix that. Any help would be appreciated.
Thanks!


