Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 670712 - media-video/ffmpeg-4.1[vaapi] fails to build tools
Summary: media-video/ffmpeg-4.1[vaapi] fails to build tools
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
: 670590 (view as bug list)
Depends on:
Blocks:
 
Reported: 2018-11-08 20:47 UTC by Xavier Miller (RETIRED)
Modified: 2018-11-15 16:37 UTC (History)
2 users (show)

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


Attachments
build log (build.log.bz2,58.99 KB, application/x-bzip2)
2018-11-08 20:49 UTC, Xavier Miller (RETIRED)
Details
build log (build.log.bz2,58.99 KB, application/x-bzip2)
2018-11-08 20:49 UTC, Xavier Miller (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Xavier Miller (RETIRED) gentoo-dev 2018-11-08 20:47:04 UTC
with USE=vaapi, GCC 8.2, GNU gold, I cannot emerge ffmpeg tools:

[ebuild   R    ] media-video/ffmpeg-4.1:0/56.58.58::gentoo  USE="X alsa bzip2 cdio encode gpl hardcoded-tables iconv mp3 network openal opengl opus postproc sdl svg threads truetype vaapi vorbis x264 xcb xvid zlib (-altivec) -amr -amrenc (-appkit) -bluray -bs2b -chromaprint -chromium -codec2 -cpudetection -debug -doc -fdk -flite -fontconfig -frei0r -fribidi -gcrypt -gme -gmp -gnutls -gsm -iec61883 -ieee1394 -jack -jpeg2k -kvazaar -ladspa -libaom -libass -libcaca -libdrm -libilbc -libressl -librtmp -libsoxr -libv4l -lv2 -lzma (-mipsdspr1) (-mipsdspr2) (-mipsfpu) (-mmal) -modplug -opencl -openh264 -openssl -oss -pic -pulseaudio -rubberband -samba -snappy -speex -ssh -static-libs -test -theora -twolame -v4l -vdpau -vpx -wavpack -webp -x265 -zeromq -zimg -zvbi" 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*" VIDEO_CARDS="-nvidia" 0 KiB


[...]

skipping strip ffmpeg
make -j7 -l5 V=1 tools/aviocat
mkdir -p tools
x86_64-pc-linux-gnu-gcc -I. -Isrc/ -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -DPIC -DZLIB_CONST -O2 -pipe -fomit-frame-pointer -march=native -mtune=native   -march=haswell -std=c11 -fomit-frame-pointer -fPIC -pthread  -I/usr/include/freetype2 -I/usr/include/opus -I/usr/include/opus -pthread -I/usr/include/librsvg-2.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libdrm -I/usr/include/libpng16    -I/usr/include/alsa         -Wdeclaration-after-statement -Wall -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wwrite-strings -Wtype-limits -Wundef -Wmissing-prototypes -Wno-pointer-to-int-cast -Wstrict-prototypes -Wempty-body -Wno-parentheses -Wno-switch -Wno-format-zero-length -Wno-pointer-sign -Wno-unused-const-variable -Wno-bool-operation -O2 -pipe -fomit-frame-pointer -march=native -mtune=native -fno-math-errno -fno-signed-zeros -fno-tree-vectorize -Werror=format-security -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=return-type -Werror=vla -Wformat -fdiagnostics-color=auto -Wno-maybe-uninitialized -D_REENTRANT -I/usr/include/SDL2  -MMD -MF tools/aviocat.d -MT tools/aviocat.o -c -o tools/aviocat.o src/tools/aviocat.c                                                    
x86_64-pc-linux-gnu-gcc -Llibavcodec -Llibavdevice -Llibavfilter -Llibavformat -Llibavresample -Llibavutil -Llibpostproc -Llibswscale -Llibswresample -Wl,-O1 -Wl,--sort-common -Wl,--hash-style=gnu -Wl,--as-needed  -march=haswell -Wl,--as-needed -Wl,-z,noexecstack -Wl,--warn-common -Wl,-rpath-link=libpostproc:libswresample:libswscale:libavfilter:libavdevice:libavformat:libavcodec:libavutil:libavresample  -o tools/aviocat tools/aviocat.o -lavformat -lavcodec -lswresample -lavutil -lm -lbz2 -lz -pthread -lm -lrsvg-2 -lm -lgio-2.0 -lgdk_pixbuf-2.0 -lgobject-2.0 -lglib-2.0 -lcairo -lz -lmp3lame -lm -lopus -lvorbis -lvorbisenc -lx264 -lxvidcore -lva -lm -pthread -lva-drm -lva -lva-x11 -lva -lm -lva            
libavutil/libavutil.so: error: undefined reference to 'XCloseDisplay'
libavutil/libavutil.so: error: undefined reference to 'XOpenDisplay'
libavutil/libavutil.so: error: undefined reference to 'XDisplayName'
collect2: error: ld returned 1 exit status
make: *** [/var/tmp/portage/media-video/ffmpeg-4.1/work/ffmpeg-4.1/ffbuild/library.mak:102: tools/aviocat] Error 1
 * ERROR: media-video/ffmpeg-4.1::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=media-video/ffmpeg-4.1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=media-video/ffmpeg-4.1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/media-video/ffmpeg-4.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-video/ffmpeg-4.1/temp/environment'.
 * Working directory: '/var/tmp/portage/media-video/ffmpeg-4.1/work/ffmpeg-4.1-abi_x86_64.amd64'
 * S: '/var/tmp/portage/media-video/ffmpeg-4.1/work/ffmpeg-4.1'

>>> Failed to emerge media-video/ffmpeg-4.1, Log file:
Comment 1 Xavier Miller (RETIRED) gentoo-dev 2018-11-08 20:48:36 UTC
# emerge --info '=media-video/ffmpeg-4.1::gentoo'

Portage 2.3.51 (python 3.6.6-final-0, default/linux/amd64/17.1/no-multilib, gcc-8.2.0, glibc-2.27-r6, 4.19.1-gentoo x86_64)                                                                                                                   
=================================================================                                                                                                                                                                             
                         System Settings                                                                                                                                                                                                      
=================================================================                                                                                                                                                                             
System uname: Linux-4.19.1-gentoo-x86_64-Intel-R-_Core-TM-_i5-4200U_CPU_@_1.60GHz-with-gentoo-2.6                                                                                                                                             
KiB Mem:     8078416 total,   4734836 free                                                                                                                                                                                                    
KiB Swap:    8388604 total,   8388604 free                                                                                                                                                                                                    
Head commit of repository gentoo: 666f075f33417b022e76fa76a623290fd777e7be                                                                                                                                                                    
                                                                                                                                                                                                                                              
Head commit of repository local: f979a43fd4153e8f501f91b41686fcafdee9b9cb                                                                                                                                                                     
                                                                                                                                                                                                                                              
sh bash 4.4_p23                                                                                                                                                                                                                               
ld GNU gold (Gentoo 2.31.1 p3 2.31.1) 1.16                                                                                                                                                                                                    
distcc 3.2rc1 x86_64-pc-linux-gnu [disabled]                                                                                                                                                                                                  
app-shells/bash:          4.4_p23::gentoo                                                                                                                                                                                                     
dev-java/java-config:     2.2.0-r4::gentoo                                                                                                                                                                                                    
dev-lang/perl:            5.26.2::gentoo                                                                                                                                                                                                      
dev-lang/python:          2.7.15::gentoo, 3.6.6::gentoo, 3.7.0::gentoo                                                                                                                                                                        
dev-util/cmake:           3.12.3::gentoo                                                                                                                                                                                                      
dev-util/pkgconfig:       0.29.2::gentoo                                                                                                                                                                                                      
sys-apps/baselayout:      2.6-r1::gentoo                                                                                                                                                                                                      
sys-apps/openrc:          0.39.2::gentoo                                                                                                                                                                                                      
sys-apps/sandbox:         2.13::gentoo                                                                                                                                                                                                        
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo                                                                                                                                                                                       
sys-devel/automake:       1.13.4-r2::gentoo, 1.16.1-r1::gentoo                                                                                                                                                                                
sys-devel/binutils:       2.31.1-r1::gentoo                                                                                                                                                                                                   
sys-devel/gcc:            8.2.0-r4::gentoo                                                                                                                                                                                                    
sys-devel/gcc-config:     2.0::gentoo                                                                                                                                                                                                         
sys-devel/libtool:        2.4.6-r5::gentoo                                                                                                                                                                                                    
sys-devel/make:           4.2.1-r4::gentoo                                                                                                                                                                                                    
sys-kernel/linux-headers: 4.19::gentoo (virtual/os-headers)                                                                                                                                                                                   
sys-libs/glibc:           2.27-r6::gentoo                                                                                                                                                                                                     
Repositories:                                                                                                                                                                                                                                 
                                                                                                                                                                                                                                              
gentoo                                                                                                                                                                                                                                        
    location: /var/portage/repos/gentoo                                                                                                                                                                                                       
    sync-type: git                                                                                                                                                                                                                            
    sync-uri: git://anongit.gentoo.org/repo/gentoo.git                                                                                                                                                                                        
    priority: -1000                                                                                                                                                                                                                           
                                                                                                                                                                                                                                              
local                                                                                                                                                                                                                                         
    location: /usr/local/portage
    sync-type: git
    sync-uri: /data/nas/xavier/git_repos/local_overlay.git/
    masters: gentoo

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE as-is freedist"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -fomit-frame-pointer -march=native -mtune=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /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 /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updm
ap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -fomit-frame-pointer -march=native -mtune=native"
DISTDIR="/var/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y --quiet-build=n --buildpkg"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN 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"
FEATURES="assume-digests binpkg-logs buildpkg candy config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmer
ge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="fr_BE.utf8"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--hash-style=gnu -Wl,--as-needed"
LINGUAS="fr nl fr_FR fr_BE nl_NL nl_BE"
MAKEOPTS="-j7 -l5"
PKGDIR="/var/portage/packages"
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=/.gi
t"
PORTAGE_TMPDIR="/var/tmp"
USE="3dnow 3dnowext X a52 aac acpi alsa amd64 apng branding bzip2 cairo cdda cddb cdio cli crossdev crypt cryptsetup css cups cxx dbus dlna dri dssi dts dvb dvd exif flac gif glamor gnome-keyring gpm gtk gudev iconv joystick jpeg lcms lib
canberra libinput libnotify libsamplerate libtirpc mad matroska mmx mng mp3 mpeg mtp natspec ncurses network nls nptl ocr ogg openal opengl openmp opus osc pam pango pcre pdf png printsupport python3 qt5 readline sane scanner sdl seccomp
sna sndfile snmp spell sqlite sse sse2 ssl startup-notification svg tcpd threads tiff truetype udev unicode upnp usb uxa vaapi vorbis wmf x264 xattr xcb xinerama xml xosd xv xvid zlib" ABI_X86="64" ALSA_CARDS="ice1712 hda-intel usb-audio
virmidi" 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 cac
he 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 plan sheets stage words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCO
LS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard
mouse libinput joystick" KERNEL="linux" L10N="fr nl" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LIRC_DEVICES="ftdi" LLVM_TARGETS="X86"
 OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-1" POSTGRES_TARGETS="postgres9_5 postgres10" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" QEMU_USER_TARGETS="arm" RUBY_TARGETS="ruby25" SANE_BACKENDS="
hp" USERLAND="GNU" VIDEO_CARDS="intel i965" XFCE_PLUGINS="brightness trash" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude ch
aos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
=================================================================
                        Package Settings
=================================================================

media-video/ffmpeg-4.1::gentoo was built with the following:
USE="X alsa bzip2 cdio encode gpl hardcoded-tables iconv mp3 network openal opengl opus postproc sdl svg threads truetype vaapi vorbis x264 xcb xvid zlib (-altivec) -amr -amrenc (-appkit) -bluray -bs2b -chromaprint -chromium -codec2 -cpudetection -debug -doc -fdk -flite -fontconfig -frei0r -fribidi -gcrypt -gme -gmp -gnutls -gsm -iec61883 -ieee1394 -jack -jpeg2k -kvazaar -ladspa -libaom -libass -libcaca -libdrm -libilbc -libressl -librtmp -libsoxr -libv4l -lv2 -lzma (-mipsdspr1) (-mipsdspr2) (-mipsfpu) (-mmal) -modplug -opencl -openh264 -openssl -oss -pic -pulseaudio -rubberband -samba -snappy -speex -ssh -static-libs -test -theora -twolame -v4l -vdpau -vpx -wavpack -webp -x265 -zeromq -zimg -zvbi" 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" VIDEO_CARDS="-nvidia"

(disabling FFTOOLS work, as you see)
Comment 2 Xavier Miller (RETIRED) gentoo-dev 2018-11-08 20:49:04 UTC
Created attachment 554576 [details]
build log
Comment 3 Xavier Miller (RETIRED) gentoo-dev 2018-11-08 20:49:44 UTC
Created attachment 554578 [details]
build log
Comment 4 Craig Andrews gentoo-dev 2018-11-12 04:09:17 UTC
I think this is at least related to bug 670590 and may actually be a duplicate
Comment 5 Paolo Pedroni 2018-11-15 08:27:44 UTC
*** Bug 670590 has been marked as a duplicate of this bug. ***
Comment 6 Paolo Pedroni 2018-11-15 08:30:01 UTC
(In reply to Craig Andrews from comment #4)
> I think this is at least related to bug 670590 and may actually be a
> duplicate

It is. I marked #670590 as duplicate of this one.

Solved in ffmpeg git master by https://git.videolan.org/?p=ffmpeg.git;a=commitdiff;h=4f1e07090a9f6064078cac694f1d7148f86176c3
Comment 7 Larry the Git Cow gentoo-dev 2018-11-15 16:37:03 UTC
The bug has been closed via the following commit(s):

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

commit 63eea8c23f690957d95bd26086f3502993024d22
Author:     Craig Andrews <candrews@gentoo.org>
AuthorDate: 2018-11-15 16:16:37 +0000
Commit:     Craig Andrews <candrews@gentoo.org>
CommitDate: 2018-11-15 16:16:37 +0000

    media-video/ffmpeg: Fix building tools with vaapi
    
    Patch from ffmpeg git master
    
    Closes: https://bugs.gentoo.org/670712
    Package-Manager: Portage-2.3.51, Repoman-2.3.12
    Signed-off-by: Craig Andrews <candrews@gentoo.org>

 media-video/ffmpeg/ffmpeg-4.1.ebuild               |  1 +
 .../ffmpeg/files/ffmpeg-4.1-vaapi-tools.patch      | 27 ++++++++++++++++++++++
 2 files changed, 28 insertions(+)