Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 329861 - media-video/mplayer-1.0_rc4_p20100506 compile failure with Gentoo Prefix and OS X 32-bit
Summary: media-video/mplayer-1.0_rc4_p20100506 compile failure with Gentoo Prefix and ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Mac OSX (show other bugs)
Hardware: All OS X
: High normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-26 04:48 UTC by CFuga
Modified: 2010-07-29 16:30 UTC (History)
0 users

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


Attachments
build.log for media-video/mplayer-1.0_rc4_p20100506 (build.log,588.90 KB, text/plain)
2010-07-26 04:51 UTC, CFuga
Details
Handles x86-macos (mplayer-1.0_rc4_p20100506.ebuild.patch,356 bytes, patch)
2010-07-28 14:16 UTC, Florian CROUZAT (SuperFlo)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description CFuga 2010-07-26 04:48:52 UTC
MPlayer ebuild fails to compile in OS X 32-bit using Gentoo Prefix.

$ emerge --info =media-video/mplayer-1.0_rc4_p20100506
Portage 2.2.01.15417-prefix (prefix/darwin/macos/10.5/x86, gcc-4.2.1, unavailable, 9.8.0 i386)
=================================================================
                        System Settings
=================================================================
System uname: Darwin-9.8.0-i386-32bit
Timestamp of tree: Sun, 25 Jul 2010 23:11:54 +0000
distcc 2.18.5-Apple.1 i386-apple-darwin9.0 (protocols 1 and 2) (default port 3632) [disabled]
app-shells/bash:     4.1_p5
dev-lang/python:     2.6.5-r2
sys-devel/autoconf:  2.65-r1
sys-devel/automake:  1.9.6-r3, 1.10.2-r00.1, 1.11.1
sys-devel/gcc-config: 1.4.1-r00.2
sys-devel/libtool:   2.2.10
ACCEPT_KEYWORDS="~x86-macos"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-apple-darwin9"
CFLAGS="-O2 -march=nocona -pipe"
CHOST="i686-apple-darwin9"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.cof /etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -march=nocona -pipe"
DISTDIR="/opt/local/Library/Gentoo/usr/portage/distfiles"
FEATURES="assume-digests candy distlocks fixpackages lafilefixing news nostrip parallel-fetch preserve-libs protect-owned sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="es_ES.UTF-8"
LDFLAGS=""
LINGUAS="es es_MX es_AR es_LA"
MAKEOPTS="-j3"
PKGDIR="/opt/local/Library/Gentoo/usr/portage/packages"
PORTAGE_CONFIGROOT="/opt/local/Library/Gentoo/"
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="/opt/local/Library/Gentoo/var/tmp"
PORTDIR="/opt/local/Library/Gentoo/usr/portage"
PORTDIR_OVERLAY="/opt/local/Library/Gentoo/usr/local/portage"
SYNC="rsync://rsync.prefix.freens.org/gentoo-portage-prefix"
USE="aqua bash-completion berkdb bzip2 cddb coreaudio cracklib crypt encode ftp gdbm gif gmp gnutls gs iconv idn ipv6 jbig jpeg jpeg2k lzo md5sum mmx mmxext mng modules mp2 mp3 ncurses network nls nocxx objc objc++ ogg pcre pic png pnm prefix rar readline rle sasl sndfile speex spell sse sse2 ssl theora tiff unicode vorbis x86-macos xml xvid zlib" 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" ELIBC="Darwin" INPUT_DEVICES="keyboard mouse" KERNEL="Darwin" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="es es_MX es_AR es_LA" RUBY_TARGETS="ruby18" USERLAND="GNU" 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, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

$ emerge -pqv =media-video/mplayer-1.0_rc4_p20100506
FEATURES variable contains an unknown value(s): candy
[ebuild     U ] media-video/mplayer-1.0_rc4_p20100506 [1.0_rc2_p20090322] USE="a52 (aqua) ass cddb dts dv* dvd dvdnav enca* encode faac faad ftp gif iconv ipv6 jpeg jpeg2k%* live* lzo mad md5sum mmx mmxext mng mp3 network opengl osdmenu%* png pnm quicktime rar real schroedinger shm%* speex sse sse2 theora toolame%* tremor truetype twolame%* unicode vorbis x264 xvid (-3dnow) (-3dnowext) (-X) -aalib (-alsa) (-altivec) -amr% -bidi (-bindist) -bl -bs2b% -cdio -cdparanoia (-cpudetection) (-custom-cpuopts) -debug (-dga) -dirac (-directfb) -doc (-dvb) (-dxr3) (-esd) (-fbcon) (-ggi) -gmplayer% (-jack) (-joystick) -ladspa -libcaca (-lirc) -nas -nut% -openal (-oss) -pulseaudio -pvr -radio (-rtc) -samba -sdl -ssse3 -svga -tga (-v4l) (-v4l2) (-vdpau) -vidix -win32codecs -xanim (-xinerama) -xscreensaver (-xv) (-xvmc) -zoran (-aac%*) (-custom-cflags%) (-gtk%) (-mp2%*) (-nemesi%*) (-teletext%)" VIDEO_CARDS="-mga -s3virge -tdfx -vesa (-nvidia%)"
Comment 1 CFuga 2010-07-26 04:51:32 UTC
Created attachment 240175 [details]
build.log for media-video/mplayer-1.0_rc4_p20100506
Comment 2 Fabian Groffen gentoo-dev 2010-07-26 08:17:40 UTC
Problem is you're running out of registers here.  (problem with x86 CPUs :))

http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/2006-November/047222.html
suggests you need -fomit-frame-pointer, could you add that your CFLAGS and try if it works for you?
Comment 3 CFuga 2010-07-26 14:41:50 UTC
Yup, it works like a charm. I added -fomit-frame-pointer to CFLAGS, MPlayer compiled fine, and plays my videos. Thanks.
Comment 4 Florian CROUZAT (SuperFlo) 2010-07-28 14:16:29 UTC
Created attachment 240445 [details, diff]
Handles x86-macos

Untested patch, should work though.
Comment 5 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2010-07-29 16:30:11 UTC
(In reply to comment #4)
> Created an attachment (id=240445) [details]
> Handles x86-macos
> 
> Untested patch, should work though.
> 

I did this, so our diffs are cleaner.

Index: mplayer-1.0_rc4_p20100506.ebuild
===================================================================
--- mplayer-1.0_rc4_p20100506.ebuild    (revision 58314)
+++ mplayer-1.0_rc4_p20100506.ebuild    (working copy)
@@ -571,6 +571,9 @@
        # workaround bug, x86 just has too few registers, see c.f.
        # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=402950#44
        [[ ${CHOST} == i?86-*solaris* ]] && append-flags -fomit-frame-pointer
+       # and 32b osx, bug 329861
+       [[ ${CHOST} == i?86-*darwin* ]] && append-flags -fomit-frame-pointer
+
 
        ###########################
        # X enabled configuration #