[kvm-devel] Compile problem with GIT repo on Scientific Linux

2007-11-21 Thread Cam Macdonell

Hi,

I'm trying to install KVM using the git repos on Scientific Linux.  The 
error occurs when I run make.

The kvm-53 tarball works fine, but something is getting misconfigured 
when I run  "make -C kernel sync".  This error doesn't occur on 
Fedora Core.  I installed kernel-headers using yum in the standard way

Has anyone experienced this problem with other RHEL clones like CentOS?

Thanks,
Cam

[/usr/scratch/cam/new/kvm-userspace]$ make
make -C kernel
make[1]: Entering directory `/usr/scratch/cam/new/kvm-userspace/kernel'
make -C /lib/modules/2.6.18-8.1.15.el5/build M=`pwd` "$@"
make[2]: Entering directory `/usr/src/kernels/2.6.18-8.1.15.el5-x86_64'
   CC [M]  /usr/scratch/cam/new/kvm-userspace/kernel/svm.o
In file included from /usr/scratch/cam/new/kvm-userspace/kernel/svm.c:27:
include/asm/desc.h:17: error: redefinition of 'struct kvm_desc_struct'
include/asm/desc.h:24: error: redefinition of 'struct n_desc_struct'
include/asm/desc.h:31: error: redeclaration of enumerator 'GATE_INTERRUPT'
/usr/scratch/cam/new/kvm-userspace/kernel/include/asm/desc_defs.h:27: 
error: previous definition of 'GATE_INTERRUPT' was here
include/asm/desc.h:32: error: redeclaration of enumerator 'GATE_TRAP'
/usr/scratch/cam/new/kvm-userspace/kernel/include/asm/desc_defs.h:28: 
error: previous definition of 'GATE_TRAP' was here
include/asm/desc.h:33: error: redeclaration of enumerator 'GATE_CALL'
/usr/scratch/cam/new/kvm-userspace/kernel/include/asm/desc_defs.h:29: 
error: previous definition of 'GATE_CALL' was here
include/asm/desc.h:37: error: redefinition of 'struct gate_struct'
include/asm/desc.h:51: error: redeclaration of enumerator 'DESC_TSS'
/usr/scratch/cam/new/kvm-userspace/kernel/include/asm/desc_defs.h:47: 
error: previous definition of 'DESC_TSS' was here
include/asm/desc.h:52: error: redeclaration of enumerator 'DESC_LDT'
/usr/scratch/cam/new/kvm-userspace/kernel/include/asm/desc_defs.h:48: 
error: previous definition of 'DESC_LDT' was here
include/asm/desc.h:56: error: redefinition of 'struct ldttss_desc'
include/asm/desc.h:65: error: redefinition of 'struct kvm_desc_ptr'
make[3]: *** [/usr/scratch/cam/new/kvm-userspace/kernel/svm.o] Error 1
make[2]: *** [_module_/usr/scratch/cam/new/kvm-userspace/kernel] Error 2
make[2]: Leaving directory `/usr/src/kernels/2.6.18-8.1.15.el5-x86_64'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/scratch/cam/new/kvm-userspace/kernel'
make: *** [kernel] Error 2

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
kvm-devel mailing list
kvm-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kvm-devel


Re: [kvm-devel] Compile problem with GIT repo on Scientific Linux

2007-11-22 Thread Avi Kivity
Cam Macdonell wrote:
> Hi,
>
> I'm trying to install KVM using the git repos on Scientific Linux.  The 
> error occurs when I run make.
>
> The kvm-53 tarball works fine, but something is getting misconfigured 
> when I run  "make -C kernel sync".  This error doesn't occur on 
> Fedora Core.  I installed kernel-headers using yum in the standard way
>
> Has anyone experienced this problem with other RHEL clones like CentOS?
>   

I just pushed a fix for this.

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


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
kvm-devel mailing list
kvm-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kvm-devel


Re: [kvm-devel] Compile problem with GIT repo on Scientific Linux

2007-11-22 Thread Uri Lublin

Thanks for reporting the problem.

You do not need to "make -C kernel sync" with kvm-tarballs.

For more information look at http://kvm.qumranet.com/kvmwiki/HOWTO -- 
"Unpacking and configuring kvm components"

Uri.

-Original Message-
From: [EMAIL PROTECTED] on behalf of Cam Macdonell
Sent: Thu 22/11/2007 00:49
To: kvm-devel
Subject: [kvm-devel] Compile problem with GIT repo on Scientific Linux

Hi,



The kvm-53 tarball works fine, but something is getting misconfigured 
when I run  "make -C kernel sync". 

Thanks,
Cam


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
kvm-devel mailing list
kvm-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kvm-devel


Re: [kvm-devel] Compile problem with GIT repo on Scientific Linux

2007-11-22 Thread Cam Macdonell
Uri Lublin wrote:
> 
> Thanks for reporting the problem.

Thanks for the quick patch :)

> You do not need to "make -C kernel sync" with kvm-tarballs.
> 

Yes, sorry, my language was unclear in that sentence.   I wasn't running 
sync on the tarball, just on the git repo.

Thanks,
Cam

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
kvm-devel mailing list
kvm-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kvm-devel