public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* KVM-87 compile failed
@ 2009-06-26  5:40 gao
  2009-06-26  9:35 ` FinnTux
  2009-06-28  9:13 ` Avi Kivity
  0 siblings, 2 replies; 3+ messages in thread
From: gao @ 2009-06-26  5:40 UTC (permalink / raw)
  To: kvm

Hi,

Compiling KVM-87 failed with following error:

make -C /lib/modules/2.6.29-gentoo-r5/build M=`pwd` \
                LINUXINCLUDE="-I`pwd`/include -Iinclude \
                 -Iarch/x86/include -I`pwd`/include-compat \
                -include include/linux/autoconf.h \
                -include `pwd`/x86/external-module-compat.h " \
                "$@"
  CC [M]  /tmp/kvm-87/kvm/kernel/x86/vmx.o
/tmp/kvm-87/kvm/kernel/x86/vmx.c: In function ‘ept_rsvd_mask’:
/tmp/kvm-87/kvm/kernel/x86/vmx.c:3272: error: ‘struct cpuinfo_x86’ has no 
member named ‘x86_phys_bits’
make[4]: *** [/tmp/kvm-87/kvm/kernel/x86/vmx.o] Error 1
make[3]: *** [/tmp/kvm-87/kvm/kernel/x86] Error 2
make[2]: *** [_module_/tmp/kvm-87/kvm/kernel] Error 2
make[1]: *** [all] Error 2
make: *** [kvm-kmod] Error 2

GCC-4.3.2-r3, kernel 2.6.29-gentoo-r5.

Compiling worked fine with KVM-86.


Simon



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: KVM-87 compile failed
  2009-06-26  5:40 KVM-87 compile failed gao
@ 2009-06-26  9:35 ` FinnTux
  2009-06-28  9:13 ` Avi Kivity
  1 sibling, 0 replies; 3+ messages in thread
From: FinnTux @ 2009-06-26  9:35 UTC (permalink / raw)
  To: kvm

>  CC [M]  /tmp/kvm-87/kvm/kernel/x86/vmx.o
> /tmp/kvm-87/kvm/kernel/x86/vmx.c: In function ‘ept_rsvd_mask’:
> /tmp/kvm-87/kvm/kernel/x86/vmx.c:3272: error: ‘struct cpuinfo_x86’ has no
> member named ‘x86_phys_bits’
> make[4]: *** [/tmp/kvm-87/kvm/kernel/x86/vmx.o] Error 1
> make[3]: *** [/tmp/kvm-87/kvm/kernel/x86] Error 2
> make[2]: *** [_module_/tmp/kvm-87/kvm/kernel] Error 2
> make[1]: *** [all] Error 2
> make: *** [kvm-kmod] Error 2

I got the same error on Ubuntu 9.04 (2.6.28-11-generic). Debian 5
(2.6.26-2-amd64) works.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: KVM-87 compile failed
  2009-06-26  5:40 KVM-87 compile failed gao
  2009-06-26  9:35 ` FinnTux
@ 2009-06-28  9:13 ` Avi Kivity
  1 sibling, 0 replies; 3+ messages in thread
From: Avi Kivity @ 2009-06-28  9:13 UTC (permalink / raw)
  To: gao; +Cc: kvm

On 06/26/2009 08:40 AM, gao@schrodinger.com wrote:
> Hi,
>
> Compiling KVM-87 failed with following error:
>
> make -C /lib/modules/2.6.29-gentoo-r5/build M=`pwd` \
>                  LINUXINCLUDE="-I`pwd`/include -Iinclude \
>                   -Iarch/x86/include -I`pwd`/include-compat \
>                  -include include/linux/autoconf.h \
>                  -include `pwd`/x86/external-module-compat.h " \
>                  "$@"
>    CC [M]  /tmp/kvm-87/kvm/kernel/x86/vmx.o
> /tmp/kvm-87/kvm/kernel/x86/vmx.c: In function ‘ept_rsvd_mask’:
> /tmp/kvm-87/kvm/kernel/x86/vmx.c:3272: error: ‘struct cpuinfo_x86’ has no
> member named ‘x86_phys_bits’
> make[4]: *** [/tmp/kvm-87/kvm/kernel/x86/vmx.o] Error 1
> make[3]: *** [/tmp/kvm-87/kvm/kernel/x86] Error 2
> make[2]: *** [_module_/tmp/kvm-87/kvm/kernel] Error 2
> make[1]: *** [all] Error 2
> make: *** [kvm-kmod] Error 2
>
> GCC-4.3.2-r3, kernel 2.6.29-gentoo-r5.
>
> Compiling worked fine with KVM-86.
>
>    

kvm-87 is fairly compile-broken on 32-bit hosts.  I need to improve my 
compile testing infrastructure, or make the kvm-xx release candidate 
process public.

You can work around it by replacing 'boot_cpu_data.x86_phys_bits' in 
vmx.c by the constant 40.

-- 
error compiling committee.c: too many arguments to function


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-06-28  9:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-26  5:40 KVM-87 compile failed gao
2009-06-26  9:35 ` FinnTux
2009-06-28  9:13 ` Avi Kivity

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox