[mythtv] Weird avcodec compile problem

Geoffrey Hausheer ou401cru02 at sneakemail.com
Fri Dec 19 17:45:48 EST 2003


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.

$ gcc -v
Reading specs from /usr/lib/gcc-lib/i486-linux/3.3.2/specs
Configured with: ../src/configure -v
--enable-languages=c,c++,java,f77,pascal,objc,ada,treelang --prefix=/usr
--mandir=/usr/share/man --infodir=/usr/share/info
--with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared
--with-system-zlib --enable-nls --without-included-gettext
--enable-__cxa_atexit --enable-clocale=gnu --enable-debug
--enable-java-gc=boehm --enable-java-awt=xlib --enable-objc-gc i486-linux
Thread model: posix
gcc version 3.3.2 (Debian)

.Geoff


More information about the mythtv-dev mailing list