Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 340235 - media-video/mplayer-1.0_rc4_p20091026-r1 fails to compile
Summary: media-video/mplayer-1.0_rc4_p20091026-r1 fails to compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-09 11:28 UTC by Marcin Szamotulski
Modified: 2011-12-15 14:58 UTC (History)
2 users (show)

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


Attachments
build.log of emerge mplayer (build.log,674.55 KB, text/plain)
2010-10-09 11:30 UTC, Marcin Szamotulski
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marcin Szamotulski 2010-10-09 11:28:42 UTC
emerge media-video/mplayer doesn't compile mplayer.

Reproducible: Always

Steps to Reproduce:
1. emerge mplayer
Actual Results:  
The log file contains the following error:
swscale_template.c:1358: error: bp cannot be used in asm here
x86_64-pc-linux-gnu-gcc -DHAVE_AV_CONFIG_H -I.. -I..  -Wundef -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99  -D__STDC_LIMIT_MACROS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -Ilibdvdread4 -I.  -D_REENTRANT -I/usr/include/SDL  -D_REENTRANT -I/usr/include/freetype2   -I/usr/include/dirac   -I/usr/include/schroedinger-1.0 -I/usr/include/liboil-0.3     -c -o lpc.o lpc.c
x86_64-pc-linux-gnu-gcc -DHAVE_AV_CONFIG_H -I.. -I..  -Wundef -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99  -D__STDC_LIMIT_MACROS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -Ilibdvdread4 -I.  -D_REENTRANT -I/usr/include/SDL  -D_REENTRANT -I/usr/include/freetype2   -I/usr/include/dirac   -I/usr/include/schroedinger-1.0 -I/usr/include/liboil-0.3     -c -o swfenc.o swfenc.c
swfenc.c: In function 'swf_write_video':
swfenc.c:424: warning: passing argument 4 of 'av_fifo_generic_read' from incompatible pointer type
../libavutil/fifo.h:79: note: expected 'void (*)(void *, void *, int)' but argument is of type 'void (*)(struct ByteIOContext *, const unsigned char *, int)'
make[1]: *** [swscale.o] Error 1
make[1]: Leaving directory `/dane/portage/tmp/portage/media-video/mplayer-1.0_rc4_p20091026-r1/work/mplayer-1.0_rc4_p20091026/libswscale'
make: *** [libswscale/libswscale.a] Error 2

The complete build.log file is given below.
I append: emerge --info, output of emerge -pqv =media-video/mplayer-1.0_rc4_p20091026-r1 and the complete build.log.


Expected Results:  
emerge mplayer compiles mplayer.

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
emerge --info:
Portage 2.1.8.3 (default/linux/amd64/10.0/desktop, gcc-4.4.3, glibc-2.11.2-r0, 2.6.34-gentoo-r6-g4.2 x86_64)
=================================================================
System uname: Linux-2.6.34-gentoo-r6-g4.2-x86_64-AMD_Turion-tm-_64_X2_Mobile_Technology_TL-58-with-gentoo-2.0.1
Timestamp of tree: Tue, 05 Oct 2010 11:05:01 +0000
app-shells/bash:     4.0_p37
dev-java/java-config: 2.1.11
dev-lang/python:     2.6.5-r3, 3.1.2-r4
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.3
sys-apps/sandbox:    2.3-r1
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.8.5-r3, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.3-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA dlj-1.1 skype-eula AdobeFlash-10.1"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8-sse3 -O2 -pipe -fmerge-all-constants -finline-limit=1200 -msse -msse2 -msse3 -m3dnow -mfpmath=sse"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/rc.d /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/wget"
CXXFLAGS="-march=k8-sse3 -O2 -pipe -fmerge-all-constants -finline-limit=1200 -msse -msse2 -msse3 -m3dnow -mfpmath=sse"
DISTDIR="/dane/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_GB.utf8"
LC_ALL=""
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en"
MAKEOPTS="-j3"
PKGDIR="/dane/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--bwlimit=1000"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/dane/portage/tmp"
PORTDIR="/dane/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/hardened-development /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="64bit 7zip X a52 aac aalib abook acl acpi alsa amarok amazon amd64 apm archive ares aspell attachment audio bash-completion battery bazaar berkdb bittorrent bookmarks branding bzip2 cairo calendar cdaudio cdda cdio cdr chroot cisco clamav clamd clamdtop cli clipboard clock-screen color-console colordiff config-log consolekit cpufreq cpulimit cracklib crypt csv cups cvs cxx dbus dhcp dhcpcd dialup dict disk-partition divx djvu dns dolby-record-switch dolbyinrec dri dts dvd dvdr dvi embedded emboss enca encode excel exif fam fat firefox firefox3 flac font-server ftp fuse gcj gdbm gif gimp gimpprint glib gmail gpg gpm gtk hal hifieq hpn html http icons iconv image imagemagick imap int64 ipfilter iproute2 ipv6 java java6 jpeg jpeg2k jpgraph kde kpathsea kvm lame laptop latex lcms ldap libnotify lm_sensors logitech-mouse mad maildrop mbox md5sum messages mikmod mime mmx mng modules mouse mozilla mp3 mp3rtp mp4 mp4live mpd mpeg mpeg2 mplayer msn mudflap multilib multiuser music nat ncurses network networking nforce2 nls nocman nodot nodpkg nogg nojoystick nomotif noopcode nptl nptlonly nsplugin ntfs ogg opengl openmp openntpd openssh openssl opera pam pcre pdf perl pgf pic plugins pmu png pnm pop pop3d postscript ppds pppd print procmail profile ps pstricks qemu qt3support qt4 rar raw-mode readline reflection regex sasl scanner science scp screen sdl session sftp smime smtp sndfile spell sse sse2 ssl startup-notification subversion svg sysfs syslog t1lib tcpd tiff tk trash-plugin truetype unicode unzip usb video videos vim vim-pager vim-syntax vim-with-x vorbis wifi wma wma-fixed x264 xcb xine xinetd xml xorg xsettings xulrunner xv xvid yahoo zip zlib" 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" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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" 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" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeon 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:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS


>>>>>>>>>>>>>>>>>>>>>>>>>>
emerge -pqv =media-video/mplayer-1.0_rc4_p20091026-r1
[ebuild  N    ] media-video/mplayer-1.0_rc4_p20091026-r1  USE="X a52 aac aalib alsa ass cddb cdio dirac doc dts dv dvd dvdnav enca encode faac faad ftp gif iconv ipv6 jpeg live mad md5sum mmx mng mp3 network opengl osdmenu png pnm quicktime rar real rtc schroedinger sdl shm speex sse sse2 theora toolame tremor truetype twolame unicode vorbis x264 xscreensaver xv xvid -3dnow -3dnowext (-altivec) -amr -bidi -bindist -bl -bs2b -cdparanoia -cpudetection -custom-cpuopts -debug -dga -directfb -dvb -dxr3 -esd -fbcon -ggi -gmplayer -jack -joystick -ladspa -libcaca -lirc -lzo -mmxext -nas -nut -openal -oss -pulseaudio -pvr -radio -samba -ssse3 (-svga) -teletext -tga -v4l -v4l2 -vdpau (-vidix) (-win32codecs) -xanim -xinerama -xvmc -zoran" VIDEO_CARDS="-mga -nvidia -s3virge -tdfx"
Comment 1 Marcin Szamotulski 2010-10-09 11:30:13 UTC
Created attachment 250005 [details]
build.log of emerge mplayer
Comment 2 Marcin Szamotulski 2010-10-17 10:54:10 UTC
(In reply to comment #1)
> Created an attachment (id=250005) [details]
> build.log of emerge mplayer
> 

Can I get some help?

I tried building mplayer with the following CFLAGS: -march=k8 -msse3 -O2 -pipe 
which on Gentoo Wiki are reported as Save Flags for my processor.
Unfortunately, I got the same error in the same place.
Comment 3 Reimar Döffinger 2010-10-17 11:11:01 UTC
MPlayer cannot be built without -fomit-frame-pointer.
Speaking only for MPlayer upstream now: Overriding or modifying CFLAGS in any way whatsoever from what configure chooses makes it an unsupported setup, do not expect any help from them.
Comment 4 Marcin Szamotulski 2010-10-17 19:09:46 UTC
(In reply to comment #3)
> MPlayer cannot be built without -fomit-frame-pointer.
> Speaking only for MPlayer upstream now: Overriding or modifying CFLAGS in any
> way whatsoever from what configure chooses makes it an unsupported setup, do
> not expect any help from them.
> 

Actually, I was changing the CFLAG variable in my /etc/make.conf file which I guess should not change the actual CFLAGS set by the ebuild (the settings in my make.conf file are quite old, and mplayer used to compile with them). The source code of mplayer compiles with no problem, when using ./configure and make (out side portage).

When emerging mplayer CFLAGS do not contain -fomit-frame-pointer (CFLAG set in config.mak configuration file of mplayer) while using ./configure && make procedure results in good CFLAGS.

Adding -fomit-frame-pointer in make.conf is depreciated (as written in gentoo handbook). So how should I fix my portage setting to get it working?

Thanks in advance!
Comment 5 Marcin Szamotulski 2010-10-26 17:42:51 UTC
I fixed my portage configuration and now it works. Thanks for help!
Comment 6 Alexis Ballier gentoo-dev 2011-12-15 14:58:43 UTC
build failure is at ffmpeg, which is now irrelevant for mplayer 1.0_rc4_p20111215 that uses system ffmpeg. anyway, mplayer's ebuild appends fomit-frame-pointer when needed. please reopen if you still see the issue.