compile error

Zhao, Yunfeng
2007-06-01T05:22:33Z

[-- Attachment #1.1: Type: text/plain, Size: 843 bytes --]

I met an error when i build latest KVM on rhel5.

Seems asm/cmpxchg.h is not in the kernel before 2.6.22.

How can I fix the issue?

make -C kernel

make[1]: Entering directory `/tmp/tmp/kvm-userspace/kernel'

make -C /lib/modules/2.6.18-8.el5/build M=`pwd` "$@"

make[2]: Entering directory `/usr/src/kernels/2.6.18-8.el5-x86_64'

CC [M] /tmp/tmp/kvm-userspace/kernel/mmu.o

/tmp/tmp/kvm-userspace/kernel/mmu.c:25:25: error: asm/cmpxchg.h: No such
file or directory

make[3]: *** [/tmp/tmp/kvm-userspace/kernel/mmu.o] Error 1

make[2]: *** [_module_/tmp/tmp/kvm-userspace/kernel] Error 2

make[2]: Leaving directory `/usr/src/kernels/2.6.18-8.el5-x86_64'

make[1]: *** [all] Error 2

make[1]: Leaving directory `/tmp/tmp/kvm-userspace/kernel'

make: *** [kernel] Error 2

thanks

Yunfeng

[-- Attachment #1.2: Type: text/html, Size: 4835 bytes --]

[-- Attachment #2: Type: text/plain, Size: 286 bytes --]

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

[-- Attachment #3: Type: text/plain, Size: 186 bytes --]

_______________________________________________
kvm-devel mailing list
kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org