Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 637910 - media-video/ffmpeg-3.4 configure thinks it is on a Mac
Summary: media-video/ffmpeg-3.4 configure thinks it is on a Mac
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-11-17 04:11 UTC by Daniel Santos
Modified: 2017-12-29 23:45 UTC (History)
1 user (show)

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


Attachments
config.log (config.log,72.33 KB, text/x-log)
2017-11-17 04:11 UTC, Daniel Santos
Details
proposed fixed ebuild (ffmpeg-3.4-r1.ebuild,15.53 KB, text/plain)
2017-12-18 00:21 UTC, Andriy Utkin (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Santos 2017-11-17 04:11:12 UTC
Created attachment 504544 [details]
config.log

The problem presents when configure fails with "ERROR: libass not found using pkg-config".  pkg-config --libs libass returns "-lass" just fine, but the config.log reveals that it's passing "-framework AppKit" to gcc, even though I'm on a vanilla x86_64-pc-linux-gnu multilib.  I'm using distcc.  I would presume that this is an upstream bug, but I haven't checked yet.


$ emerge -1v =media-video/ffmpeg-3.4
!!! Repository 'rion' has sync-uri attribute, but is missing sync-type attribute

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


These are the packages that would be merged, in order:

Calculating dependencies      ... done!                  
[ebuild     U  ] media-video/ffmpeg-3.4:0/55.57.57::gentoo [3.3.3:0/55.57.57::gentoo] USE="X alsa bluray bzip2 cdio celt encode frei0r gme gpl gsm hardcoded-tables iconv jpeg2k ladspa libass libcaca libv4l lzma mp3 network openal opengl opus postproc pulseaudio* sdl speex ssh static-libs svg%* theora threads truetype twolame v4l vaapi vdpau vorbis vpx wavpack webp x264 x265* xcb xvid zlib zvbi (-altivec) -amr -amrenc -bs2b -chromaprint -chromium -cpudetection -debug -doc -fdk -flite -fontconfig -fribidi -gcrypt -gmp -gnutls* -iec61883 -ieee1394 -jack -kvazaar -libilbc -librtmp -libsoxr (-mipsdspr1) (-mipsdspr2) (-mipsfpu) (-mmal) -modplug -nvenc -openh264 -openssl -oss -pic -rubberband -samba -snappy {-test} -zeromq -zimg (-schroedinger%*) (-sofalizer%)" ABI_X86="32 (64) (-x32)" CPU_FLAGS_X86="mmx mmxext sse sse2 -3dnow -3dnowext -aes -avx -avx2 -fma3 -fma4 -sse3 -sse4_1 -sse4_2 -ssse3 -xop" FFTOOLS="aviocat cws2fws ffescape ffeval ffhash fourcc2pixfmt graph2dot ismindex pktdumper qt-faststart sidxindex trasher" 0 KiB

Total: 1 package (1 upgrade), Size of downloads: 0 KiB

>>> Verifying ebuild manifests
>>> Emerging (1 of 1) media-video/ffmpeg-3.4::gentoo
>>> Failed to emerge media-video/ffmpeg-3.4, Log file:
>>>  '/var/log/portage/build/media-video/ffmpeg-3.4:20171117-035340.log.gz'
>>> Jobs: 0 of 1 complete, 1 failed                 Load avg: 3.25, 2.93, 3.14
 * Package:    media-video/ffmpeg-3.4
 * Repository: gentoo
 * Maintainer: media-video@gentoo.org
 * USE:        X abi_x86_32 abi_x86_64 alsa amd64 bluray bzip2 cdio celt cpu_flags_x86_mmx cpu_flags_x86_mmxext cpu_flags_x86_sse cpu_flags_x86_sse2 elibc_glibc encode fftools_aviocat fftools_cws2fws fftools_ffescape fftools_ffeval fftools_ffhash fftools_fourcc2pixfmt fftools_graph2dot fftools_ismindex fftools_pktdumper fftools_qt-faststart fftools_sidxindex fftools_trasher frei0r gme gpl gsm hardcoded-tables iconv jpeg2k kernel_linux ladspa libass libcaca libv4l lzma mp3 network openal opengl opus postproc pulseaudio sdl speex ssh static-libs svg theora threads truetype twolame userland_GNU v4l vaapi vdpau vorbis vpx wavpack webp x264 x265 xcb xvid zlib zvbi
 * FEATURES:   ccache distcc installsources preserve-libs sandbox splitdebug userpriv usersandbox
>>> Unpacking source...
>>> Unpacking ffmpeg-3.4.tar.bz2 to /tmp/portage/media-video/ffmpeg-3.4/work
>>> Source unpacked in /tmp/portage/media-video/ffmpeg-3.4/work
>>> Preparing source in /tmp/portage/media-video/ffmpeg-3.4/work/ffmpeg-3.4 ...
 * Applying chromium.patch ...
 [ ok ]
>>> Source prepared.
>>> Configuring source in /tmp/portage/media-video/ffmpeg-3.4/work/ffmpeg-3.4 ...
 * abi_x86_32.x86: running multilib-minimal_abi_src_configure
/tmp/portage/media-video/ffmpeg-3.4/work/ffmpeg-3.4/configure --prefix=/usr --libdir=/usr/lib32 --shlibdir=/usr/lib32 --docdir=/usr/share/doc/ffmpeg-3.4/html --mandir=/usr/share/man --enable-shared --cc=x86_64-pc-linux-gnu-gcc -m32 --cxx=x86_64-pc-linux-gnu-g++ -m32 --ar=ar --optflags=-O2 -ggdb -march=amdfam10 --enable-static --enable-avfilter --enable-avresample --disable-stripping --disable-indev=oss --disable-indev=jack --disable-outdev=oss --enable-bzlib --disable-runtime-cpudetect --disable-debug --disable-gcrypt --disable-gnutls --disable-gmp --enable-gpl --enable-hardcoded-tables --enable-iconv --enable-lzma --enable-network --disable-openssl --enable-postproc --disable-libsmbclient --enable-ffplay --enable-sdl2 --enable-vaapi --enable-vdpau --enable-xlib --enable-libxcb --enable-libxcb-shm --enable-libxcb-xfixes --enable-zlib --enable-libcdio --disable-libiec61883 --disable-libdc1394 --enable-libcaca --enable-openal --enable-opengl --enable-libv4l2 --enable-libpulse --disable-libopencore-amrwb --disable-libopencore-amrnb --disable-libfdk-aac --enable-libopenjpeg --enable-libbluray --enable-libcelt --enable-libgme --enable-libgsm --disable-mmal --disable-libmodplug --enable-libopus --disable-libilbc --disable-librtmp --enable-libssh --enable-libspeex --enable-librsvg --enable-libvorbis --enable-libvpx --enable-libzvbi --disable-libbs2b --disable-chromaprint --disable-libflite --enable-frei0r --disable-libfribidi --disable-fontconfig --enable-ladspa --enable-libass --enable-libfreetype --disable-librubberband --disable-libzmq --disable-libzimg --disable-libsoxr --enable-pthreads --disable-libvo-amrwbenc --enable-libmp3lame --disable-libkvazaar --disable-nvenc --disable-libopenh264 --disable-libsnappy --enable-libtheora --enable-libtwolame --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --disable-frei0r --disable-libzmq --disable-armv5te --disable-armv6 --disable-armv6t2 --disable-neon --disable-vfp --disable-vfpv3 --disable-armv8 --disable-mipsdsp --disable-mipsdspr2 --disable-mipsfpu --disable-altivec --disable-amd3dnow --disable-amd3dnowext --disable-aesni --disable-avx --disable-avx2 --disable-fma3 --disable-fma4 --disable-sse3 --disable-ssse3 --disable-sse4 --disable-sse42 --disable-xop --cpu=amdfam10 --disable-doc --disable-htmlpages --disable-manpages
ERROR: libass not found using pkg-config

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 "ffbuild/config.log" produced by configure as this will help
solve the problem.
 * ERROR: media-video/ffmpeg-3.4::gentoo failed (configure phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line  124:  Called src_configure
 *   environment, line 3226:  Called multilib-minimal_src_configure
 *   environment, line 2327:  Called multilib_foreach_abi 'multilib-minimal_abi_src_configure'
 *   environment, line 2541:  Called multibuild_foreach_variant '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_configure'
 *   environment, line 2257:  Called _multibuild_run '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_configure'
 *   environment, line 2255:  Called _multilib_multibuild_wrapper 'multilib-minimal_abi_src_configure'
 *   environment, line  694:  Called multilib-minimal_abi_src_configure
 *   environment, line 2321:  Called multilib_src_configure
 *   environment, line 2839:  Called die
 * The specific snippet of code:
 *       "${@}" || die;
 * 
 * If you need support, post the output of `emerge --info '=media-video/ffmpeg-3.4::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=media-video/ffmpeg-3.4::gentoo'`.
 * The complete build log is located at '/var/log/portage/build/media-video/ffmpeg-3.4:20171117-035340.log.gz'.
 * For convenience, a symlink to the build log is located at '/tmp/portage/media-video/ffmpeg-3.4/temp/build.log.gz'.
 * The ebuild environment file is located at '/tmp/portage/media-video/ffmpeg-3.4/temp/environment'.
 * Working directory: '/tmp/portage/media-video/ffmpeg-3.4/work/ffmpeg-3.4-abi_x86_32.x86'
 * S: '/tmp/portage/media-video/ffmpeg-3.4/work/ffmpeg-3.4'
Comment 1 Daniel Santos 2017-11-17 04:11:59 UTC
$ emerge --info ffmpeg
!!! Repository 'rion' has sync-uri attribute, but is missing sync-type attribute
Portage 2.3.14 (python 3.4.6-final-0, default/linux/amd64/13.0/desktop/plasma, gcc-5.4.0, glibc-2.26-r3, 4.9.39-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.9.39-gentoo-x86_64-AMD_Phenom-tm-_9850_Quad-Core_Processor-with-gentoo-2.4.1
KiB Mem:     8175848 total,   2921476 free
KiB Swap:   16795944 total,  16599600 free
Timestamp of repository gentoo: Thu, 16 Nov 2017 21:00:01 +0000
Head commit of repository gentoo: b5931330b561553f318b9eaf60d1eefb82a100d2
sh bash 4.4_p12
ld GNU ld (Gentoo 2.29.1 p2) 2.29.1
distcc 3.2rc1 x86_64-pc-linux-gnu [enabled]
ccache version 3.3.4 [enabled]
app-shells/bash:          4.4_p12::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.26.1-r1::gentoo
dev-lang/python:          2.7.14-r1::gentoo, 3.4.6-r1::gentoo
dev-util/ccache:          3.3.4-r1::gentoo
dev-util/cmake:           3.9.6::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/openrc:          0.34.7::gentoo
sys-apps/sandbox:         2.12::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.64::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.11.6-r2::gentoo, 1.15.1-r1::gentoo
sys-devel/binutils:       2.29.1-r1::gentoo
sys-devel/gcc:            4.9.4::gentoo, 5.4.0-r3::gentoo, 6.4.0::gentoo
sys-devel/gcc-config:     1.9.0::gentoo
sys-devel/libtool:        2.4.6-r4::gentoo
sys-devel/make:           4.2.1-r1::gentoo
sys-kernel/linux-headers: 4.13::gentoo (virtual/os-headers)
sys-libs/glibc:           2.26-r3::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-extra-opts: 

loudmouth-local
    location: /usr/local/portage
    masters: gentoo
    priority: 0

gamerlay
    location: /var/lib/layman/gamerlay
    masters: gentoo
    priority: 50

pentoo
    location: /var/lib/layman/pentoo
    masters: gentoo
    priority: 50

rion
    location: /var/lib/layman/rion
    sync-uri: https://github.com/rion-overlay/rion-overlay.git
    masters: gentoo
    priority: 50

sunrise
    location: /var/lib/layman/sunrise
    masters: gentoo
    priority: 50

zugaina
    location: /var/lib/layman/zugaina
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -ggdb -march=amdfam10"
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/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -ggdb -march=amdfam10"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="-j3 --load-average=10 --autounmask=n"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg candy ccache cgroup compress-build-logs config-protect-if-modified distcc distlocks ebuild-locks fixlafiles installsources merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms split-elog split-log splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.mirrors.easynews.com/linux/gentoo/ http://gentoo.cites.uiuc.edu/pub/gentoo/ http://www.gtlib.gatech.edu/pub/gentoo"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j15 --load-average=4.5"
PKGDIR="/usr/portage/packages"
PORTAGE_COMPRESS="pxz"
PORTAGE_COMPRESS_FLAGS="-9e -T4"
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="/tmp"
USE="7zip X a52 aac aacplus aacs acl acpi activities aio alsa amd64 apache2 appindicator autotools bazaar berkdb bindist bluetooth bluray branding bzip2 cairo cdda cddb cdio cdr celt cg clang cli cmake consolekit cracklib crypt cups cvs cxx dbus declarative designer development device-mapper dirac directfb dot dri dts dvd dvdr emboss encode exif extraengine faac fam ffmpeg fftw firefox flac fluidsynth fortran frei0r fuse gcj gdbm geoip gif git glamor glew glut gme gnome-keyring gnutls gphoto2 gpm graphviz gsm gstreamer gtk gtk3 hardened highlight iconv id3tag introspection ipv6 java jpeg jpeg2k kate kde kdrive kipi kwallet ladspa lame lcms ldap lensfun libass libcaca libnotify libsamplerate libv4l lto lua lz4 lzma lzo mad matroska md5sum mercurial midi mmx mmxext mng modules mp3 mp4 mpeg mtp mudflap multicall multilib multitarget musepack natspec ncurses networkmanager nls nptl nsplugin objc objc++ objc-gc ogg okteta omr openal opencl openexr opengl openmp opus pam pango pch pcre pdf perl phonon plasma playlist png policykit ppds projectm pulseaudio python qemu qml qt3support qt4 qt5 qthelp quvi rar raw readline reviewboard rfc3779 sasl sbsms scanner schroedinger sdl seccomp semantic-desktop session sid smp soundtouch speex spell spice sqlite sqlite3 sse sse2 sse3 ssh ssl startup-notification static-libs subversion svg syslog systemtap taglib tcpd theora threads thumbnail tiff tk tools tremor truetype twolame udev udisks unicode upnp upnp-av upower usb usbredir utils v4l vaapi valgrind vcdx vde vdpau vhost-net vim-syntax vlc vorbis vpx vte wavpack webkit webp widgets wifi wxwidgets x264 x265 xattr xcb xcomposite xine xinerama xml xpm xrandr xscreensaver xv xvid xvmc zeroconf zlib zvbi" ABI_X86="64 32" ALSA_CARDS="hdsp emu10k1 hda-intel" 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="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="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" GRUB_PLATFORMS="pc" INPUT_DEVICES="keyboard mouse joystick evdev wacom vmmouse" KERNEL="linux" L10N="en-US" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en_US" LLVM_TARGETS="AMDGPU BPF NVPTX X86 ARM PowerPC" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4" QEMU_SOFTMMU_TARGETS="aarch64 arm armeb i386 m68k mips mips64 mips64el mipsel mipsn32 mipsn32el ppc ppc64 ppc64abi32 ppc64le x86_64" QEMU_USER_TARGETS="aarch64 arm armeb i386 m68k mips mips64 mips64el mipsel mipsn32 mipsn32el ppc ppc64 ppc64abi32 ppc64le x86_64" RUBY_TARGETS="ruby19 ruby20 ruby22 ruby23 ruby24" USERLAND="GNU" VIDEO_CARDS="nvidia radeon qxl vmware" 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:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_RSYNC_EXTRA_OPTS

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

media-video/ffmpeg-3.3.3::gentoo was built with the following:
USE="X alsa bluray bzip2 cdio celt encode frei0r gme gnutls gpl gsm hardcoded-tables iconv jpeg2k ladspa libass libcaca libv4l lzma mp3 network openal opengl opus postproc schroedinger sdl speex ssh static-libs theora threads truetype twolame v4l vaapi vdpau vorbis vpx wavpack webp x264 xcb xvid zlib zvbi (-altivec) -amr -amrenc -bs2b -chromaprint -chromium -cpudetection -debug -doc -fdk -flite -fontconfig -fribidi -gcrypt -gmp -iec61883 -ieee1394 -jack -kvazaar -libilbc -librtmp -libsoxr (-mipsdspr1) (-mipsdspr2) (-mipsfpu) (-mmal) -modplug -nvenc -openh264 -openssl -oss -pic -pulseaudio -rubberband -samba -snappy -sofalizer -test -x265 -zeromq -zimg" ABI_X86="32 (64) (-x32)" CPU_FLAGS_X86="mmx mmxext sse sse2 -3dnow -3dnowext -aes -avx -avx2 -fma3 -fma4 -sse3 -sse4_1 -sse4_2 -ssse3 -xop" FFTOOLS="aviocat cws2fws ffescape ffeval ffhash fourcc2pixfmt graph2dot ismindex pktdumper qt-faststart sidxindex trasher"
CFLAGS="-O2 -ggdb -march=amdfam10 -msahf -mpopcnt -mlzcnt -mtune=amdfam10 --param l1-cache-size=64 --param l1-cache-line-size=64 --param l2-cache-size=512"
CXXFLAGS="-O2 -ggdb -march=amdfam10 -msahf -mpopcnt -mlzcnt -mtune=amdfam10 --param l1-cache-size=64 --param l1-cache-line-size=64 --param l2-cache-size=512"
Comment 2 Sergey Ilinykh 2017-11-24 19:40:45 UTC
I can confirm this. same platform, same error.
I added --disable-appkit to make it compile.
Comment 3 Sergey Ilinykh 2017-12-16 12:14:15 UTC
An easy way to compile:

EXTRA_FFMPEG_CONF=--disable-appkit emerge -1 media-video/ffmpeg

Just compiled media-video/ffmpeg-3.4 this way.
Comment 4 Andriy Utkin (RETIRED) gentoo-dev 2017-12-16 15:44:26 UTC
Couldn't reproduce by reinstalling ffmpeg with libass enabled (I had it with libass disabled):

USE=libass emerge media-video/ffmpeg

Reaches compilation phase for me. Will dig further by reproducing it in a new chroot.
Comment 5 Bernard Cafarelli gentoo-dev 2017-12-16 22:07:29 UTC
A quick look makes me think this is bug #637482 (if you have gnustep packages around on your system, that's most probably it)
Comment 6 Andriy Utkin (RETIRED) gentoo-dev 2017-12-18 00:21:52 UTC
Created attachment 510570 [details]
proposed fixed ebuild

Please try this 3.4-r1 ebuild.
Comment 7 Andriy Utkin (RETIRED) gentoo-dev 2017-12-29 23:45:32 UTC
The fix has been pushed to the tree, please sync and try to emerge 3.4.1 (or 9999), should work.

See details in https://bugs.gentoo.org/641180