Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 908956 - =media-video/ffmpeg-6.0-r1 fails at configure with USE=amf
Summary: =media-video/ffmpeg-6.0-r1 fails at configure with USE=amf
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2023-06-21 11:06 UTC by Daniel Pay
Modified: 2023-07-26 04:08 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,6.73 KB, text/plain)
2023-06-21 11:06 UTC, Daniel Pay
Details
config.log (config.log,727.24 KB, text/plain)
2023-06-21 23:25 UTC, Daniel Pay
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Pay 2023-06-21 11:06:15 UTC
Created attachment 864332 [details]
build.log

=media-video/ffmpeg-6.0-r1 fails at configure with USE=amf.

I renamed media-libs/amf-headers-1.4.26 to media-libs/amf-headers-1.4.29 in a local repository, emerged amf-headers with the new version and was able to configure, build and install media-video/ffmpeg-6.0-r1

##
emerge -pqv '=media-video/ffmpeg-6.0-r1::gentoo'
[ebuild   R   ] media-video/ffmpeg-6.0-r1  USE="X amf bluray bzip2 codec2 dav1d encode fdk gnutls gpl iconv jpeg2k jpegxl libaom libass libxml2 modplug mp3 network opencl opengl openh264 openssl opus postproc pulseaudio rav1e sdl speex svg svt-av1 theora threads twolame vaapi vmaf vorbis vpx vulkan webp x264 x265 xvid zlib -alsa -amr -amrenc (-appkit) -bs2b -cdio -chromaprint -chromium -cpudetection -cuda -debug -doc -flite -fontconfig -frei0r -fribidi -gcrypt -gme -gmp -gsm -hardcoded-tables -iec61883 -ieee1394 -jack -kvazaar -ladspa -lcms -libaribb24 -libcaca -libdrm -libilbc -libplacebo -librtmp -libsoxr -libtesseract -libv4l -lv2 -lzma (-mipsdspr1) (-mipsdspr2) (-mipsfpu) (-mmal) -nvenc -openal -oss -pic -qsv -rubberband -samba -snappy -sndio -srt -ssh -static-libs -test -truetype -v4l -vdpau -verify-sig -vidstab -zeromq -zimg -zvbi" ABI_X86="(64) -32 (-x32)" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext sse sse2 sse3 sse4_1 sse4_2 ssse3 -3dnow -3dnowext -fma4 -xop" FFTOOLS="aviocat cws2fws ffescape ffeval ffhash fourcc2pixfmt graph2dot ismindex pktdumper qt-faststart sidxindex trasher"

 * IMPORTANT: 4 news items need reading for repository 'bobwya'.
 * IMPORTANT: 13 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.

