Trying to build User-Mode-Linux Kernel

Harry Courtice hcourtice at
Thu Nov 9 10:44:26 UTC 2006

I am trying to build a UML kernel from Ubuntu 6.o6.

I've never built a kernel before, so probably doing something basic wrong..

I have 

gcc version:
	 4.0.3 (Ubuntu 4.0.4-1ubuntu5)
Kernel sources: 
	(head -1 Debian.src.changelog)
	linux-source-2.6.15 ( dapper-security

I am following the instructions in "Installing User Mode Linux"

I untarred source files to my home directory

root at desktop:~/tar -xvjf /usr/src/linux-source-2.6.15.tar.bz2

Configure went without a problem. I selected the suggested options in the

root at desktop:~/linux-source-2.6.15# make ARCH=um menuconfig

Then try to make the kernel.

root at desktop:~/linux-source-2.6.15# make ARCH-um linux

Very quickly get an error:

In file included from include/asm/bitops.h:4
                 From arch/um/sys-i386/kernel-offsets.c:3
Include/asm/arch/bitops.h:10:29: error asm/alternative.h: no such file or

Followed by lots of errors "In function 'xxx_bit'" syntax error before

Clearly I'm doing something basic wrong.

Any hints??



More information about the ubuntu-users mailing list