kernel compilation
I posted to xen-users I was having problems, but looking through list archives looks like xen-devel is a more appropriate place.
After patching my kernel, and running make menuconfig ARCH=xen, everything seems fine. When I run make ARCH=xen, it compiles fine till here:
CC arch/xen/kernel/skbuff.oarch/xen/kernel/skbuff.c:28: error: redefinition of `__dev_alloc_skb'include/linux/skbuff.h:940: error: `__dev_alloc_skb' previously defined herearch/xen/kernel/skbuff.c: In function `__dev_alloc_skb':arch/xen/kernel/skbuff.c:30: warning: implicit declaration of function `alloc_skb_from_cache' arch/xen/kernel/skbuff.c:30: warning: assignment makes pointer from integer without a cast
is there anything I should be doing different/workaround?
Thanks a lot for any help
Andrew Mathes
Quoted 11 lines · andrew mathes
I posted to xen-users I was having problems, but looking through list archives looks like xen-devel is a more appropriate place.
After patching my kernel, and running make menuconfig ARCH=xen, everything seems fine. When I run make ARCH=xen, it compiles fine till here:
CCarch/xen/kernel/skbuff.oarch/xen/kernel/skbuff.c:28: error: redefinition of `__dev_alloc_skb'include/linux/skbuff.h:940: error: `__dev_alloc_skb' previously defined herearch/xen/kernel/skbuff.c: In function `__dev_alloc_skb':arch/xen/kernel/skbuff.c:30: warning: implicit declaration of function `alloc_skb_from_cache'arch/xen/kernel/skbuff.c:30: warning: assignment makes pointer from integer without a castis there anything I should be doing different/workaround?
Take a look in your .config file. There should be a line near the start, at the end of the 'XEN' subsection, that says 'CONFIG_HAVE_ARCH_DEV_ALLOC_SKB=y'.
If you're missing that, and/or the entire xen subsection, then you've somehow configured for native i386 by mistake.
-- Keir
this is the top of my .config ... will it help if I post the whole thing?
#
# Automatically generated make config: don't edit
# Linux kernel version: 2.6.10
# Mon Apr 25 14:44:29 2005
#CONFIG_XEN=yCONFIG_ARCH_XEN=yCONFIG_NO_IDLE_HZ=y
#
# XEN
#
# CONFIG_XEN_PRIVILEGED_GUEST is not set
# CONFIG_XEN_PHYSDEV_ACCESS is not set
# CONFIG_XEN_BLKDEV_BACKEND is not set
# CONFIG_XEN_NETDEV_BACKEND is not set CONFIG_XEN_BLKDEV_FRONTEND=y CONFIG_XEN_NETDEV_FRONTEND=y
# CONFIG_XEN_NETDEV_FRONTEND_PIPELINED_TRANSMITTER is not set CONFIG_XEN_WRITABLE_PAGETABLES=y CONFIG_XEN_SCRUB_PAGES=y CONFIG_HAVE_ARCH_DEV_ALLOC_SKB=yCONFIG_X86=y
# CONFIG_X86_64 is not set
#
# Code maturity level options
#CONFIG_EXPERIMENTAL=yCONFIG_CLEAN_COMPILE=yCONFIG_BROKEN_ON_SMP=y
Quoted 28 lines · Keir Fraser
Quoted 15 lines · andrew mathes
I posted to xen-users I was having problems, but looking through list archives looks like xen-devel is a more appropriate place.
After patching my kernel, and running make menuconfig ARCH=xen, everything seems fine. When I run make ARCH=xen, it compiles fine till here:
CCarch/xen/kernel/skbuff.o
arch/xen/kernel/skbuff.c:28: error: redefinition of__dev_alloc_skb' include/linux/skbuff.h:940: error:__dev_alloc_skb' previously defined here
arch/xen/kernel/skbuff.c: In function `__dev_alloc_skb':
arch/xen/kernel/skbuff.c:30: warning: implicit declaration of function `alloc_skb_from_cache'
arch/xen/kernel/skbuff.c:30: warning: assignment makes pointer from integer without a castQuoted 1 line
is there anything I should be doing different/workaround?
Take a look in your .config file. There should be a line near the start, at the end of the 'XEN' subsection, that says '
CONFIG_HAVE_ARCH_DEV_ALLOC_SKB=y'.If you're missing that, and/or the entire xen subsection, then you've somehow configured for native i386 by mistake.
-- Keir
Quoted 1 line · andrew mathes
this is the top of my .config ... will it help if I post the whole thing?
The .config looks good, so the error you are getting is weird. If you look in include/linux/skbuff.h you should find that the definition of __dev_alloc_skb is wrapped in #ifndef CONFIG_HAVE_ARCH_DEV_ALLOC_SKB
If you have no such line in your skbuff.h file then your patching has gone wrong. I notice you are using 2.6.10 still -- have you tried downloading a more up to date repository or snapshot tarball?
-- Keir
to use a more up to date repository ...
where would i find more updated patches for the kernel? I only saw the two from the download site ... are they in the xen source tarball somewhere?
then i assume i just patch them to the latest 2.6.11 kernel
thanks a lot again-
Quoted 13 lines · Keir Fraser
Quoted 1 line · andrew mathes
this is the top of my .config ... will it help if I post the whole thing?
The .config looks good, so the error you are getting is weird. If you look in
include/linux/skbuff.hyou should find that the definition of__dev_alloc_skbis wrapped in #ifndefCONFIG_HAVE_ARCH_DEV_ALLOC_SKBIf you have no such line in your
skbuff.hfile then your patching has gone wrong. I notice you are using 2.6.10 still -- have you tried downloading a more up to date repository or snapshot tarball?-- Keir
ok, at this point i've tried -
2.6.11 and 2.6.10
... patched with arch-xen.patch and drivers-xen.patch, and also tried with just copying the linux-2.6.11-xen-sparse folder to the kernel directory
then make menuconfig ARCH=xen (seems fine, brings up xen options) then make ARCH=xen ... always has errors.
the two places it seems to error are "rmap.h" and "skbuff.c" depending how I patch the kernels/which i use ...
am I still going about this wrong? is there somewhere to get the "latest" arch-xen.patch/drivers-xen.patch?
thanks again for any help
Quoted 34 lines · andrew mathes
to use a more up to date repository ...
where would i find more updated patches for the kernel? I only saw the two from the download site ... are they in the xen source tarball somewhere?
then i assume i just patch them to the latest 2.6.11 kernel
thanks a lot again-
Quoted 11 lines · Keir Fraser
Quoted 2 lines · andrew mathes
this is the top of my .config ... will it help if I post the whole thing?
The .config looks good, so the error you are getting is weird. If you look in
include/linux/skbuff.hyou should find that the definition of__dev_alloc_skbis wrapped in
#ifndefCONFIG_HAVE_ARCH_DEV_ALLOC_SKBQuoted 7 lines
If you have no such line in your
skbuff.hfile then your patching has gone wrong. I notice you are using 2.6.10 still -- have you tried downloading a more up to date repository or snapshot tarball?-- Keir
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel