[MPlayer-users] mplayer on Solaris 10 x86 ?

Shane Ludwig sludwig at xo.com
Fri Feb 22 19:53:11 CET 2008

Hello all,

I'm getting the usual

cabac.h:525: error: can't find a register in class `GENERAL_REGS' while
reloading `asm'

error when attempting to compile MPlayer-1.0rc2 on my Sun Ultra 20 running
Solaris 10 x86 with gcc 3.4.3.

Below is the gcc line it's using.  Whatever switches and flags it picked up by
default.  After digging around on google trying to find a solution, as well as
in the archives of this list, I noted that it already has the usual suggestions
of -O4, -fomit-frame-pointer and -ffast-math, as well as -pipe and there is no
-g.  Configure was run with only the --enable-gui option.

I also tried running just that command separately 

1) removing -O4
2) changing -O4 to -O3
3) changing -O4 to -O2
4) removing -O4 -march=k8 -mtune=k8

and finally 

5) changing -O4 -march=k8 -mtune=k8 to -O4 -march=opteron -mtune=opteron

as was suggested in this post:

However, all those had the same issue.

Has anyone gotten this to work ?

gcc -I../libswscale -I../libavcodec  -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64
-Wdisabled-optimization -Wdeclaration-after-statement -I. -I.. -I../libavutil
-Wall -Wno-switch -Wpointer-arith -Wredundant-decls -O4 -march=k8 -mtune=k8
-pipe -ffast-math -fomit-frame-pointer -D_LARGEFILE_SOURCE
-I/usr/openwin/include  -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include
-I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/openwin/include
-I/usr/sfw/include -I/usr/sfw/include/freetype2 -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include    -c -o h264.o h264.c


Shane Ludwig            sludwig at xo.com
*   Every saint has a past and every sinner a future.  -- Oscar Wilde   *

More information about the MPlayer-users mailing list