Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 480712 - =media-video/ffmpeg-0.10.8:0.10 multilib fails to build due not finding x264
Summary: =media-video/ffmpeg-0.10.8:0.10 multilib fails to build due not finding x264
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:
Depends on:
Blocks:
 
Reported: 2013-08-12 11:58 UTC by Johannes Hirte
Modified: 2014-08-27 16:17 UTC (History)
0 users

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


Attachments
build.log (ffmpeg-build.log,3.71 KB, text/x-log)
2013-08-12 14:10 UTC, Johannes Hirte
Details
config.log (ffmpeg-config.log,243.46 KB, text/x-log)
2013-08-12 15:07 UTC, Johannes Hirte
Details
x264 build.log (x264-build.log,124.56 KB, text/x-log)
2013-08-14 07:58 UTC, Johannes Hirte
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Johannes Hirte 2013-08-12 11:58:41 UTC
media-video/ffmpeg-0.10.8 fails to build:


>>> Emerging (1 of 2) media-video/ffmpeg-0.10.8
 * ffmpeg-0.10.8.tar.bz2 SHA256 SHA512 WHIRLPOOL size ;-) ...                                                                                                                            [ ok ]
 * This version is _terribly_ outdated with known security issues and
 * bugs. It is provided only for binary compatibility.
 * Use at your own risks.
>>> Unpacking source...
>>> Unpacking ffmpeg-0.10.8.tar.bz2 to /var/tmp/portage/media-video/ffmpeg-0.10.8/work
>>> Source unpacked in /var/tmp/portage/media-video/ffmpeg-0.10.8/work
>>> Preparing source in /var/tmp/portage/media-video/ffmpeg-0.10.8/work/ffmpeg-0.10.8 ...
 * Applying freiordl.patch ...                                                                                                                                                           [ ok ]
 * Applying flashtest.patch ...                                                                                                                                                          [ ok ]
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/media-video/ffmpeg-0.10.8/work/ffmpeg-0.10.8 ...
 * x86: running multilib-minimal_abi_src_configure
ERROR: libx264 not found

