* KVM userspace build fails with 2.6.28-rc7 kernel installed
@ 2008-12-05 16:14 Beth Kon
2008-12-21 23:46 ` Todd Deshane
0 siblings, 1 reply; 4+ messages in thread
From: Beth Kon @ 2008-12-05 16:14 UTC (permalink / raw)
To: kvm
I pulled the latest:
kvm (commit 3c260758b41000986c3c064b17a9771286e98d1e)
kvm-userspace (commit 6892f63c18a526c7b54bbde2f59287787eabe1f8)
and built and installed the 2.6.28-rc7 x86_64 kernel from kvm pull, then
tried to build kvm-userspace and the build failed:
make -C /lib/modules/2.6.28-rc7/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 "
make[2]: Entering directory `/home/beth/git/build/kvm.kernel/kvm'
LD /home/beth/git/test/kvm-userspace/kernel/x86/built-in.o
CC [M] /home/beth/git/test/kvm-userspace/kernel/x86/svm.o
In file included
from /home/beth/git/test/kvm-userspace/kernel/include/asm/kvm_host.h:64,
from /home/beth/git/test/kvm-userspace/kernel/include/linux/kvm_host.h:67,
from /home/beth/git/test/kvm-userspace/kernel/x86/svm.c:56:
arch/x86/include/asm/mtrr.h:60: error: redefinition of ‘struct
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
arch/x86/include/asm/mtrr.h:74: error: redefinition of ‘struct
mtrr_state_type’
make[4]: *** [/home/beth/git/test/kvm-userspace/kernel/x86/svm.o] Error
1
When I moved the machine back to 2.6.27.7 the build succeeded.
--
Elizabeth Kon (Beth)
IBM Linux Technology Center
Open Hypervisor Team
email: eak@us.ibm.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: KVM userspace build fails with 2.6.28-rc7 kernel installed
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
0 siblings, 1 reply; 4+ messages in thread
From: Todd Deshane @ 2008-12-21 23:46 UTC (permalink / raw)
To: Beth Kon; +Cc: kvm
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)
>
> and built and installed the 2.6.28-rc7 x86_64 kernel from kvm pull, then
> tried to build kvm-userspace and the build failed:
>
>
> make -C /lib/modules/2.6.28-rc7/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 "
> make[2]: Entering directory `/home/beth/git/build/kvm.kernel/kvm'
> LD /home/beth/git/test/kvm-userspace/kernel/x86/built-in.o
> CC [M] /home/beth/git/test/kvm-userspace/kernel/x86/svm.o
> In file included
> from /home/beth/git/test/kvm-userspace/kernel/include/asm/kvm_host.h:64,
>
> from /home/beth/git/test/kvm-userspace/kernel/include/linux/kvm_host.h:67,
>
> from /home/beth/git/test/kvm-userspace/kernel/x86/svm.c:56:
> arch/x86/include/asm/mtrr.h:60: error: redefinition of 'struct
> 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
> arch/x86/include/asm/mtrr.h:74: error: redefinition of 'struct
> mtrr_state_type'
> make[4]: *** [/home/beth/git/test/kvm-userspace/kernel/x86/svm.o] Error
> 1
>
I am seeing this exact same error on 2.6.28-rc8
> 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.
Cheers,
Todd
--
Todd Deshane
http://todddeshane.net
http://runningxen.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: KVM userspace build fails with 2.6.28-rc7 kernel installed
2008-12-21 23:46 ` Todd Deshane
@ 2008-12-22 10:10 ` Avi Kivity
2008-12-23 7:15 ` Todd Deshane
0 siblings, 1 reply; 4+ messages in thread
From: Avi Kivity @ 2008-12-22 10:10 UTC (permalink / raw)
To: deshantm; +Cc: Beth Kon, kvm
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: KVM userspace build fails with 2.6.28-rc7 kernel installed
2008-12-22 10:10 ` Avi Kivity
@ 2008-12-23 7:15 ` Todd Deshane
0 siblings, 0 replies; 4+ messages in thread
From: Todd Deshane @ 2008-12-23 7:15 UTC (permalink / raw)
To: Avi Kivity; +Cc: Beth Kon, kvm
On Mon, Dec 22, 2008 at 5:10 AM, Avi Kivity <avi@redhat.com> wrote:
> If you run kvm.git as your kernel, use ./configure --with-patched-kernel
> (or, simply don't build the external module).
Worked for me.
Could we add a note to:
http://kvm.qumranet.com/kvmwiki/Code
For example here is what I do to build kvm-userspace on Ubuntu 8.10
I do the following:
sudo apt-get install libsdl1.2-dev gawk git-core
git clone git://git.kernel.org/pub/scm/virt/kvm/kvm-userspace.git
cd kvm-userspace
cd kernel
make sync LINUX=/data/src/kvm-src/kvm
cd ..
./configure --with-patched-kernel
make
make install
Which is close to wiki, but maybe if we could just add a note
that says use:
./configure --with-patched-kernel
in the case of ... <--- fill this in
Thanks,
Todd
--
Todd Deshane
http://todddeshane.net
http://runningxen.com
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-12-23 7:15 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2008-12-23 7:15 ` Todd Deshane
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox