[mythtv] cvs AMD64 compilation - mpegvideo.c error unrecognizable insn

Eric STEIMER steimer at club-internet.fr
Mon Feb 7 02:29:53 UTC 2005


I'm currently trying to build the mythtv cvs version on AMD64 system 
pure64 (Debian alioth)
gcc is 3.3

I apt-get'ed libqt3-mt-dev libmysqlclient10-dev liblircclient-dev
      libartsc0-dev liblame0 liblame-dev
$PATH and $QTDIR points respectively to :$PATH:/usr/share/qt3/bin and 
/usr/share/qt3

When I try to make mythtv cvs I get an "unrecognizable insn" error: (see 
below)

Figuera:/usr/local/cvs/mythtv/mythtv# ./configure
Please note that these settings only deal with libavcodec, not MythTV.
CPU              x86_64
Big Endian       no
MMX enabled      yes
Vector Builtins  no
Creating config.mak and config.h
config.h is unchanged
Figuera:/usr/local/cvs/mythtv/mythtv# qmake mythtv.pro
Figuera:/usr/local/cvs/mythtv/mythtv# make
cd libs && make -f Makefile
make[1]: Entering directory `/usr/local/cvs/mythtv/mythtv/libs'
cd libavcodec && make -f Makefile
make[2]: Entering directory `/usr/local/cvs/mythtv/mythtv/libs/libavcodec'
qmake -o Makefile libavcodec.pro
make[2]: Leaving directory `/usr/local/cvs/mythtv/mythtv/libs/libavcodec'
make[2]: Entering directory `/usr/local/cvs/mythtv/mythtv/libs/libavcodec'
gcc -c -pipe -w -O3 -march=pentiumpro -fomit-frame-pointer -O3 -Wall 
-Wno-switch             -DPIC -fPIC -fomit-frame-pointer 
-DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 
-D_LARGEFILE_SOURCE -D_GNU_SOURCE -D_REENTRANT  -D_GNU_SOURCE 
-D_FILE_OFFSET_BI            TS=64 -DPREFIX=\"/usr/local\" -DMMX 
-DUSING_IVTV -DQT_NO_DEBUG -DQT_THREAD_SUPPO            RT -DQT_SHARED 
-I/usr/share/qt3/mkspecs/default -I. -I../.. -I../../../../../../ 
      include/qt3 -o utils.o utils.c
gcc -c -pipe -w -O3 -march=pentiumpro -fomit-frame-pointer -O3 -Wall 
-Wno-switch             -DPIC -fPIC -fomit-frame-pointer 
-DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 
-D_LARGEFILE_SOURCE -D_GNU_SOURCE -D_REENTRANT  -D_GNU_SOURCE 
-D_FILE_OFFSET_BI            TS=64 -DPREFIX=\"/usr/local\" -DMMX 
-DUSING_IVTV -DQT_NO_DEBUG -DQT_THREAD_SUPPO            RT -DQT_SHARED 
-I/usr/share/qt3/mkspecs/default -I. -I../.. -I../../../../../../ 
      include/qt3 -o mem.o mem.c
gcc -c -pipe -w -O3 -march=pentiumpro -fomit-frame-pointer -O3 -Wall 
-Wno-switch             -DPIC -fPIC -fomit-frame-pointer 
-DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 
-D_LARGEFILE_SOURCE -D_GNU_SOURCE -D_REENTRANT  -D_GNU_SOURCE 
-D_FILE_OFFSET_BI            TS=64 -DPREFIX=\"/usr/local\" -DMMX 
-DUSING_IVTV -DQT_NO_DEBUG -DQT_THREAD_SUPPO            RT -DQT_SHARED 
-I/usr/share/qt3/mkspecs/default -I. -I../.. -I../../../../../../ 
      include/qt3 -o allcodecs.o allcodecs.c
gcc -c -pipe -w -O3 -march=pentiumpro -fomit-frame-pointer -O3 -Wall 
-Wno-switch             -DPIC -fPIC -fomit-frame-pointer 
-DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 
-D_LARGEFILE_SOURCE -D_GNU_SOURCE -D_REENTRANT  -D_GNU_SOURCE 
-D_FILE_OFFSET_BI            TS=64 -DPREFIX=\"/usr/local\" -DMMX 
-DUSING_IVTV -DQT_NO_DEBUG -DQT_THREAD_SUPPO            RT -DQT_SHARED 
-I/usr/share/qt3/mkspecs/default -I. -I../.. -I../../../../../../ 
      include/qt3 -o mpegvideo.o mpegvideo.c
mpegvideo.c: In function `select_input_picture':
mpegvideo.c:2112: error: unrecognizable insn:
(insn:HI 1654 1653 880 85 0x2a972347e0 (set (reg:SI 294)
	(plus:SI (mult:SI (reg:SI 294)
		(const_int 2 [0x2]))
	(reg:SI 294))) -1 (insn_list 1653 (nil))
	(nil))
mpegvideo.c:2112: internal compiler error: in extract_insn, at recog.c:2175
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
For Debian GNU/Linux specific bug reporting instructions, see
<URL:file:///usr/share/doc/gcc-3.3/README.Bugs>.
make[2]: *** [mpegvideo.o] Error 1
make[2]: Leaving directory `/usr/local/cvs/mythtv/mythtv/libs/libavcodec'
make[1]: *** [sub-libavcodec] Error 2
make[1]: Leaving directory `/usr/local/cvs/mythtv/mythtv/libs'
make: *** [sub-libs] Error 2
Figuera:/usr/local/cvs/mythtv/mythtv#

Maybe the fact that my system is pure64 could explain the problem? I 
prefer to ask here before initiating a bug report on gcc.

I initially built mythtv-cvs on a PIII-450 and was pretty amazed with 
the results. This made me decide to go for a whole new config with 
AMD64, which was supposed to be well supported by MythTV (apart from 
some Mythmusic issue).
I've spent the whole week-end trying to figure it out before resulting 
myself to post here and ask for some help.
May I add I'm eager to test/validate the whole thing on my architecture 
(Asus K8N-E Deluxe, PVR350) and help the mythtv community. Still I first 
have to make it work :)
Thanks
Eric


More information about the mythtv-dev mailing list