[MPlayer-users] libavcodec (mplayer-current) fails to compile with no optimizations

Nilmoni Deb ndeb at ece.cmu.edu
Mon Dec 6 05:30:08 CET 2004


In config.mak, if I remove any -O flag in:

OPTFLAGS = -I../libvo -I../../libvo -I/usr/X11R6/include -fno-PIC -W -Wall
-Wno-unused-parameter -O -g  -D_REENTRANT -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 $(EXTRA_INC)

then gcc-3.4.1 (linux mandrake 10.1 official) gives this error:

In file included from libpostproc/postprocess.c:655:
libpostproc/postprocess_template.c: In function `postProcess_MMX2':
libpostproc/postprocess_template.c:2901: warning: use of memory input
without lvalue in asm operand 4 is deprecated
libpostproc/postprocess_template.c:2901: warning: use of memory input
without lvalue in asm operand 4 is deprecated
libpostproc/postprocess_template.c: In function `dering_MMX2':
libpostproc/postprocess_template.c:1186: error: can't find a register in
class `GENERAL_REGS' while reloading `asm'
make[1]: *** [libpostproc/postprocess.o] Error 1
make[1]: Leaving directory `/home/ndeb/MPlayer-20041107/libavcodec'

If I add the -O (or -O2, -O4 etc.) back then compilation succeeds.

thanks
- Nil




More information about the MPlayer-users mailing list