While trying to build qemu I get the following error: i686-pc-linux-gnu-gcc -Wall -O2 -g -fno-strict-aliasing -mpreferred-stack-boundary=2 -fomit-frame-pointer -falign-functions=0 -fno-gcse -fno-reorder-blocks -fno-optimize-sibling-calls -I. -I.. -I/var/tmp/portage/app-emulation/qemu-softmmu-0.9.0-r1/work/qemu-0.9.0/target-i386 -I/var/tmp/portage/app-emulation/qemu-softmmu-0.9.0-r1/work/qemu-0.9.0 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I/var/tmp/portage/app-emulation/qemu-softmmu-0.9.0-r1/work/qemu-0.9.0/fpu -DHAS_AUDIO -I/var/tmp/portage/app-emulation/qemu-softmmu-0.9.0-r1/work/qemu-0.9.0/slirp -c -o op.o /var/tmp/portage/app-emulation/qemu-softmmu-0.9.0-r1/work/qemu-0.9.0/target-i386/op.c /var/tmp/portage/app-emulation/qemu-softmmu-0.9.0-r1/work/qemu-0.9.0/target-i386/ops_sse.h: In function `op_psrlq_mmx': /var/tmp/portage/app-emulation/qemu-softmmu-0.9.0-r1/work/qemu-0.9.0/target-i386/ops_sse.h:213: error: unable to find a register to spill in class `GENERAL_REGS' /var/tmp/portage/app-emulation/qemu-softmmu-0.9.0-r1/work/qemu-0.9.0/target-i386/ops_sse.h:213: error: this is the insn: (insn:HI 36 35 37 3 /var/tmp/portage/app-emulation/qemu-softmmu-0.9.0-r1/work/qemu-0.9.0/target-i386/ops_sse.h:207 (parallel [ (set (reg:DI 63 [ <variable>.q ]) (lshiftrt:DI (reg:DI 63 [ <variable>.q ]) (subreg:QI (reg/v:SI 60 [ shift ]) 0))) (clobber (scratch:SI)) (clobber (reg:CC 17 flags)) ]) 309 {lshrdi3_1} (insn_list 33 (insn_list 35 (nil))) (expr_list:REG_DEAD (reg/v:SI 60 [ shift ]) (expr_list:REG_UNUSED (reg:CC 17 flags) (expr_list:REG_UNUSED (scratch:SI) (nil))))) /var/tmp/portage/app-emulation/qemu-softmmu-0.9.0-r1/work/qemu-0.9.0/target-i386/ops_sse.h:213: confused by earlier errors, bailing out make[1]: *** [op.o] Error 1 make[1]: Leaving directory `/var/tmp/portage/app-emulation/qemu-softmmu-0.9.0-r1/work/qemu-0.9.0/i386-softmmu' make: *** [subdir-i386-softmmu] Error 2 Reproducible: Always Steps to Reproduce: Portage 2.1.4.4 (default-linux/x86/2007.0/desktop, gcc-3.4.6, glibc-2.6.1-r0, 2.6.24-gentoo-r3 i686) ================================================================= System uname: 2.6.24-gentoo-r3 i686 Intel(R) Core(TM)2 CPU 6600 @ 2.40GHz Timestamp of tree: Mon, 31 Mar 2008 01:45:01 +0000 app-shells/bash: 3.2_p17-r1 dev-java/java-config: 1.3.7, 2.1.4 dev-lang/python: 2.4.4-r9 dev-python/pycrypto: 2.0.1-r6 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.61-r1 sys-devel/automake: 1.5, 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.26 virtual/os-headers: 2.6.23-r3 ACCEPT_KEYWORDS="x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=prescott -pipe -ggdb" 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/kde/4.0/env /usr/kde/4.0/share/config /usr/kde/4.0/shutdown /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-O2 -march=prescott -pipe -ggdb" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--with-bdeps=y" FEATURES="buildpkg collision-protect distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms splitdebug strict unmerge-orphans userfetch userpriv usersandbox" GENTOO_MIRRORS="ftp://ftp.roedu.net/pub/mirrors/gentoo.org ftp://ftp.romnet.org/gentoo ftp://mirrors.evolva.ro/gentoo http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo" LANG="ro_RO.UTF-8" LC_ALL="ro_RO.UTF-8" LINGUAS="en eo ro" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="7zip X a52 aac aalib accessibility acl acpi ads aiglx alsa amr amrnb amrwb asf bash-completion berkdb branding bzip2 cdr cli cracklib crypt css cups curl dbus dga djvu dmi doc dri dvd dvdr dvdread eds emboss encode evo exif fam fbcon ffmpeg firefox flac fortran gcj gd gdbm gif glib glitz glut gmp gnokii gnutls gpm graphviz hal history htmlhandbook iconv id3tag idn imagemagick imlib ipv6 irc isdnlog java javascript jingle jpeg jpeg2k kde kdeenablefinal kdehiddenvisibility kerberos kig-scripting kipi lcms ldap libcaca lm_sensors lzo mad midi mikmod mjpeg mmx mng mp3 mp4 mpeg mudflap musicbrainz ncurses network nls nowlistening nptl nptlonly ntlm_unsupported_patch ogg openexr opengl openmp pam pch pcre pdf perforce perl png povray ppds pppd python qt3 qt3support qt4 quicktime rdesktop readline reflection ruby samba sasl sdl session slang snmp speex spell spl sqlite sqlite3 sse sse2 ssl ssse3 statistics svg symlink tcpd theora threads tidy tiff truetype unicode usb visualization vnc vorbis win32codecs winbind wmf x264 x86 xcb xcomposite xml xorg xv xvid xvmc yahoo zeroconf zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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 eo ro" USERLAND="GNU" VIDEO_CARDS="i810 vesa" Unset: CPPFLAGS, CTARGET, INSTALL_MASK, LDFLAGS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
(In reply to comment #0) I think this is an issue w/ stock qemu 0.9.0 and gcc 3.4.6, I could be wrong though. Not even stock qemu 0.9.0 will build correctly on my system. Hmm, having trouble building an older gcc maybe it's a compiler issue... 8-(
I checked and it's definately a compiler issue. building on a hand-rolled GCC 3.4.6 built w/ cflags '-march=pentium2 -O2 -pipe' works, whereas one built w/ portage w/ the cflags '-march=prescott -O2 -pipe -g -ggdb' fails. The issue also affects mplayer-1.0_rc2_p25993 and qemu-0.8.2 (Yeah, I know it's no longer in portage). So somewhere between the P2 and Prescott specs it breaks *some* apps.
I am having this same problem, except this is =app-emulation/qemu-softmmu-0.9.1-r1
this is a gcc/architecture limitation issue. the compiler is running out of registers with all the optimization flags used and is therefore dependent on the type of optimization that is applied to the qemu ebuild. using -march=i486 should work for all cases
qemu-0.10 builds with gcc-4 now