If you think configure made a mistake, make sure you are using the latest
version from Git.  If the latest version fails, report the problem to the
ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file "config.log" produced by configure as this will help
solving the problem.
 * ERROR: media-video/ffmpeg-0.10.8::gentoo failed (configure phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line   93:  Called src_configure
 *   environment, line 3130:  Called multilib-minimal_src_configure
 *   environment, line 2373:  Called multilib_foreach_abi 'multilib-minimal_abi_src_configure'
 *   environment, line 2559:  Called multibuild_foreach_variant '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_configure'
 *   environment, line 2219:  Called _multibuild_run '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_configure'
 *   environment, line 2217:  Called _multilib_multibuild_wrapper 'multilib-minimal_abi_src_configure'
 *   environment, line  467:  Called multilib-minimal_abi_src_configure
 *   environment, line 2367:  Called multilib_src_configure
 *   environment, line 2781:  Called die
 * The specific snippet of code:
 *       "${S}"/configure --prefix="${EPREFIX}/usr" --libdir="${EPREFIX}/usr/$(get_libdir)" --shlibdir="${EPREFIX}/usr/$(get_libdir)" --mandir="${EPREFIX}/usr/share/man" --enable-shared --cc="$(tc-getCC)" --cxx="$(tc-getCXX)" --ar="$(tc-getAR)" --optflags="${CFLAGS}" --extra-cflags="${CFLAGS}" --extra-cxxflags="${CXXFLAGS}" --disable-static --disable-{ffplay,ffmpeg,ffprobe,ffserver} --disable-{swresample,postproc,swscale,avdevice} ${myconf} || die
 * 
 * If you need support, post the output of `emerge --info '=media-video/ffmpeg-0.10.8::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=media-video/ffmpeg-0.10.8::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/media-video/ffmpeg-0.10.8/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-video/ffmpeg-0.10.8/temp/environment'.
 * Working directory: '/var/tmp/portage/media-video/ffmpeg-0.10.8/work/ffmpeg-0.10.8-x86'
 * S: '/var/tmp/portage/media-video/ffmpeg-0.10.8/work/ffmpeg-0.10.8'

>>> Failed to emerge media-video/ffmpeg-0.10.8, Log file:

>>>  '/var/tmp/portage/media-video/ffmpeg-0.10.8/temp/build.log'

 * Messages for package media-video/ffmpeg-0.10.8:

 * This version is _terribly_ outdated with known security issues and
 * bugs. It is provided only for binary compatibility.
 * Use at your own risks.
 * ERROR: media-video/ffmpeg-0.10.8::gentoo failed (configure phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line   93:  Called src_configure
 *   environment, line 3130:  Called multilib-minimal_src_configure
 *   environment, line 2373:  Called multilib_foreach_abi 'multilib-minimal_abi_src_configure'
 *   environment, line 2559:  Called multibuild_foreach_variant '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_configure'
 *   environment, line 2219:  Called _multibuild_run '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_configure'
 *   environment, line 2217:  Called _multilib_multibuild_wrapper 'multilib-minimal_abi_src_configure'
 *   environment, line  467:  Called multilib-minimal_abi_src_configure
 *   environment, line 2367:  Called multilib_src_configure
 *   environment, line 2781:  Called die
 * The specific snippet of code:
 *       "${S}"/configure --prefix="${EPREFIX}/usr" --libdir="${EPREFIX}/usr/$(get_libdir)" --shlibdir="${EPREFIX}/usr/$(get_libdir)" --mandir="${EPREFIX}/usr/share/man" --enable-shared --cc="$(tc-getCC)" --cxx="$(tc-getCXX)" --ar="$(tc-getAR)" --optflags="${CFLAGS}" --extra-cflags="${CFLAGS}" --extra-cxxflags="${CXXFLAGS}" --disable-static --disable-{ffplay,ffmpeg,ffprobe,ffserver} --disable-{swresample,postproc,swscale,avdevice} ${myconf} || die
 * 
 * If you need support, post the output of `emerge --info '=media-video/ffmpeg-0.10.8::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=media-video/ffmpeg-0.10.8::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/media-video/ffmpeg-0.10.8/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-video/ffmpeg-0.10.8/temp/environment'.
 * Working directory: '/var/tmp/portage/media-video/ffmpeg-0.10.8/work/ffmpeg-0.10.8-x86'
 * S: '/var/tmp/portage/media-video/ffmpeg-0.10.8/work/ffmpeg-0.10.8'


installed version of x264 is media-libs/x264-0.0.20130731

Reproducible: Always




emerge --info
Portage 2.2.0_alpha196 (default/linux/amd64/13.0, gcc-4.8.1, glibc-2.17, 3.11.0-rc1-00006-gfc0ad6c x86_64)
=================================================================
System uname: Linux-3.11.0-rc1-00006-gfc0ad6c-x86_64-AMD_Athlon-tm-_II_P320_Dual-Core_Processor-with-gentoo-2.2
KiB Mem:     4048832 total,    171356 free
KiB Swap:    4194300 total,   3975888 free
Timestamp of tree: Mon, 12 Aug 2013 11:00:01 +0000
ld GNU gold (GNU Binutils 2.23.1) 1.11
distcc 3.1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          4.2_p45
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.5-r1, 3.2.5-r1, 3.3.2-r1
dev-util/cmake:           2.8.11.1
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.6, 1.14
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.6.4, 4.7.3, 4.8.1
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo x11 kde gamerlay local
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA AdobeFlash-11.x AdobeFlash-10.1 AdobeFlash-10.3 ETQW google-chrome googleearth Google-TOS Intel-SDP Oracle-BCLA-JavaSE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=amdfam10 -fpredictive-commoning -fgcse-after-reload -ftree-partial-pre -ftree-vectorize -ftracer -fvect-cost-model -pipe"
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/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=amdfam10 -fpredictive-commoning -fgcse-after-reload -ftree-partial-pre -ftree-vectorize -ftracer -fvect-cost-model -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=y --quiet-build=n"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync metadata-transfer news parallel-fetch preserve-libs sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="C"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,-z,combreloc -O2 -march=amdfam10 -fpredictive-commoning -fgcse-after-reload -ftree-partial-pre -ftree-vectorize -ftracer -fvect-cost-model -pipe"
MAKEOPTS="-j2"
PKGDIR="/usr/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"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/x11 /usr/local/portage/layman/kde /usr/local/portage/layman/gamerlay /usr/local/portage"
USE="X a52 aac aacs acl acoustid addressbook aften aio alsa amd64 amr apng assistant attica audiofile autotools berkdb bluetooth bluray bzip2 c++0x cairo calendar canberra caps caps-ng cdda cddb chm cli cmake consolekit corefonts cracklib crypt cups cvs cxx dbus declarative desktopglobe device-mapper dirac djvu dri dts dv dvd ebook eigen embedded emf encode exif expoblending faac faad fam ffmpeg fftw fits flac flash fontconfig fortran fpm fpx ftdi gbm gd gdbm gif git glamor gles1 gles2 glew gmp gold google gphoto2 gpm graphicsmagick graphviz gs gsl hdri highlight iconv icu id3tag inotify ipv6 jemalloc jpeg jpeg2k json kate kde kdepim kipi kpathsea lame lapack latex lcms lensfun libffi libkms liblockfile libsamplerate live lm_sensors lzma lzo mad marble midi minizip mjpeg mmap mmx mmx2 mmxext mng modules mongodb mp3 mp4 mpeg mtp mudflap multilib musicbrainz mysql ncurses netlink networkmanager nfsidmap nfsv3 nls nptl ogg okteta openal openexr opengl openmp opus oscar otr pam panorama pcre pdf pdfimport perl plasma png policykit postscript pyqt4 python python3 qt3support qt4 qthelp quicktime raw readline redeyes reviewboard rle romio samba scanner schroedinger semantic-desktop session sift sip smi sndfile soundtouch spell sqlite sqlite3 sse sse2 sse3 ssl subversion svg system-sqlite taglib tcmalloc tcpd theora threads thumbnail tiff truetype twolame udev udisks udisks2 unicode usb v4l v8 valgrind vamp vdpau vlc vorbis vpx webkit webp wmf x264 xattr xcb xcomposite xetex xml xmp xscreensaver xv xvid yaz zlib" ABI_X86="64 32" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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="braindump flow karbon kexi kpresenter krita plan sheets stage tables words" CAMERAS="canon directory" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de en" NGINX_MODULES_HTTP="access auth_basic autoindex browser charset empty_gif fancyindex fastcgi geo gzip limit_conn limit_req map memcached proxy referer rewrite scgi split_clients ssi stub_status upstream_ip_hash userid uwsgi" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-4" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby20" SANE_BACKENDS="net snapscan" USERLAND="GNU" VIDEO_CARDS="r600 radeon" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2013-08-12 12:11:34 UTC
Attach complete build.log to the bug too.
Comment 2 Alexis Ballier gentoo-dev 2013-08-12 14:10:14 UTC
config.log will be needed here
Comment 3 Johannes Hirte 2013-08-12 14:10:45 UTC
Created attachment 355764 [details]
build.log

build.log attached
Comment 4 Johannes Hirte 2013-08-12 15:07:00 UTC
Created attachment 355774 [details]
config.log

config.log for x86 attached
Comment 5 Alexis Ballier gentoo-dev 2013-08-12 15:22:49 UTC
what does 'ls /usr/lib32/libx264.*' outputs for you ?
Comment 6 Johannes Hirte 2013-08-13 11:51:42 UTC
(In reply to Alexis Ballier from comment #5)
> what does 'ls /usr/lib32/libx264.*' outputs for you ?

ls /usr/lib32/libx264.*
/usr/lib32/libx264.a  /usr/lib32/libx264.so.120  /usr/lib32/libx264.so.135
Comment 7 Alexis Ballier gentoo-dev 2013-08-13 12:04:58 UTC
(In reply to Johannes Hirte from comment #6)
> (In reply to Alexis Ballier from comment #5)
> > what does 'ls /usr/lib32/libx264.*' outputs for you ?
> 
> ls /usr/lib32/libx264.*
> /usr/lib32/libx264.a  /usr/lib32/libx264.so.120  /usr/lib32/libx264.so.135

the problem is here, you should also have a .so; try to rebuild media-libs/x264-0.0.20130731 and if ffmpeg still fails, attach x264's build.log
Comment 8 Johannes Hirte 2013-08-13 13:36:26 UTC
(In reply to Alexis Ballier from comment #7)
> (In reply to Johannes Hirte from comment #6)
> > (In reply to Alexis Ballier from comment #5)
> > > what does 'ls /usr/lib32/libx264.*' outputs for you ?
> > 
> > ls /usr/lib32/libx264.*
> > /usr/lib32/libx264.a  /usr/lib32/libx264.so.120  /usr/lib32/libx264.so.135
> 
> the problem is here, you should also have a .so; try to rebuild
> media-libs/x264-0.0.20130731 and if ffmpeg still fails, attach x264's
> build.log

Why ffmpeg doesn't depend on "media-libs/x264 static-libs" then?
Comment 9 Alexis Ballier gentoo-dev 2013-08-13 14:08:10 UTC
(In reply to Johannes Hirte from comment #8)

please follow the instructions, this comment is non sense.
Comment 10 Johannes Hirte 2013-08-14 07:58:09 UTC
(In reply to Alexis Ballier from comment #9)
> (In reply to Johannes Hirte from comment #8)
> 
> please follow the instructions, this comment is non sense.

Ugh, shouldn't do too much thinks in parallel and read what was really written instead.
Rebuilding x264 didn't fixed it, so build.log attached.
Comment 11 Johannes Hirte 2013-08-14 07:58:59 UTC
Created attachment 355954 [details]
x264 build.log
Comment 12 Samuli Suominen (RETIRED) gentoo-dev 2013-08-14 11:46:32 UTC
(In reply to Johannes Hirte from comment #11)
> Created attachment 355954 [details]
> x264 build.log

Should have been with 'emerge -v' to see what files get merged to the filesystem, but it looks fine here now:

it's creating symlink to the image that will be merged to the filesystem, followed by the library itself

ln -f -s libx264.so.135 /var/tmp/portage/media-libs/x264-0.0.20130731/image//usr/lib64/libx264.so
install -m 755 libx264.so.135 /var/tmp/portage/media-libs/x264-0.0.20130731/image//usr/lib64

USE=static-libs has nothing to do with it, it controls the building of the static archives which are *.a files, not *.so symlinks :)
Comment 13 Johannes Hirte 2013-08-15 15:03:07 UTC
(In reply to Samuli Suominen from comment #12)
> (In reply to Johannes Hirte from comment #11)
> > Created attachment 355954 [details]
> > x264 build.log
> 
> Should have been with 'emerge -v' to see what files get merged to the
> filesystem, but it looks fine here now:
> 
> it's creating symlink to the image that will be merged to the filesystem,
> followed by the library itself
> 
> ln -f -s libx264.so.135
> /var/tmp/portage/media-libs/x264-0.0.20130731/image//usr/lib64/libx264.so
> install -m 755 libx264.so.135
> /var/tmp/portage/media-libs/x264-0.0.20130731/image//usr/lib64

Ok after the fourth re-emerge of media-libs/x264 (this time with -v) the symlink appeared correctly. Don't know what was different this time. Now ffmpeg also compiled fine. Also the static archives of x264 are gone, which where previously build and installed with static-libs disabled.

> USE=static-libs has nothing to do with it, it controls the building of the
> static archives which are *.a files, not *.so symlinks :)

I'm aware of this. I've totally missread the comment and mixed up *.a and *.so-files.
Comment 14 Steve Dibb (RETIRED) gentoo-dev 2014-08-27 16:17:03 UTC
> Ok after the fourth re-emerge of media-libs/x264 (this time with -v) the
> symlink appeared correctly. Don't know what was different this time. Now
> ffmpeg also compiled fine. Also the static archives of x264 are gone, which
> where previously build and installed with static-libs disabled.

Closing as resolved.