public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Avi Kivity <avi@redhat.com>
To: deshantm@gmail.com
Cc: Beth Kon <eak@us.ibm.com>, kvm@vger.kernel.org
Subject: Re: KVM userspace build fails with 2.6.28-rc7 kernel installed
Date: Mon, 22 Dec 2008 12:10:03 +0200	[thread overview]
Message-ID: <494F677B.2050408@redhat.com> (raw)
In-Reply-To: <1e16a9ed0812211546r47fca0eay4a71d470713abd8a@mail.gmail.com>

Todd Deshane wrote:
> On Fri, Dec 5, 2008 at 11:14 AM, Beth Kon <eak@us.ibm.com> wrote:
>   
>> I pulled the latest:
>>  kvm (commit 3c260758b41000986c3c064b17a9771286e98d1e)
>>  kvm-userspace (commit 6892f63c18a526c7b54bbde2f59287787eabe1f8)
>> mtrr_var_range'
>> arch/x86/include/asm/mtrr.h:69: error: redefinition of typedef
>> 'mtrr_type'
>> /home/beth/git/test/kvm-userspace/kernel/x86/external-module-compat.h:349: error: previous declaration of 'mtrr_type' was here
>>     
> I am seeing this exact same error on 2.6.28-rc8
>
>   

In general, the kvm external module won't build on -rc kernels.  This is 
because the external module checks the kernel version to determine what 
features are available, and 2.6.n-rcX will have features from 2.6.n and 
2.6.n-1.

>> When I moved the machine back to 2.6.27.7 the build succeeded.
>>
>>     
>
> I ran across this (or a similar) error recently and just compiling on
> a different kernel seemed to fix it.
>
> Is there something about compiling on a specific kernel that can cause
> a problem?
> I did do re-do a ./configure and also checked with make clean with a
> couple attempts, but keep
> coming back to this error.
>
> Is is something fundamental? compiler problem? user error?
>
> Any suggestions much appreciated.
>   

If you run kvm.git as your kernel, use ./configure --with-patched-kernel 
(or, simply don't build the external module).


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


  reply	other threads:[~2008-12-22 10:10 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-05 16:14 KVM userspace build fails with 2.6.28-rc7 kernel installed Beth Kon
2008-12-21 23:46 ` Todd Deshane
2008-12-22 10:10   ` Avi Kivity [this message]
2008-12-23  7:15     ` Todd Deshane

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=494F677B.2050408@redhat.com \
    --to=avi@redhat.com \
    --cc=deshantm@gmail.com \
    --cc=eak@us.ibm.com \
    --cc=kvm@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox