On Tue, 2007-05-15 at 15:05 +0200, Alvaro Lopez Ortega wrote: > Hugh O'Hare (AT/LMI) wrote, On 15/05/07 14:30: > > > Has anyone got SFEmplayer to build on Sparc? I havn't tried > > anything at all to get around the problem I'm having, because > > I wan't to ask first if I was wasting my time. I know this was > > seen by others, but I can't remember if there was a solution: > > > > /usr/ccs/bin/as: "/var/tmp/ccFNaiLv.s", line 1582: error: cannot use > > v8plus registers in a non-v8plus target binary > > Yep, I did compile it.. Here you have the patch. > > plain text document attachment (SFEmplayer-patch.diff) > Index: patches/mplayer-05-v8plus.diff > =================================================================== > --- patches/mplayer-05-v8plus.diff (revision 0) > +++ patches/mplayer-05-v8plus.diff (revision 0) > @@ -0,0 +1,11 @@ > +--- MPlayer-1.0rc1/libmpeg2/Makefile.orig 2007-03-03 19:01:40.441819000 > +0100 > ++++ MPlayer-1.0rc1/libmpeg2/Makefile 2007-03-04 00:24:15.549000000 +0100 > +@@ -14,7 +14,7 @@ > + > + OBJS = $(SRCS:.c=.o) > + INCLUDE = -I. -I../libvo -I.. > +-CFLAGS = $(INCLUDE) $(OPTFLAGS) -DMPG12PLAY > ++CFLAGS = $(INCLUDE) $(OPTFLAGS) -DMPG12PLAY -Wa,-xarch=v8plus > + > + ifeq ($(TARGET_MMX),yes) > + SRCS += idct_mmx.c motion_comp_mmx.c > Index: SFEmplayer.spec > =================================================================== > --- SFEmplayer.spec (revision 158) > +++ SFEmplayer.spec (working copy) > @@ -16,6 +16,7 @@ > Patch2: mplayer-02-makefile-libfame-dep.diff > Patch3: mplayer-03-asmrules_20061231.diff > Patch4: mplayer-04-cabac-asm.diff > +Patch5: mplayer-05-v8plus.diff > Source3: > http://www.mplayerhq.hu/MPlayer/skins/Blue-1.7.tar.bz2 > Source4: > http://www.mplayerhq.hu/MPlayer/skins/Abyss-1.6.tar.bz2 > Source5: > http://www.mplayerhq.hu/MPlayer/skins/neutron-1.5.tar.bz2 > @@ -73,6 +74,7 @@ > %patch2 -p1 > %patch3 -p1 > %patch4 -p1 > +%patch5 -p1 > > unzip %SOURCE7 > unzip 26104-610_ANSI_C_source_code.zip
Add %ifarch sparc / %endif around this patch please (although I don't like %ifarch...) and commit. Thanks, Laca
