Its known bug of gcc4. you should compile on gcc 3. Please check the following qemu FAQ.
http://calamari.reverse-dns.net:980/cgi-bin/moin.cgi/FrequentlyAskedQuestions#head-1dd86241b11d36963df140c9f6ab46ef402d4244 Thanks Atsushi SAKAI Alexander <[EMAIL PROTECTED]> wrote: > Hello. > I have (GCC) 4.2.1, > when i'm tried to build qemu from cvs, i've got such error: > > Code: > make -C i386-softmmu all > make[1]: Entering directory `/mnt/work/install/compil/qemu/qemu/i386-softmmu' > gcc -Wall -O2 -g -fno-strict-aliasing -fno-reorder-blocks -fno-gcse > -fno-tree-ch -fno-optimize-sibling-calls -fno-crossjumping > -fno-align-labels -fno-align-jumps -fno-align-functions > -fno-section-anchors > -mpreferred-stack-boundary=2 -fomit-frame-pointer -I. -I.. > -I/mnt/work/install/compil/qemu/qemu/target-i386 > -I/mnt/work/install/compil/qemu/qemu -MMD -MP -D_GNU_SOURCE > -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE > -I/mnt/work/install/compil/qemu/qemu/fpu -I/opt/soft/gnutls-1.7.18/include > -DHAS_AUDIO -DHAS_AUDIO_CHOICE -I/mnt/work/install/compil/qemu/qemu/slirp -c > -o > op.o /mnt/work/install/compil/qemu/qemu/target-i386/op.c > /mnt/work/install/compil/qemu/qemu/target-i386/ops_template_mem.h: > In function 'op_shlb_user_T0_T1_cc': ../softmmu_header.h:174: error: can't > find > a register in class 'GENERAL_REGS' while reloading > 'asm' ../softmmu_header.h:174: error: 'asm' operand has impossible constraints > make[1]: *** [op.o] Error 1 make[1]: Leaving directory > `/mnt/work/install/compil/qemu/qemu/i386-softmmu' make: *** > [subdir-i386-softmmu] Error 2 > > > > is this qemu bug, or gcc? > is there any patches to avoid it? > > >