public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* [ kvm-Bugs-1958519 ] fails to build KVM modules against 2.6.26 kernel
@ 2008-05-06  8:05 SourceForge.net
  2008-05-06  9:49 ` Ryota OZAKI
  0 siblings, 1 reply; 4+ messages in thread
From: SourceForge.net @ 2008-05-06  8:05 UTC (permalink / raw)
  To: kvm-devel

Bugs item #1958519, was opened at 2008-05-06 16:05
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=893831&aid=1958519&group_id=180599

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: yunfeng (yunfeng)
Assigned to: Nobody/Anonymous (nobody)
Summary: fails to build KVM modules against 2.6.26 kernel

Initial Comment:
Building KVM modules against 2.6.24 kernel is ok.
But building against 2.6.26 kernel will fail.

make -j20 -C /lib/modules/2.6.26-rc1-02049-g6307419/build M=`pwd` \
                LINUXINCLUDE="-I`pwd`/include -Iinclude -I`pwd`/include-compat \
                -include include/linux/autoconf.h" \
                "$@"
make[1]: Entering directory `/root/kvm'
  Building modules, stage 2.
  MODPOST 3 modules
WARNING: "kvm_div64_u64" [/root/kvm-master-2.6.22-rc4-20080506010222296/kvm-userspace/kernel/kvm.ko] undefined!
  CC      /root/kvm-master-2.6.22-rc4-20080506010222296/kvm-userspace/kernel/kvm-amd.mod.o
  CC      /root/kvm-master-2.6.22-rc4-20080506010222296/kvm-userspace/kernel/kvm-intel.mod.o
  CC      /root/kvm-master-2.6.22-rc4-20080506010222296/kvm-userspace/kernel/kvm.mod.o
