From: "Todd Deshane" Subject: Re: KVM userspace build fails with 2.6.28-rc7 kernel installed Date: Sun, 21 Dec 2008 18:46:03 -0500 Message-ID: <1e16a9ed0812211546r47fca0eay4a71d470713abd8a@mail.gmail.com> References: <1228493658.25187.11.camel@beth-laptop> Reply-To: deshantm@gmail.com Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: kvm@vger.kernel.org To: "Beth Kon" Return-path: Received: from yw-out-2324.google.com ([74.125.46.28]:57250 "EHLO yw-out-2324.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751393AbYLUXqF (ORCPT ); Sun, 21 Dec 2008 18:46:05 -0500 Received: by yw-out-2324.google.com with SMTP id 9so638986ywe.1 for ; Sun, 21 Dec 2008 15:46:03 -0800 (PST) In-Reply-To: <1228493658.25187.11.camel@beth-laptop> Content-Disposition: inline Sender: kvm-owner@vger.kernel.org List-ID: On Fri, Dec 5, 2008 at 11:14 AM, Beth Kon 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