Problem when trying to compile ubuntu-kernel from source (via apt-

Tim Gardner tim.gardner at canonical.com
Mon Mar 1 14:12:13 UTC 2010


Thomas Stather wrote:
> Hello everybody
> 
> I have a strange problem when i tried to compile my own XEN Dom0/DomU
> Kernel from source (i used the apt-src kernel sources).
> I followed this manual:
> 
> https://help.ubuntu.com/community/Kernel/Compile
> 
> 
> I created a new flavour called "xen" (see
> http://blog.avirtualhome.com/2009/11/03/how-to-compile-a-kernel-for-ubuntu-karmic/)
> and patched the kernel-source with the xen-patches (2.6.31-11).After
> that, i ran:
> 
> 
> debian/rules updateconfigs
> 
> and i enabled the new XEN config-attributes only for my flavour
> 
> 
> For compilation, i ran
> 
> DEB_BUILD_OPTIONS=parallel=2 AUTOBUILD=1 skipmodule=1 skipabi=1
> debian/rules binary-debs
> 
> And here is the first of my 2 problems. When i omitted the skipmodule
> flag, i got some warnings about missing modules, what exactly does this
> mean (are the modules in the kernel config but not in the kernel source
> anymore????)?
> 
> Then i set the flag, and the compilation went through fine (about 20
> minutes) but i got the following error:
> 
> WW: Explicitly asked to ignore failures (probably not good)
> II: New modules (you've been busy, wipe the poop off your nose)
> II: Done
> dh_testdir
> dh_testroot
> dh_clean -k -plinux-image-2.6.31-19-xen
> dh_clean -k -plinux-headers-2.6.31-19-xen
> dh_clean -k -plinux-image-debug-2.6.31-19-xen
> # The main image
> # compress_file logic required because not all architectures
> # generate a zImage automatically out of the box
> install -m644 -D
> /root/linux-2.6.31/debian/build/build-xen/arch/x86_64/boot/bzImage \
>       
> /root/linux-2.6.31/debian/linux-image-2.6.31-19-xen/boot/vmlinuz-2.6.31-19-xen         
> 
> install: cannot stat
> `/root/linux-2.6.31/debian/build/build-xen/arch/x86_64/boot/bzImage': No
> such file or directory
> make: *** [install-xen] Error 1
> 
> I have some knowledge about debian/ubuntu package building, but as i
> discovered, the kernel rules-file is a bit complicated and i don't know
> where the error could be. What i know is that
> 
> /root/linux-2.6.31/debian/linux-image-2.6.31-19-xen/boot/vmlinuz-2.6.31-19-xen     
> 
> 
> doesn't exist
> 
> 
> Can you please help me, because i really need this Xen Dom0/U Kernel for
> Ubuntu Karmic (x86_64).
> 
> 
> Greets Thomas
> 
> 
> 
> 

Check your configuration. It kind of looks like your version configs are
messed up. They should be:

debian.master/config/config.common.ubuntu:CONFIG_LOCALVERSION=""
debian.master/config/config.common.ubuntu:# CONFIG_LOCALVERSION_AUTO is
not set

The definitive source for kernel maintenance is here:

https://wiki.ubuntu.com/KernelTeam/KernelMaintenance

rtg
-- 
Tim Gardner tim.gardner at canonical.com




More information about the kernel-team mailing list