In file included from <command line>:1:
./include/linux/autoconf.h:516:1: error: /external-module-compat.h: No such file or directory
In file included from <command line>:1:
./include/linux/autoconf.h:516:1: error: /external-module-compat.h: No such file or directory
In file included from <command line>:1:
./include/linux/autoconf.h:516:1: error: /external-module-compat.h: No such file or directory
make[2]: *** [/root/kvm-master-2.6.22-rc4-20080506010222296/kvm-userspace/kernel/kvm-intel.mod.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [/root/kvm-master-2.6.22-rc4-20080506010222296/kvm-userspace/kernel/kvm-amd.mod.o] Error 1
make[2]: *** [/root/kvm-master-2.6.22-rc4-20080506010222296/kvm-userspace/kernel/kvm.mod.o] Error 1
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/root/kvm'
make: *** [all] Error 2

 

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=893831&aid=1958519&group_id=180599

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone

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

* Re: [ kvm-Bugs-1958519 ] fails to build KVM modules against 2.6.26 kernel
  2008-05-06  8:05 [ kvm-Bugs-1958519 ] fails to build KVM modules against 2.6.26 kernel SourceForge.net
@ 2008-05-06  9:49 ` Ryota OZAKI
  2008-05-06 10:46   ` Avi Kivity
  0 siblings, 1 reply; 4+ messages in thread
From: Ryota OZAKI @ 2008-05-06  9:49 UTC (permalink / raw)
  To: kvm-devel; +Cc: Ryota OZAKI

Hi all,

>  Initial Comment:
>  Building KVM modules against 2.6.24 kernel is ok.
>  But building against 2.6.26 kernel will fail.

I got the same problem, but the following Andrea's patch helped me.

Hope this helps,
ozaki-r

---------- Forwarded message ----------
From: Andrea Arcangeli <andrea@qumranet.com>
Date: 2008/4/26
Subject: [kvm-devel] fix external module compile
To: kvm-devel@lists.sourceforge.net
Cc: Avi Kivity <avi@qumranet.com>


Hello,

 after updating kvm-userland.git, kvm.git and linux-2.6-hg, and after
 make distclean and rebuild with slightly reduced .config, I can't
 compile the external module anymore. Looking into it with V=1, $(src)
 defines to "" and including /external-module-compat.h clearly fails. I
 fixed it like below, because it seems more consistent to enforce the
 ordering of the "special" includes in the same place, notably
 $(src)/include is already included as $LINUX at point 1 of the
 comment, so this looks a cleanup of superflous line in Kconfig besides
 fixing my compile by moving the external-module-compat in the same
 place with the other includes where `pwd` works instead of $(src) that
 doesn't work anymore for whatever reason.

 Signed-off-by: Andrea Arcangeli <andrea@qumranet.com>

 diff --git a/kernel/Kbuild b/kernel/Kbuild
 index cabfc75..d9245eb 100644
 --- a/kernel/Kbuild
 +++ b/kernel/Kbuild
 @@ -1,4 +1,3 @@
 -EXTRA_CFLAGS := -I$(src)/include -include $(src)/external-module-compat.h
  obj-m := kvm.o kvm-intel.o kvm-amd.o
  kvm-objs := kvm_main.o x86.o mmu.o x86_emulate.o anon_inodes.o irq.o i8259.o \
         lapic.o ioapic.o preempt.o i8254.o external-module-compat.o
 diff --git a/kernel/Makefile b/kernel/Makefile
 index 78ff923..e3fccbe 100644
 --- a/kernel/Makefile
 +++ b/kernel/Makefile
 @@ -27,7 +27,8 @@ all::
  #      include header priority 1) $LINUX 2) $KERNELDIR 3) include-compat
        $(MAKE) -C $(KERNELDIR) M=`pwd` \
                LINUXINCLUDE="-I`pwd`/include -Iinclude -I`pwd`/include-compat \
 -               -include include/linux/autoconf.h" \
 +               -include include/linux/autoconf.h \
 +               -include `pwd`/external-module-compat.h"
                "$$@"

  sync: header-sync source-sync

 -------------------------------------------------------------------------
 This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
 Don't miss this year's exciting event. There's still time to save $100.
 Use priority code J8TL2D2.
 http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
 _______________________________________________
 kvm-devel mailing list
 kvm-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/kvm-devel



2008/5/6 SourceForge.net <noreply@sourceforge.net>:
> Bugs item #1958519, was opened at 2008-05-06 16:05
>  Message generated for change (Tracker Item Submitted) made by Item Submitter
>  You can respond by visiting:
>  https://sourceforge.net/tracker/?func=detail&atid=893831&aid=1958519&group_id=180599
>
>  Please note that this message will contain a full copy of the comment thread,
>  including the initial issue submission, for this request,
>  not just the latest update.
>  Category: None
>  Group: None
>  Status: Open
>  Resolution: None
>  Priority: 5
>  Private: No
>  Submitted By: yunfeng (yunfeng)
>  Assigned to: Nobody/Anonymous (nobody)
>  Summary: fails to build KVM modules against 2.6.26 kernel
>
>  Initial Comment:
>  Building KVM modules against 2.6.24 kernel is ok.
>  But building against 2.6.26 kernel will fail.
>
>  make -j20 -C /lib/modules/2.6.26-rc1-02049-g6307419/build M=`pwd` \
>                 LINUXINCLUDE="-I`pwd`/include -Iinclude -I`pwd`/include-compat \
>                 -include include/linux/autoconf.h" \
>                 "$@"
>  make[1]: Entering directory `/root/kvm'
>   Building modules, stage 2.
>   MODPOST 3 modules
>  WARNING: "kvm_div64_u64" [/root/kvm-master-2.6.22-rc4-20080506010222296/kvm-userspace/kernel/kvm.ko] undefined!
>   CC      /root/kvm-master-2.6.22-rc4-20080506010222296/kvm-userspace/kernel/kvm-amd.mod.o
>   CC      /root/kvm-master-2.6.22-rc4-20080506010222296/kvm-userspace/kernel/kvm-intel.mod.o
>   CC      /root/kvm-master-2.6.22-rc4-20080506010222296/kvm-userspace/kernel/kvm.mod.o
>  In file included from <command line>:1:
>  ./include/linux/autoconf.h:516:1: error: /external-module-compat.h: No such file or directory
>  In file included from <command line>:1:
>  ./include/linux/autoconf.h:516:1: error: /external-module-compat.h: No such file or directory
>  In file included from <command line>:1:
>  ./include/linux/autoconf.h:516:1: error: /external-module-compat.h: No such file or directory
>  make[2]: *** [/root/kvm-master-2.6.22-rc4-20080506010222296/kvm-userspace/kernel/kvm-intel.mod.o] Error 1
>  make[2]: *** Waiting for unfinished jobs....
>  make[2]: *** [/root/kvm-master-2.6.22-rc4-20080506010222296/kvm-userspace/kernel/kvm-amd.mod.o] Error 1
>  make[2]: *** [/root/kvm-master-2.6.22-rc4-20080506010222296/kvm-userspace/kernel/kvm.mod.o] Error 1
>  make[1]: *** [modules] Error 2
>  make[1]: Leaving directory `/root/kvm'
>  make: *** [all] Error 2
>
>
>
>  ----------------------------------------------------------------------
>
>  You can respond by visiting:
>  https://sourceforge.net/tracker/?func=detail&atid=893831&aid=1958519&group_id=180599
>
>  -------------------------------------------------------------------------
>  This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
>  Don't miss this year's exciting event. There's still time to save $100.
>  Use priority code J8TL2D2.
>  http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
>  _______________________________________________
>  kvm-devel mailing list
>  kvm-devel@lists.sourceforge.net
>  https://lists.sourceforge.net/lists/listinfo/kvm-devel
>

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone

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

* Re: [ kvm-Bugs-1958519 ] fails to build KVM modules against 2.6.26 kernel
  2008-05-06  9:49 ` Ryota OZAKI
@ 2008-05-06 10:46   ` Avi Kivity
  0 siblings, 0 replies; 4+ messages in thread
From: Avi Kivity @ 2008-05-06 10:46 UTC (permalink / raw)
  To: Ryota OZAKI; +Cc: kvm-devel, Andrea Arcangeli

Ryota OZAKI wrote:
> Hi all,
>
>   
>>  Initial Comment:
>>  Building KVM modules against 2.6.24 kernel is ok.
>>  But building against 2.6.26 kernel will fail.
>>     
>
> I got the same problem, but the following Andrea's patch helped me.
>
> Hope this helps,
>   

Yes, while I think it's a Kbuild problem, too many people are hitting 
it, so I applied the patch.


-- 
Do not meddle in the internals of kernels, for they are subtle and quick to panic.


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone

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

* [ kvm-Bugs-1958519 ] fails to build KVM modules against 2.6.26 kernel
@ 2008-05-07 12:03 SourceForge.net
  0 siblings, 0 replies; 4+ messages in thread
From: SourceForge.net @ 2008-05-07 12:03 UTC (permalink / raw)
  To: kvm-devel

Bugs item #1958519, was opened at 2008-05-06 16:05
Message generated for change (Comment added) made by yunfeng
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=893831&aid=1958519&group_id=180599

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
>Status: Closed
Resolution: None
Priority: 5
Private: No
Submitted By: yunfeng (yunfeng)
Assigned to: Nobody/Anonymous (nobody)
Summary: fails to build KVM modules against 2.6.26 kernel

Initial Comment:
Building KVM modules against 2.6.24 kernel is ok.
But building against 2.6.26 kernel will fail.

make -j20 -C /lib/modules/2.6.26-rc1-02049-g6307419/build M=`pwd` \
                LINUXINCLUDE="-I`pwd`/include -Iinclude -I`pwd`/include-compat \
                -include include/linux/autoconf.h" \
                "$@"
make[1]: Entering directory `/root/kvm'
  Building modules, stage 2.
  MODPOST 3 modules
WARNING: "kvm_div64_u64" [/root/kvm-master-2.6.22-rc4-20080506010222296/kvm-userspace/kernel/kvm.ko] undefined!
  CC      /root/kvm-master-2.6.22-rc4-20080506010222296/kvm-userspace/kernel/kvm-amd.mod.o
  CC      /root/kvm-master-2.6.22-rc4-20080506010222296/kvm-userspace/kernel/kvm-intel.mod.o
  CC      /root/kvm-master-2.6.22-rc4-20080506010222296/kvm-userspace/kernel/kvm.mod.o
In file included from <command line>:1:
./include/linux/autoconf.h:516:1: error: /external-module-compat.h: No such file or directory
In file included from <command line>:1:
./include/linux/autoconf.h:516:1: error: /external-module-compat.h: No such file or directory
In file included from <command line>:1:
./include/linux/autoconf.h:516:1: error: /external-module-compat.h: No such file or directory
make[2]: *** [/root/kvm-master-2.6.22-rc4-20080506010222296/kvm-userspace/kernel/kvm-intel.mod.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [/root/kvm-master-2.6.22-rc4-20080506010222296/kvm-userspace/kernel/kvm-amd.mod.o] Error 1
make[2]: *** [/root/kvm-master-2.6.22-rc4-20080506010222296/kvm-userspace/kernel/kvm.mod.o] Error 1
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/root/kvm'
make: *** [all] Error 2

 

----------------------------------------------------------------------

>Comment By: yunfeng (yunfeng)
Date: 2008-05-07 20:03

Message:
Logged In: YES 
user_id=1283543
Originator: YES

Has been fixed.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=893831&aid=1958519&group_id=180599

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone

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

end of thread, other threads:[~2008-05-07 12:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-06  8:05 [ kvm-Bugs-1958519 ] fails to build KVM modules against 2.6.26 kernel SourceForge.net
2008-05-06  9:49 ` Ryota OZAKI
2008-05-06 10:46   ` Avi Kivity
  -- strict thread matches above, loose matches on Subject: below --
2008-05-07 12:03 SourceForge.net

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