From: Zhao, Y. <yun...@in...> - 2007-06-01 05:22:39
|
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? =20 =20 make -C kernel make[1]: Entering directory `/tmp/tmp/kvm-userspace/kernel' make -C /lib/modules/2.6.18-8.el5/build M=3D`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 =20 thanks Yunfeng |
From: Zhao, Y. <yun...@in...> - 2008-01-09 02:37:42
|
Today's tip fails to compile with following error messages: /workspace/ia32e/nightly/kvm-master-2.6.22-rc4-20080109010121401/kvm-use rspace/qemu/../libkvm -DCONFIG_X86 -Wall -O2 -g -fno-strict-aliasing -I. -I/workspace/ia32e/nightly/kvm-master-2.6.22-rc4-20080109010121401/kvm-u serspace/qemu -MMD -MP -D_GNU_SOURCE -D_FILE_OFFSET_BITS=3D64 -D_LARGEFILE_SOURCE -I/workspace/ia32e/nightly/kvm-master-2.6.22-rc4-20080109010121401/kvm-u serspace/qemu/slirp -DQEMU_IMG -c -o qemu-img-block-raw-posix.o block-raw-posix.c In file included from /usr/include/linux/cdrom.h:14, from block-raw-posix.c:52: /workspace/ia32e/nightly/kvm-master-2.6.22-rc4-20080109010121401/kvm-use rspace/qemu/../libkvm/asm/byteorder.h:9: error: syntax error before "__u64" /workspace/ia32e/nightly/kvm-master-2.6.22-rc4-20080109010121401/kvm-use rspace/qemu/../libkvm/asm/byteorder.h:15: error: syntax error before "__u32" make[1]: *** [qemu-img-block-raw-posix.o] Error 1 make[1]: Leaving directory `/workspace/ia32e/nightly/kvm-master-2.6.22-rc4-20080109010121401/kvm-us erspace/qemu' make: *** [qemu] Error 2 |
From: Avi K. <av...@qu...> - 2008-01-09 08:39:07
|
Zhao, Yunfeng wrote: > Today's tip fails to compile with following error messages: > [...] Fixed now. Hollis, I had to revert your asm symlink patch to fix this, so we need to find an alternative solution to that problem. -- error compiling committee.c: too many arguments to function |
From: Hollis B. <ho...@us...> - 2008-01-09 17:05:36
|
On Wed, 2008-01-09 at 10:39 +0200, Avi Kivity wrote: > Zhao, Yunfeng wrote: > > Today's tip fails to compile with following error messages: > > > > [...] > > Fixed now. Hollis, I had to revert your asm symlink patch to fix this, > so we need to find an alternative solution to that problem. qemu ends up including <asm/byteorder.h> from /usr. libkvm, on the other hand, ends up including <asm/kvm.h> from the target kernel tree. Since the two components are meaning completely different things when referring to the "asm" directory, we should use different include paths. The best long-term solution would probably be to remove "-I $(KERNELDIR)/include" from libkvm, and instead build against a copy of the KVM headers (maybe copied over with that "make sync" target?). Avi, I think you're responsible for all the build directory munging we do currently; what do you think about that? -- Hollis Blanchard IBM Linux Technology Center |
From: Avi K. <av...@qu...> - 2008-01-10 09:56:09
|
Hollis Blanchard wrote: > On Wed, 2008-01-09 at 10:39 +0200, Avi Kivity wrote: > >> Zhao, Yunfeng wrote: >> >>> Today's tip fails to compile with following error messages: >>> >>> >> [...] >> >> Fixed now. Hollis, I had to revert your asm symlink patch to fix this, >> so we need to find an alternative solution to that problem. >> > > qemu ends up including <asm/byteorder.h> from /usr. > > libkvm, on the other hand, ends up including <asm/kvm.h> from the target > kernel tree. > > Since the two components are meaning completely different things when > referring to the "asm" directory, we should use different include paths. > The best long-term solution would probably be to remove "-I > $(KERNELDIR)/include" from libkvm, and instead build against a copy of > the KVM headers (maybe copied over with that "make sync" target?). > > Avi, I think you're responsible for all the build directory munging we > do currently; what do you think about that? > I agree. The traditional way is to build against installed headers; but we don't want to do that at this stage. So your suggestion is the closest thing. But we should make the sync target implicit so users don't have that additional step. -- error compiling committee.c: too many arguments to function |
From: Zhao, Y. <yun...@in...> - 2008-02-18 02:38:35
|
Today's IA32e KVM build fails, here is the error message: libqemu.a(kvm-tpr-opt.o): In function `enable_vapic': /workspace/ia32e/nightly/kvm-master-2.6.22-rc4-20080218000132559/kvm-use rspace/qemu/kvm-tpr-opt.c:232: undefined reference to `kvm_enable_vapic' libqemu.a(kvm-tpr-opt.o): In function `kvm_tpr_vcpu_start': /workspace/ia32e/nightly/kvm-master-2.6.22-rc4-20080218000132559/kvm-use rspace/qemu/kvm-tpr-opt.c:302: undefined reference to `kvm_enable_tpr_access_reporting' collect2: ld returned 1 exit status make[2]: *** [qemu-system-x86_64] Error 1 make[2]: Leaving directory `/workspace/ia32e/nightly/kvm-master-2.6.22-rc4-20080218000132559/kvm-us erspace/qemu/x86_64-softmmu' make[1]: *** [subdir-x86_64-softmmu] Error 2 make[1]: Leaving directory `/workspace/ia32e/nightly/kvm-master-2.6.22-rc4-20080218000132559/kvm-us erspace/qemu' make: *** [qemu] Error 2 |
From: Avi K. <av...@qu...> - 2008-02-18 10:16:59
|
Zhao, Yunfeng wrote: > > Today’s IA32e KVM build fails, here is the error message: > > libqemu.a(kvm-tpr-opt.o): In function `enable_vapic': > > /workspace/ia32e/nightly/kvm-master-2.6.22-rc4-20080218000132559/kvm-userspace/qemu/kvm-tpr-opt.c:232: > undefined reference to `kvm_enable_vapic' > > libqemu.a(kvm-tpr-opt.o): In function `kvm_tpr_vcpu_start': > > /workspace/ia32e/nightly/kvm-master-2.6.22-rc4-20080218000132559/kvm-userspace/qemu/kvm-tpr-opt.c:302: > undefined reference to `kvm_enable_tpr_access_reporting' > > collect2: ld returned 1 exit status > > make[2]: *** [qemu-system-x86_64] Error 1 > > make[2]: Leaving directory > `/workspace/ia32e/nightly/kvm-master-2.6.22-rc4-20080218000132559/kvm-userspace/qemu/x86_64-softmmu' > > make[1]: *** [subdir-x86_64-softmmu] Error 2 > > make[1]: Leaving directory > `/workspace/ia32e/nightly/kvm-master-2.6.22-rc4-20080218000132559/kvm-userspace/qemu' > > make: *** [qemu] Error 2 > I can't reproduce this with the last snapshot. What commits hashes are you using? -- Do not meddle in the internals of kernels, for they are subtle and quick to panic. |
From: Zhao, Y. <yun...@in...> - 2008-02-18 13:19:37
|
I am using TIP. I found that if try to compile twice, the first time has no problem but the second time (make clean&&./configure&&make) will meet the error. >> > >I can't reproduce this with the last snapshot. What commits hashes are >you using? > >-- >Do not meddle in the internals of kernels, for they are subtle and quick to panic. |
From: Avi K. <av...@qu...> - 2008-02-18 14:51:35
|
Zhao, Yunfeng wrote: > I am using TIP. > I found that if try to compile twice, the first time has no problem but > the second time (make clean&&./configure&&make) will meet the error. > > Yes, 'make clean' was too eager. Fixed. -- error compiling committee.c: too many arguments to function |
From: Avi K. <av...@qu...> - 2007-06-01 06:29:28
|
Zhao, Yunfeng wrote: > > 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? > > > Add a kernel/include/linux/asm/cmpxchg.h, which defines set_64bit() for both i386 and x86_64. -- Do not meddle in the internals of kernels, for they are subtle and quick to panic. |