kvm-18 compilation error
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 -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 exec.o /root/kvm-18/qemu/exec.c /root/kvm-18/qemu/exec.c: In function `cpu_breakpoint_insert':/root/kvm-18/qemu/exec.c:1055: warning: implicit declaration of function `kvm_update_debugger'/root/kvm-18/qemu/exec.c: In function `cpu_physical_memory_set_dirty_tracking':/root/kvm-18/qemu/exec.c:1436: warning: implicit declaration of function `kvm_physical_memory_set_dirty_tracking'/opt/gcc33/bin/gcc-3.3 -I /root/kvm-18/qemu/../user -Wall -O2 -g -fno-strict-aliasing -I /root/kvm-18/kernel/include -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 kqemu.o /root/kvm-18/qemu/kqemu.c /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?
Omar
-------------------------------------------------------------------------
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
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 52 lines · Omar Khan
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(quoted diff) +0
-4-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 functionqemu_system_reset_request' /root/kvm-18/qemu/qemu-kvm.c: In functionkvm_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 00x4074ab00(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
Quoted 3 lines
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.
Signature · 8 lines
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
Quoted 5 lines · Avi Kivity
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.
yes builds with gcc 3.4.6, Thanks.
Omar
-------------------------------------------------------------------------
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