compilation crashed when is making libavcodec subdirectory Reproducible: Always Steps to Reproduce: 1.emerge mythtv Actual Results: gcc -c -pipe -w -mcpu=i686 -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_BITS=64 -DPREFIX=\"/usr\" -DMMX -DCONFIG_VIDEO4LINUX -DUSING_IVTV -DLCD_DEVICE -DUSING_OSS -DUSING_DVB -DUSING_XVMC -DUSING_OPENGL_VSYNC -DHAVE_XVMC -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -I/usr/qt/3/mkspecs/linux-g++ -I. -I../.. -I/usr/qt/3/include -o lcl.o lcl.c gcc -c -pipe -w -mcpu=i686 -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_BITS=64 -DPREFIX=\"/usr\" -DMMX -DCONFIG_VIDEO4LINUX -DUSING_IVTV -DLCD_DEVICE -DUSING_OSS -DUSING_DVB -DUSING_XVMC -DUSING_OPENGL_VSYNC -DHAVE_XVMC -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -I/usr/qt/3/mkspecs/linux-g++ -I. -I../.. -I/usr/qt/3/include -o qtrle.o qtrle.c gcc -c -pipe -w -mcpu=i686 -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_BITS=64 -DPREFIX=\"/usr\" -DMMX -DCONFIG_VIDEO4LINUX -DUSING_IVTV -DLCD_DEVICE -DUSING_OSS -DUSING_DVB -DUSING_XVMC -DUSING_OPENGL_VSYNC -DHAVE_XVMC -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -I/usr/qt/3/mkspecs/linux-g++ -I. -I../.. -I/usr/qt/3/include -o g726.o g726.c gcc -c -pipe -w -mcpu=i686 -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_BITS=64 -DPREFIX=\"/usr\" -DMMX -DCONFIG_VIDEO4LINUX -DUSING_IVTV -DLCD_DEVICE -DUSING_OSS -DUSING_DVB -DUSING_XVMC -DUSING_OPENGL_VSYNC -DHAVE_XVMC -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -I/usr/qt/3/mkspecs/linux-g++ -I. -I../.. -I/usr/qt/3/include -o flac.o flac.c gcc -c -pipe -w -mcpu=i686 -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_BITS=64 -DPREFIX=\"/usr\" -DMMX -DCONFIG_VIDEO4LINUX -DUSING_IVTV -DLCD_DEVICE -DUSING_OSS -DUSING_DVB -DUSING_XVMC -DUSING_OPENGL_VSYNC -DHAVE_XVMC -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -I/usr/qt/3/mkspecs/linux-g++ -I. -I../.. -I/usr/qt/3/include -o vp3dsp.o vp3dsp.c gcc -c -pipe -w -mcpu=i686 -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_BITS=64 -DPREFIX=\"/usr\" -DMMX -DCONFIG_VIDEO4LINUX -DUSING_IVTV -DLCD_DEVICE -DUSING_OSS -DUSING_DVB -DUSING_XVMC -DUSING_OPENGL_VSYNC -DHAVE_XVMC -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -I/usr/qt/3/mkspecs/linux-g++ -I. -I../.. -I/usr/qt/3/include -o integer.o integer.c gcc -c -pipe -w -mcpu=i686 -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_BITS=64 -DPREFIX=\"/usr\" -DMMX -DCONFIG_VIDEO4LINUX -DUSING_IVTV -DLCD_DEVICE -DUSING_OSS -DUSING_DVB -DUSING_XVMC -DUSING_OPENGL_VSYNC -DHAVE_XVMC -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -I/usr/qt/3/mkspecs/linux-g++ -I. -I../.. -I/usr/qt/3/include -o h261.o h261.c gcc -c -pipe -w -mcpu=i686 -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_BITS=64 -DPREFIX=\"/usr\" -DMMX -DCONFIG_VIDEO4LINUX -DUSING_IVTV -DLCD_DEVICE -DUSING_OSS -DUSING_DVB -DUSING_XVMC -DUSING_OPENGL_VSYNC -DHAVE_XVMC -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -I/usr/qt/3/mkspecs/linux-g++ -I. -I../.. -I/usr/qt/3/include -o resample2.o resample2.c gcc -c -pipe -w -mcpu=i686 -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_BITS=64 -DPREFIX=\"/usr\" -DMMX -DCONFIG_VIDEO4LINUX -DUSING_IVTV -DLCD_DEVICE -DUSING_OSS -DUSING_DVB -DUSING_XVMC -DUSING_OPENGL_VSYNC -DHAVE_XVMC -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -I/usr/qt/3/mkspecs/linux-g++ -I. -I../.. -I/usr/qt/3/include -o postprocess.o libpostproc/postprocess.c libpostproc/postprocess_template.c: In function `blockCopy_MMX': libpostproc/postprocess_template.c:3252: error: can't find a register in class `GENERAL_REGS' while reloading `asm' make: *** [postprocess.o] Error 1 make: Leaving directory `/var/tmp/portage/mythtv-0.16/work/mythtv-0.16/libs/libavcodec' !!! ERROR: media-tv/mythtv-0.16 failed. !!! Function src_compile, Line 165, Exitcode 2 !!! (no error message) !!! If you need support, post the topmost build error, NOT this status message. Portage 2.0.51-r3 (default-linux/x86/2004.2, gcc-3.3.4, glibc-2.3.4.20040808-r1, 2.6.10-ck4 i686) ================================================================= System uname: 2.6.10-ck4 i686 Intel(R) Celeron(R) CPU 2.40GHz Gentoo Base System version 1.4.16 distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] Autoconf: sys-devel/autoconf-2.59-r5 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.15.90.0.1.1-r3 Headers: sys-kernel/linux26-headers-2.6.8.1,sys-kernel/linux26-headers-2.6.8.1-r1 Libtools: sys-devel/libtool-1.5.2-r7 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-mcpu=i686" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-mcpu=i686" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache digest distlocks prelink sandbox sfperms" GENTOO_MIRRORS="http://mirrors.sec.informatik.tu-darmstadt.de/gentoo" MAKEOPTS="-j1" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X aalib acl alsa apache2 apm arts audiofile avantgo avi berkdb bitmap-fonts bluetooth bootsplash cdparanoa cdr chroot crypt cups curl dba directfb divix4linux divx4linux doc dvb dvd dvdr dvdread encode exif f77 fastcgi fax fbcon flac flash font-server foomaticdb fortran gd gdbm ggi gif gnome gpm gstreamer gtk gtk2 iconv icq imagemagick imap imlib innodb jack java javascript jpeg jpeg2k junit kde lcd ldap libg++ libwww mad maildir matroska mbox mikmod mime mmx mmx2 motif mozilla mpeg mysql mythtv nas ncurses network nls nptl nvidia oci8 odbc oggvorbis openal opengl pam pda pdflib perl png postgres povray python qt quicktime readline samba sasl sdl session slang soap speex spell sqlite sse sse2 ssl svg svga tcltk tcpd theora threads tiff timidity truetype truetype-fonts type1-fonts unicode usb v4l v4l2 vhosts wifi x86 xine xml xml2 xmms xv xvid zlib linguas_en linguas_sk linguas_cz linguas_cs linguas_ru linguas_de"
you're going to have to add -O2 to your CFLAGS. I think the assembly code requires -O2. It might only require -O. You really should always include at least -O.
yes, only bag CFLAGS. -O2 thanx