[mythtv] Weird avcodec compile problem

Geoffrey Hausheer ou401cru02 at sneakemail.com
Fri Dec 19 20:10:20 EST 2003


On Fri, 19 Dec 2003 18:05:27 -0500, "Isaac Richards" said:
> On Friday 19 December 2003 05:45 pm, Geoffrey Hausheer wrote:
> > For some reason if I'm in debug, when I try to compile libavcodec, I get:
> > gcc -c -pipe -w -g -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64
> > -D_LARGEFILE_SOURCE -D_GNU_SOURCE -D_REENTRANT  -D_GNU_SOURCE
> > -D_FILE_OFFSET_BITS=64 -DPREFIX=\"/usr/local\" -DMMX -DQT_THREAD_SUPPORT
> > -DQT_SHARED -DQT_NO_DEBUG -I/usr/share/qt3/mkspecs/default -I. -I../..
> > -I../../../../../../include/qt3 -o dsputil_mmx.o i386/dsputil_mmx.c
> > i386/dsputil_mmx.c: In function `h263_h_loop_filter_mmx':
> > i386/dsputil_mmx.c:610: error: can't find a register in class
> > `GENERAL_REGS' while reloading `asm'
> > make: *** [dsputil_mmx.o] Error 1
> > 
> > Adding '-O' to QMAKE_CFLAGS_DEBUG in libavcodec.pro solves this problem.
> > 
> > Perhaps it's a gcc thing, I certainly don't remember seeing this in the
> > past.
> 
> Seems to compile if you do it in release mode, not debug mode.
> 
Yeah, but it is pretty hard to debug problems with -O3 set (it reorders
the execution commands)

For some reason dsputil_mmx.c won't compile without a '-O' setting (and
'-O0' doesn't work).

I suppose I could just disable MMX for debug, but that'll kill my
performance, and valgrind supoorts MMX ok nowadays.

.Geoff


More information about the mythtv-dev mailing list