Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 565180 - media-video/mplayer-1.1.1-r1 fails to compile - cpudetect.c:19:31: fatal error: libavutil/x86_cpu.h: No such file or directory
Summary: media-video/mplayer-1.1.1-r1 fails to compile - cpudetect.c:19:31: fatal erro...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Gentoo Media-video project
Depends on:
Reported: 2015-11-09 07:21 UTC by Sebastian Heyn
Modified: 2015-11-09 16:55 UTC (History)
0 users

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

buildlog (build.log,50.28 KB, text/x-log)
2015-11-09 16:55 UTC, Sebastian Heyn

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastian Heyn 2015-11-09 07:21:20 UTC
I'm trying to compile mplayer 1.1.1-r1 as 1.2 has an issue i cannot get solved.
I tried 1.1 on a slackware system, and my dvd to divx script works nicely. However I dont want to use an extra system for converting of videos.

To make sure its not my messed up gentoo box causing this compile error, I have tried the following things 

- fresh stage 3
- gcc 4.9 4.8 4.7

a fresh stage 3 will build

>>> Emerging (170 of 172) media-video/ffmpeg-2.6.3::gentoo
>>> Emerging (171 of 172) virtual/ffmpeg-9-r2::gentoo
>>> Emerging (172 of 172) media-video/mplayer-1.1.1-r1::gentoo 

Expected Result:

mplayer should compile

