[Mplayer-advusers] compilation fails again in postprocess_template.c

Dominik Mierzejewski dominik at rangers.eu.org
Thu Oct 31 01:38:18 CET 2002


cvs update'd half an hour ago...

[...]
make[1]: Leaving directory `/usr/local/share/builder/pkg/BUILD/MPlayer-20021031/linux'
/usr/bin/make -C postproc
make[1]: Entering directory `/usr/local/share/builder/pkg/BUILD/MPlayer-20021031/postproc'
gcc3 -c -O4 -march=i486 -mcpu=i686 -pipe -ffast-math -fomit-frame-pointer -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -I. -I..  -o swscale.o swscale.c
gcc3 -c -O4 -march=i486 -mcpu=i686 -pipe -ffast-math -fomit-frame-pointer -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -I. -I..  -o rgb2rgb.o rgb2rgb.c
gcc3 -c -O4 -march=i486 -mcpu=i686 -pipe -ffast-math -fomit-frame-pointer -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -I. -I..  -o yuv2rgb.o yuv2rgb.c
ar r libswscale.a swscale.o rgb2rgb.o yuv2rgb.o
gcc3 -c -O4 -march=i486 -mcpu=i686 -pipe -ffast-math -fomit-frame-pointer -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -I. -I..  -o postprocess.o postprocess.c
ar r libpostproc.a postprocess.o
gcc3 -c -O4 -march=i486 -mcpu=i686 -pipe -ffast-math -fomit-frame-pointer -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -I. -I..  -fomit-frame-pointer -fPIC -DPIC -o postprocess_pic.o postprocess.c
postprocess.c: In function `postProcess_MMX':
postprocess_template.c:896: can't find a register in class `GENERAL_REGS' while reloading `asm'
make[1]: *** [postprocess_pic.o] Error 1
make[1]: Leaving directory `/usr/local/share/builder/pkg/BUILD/MPlayer-20021031/postproc'
make: *** [postproc/libswscale.a] Error 2
[...]

At first I thought it could be my setting CFLAGS in RPM build process, so I
allowed MPlayer's configure to choose it's own, but to no avail. And I
thought I reported something similar recently and someone said it was
fixed...

BTW: funny thing, which I never noticed before because I always
set CFLAGS manually. Well, two things, actually.
One: as you can see above, configure chooses -march=i486 -mcpu=i686 for
OPTFLAGS even though my CPU is a Duron and is detected:
[...]
Checking for gcc3 version ... 3.1, ok
Checking for CPU vendor ... AuthenticAMD (6:3:1)
Checking for CPU type ...  AMD Duron(tm) processor
Checking for GCC & CPU optimization abilities ... athlon
[...]
Two: some of the subdirs' Makefiles don't include -Wall in CFLAGS, so lots
of warnings go unnoticed. I recently added -Wall to my manually-set CFLAGS
and suddenly warnings log jumped from 700 bytes to 18k bytes. I'll try to
make a patch next week, when I'm back (going home for the Day of the Dead).

-- 
MPlayer RPMs maintainer: http://www.piorunek.pl/~dominik/linux/pkgs/mplayer/
"The Universe doesn't give you any points for doing things that are easy."
        -- Sheridan to Garibaldi in Babylon 5:"The Geometry of Shadows"



More information about the MPlayer-advusers mailing list