Problem compiling kvm


#1

I have this issue when I try to compile kvm ( kvm-88 ) in rhel 5.4:

./configure --prefix=/usr --disable-vde --disable-cpu-emulation returns:

CC x86_64-softmmu/exec.o /root/kvm-88/exec.c:41:17: error: tcg.h: No such file or directory /root/kvm-88/exec.c: In function ‘cpu_physical_memory_rw’: /root/kvm-88/exec.c:3306: warning: implicit declaration of function ‘flush_icache_range’ /root/kvm-88/exec.c: In function ‘dump_exec_info’: /root/kvm-88/exec.c:3889: warning: implicit declaration of function ‘tcg_dump_info’ make[1]: *** [exec.o] Error 1 make: *** [subdir-x86_64-softmmu] Error 2

./configure --prefix=/usr returns:

CC [M] /root/kvm-88/kvm/kernel/x86/kvm_main.o /root/kvm-88/kvm/kernel/x86/kvm_main.c:2636: warning: initialization discards qualifiers from pointer target type /root/kvm-88/kvm/kernel/x86/kvm_main.c:2637: warning: initialization discards qualifiers from pointer target type CC [M] /root/kvm-88/kvm/kernel/x86/x86.o In file included from /root/kvm-88/kvm/kernel/x86/trace.h:355, from /root/kvm-88/kvm/kernel/x86/x86.c:83: include/trace/define_trace.h:53:43: error: arch/x86/kvm/trace.h: No such file or directory make[4]: *** [/root/kvm-88/kvm/kernel/x86/x86.o] Error 1 make[3]: *** [/root/kvm-88/kvm/kernel/x86] Error 2 make[2]: *** [_module_/root/kvm-88/kvm/kernel] Error 2 make[1]: *** [all] Error 2 make: *** [kvm-kmod] Error 2

./configure --prefix=/usr --with-kvm-trace returns same.