Actual Result:
In file included from libvo/vo_x11.c:52:0:
/usr/include/libswscale/swscale.h:223:5: note: expected 'const uint8_t * const*' but argument is of type 'uint8_t **'
 int sws_scale(struct SwsContext *c, const uint8_t *const srcSlice[],
i686-pc-linux-gnu-gcc -MD -MP -Wundef  -Wstrict-prototypes -Wmissing-prototypes -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99  -O2 -march=i686 -pipe -fno-tree-vectorize -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -I. -Iffmpeg  -D_REENTRANT -I/usr/include/    -I/usr/include/freetype2 -I/usr/include/bs2b  -c -o libvo/vo_xvidix.o libvo/vo_xvidix.c
i686-pc-linux-gnu-gcc -MD -MP -Wundef  -Wstrict-prototypes -Wmissing-prototypes -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99  -O2 -march=i686 -pipe -fno-tree-vectorize -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -I. -Iffmpeg  -D_REENTRANT -I/usr/include/    -I/usr/include/freetype2 -I/usr/include/bs2b  -c -o libvo/vo_xvmc.o libvo/vo_xvmc.c
i686-pc-linux-gnu-gcc -MD -MP -Wundef  -Wstrict-prototypes -Wmissing-prototypes -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99  -O2 -march=i686 -pipe -fno-tree-vectorize -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -I. -Iffmpeg  -D_REENTRANT -I/usr/include/    -I/usr/include/freetype2 -I/usr/include/bs2b  -c -o libvo/vo_yuv4mpeg.o libvo/vo_yuv4mpeg.c
i686-pc-linux-gnu-gcc -MD -MP -Wundef  -Wstrict-prototypes -Wmissing-prototypes -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99  -O2 -march=i686 -pipe -fno-tree-vectorize -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -I. -Iffmpeg  -D_REENTRANT -I/usr/include/    -I/usr/include/freetype2 -I/usr/include/bs2b  -c -o asxparser.o asxparser.c
i686-pc-linux-gnu-gcc -MD -MP -Wundef  -Wstrict-prototypes -Wmissing-prototypes -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99  -O2 -march=i686 -pipe -fno-tree-vectorize -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -I. -Iffmpeg  -D_REENTRANT -I/usr/include/    -I/usr/include/freetype2 -I/usr/include/bs2b  -c -o bstr.o bstr.c
i686-pc-linux-gnu-gcc -O -DCODECS2HTML -I. -Iffmpeg -o codec-cfg codec-cfg.c
i686-pc-linux-gnu-gcc -MD -MP -Wundef  -Wstrict-prototypes -Wmissing-prototypes -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99  -O2 -march=i686 -pipe -fno-tree-vectorize -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -I. -Iffmpeg  -D_REENTRANT -I/usr/include/    -I/usr/include/freetype2 -I/usr/include/bs2b  -c -o cpudetect.o cpudetect.c
cpudetect.c:19:31: fatal error: libavutil/x86_cpu.h: No such file or directory
 #include "libavutil/x86_cpu.h"
compilation terminated. 


[/ # emerge --info
Portage (python 3.4.3-final-0, default/linux/x86/13.0, gcc-4.9.3, glibc-2.21-r1, 4.0.5-gentoo i686)
System uname: Linux-4.0.5-gentoo-i686-Intel-R-_Core-TM-_i7-3770S_CPU_@_3.10GHz-with-gentoo-2.2
KiB Mem:     8266448 total,   5535436 free
KiB Swap:    8190972 total,   8190972 free
Timestamp of repository gentoo: Sun, 01 Nov 2015 17:30:01 +0000
sh bash 4.3_p39
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash:          4.3_p39::gentoo
dev-lang/perl:            5.20.2::gentoo
dev-lang/python:          2.7.10::gentoo, 3.3.5-r1::gentoo, 3.4.3::gentoo
dev-util/cmake:           3.3.1-r1::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.17::gentoo
sys-apps/sandbox:         2.6-r1::gentoo
sys-devel/autoconf:       2.69::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.9.3::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 3.18::gentoo (virtual/os-headers)
sys-libs/glibc:           2.21-r1::gentoo

    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://
    priority: -1000

CFLAGS="-O2 -march=i686 -pipe"
CONFIG_PROTECT="/etc /usr/lib/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
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 -march=i686 -pipe"
FCFLAGS="-O2 -march=i686 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -march=i686 -pipe"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
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"
USE="X a52 aac aacplus aalib acl acpi acpid alsa amr amrenc apng bash-completion berkdb bluetooth bluray bs2b btrfs bzip2 caps cdda cddb cdio cdparanoia cdr cdrdao cdrom cdsound cjk clang cli consolekit cpudetection cracklib crypt css csv cuda cue curl cxx dbus dc1394 declarative device-mapper dhcp directx djvu dmraid dri dts dv dvb dvbplayer dvbsetup dvd dvdarchive dvdchapjump dvdnav dvdr dvi eap-tls emerald emovix encode examples exif ext-sound extras faac faad fat ffmpeg flac font-styles fontconfig fonts foomaticdb fortran ftdi ftp g3dvl g711 g722 g7221 gcj gcrypt gd gdbm gdu gif gimp gles2 gnome-keyring gnutls google-gadgets gpac gphoto2 graphviz gs gsm gstreamer gtk2 gtk3 gtkspell gudev hamlib hfs http http-cache httpd hwdb i18n iconv icq icu id3 id3tag iec61883 ieee1394 imagemagick ios ipod ipv6 java6 javascript jfs john joystick jpeg jpeg2k kate kvm ladspa lame lastfm libass libcaca libmpeg2 libnotify libproxy librtmp libsamplerate libsoxr libtiger libv4l libv4l2 live lm_sensors lua lxde lzma lzo mad matroska md5 md5sum mdadm meanwhile melt midi minizip mjpeg mmx mng modules mp3 mp3tunes mp4 mpd mpeg mpg123 mpi mpi-threads mplayer msn mtp multimedia musepack mysql ncurses network nfs nls normalize nptl nsplugin ntfs ntfsprogs nvidia ocr ogg opencl opengl openmp pam pcre pdf php pic png pnm policykit pvr python qalculate quicktime quvi radio rar raw readline reiser4 reiserfs romio rtl rtmp run-as-root scanner sdl sdl-image sdl-sound seccomp semantic-desktop server session shine shout sip sipim skins slideshow sndfile soprano sox speex spell sql sqlite sse sse2 sse3 sse4_1 ssh ssl ssse3 startup-notification stream streaming svg taglib tcpd test-programs theora threads tiff timidity toolame transcode truetype tv twolame udev unicode unsupported upnp usb uvm v4l v4l2 vaapi vcd vcdx vde vdpau vdr video vidix vlc vorbis vpx vst wav waveform waveout wavpack webcam webkit webp wifi wiimote win32codecs winpopup wma wma-fixed wxwidgets x264 x265 x86 xattr xcursor xdmcp xfs xinerama xinetd xls xml xmlpatterns xosd xpfast xpsmall xrandr xscreensaver xsettings xulrunner xv xvfb xvid xvmc yahoo youtube zlib zvbi"

ABI_X86="32" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog"

CPU_FLAGS_X86="mmx sse sse2 ssse3 sse4_1 sse4_2 mmxext sse3"


 GPSD_PROTOCOLS="aivdm ashtech earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 navcom nmea ntrip oceanserver oncore rtcm104v2 rtcm104v3 sirf superstar2 tnt tripmate tsip ubx fury geostar nmea2000"

 INPUT_DEVICES="keyboard mouse evdev"


 LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text"

LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer"
LINGUAS="de jp cn en"




PYTHON_TARGETS="python2_7 python3_3"

QEMU_USER_TARGETS="i386 x86_64"

 RUBY_TARGETS="ruby20 ruby21"



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"

Comment 1 Michael Palimaka (kensington) gentoo-dev 2015-11-09 15:10:16 UTC
Please attach the full build log.
Comment 2 Sebastian Heyn 2015-11-09 16:55:11 UTC
Created attachment 416464 [details]