This is a very similar issue to one I reported (or saw?) with OpenSSL. It looks like packages using certain optimizations fail to build with -O0. As previously stated, OpenSSL was one a few versions back, and now libtheora is exhibiting the exact same compile error. Build log and environment files attached. --info and other details below. Reproducible: Always Steps to Reproduce: 1. CFLAGS="${CFLAGS} -O0 -pipe" emerge libtheora 2. then you just wait Actual Results: Compile failure /bin/sh ../libtool --tag=CC --mode=compile i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I../lib -I../lib/dec -I../lib/enc -Wall -Wno-parentheses -fomit-frame-pointer -march=pentium3 -O0 -pipe -c -o libtheora_la-dct_decode_mmx.lo `test -f 'enc/x86_32/dct_decode_mmx.c' || echo './'`enc/x86_32/dct_decode_mmx.c i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I../lib -I../lib/dec -I../lib/enc -Wall -Wno-parentheses -fomit-frame-pointer -march=pentium3 -O0 -pipe -c dec/state.c -o libtheora_la-state.o >/dev/null 2>&1 i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I../lib -I../lib/dec -I../lib/enc -Wall -Wno-parentheses -fomit-frame-pointer -march=pentium3 -O0 -pipe -c enc/x86_32/dct_decode_mmx.c -fPIC -DPIC -o .libs/libtheora_la-dct_decode_mmx.o enc/x86_32/dct_decode_mmx.c: In function 'FilterHoriz__mmx': enc/x86_32/dct_decode_mmx.c:94: error: can't find a register in class 'GENERAL_REGS' while reloading 'asm' enc/x86_32/dct_decode_mmx.c:96: error: can't find a register in class 'GENERAL_REGS' while reloading 'asm' make[2]: *** [libtheora_la-dct_decode_mmx.lo] Error 1 Expected Results: Compile Success Portage 2.1.4_rc9 (default-linux/x86/2007.0, gcc-4.1.2, glibc-2.7-r1, 2.6.23-gentoo-r2 i686) ================================================================= System uname: 2.6.23-gentoo-r2 i686 Pentium III (Coppermine) Timestamp of tree: Sun, 16 Dec 2007 07:46:01 +0000 app-shells/bash: 3.2_p17-r1 dev-java/java-config: 1.3.7, 2.1.3 dev-lang/python: 2.4.4-r4, 2.5.1-r4 dev-python/pycrypto: 2.0.1-r6 sys-apps/baselayout: 1.12.10-r5 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.61-r1 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.18-r1 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.24 virtual/os-headers: 2.6.23-r2 ACCEPT_KEYWORDS="x86 ~x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=pentium3 -O0 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-march=pentium3 -O0 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://gentoo.mirrors.easynews.com/linux/gentoo/" LINGUAS="en ja" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage" USE="7zip X aac aalib acl administrator aim alsa amarok anthy ao apache2 avahi bash-completion beagle berkdb bitmap-fonts bonjour branding buttons bzip2 cairo canna cgi charconv cjk cli colordiff console contrarius cracklib cran crypt css csv ctype cups curl cursors cvs cvsgraph daap dbus dia divx dmi dmx dnotify doomsday dri dvd dvdnav dvdr dvdread emerald emoticon encode escreen expat extras fam fastcgi festival firefox flac force-cgi-redirect fortran ftp fuse gd gdbm geoip gif gimp gkrellm glib glitz glsa gmail gmp gnutls gpgme gpm graphviz gstreamer gtk gzip hal howl-compat httpd ical icecast icons iconv icq icu id3 idn imagemagick imap imlib immqt-bc inquisitio irc isdnlog jabber javascript jingle jp jpeg jpeg2k kcal kde kdecards lame ldap ldap-sasl libcaca libnotify libsamplerate libsexy libvisual libwww lighttpd lj logrotate logwatch lua mad magic mcal md5sum mdnsresponder-compat mhash midi mikmod mjpeg mng moznoxft mp3 mp4 mpeg mpeg2 mpm-worker msn msnextras mudflap multiuser musepack music musicbrainz mysql mysqli nagios-dns nagios-game nagios-ntp nagios-ping nagios-ssh ncurses nethack network-cron nls nntp nptl nptlonly offensive ogg openid openmp pam pcre perl php pink png portage portaudio prediction print pulseaudio python qa qt3 qt3support qt4 quicktime rdesktop readline reflection resolvconf rss ruby samba sasl scim screen sdl sdl-image sdl-sound sdlaudio server session sftp shorten sid simplexml sms sox speex spell spl sql sqlite sqlite3 srv ssl startup-notification stream subtitles subversion svg svga svgz svn-mirror swat swig symlink tcl tcpd themes theora threads threadsafe thumbnail thunderbird tidy tiff timidity tk transcode truetype truetype-fonts type1-fonts unicode unzip usb userlocales v4l v4l2 vim vim-pager vim-syntax vim-with-x vnc vncviewer vorbis vorbis-psy wav wavpack webdav win32codecs wireshark wma wmf x11vnc x86 xcomposite xhtml xine xml xmlreader xmlrpc xmlwriter xorg xpm xrandr xscreensaver xsl xslt xterm xv xvid xvmc xvnc zeroconf zip zlib" ALSA_CARDS="emu10k1" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en ja" USERLAND="GNU" VIDEO_CARDS="radeon vesa vga" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Created attachment 138645 [details] Build log
Created attachment 138646 [details] environment file
*** This bug has been marked as a duplicate of bug 200549 ***