[mythtv-users] GCC 4.1 & 4.3 fails to build Mythtv svn trunk

Sam Logen starz909 at yahoo.com
Mon Jun 1 21:56:29 UTC 2009

Hello again everyone,

I decided to experiment with lastest mythtv-0.22 trunk repo, so I attempted to build it with both Gentoo's hard-masked alpha ebuild (mythtv-0.22_alpha19054), and then with dragon-ebuild's version that pulls from the latest svn.

Both compiles fail with this error (this is regardless of whether I have "x264" in my USE flags):
gcc -c -pipe -march=athlon-xp -fomit-frame-pointer -O3 -DNDEBUG -D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112 -fasm -std=c99 -pthread -g -Wall -Wno-switch -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wno-pointer-sign -Wcast-qual -funit-at-a-time -Wwrite-strings -fno-math-errno -w -D_REENTRANT -DPIC -fPIC -Di386 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DHAVE_AV_CONFIG_H -D_LARGEFILE_SOURCE -DHAVE_XVMC -I/usr/share/qt4/mkspecs/linux-g++ -I. -I.. -I../.. -I. -o dsputil_mmx.o i386/dsputil_mmx.c
i386/h264dsp_mmx.c: In function 'put_h264_qpel4_h_lowpass_3dnow':
i386/h264dsp_mmx.c:1891: error: can't find a register in class 'GENERAL_REGS' while reloading 'asm'
make[2]: *** [dsputil_mmx.o] Error 1

Searches for this error return pages 3-4 years old, so I think it's a problem with either the ebuild files I'm using or my system settings.

There were hints that it had to do with gcc and certain cflags passed to it, so I upgraded from gcc 4.1 to 4.3 - same problem.  Some suggested that the problem lay in the "-fPIC" flag, but the source code seems to assign all the gcc flags automatically.

If someone could point me in the right direction to solve this, that would be fantastic.  Last mythtv build that worked for me was 'mythtv-0.21_p19961-r2'.

My system specs are:
CPU: 32bit Athlon-XP 3000+
Gentoo Linux


More information about the mythtv-users mailing list