From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: kvm-18 compilation error Date: Fri, 30 Mar 2007 09:51:28 +0300 Message-ID: <460CB370.1060502@qumranet.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org To: Omar Khan Return-path: In-reply-to: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: kvm.vger.kernel.org Omar Khan wrote: > hi, > I am having trouble compiling kvm-18 on suse10.2. 'make' is giving the > following error: > > /opt/gcc33/bin/gcc-3.3 -I /root/kvm-18/qemu/../user -Wall -O2 -g > -fno-strict-aliasing -I /root/kvm-18/kernel/include -fomit-frame-pointer -I. > -I.. -I/root/kvm-18/qemu/target-i386 -I/root/kvm-18/qemu -D_GNU_SOURCE > -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D__user= -I/root/kvm-18/qemu/fpu > -DHAS_AUDIO -I/root/kvm-18/qemu/slirp -c -o qemu-kvm.o /root/kvm-18/qe > mu/qemu-kvm.c > /root/kvm-18/qemu/qemu-kvm.c: In function `kvm_cpu_exec': > /root/kvm-18/qemu/qemu-kvm.c:447: warning: implicit declaration of > function `exit' > /root/kvm-18/qemu/qemu-kvm.c: In function `kvm_shutdown': > /root/kvm-18/qemu/qemu-kvm.c:599: warning: implicit declaration of > function `qemu_system_reset_request' > /root/kvm-18/qemu/qemu-kvm.c: In function `kvm_qemu_init_env': > /root/kvm-18/qemu/qemu-kvm.c:732: error: unable to find a register to > spill in class `SIREG' > /root/kvm-18/qemu/qemu-kvm.c:732: error: this is the insn: > (insn:HI 37 35 38 0 0x4074ab00 (parallel [ > (set (reg:SI 1 edx [67]) > (const_int 0 [0x0])) > (set (reg/f:SI 0 eax [64]) > (plus:SI (ashift:SI (reg:SI 2 ecx [66]) > (const_int 2 [0x2])) > (reg/f:SI 0 eax [64]))) > (set (reg/f:SI 2 ecx [65]) > (plus:SI (ashift:SI (reg:SI 2 ecx [66]) > (const_int 2 [0x2])) > (reg/v/f:SI 59))) > (set (mem/s:BLK (reg/f:SI 0 eax [64]) [0 copy+0 S25712 A128]) > (mem/s:BLK (reg/v/f:SI 59) [0 S25712 A128])) > (use (reg:SI 2 ecx [66])) > (use (reg:SI 19 dirflag)) > ]) 454 {rep_movsi} (insn_list 3 (insn_list 32 (insn_list 34 (insn_list > 35 (nil))))) > (expr_list:REG_DEAD (reg:SI 19 dirflag) > (expr_list:REG_DEAD (reg:SI 2 ecx [66]) > (expr_list:REG_UNUSED (reg:SI 1 edx [67]) > (expr_list:REG_UNUSED (reg/f:SI 0 eax [64]) > (expr_list:REG_UNUSED (reg/f:SI 2 ecx [65]) > (nil))))))) > /root/kvm-18/qemu/qemu-kvm.c:732: confused by earlier errors, bailing out > make[2]: *** [qemu-kvm.o] Error 1 > make[2]: Leaving directory `/root/kvm-18/qemu/i386-softmmu' > make[1]: *** [subdir-i386-softmmu] Error 2 > make[1]: Leaving directory `/root/kvm-18/qemu' > make: *** [qemu] Error 2 > > > any ideas what might be going wrong? > > You might try with gcc 3.4.6, which most people are using for qemu. Alternatively, ./configure --qemu-cc=gcc --disable-gcc-check, but then you lose the ability to run with the -no-kvm switch. -- Do not meddle in the internals of kernels, for they are subtle and quick to panic. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV