Skip to contentSkip to conversation

kernel compilation

DISCUSSION andrew mathes 2 participants 6 messages Apr 25, 2005 – Apr 26, 2005

lore
Share & tools
lore
#0 lore raw

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.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 cast

is there anything I should be doing different/workaround?

Thanks a lot for any help
Andrew Mathes

#1 lore raw
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:
CC arch/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 cast

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

#2 lore raw

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=y
CONFIG_ARCH_XEN=y
CONFIG_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=y
CONFIG_X86=y
# CONFIG_X86_64 is not set

#
# Code maturity level options
#
CONFIG_EXPERIMENTAL=y
CONFIG_CLEAN_COMPILE=y
CONFIG_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:
CC arch/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 cast

Quoted 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

#3 lore raw
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

#4 lore raw

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.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

#5 lore raw

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.h you should find that the definition of __dev_alloc_skb is wrapped in
#ifndef CONFIG_HAVE_ARCH_DEV_ALLOC_SKB

Quoted 7 lines

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

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel