Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 794001 - media-video/ffmpeg-4.3.2 fails to build with USE=kvazaar
Summary: media-video/ffmpeg-4.3.2 fails to build with USE=kvazaar
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-06-03 06:35 UTC by poli.sb
Modified: 2022-12-18 10:08 UTC (History)
3 users (show)

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


Attachments
`brotli` compressed build log. (build.log.br,36.54 KB, application/octet-stream)
2021-06-03 06:35 UTC, poli.sb
Details
patch to fix ffmpeg compilation with USE=kvazaar (ffmpeg-4.4-kvazaar.patch,477 bytes, patch)
2022-12-18 10:06 UTC, Jocelyn Mayer
Details | Diff
output from emerge --info =media-video/ffmpeg-4.4.3 (emerge-infos-ffmpeg-4.4.3,26.20 KB, text/plain)
2022-12-18 10:08 UTC, Jocelyn Mayer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description poli.sb 2021-06-03 06:35:49 UTC
Created attachment 713391 [details]
`brotli` compressed build log.

Portage 3.0.18 (python 3.9.4-final-0, default/linux/amd64/17.1/desktop/plasma, gcc-10.2.0, glibc-2.32-r7, 5.10.27-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.10.27-gentoo-x86_64-Intel-R-_Pentium-R-_CPU_G3240_@_3.10GHz-with-glibc2.32
KiB Mem:     3916096 total,    396528 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Wed, 02 Jun 2021 00:45:01 +0000
Head commit of repository gentoo: 40b39040390e1003ac971588dd6e59166073dcd4
sh bash 5.0_p18
ld GNU ld (Gentoo 2.35.2 p1) 2.35.2
app-shells/bash:          5.0_p18::gentoo
dev-lang/perl:            5.32.1::gentoo
dev-lang/python:          3.9.4_p1::gentoo
dev-lang/rust:            1.51.0-r2::gentoo
dev-util/cmake:           3.18.5::gentoo
sys-apps/baselayout:      2.7::gentoo
sys-apps/openrc:          0.42.1-r1::gentoo
sys-apps/sandbox:         2.22::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:       1.16.2-r1::gentoo
sys-devel/binutils:       2.35.2::gentoo
sys-devel/gcc:            10.2.0-r5::gentoo
sys-devel/gcc-config:     2.4::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.10::gentoo (virtual/os-headers)
sys-libs/glibc:           2.32-r7::gentoo
Repositories:

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

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -mtune=native -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /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/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -mtune=native -march=native"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--ask"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY 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"
FCFLAGS="-O2 -pipe -mtune=native -march=native"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs 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="-O2 -pipe -mtune=native -march=native"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_IN.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j2"
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"
USE="X a52 aac acl acpi activities alsa amd64 berkdb bidi bluetooth bzip2 cairo caps cdda cdr crypt css dav1d dbus declarative dri dts dvd dvdr elogind encode exif fdk ffmpeg flac ftp gdbm gif iconv icu inotify ipv6 jit jpeg kde kipi kwallet lame lcms libass libglvnd libnotify libtirpc luajit lzma mad matroska mmap mp3 mp4 mpeg mtp multilib ncurses networkmanager nptl ogg opencl opengl openmp openssl opus pam pcre plasma png policykit portaudio pulseaudio qml readline sdl semantic-desktop sox spell split-usr srt ssl startup-notification svg taglib tcpd threads tiff truetype udev udisks unicode upower usb vaapi vdpau vorbis vpx vulkan webp widgets wxwidgets x264 xattr xcb xml xv xvid zlib zstd" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="hda-intel usb-audio" 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 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" INPUT_DEVICES="evdev" KERNEL="linux" L10N="en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="X86" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-3 php7-4" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" RUBY_TARGETS="ruby26" USERLAND="GNU" VIDEO_CARDS="intel i965" 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:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RUSTFLAGS

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

media-video/ffmpeg-4.3.2::gentoo was built with the following:
USE="X alsa amr amrenc bs2b bzip2 cdio chromium codec2 dav1d encode fdk gnutls gpl iconv kvazaar libass libdrm libsoxr libxml2 lzma mp3 network opencl opengl openssl opus postproc pulseaudio rav1e rubberband sdl srt svg threads truetype vaapi vdpau vorbis vpx vulkan webp x264 xvid zlib (-appkit) -bluray -chromaprint -cpudetection (-cuda) -debug -doc -flite -fontconfig -frei0r -fribidi -gcrypt -gme -gmp -gsm -hardcoded-tables -iec61883 -ieee1394 -jack -jpeg2k -ladspa -libaom -libaribb24 -libcaca -libilbc -librtmp -libtesseract -libv4l -lv2 (-mipsdspr1) (-mipsdspr2) (-mipsfpu) (-mmal) -modplug -openal -openh264 -oss -pic -samba -snappy -sndio -speex -ssh -static-libs -test -theora -twolame -v4l -vidstab -x265 -zeromq -zimg -zvbi" ABI_X86="(64) -32 (-x32)" CPU_FLAGS_X86="mmx mmxext sse sse2 sse3 sse4_1 sse4_2 ssse3 -3dnow -3dnowext -aes -avx -avx2 -fma3 -fma4 -xop" FFTOOLS="aviocat cws2fws ffescape ffeval ffhash fourcc2pixfmt graph2dot ismindex pktdumper qt-faststart sidxindex trasher" VIDEO_CARDS="-nvidia"
FEATURES="unmerge-orphans xattr usersandbox unmerge-logs merge-sync distlocks unknown-features-warn binpkg-docompress parallel-fetch pid-sandbox fixlafiles qa-unresolved-soname-deps network-sandbox userfetch sandbox strict preserve-libs usersync sfperms binpkg-logs ebuild-locks assume-digests binpkg-dostrip userpriv config-protect-if-modified protect-owned news multilib-strict ipc-sandbox"
Comment 1 poli.sb 2021-06-03 08:02:03 UTC
Before the June 2021 update, it built successfully but not now. Maybe FFmpeg people lacking behind.
Comment 2 Jonas Stein gentoo-dev 2021-06-03 12:46:48 UTC
Please use compression as described on https://wiki.gentoo.org/wiki/Attach_the_logs_to_the_bug_ticket
next time. Developers have to rely on a tool chain to handle more bugs per time.
Comment 3 Jocelyn Mayer 2022-12-18 10:05:08 UTC
Still relevant with ffmpeg version 4.4.3:
build ends with:
src/libavcodec/libkvazaar.c: In function 'libkvazaar_init':
src/libavcodec/libkvazaar.c:99:14: error: 'kvz_config' has no member named 'rc_algorithm'; did you mean 'ime_algorithm'?
   99 |         cfg->rc_algorithm = KVZ_LAMBDA;
      |              ^~~~~~~~~~~~
      |              ime_algorithm
(twice)

The following patch fixes the compilation problem.
However, I cannot garantee we get the same behavior as desired...
Comment 4 Jocelyn Mayer 2022-12-18 10:06:36 UTC
Created attachment 843347 [details, diff]
patch to fix ffmpeg compilation with USE=kvazaar
Comment 5 Jocelyn Mayer 2022-12-18 10:08:09 UTC
Created attachment 843349 [details]
output from emerge --info =media-video/ffmpeg-4.4.3