qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] Gcc 4 building error
@ 2007-11-03 21:23 Alexander
  2007-11-05  1:58 ` Atsushi SAKAI
  0 siblings, 1 reply; 2+ messages in thread
From: Alexander @ 2007-11-03 21:23 UTC (permalink / raw)
  To: qemu-devel

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?

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Qemu-devel] Gcc 4 building error
  2007-11-03 21:23 [Qemu-devel] Gcc 4 building error Alexander
@ 2007-11-05  1:58 ` Atsushi SAKAI
  0 siblings, 0 replies; 2+ messages in thread
From: Atsushi SAKAI @ 2007-11-05  1:58 UTC (permalink / raw)
  To: qemu-devel

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 <a.basoff@mail.ru> 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?
> 
> 
> 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-11-05  1:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-03 21:23 [Qemu-devel] Gcc 4 building error Alexander
2007-11-05  1:58 ` Atsushi SAKAI

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).