##
emerge --info '=media-video/ffmpeg-6.0-r1::gentoo
> '
Portage 3.0.46 (python 3.11.3-final-0, default/linux/amd64/17.1/systemd/merged-usr, gcc-12, glibc-2.36-r8, 6.1.31-gentoo-dist x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-6.1.31-gentoo-dist-x86_64-Intel-R-_Core-TM-_i5-6400T_CPU_@_2.20GHz-with-glibc2.36
KiB Mem:     8049160 total,   2151064 free
KiB Swap:    8388604 total,   8388604 free
Timestamp of repository gentoo: Tue, 20 Jun 2023 01:45:01 +0000
Head commit of repository gentoo: 0991bf3755bdb20a78be7dd2e6a46fc55c57393a
Timestamp of repository bobwya: Sat, 17 Jun 2023 22:46:56 +0000
Head commit of repository bobwya: 343d3175eeae01202d655c09dcd831a7cf8b4026

Timestamp of repository gogooverlay: Sat, 17 Jun 2023 10:17:50 +0000
Head commit of repository gogooverlay: 9fd7170d03c6a6773d09253eb3b2dbee112586d9

Timestamp of repository menelkir: Sun, 18 Jun 2023 21:02:00 +0000
Head commit of repository menelkir: ec2b36851fa8a56b26a236a9265465b0dcbaf1b7

Timestamp of repository steam-overlay: Sat, 17 Jun 2023 10:17:28 +0000
Head commit of repository steam-overlay: 6d66cb6aaaeceafa8b4df65009bc5f851e6e7b01

Head commit of repository sunny-overlay: 082f1e59799e8d54242e342ff3687ae69ca4f4f0

sh bash 5.1_p16-r4
ld GNU ld (Gentoo 2.39 p6) 2.39.0
app-misc/pax-utils:        1.3.5::gentoo
app-shells/bash:           5.1_p16-r4::gentoo
dev-java/java-config:      2.3.1-r1::gentoo
dev-lang/perl:             5.36.0-r2::gentoo
dev-lang/python:           3.11.3::gentoo
dev-lang/rust-bin:         1.69.0::gentoo
dev-util/cmake:            3.26.4-r1::gentoo
dev-util/meson:            1.1.1::gentoo
sys-apps/baselayout:       2.13-r1::gentoo
sys-apps/sandbox:          2.30-r1::gentoo
sys-apps/systemd:          253.3-r1::gentoo
sys-devel/autoconf:        2.71-r6::gentoo
sys-devel/automake:        1.16.5::gentoo
sys-devel/binutils:        2.39-r5::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           16.0.5::gentoo
sys-devel/gcc:             12.2.1_p20230428-r1::gentoo
sys-devel/gcc-config:      2.10::gentoo
sys-devel/libtool:         2.4.7-r1::gentoo
sys-devel/llvm:            16.0.5::gentoo
sys-devel/make:            4.4.1-r1::gentoo
sys-kernel/linux-headers:  6.1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.36-r8::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync1.au.gentoo.org/gentoo-portage/
    priority: -1000
    volatile: False
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-jobs: 1
    sync-rsync-extra-opts:
    sync-rsync-verify-max-age: 24

bobwya
    location: /var/db/repos/bobwya
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/bobwya.git
    masters: gentoo
    volatile: False

gogooverlay
    location: /var/db/repos/gogooverlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gogooverlay.git
    masters: gentoo
    volatile: False

local
    location: /var/db/repos/local
    masters: gentoo
    volatile: False

menelkir
    location: /var/db/repos/menelkir
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/menelkir.git
    masters: gentoo
    volatile: False

steam-overlay
    location: /var/db/repos/steam-overlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/steam-overlay.git
    masters: gentoo
    volatile: False

sunny-overlay
    location: /usr/local/portage/overlay/sunny-overlay
    sync-type: git
    sync-uri: https://github.com/dguglielmi/sunny-overlay.git
    masters: gentoo
    priority: 0
    volatile: True

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=x86-64-v2 -mtune=skylake -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/sandbox.d"
CXXFLAGS="-march=x86-64-v2 -mtune=skylake -O2 -pipe"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-march=x86-64-v2 -mtune=skylake -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=x86-64-v2 -mtune=skylake -O2 -pipe"
GENTOO_MIRRORS="https://mirror.aarnet.edu.au/pub/gentoo/     http://mirror.aarnet.edu.au/pub/gentoo/     rsync://mirror.aarnet.edu.au/pub/gentoo/     ftp://ftp.swin.edu.au/gentoo     http://ftp.swin.edu.au/gentoo"
LANG="en_AU.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
SHELL="/bin/bash"
USE="X acl amd64 amf bluray bzip2 cec cli codec2 crypt d3d9 dav1d dbus dri dvd egl fdk ffmpeg flac fortran gbm gdbm gles gles2 iconv initramfs ipv6 jpeg jpeg2k jpegxl libaom libass libtirpc matroska modplug mp3 multilib ncurses networkmanager nfs nls nptl ogg opencl opengl openh264 openmp opus pam pcre png policykit power-control pulseaudio rav1e readline sdl seccomp speex ssl svg svt-av1 systemd test-rust theora twolame udev udf udisks unicode upower vaapi vmaf vorbis vpx vulkan vulkan-overlay wayland webp x264 x265 xattr xvid zlib" ABI_X86="64" ADA_TARGET="gnat_2021" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 aes avx avx2 f16c fma3 pclmul popcnt rdrand sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" RUBY_TARGETS="ruby31" VIDEO_CARDS="amdgpu d3d12 intel radeon radeonsi" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, MAKEOPTS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS

=================================================================
                        Package Settings
=================================================================

media-video/ffmpeg-6.0-r1::gentoo was built with the following:
USE="X amf bluray bzip2 codec2 dav1d encode fdk gnutls gpl iconv jpeg2k jpegxl libaom libass libxml2 modplug mp3 network opencl opengl openh264 openssl opus postproc pulseaudio rav1e sdl speex svg svt-av1 theora threads twolame vaapi vmaf vorbis vpx vulkan webp x264 x265 xvid zlib -alsa -amr -amrenc (-appkit) -bs2b -cdio -chromaprint -chromium -cpudetection -cuda -debug -doc -flite -fontconfig -frei0r -fribidi -gcrypt -gme -gmp -gsm -hardcoded-tables -iec61883 -ieee1394 -jack -kvazaar -ladspa -lcms -libaribb24 -libcaca -libdrm -libilbc -libplacebo -librtmp -libsoxr -libtesseract -libv4l -lv2 -lzma (-mipsdspr1) (-mipsdspr2) (-mipsfpu) (-mmal) -nvenc -openal -oss -pic -qsv -rubberband -samba -snappy -sndio -srt -ssh -static-libs -test -truetype -v4l -vdpau -verify-sig -vidstab -zeromq -zimg -zvbi" ABI_X86="(64) -32 (-x32)" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext sse sse2 sse3 sse4_1 sse4_2 ssse3 -3dnow -3dnowext -fma4 -xop" FFTOOLS="aviocat cws2fws ffescape ffeval ffhash fourcc2pixfmt graph2dot ismindex pktdumper qt-faststart sidxindex trasher"
FEATURES="userfetch merge-sync fixlafiles protect-owned multilib-strict config-protect-if-modified userpriv unmerge-logs assume-digests network-sandbox binpkg-docompress unknown-features-warn ebuild-locks sandbox unmerge-orphans qa-unresolved-soname-deps pid-sandbox buildpkg-live strict binpkg-logs preserve-libs binpkg-dostrip sfperms distlocks binpkg-multi-instance xattr ipc-sandbox news usersandbox parallel-fetch usersync"
Comment 1 Mike Gilbert gentoo-dev 2023-06-21 17:56:11 UTC
From the build log:

> Include the log file "ffbuild/config.log" produced by configure as this will help solve the problem.

Please attach that file.
Comment 2 Daniel Pay 2023-06-21 23:25:07 UTC
Created attachment 864382 [details]
config.log
Comment 3 Mike Gilbert gentoo-dev 2023-06-22 01:00:26 UTC
temp/ffconf.otq9erQB/test.c:3:2: error: #error "unsatisfied condition: (AMF_VERSION_MAJOR << 48 | AMF_VERSION_MINOR << 32 | AMF_VERSION_RELEASE << 16 | AMF_VERSION_BUILD_NUM) >= 0x00010004001c0000"

It wants amf 1.4.28 or higher.
Comment 4 Gary 2023-07-12 00:30:40 UTC
The maintainer of amf-headers emailed me back and said that they don't have a PC available to install Gentoo on, so contributions are on pause until then. This may be awhile if nobody can version bump that and any other related packages to the latest upstream.

Can ffmpeg 6 mask the amf flag so it at least refuses to emerge instead of failing in the configure/compile stage?
Comment 5 Vitaly Zdanevich 2023-07-12 20:14:45 UTC
They can use virtual machine...
Comment 6 Larry the Git Cow gentoo-dev 2023-07-26 04:08:33 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bd8d6ec95099c8141528e96bd8c8027ad01abf11

commit bd8d6ec95099c8141528e96bd8c8027ad01abf11
Author:     Peter Levine <plevine457@gmail.com>
AuthorDate: 2023-07-21 01:49:05 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-07-26 03:49:57 +0000

    media-video/ffmpeg: depend on >=media-libs/amf-headers-1.4.28
    
    Building with USE=amf now depends on >=media-libs/amf-headers-1.4.28
    
    Closes: https://bugs.gentoo.org/908956
    Signed-off-by: Peter Levine <plevine457@gmail.com>
    Signed-off-by: Sam James <sam@gentoo.org>

 media-video/ffmpeg/ffmpeg-6.0-r4.ebuild | 603 ++++++++++++++++++++++++++++++++
 1 file changed, 603 insertions(+)