Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 02-20-2003, 03:26 PM   #1
LQ Newbie
Registered: Feb 2003
Posts: 1

Rep: Reputation: 0
UML kernel compile

I am attempting to compile a UML kernel and running into some problems. I am compiling it on a Slackware 8.1 system with the kernel upgraded to 2.4.20.

The kernel I am attempting to compile is 2.4.19 and I am using the uml-patch-2.4.19-50.bz2 UML patch.

The steps I run are listed below

1. Extract the kernel source.
2. Copy uml-patch-2.4.19-50.bz2 in to the root of the source tree
3. Run “bzcat unl-patch-2.4.19-50.bz2 | patch –p1”
4. Run “make menuconfig ARCH=um”
5. Used the default kernel options
6. Run “make dep ARCH=um” (Tried it with and without this step)
7. Run “make linux ARCH=um”

After compiling for a while it errors out with the following output.

gcc -nostdinc -I /usr/lib/gcc-lib/i386-slackware-linux/2.95.3/include -
I/usr/local/src/uml/linux-2.4.19/include -Wall -Wstrict-prototypes -Wno-
trigraphs -O2 -fno-strict-aliasing -fno-common -U__i386__ -Ui386 -DUM_FASTCALL
-g -D__arch_um__ -DSUBARCH="i386" -D_LARGEFILE64_SOURCE -
I/usr/local/src/uml/linux-2.4.19/arch/um/include -Derrno=kernel_errno -
I/usr/local/src/uml/linux-2.4.19/arch/um/kernel/tt/include -
I/usr/local/src/uml/linux-2.4.19/arch/um/kernel/skas/include -c -o hppfs_kern.
o hppfs_kern.c
In file included from /usr/local/src/uml/linux-2.4.19/include/linux/posix_types.
from /usr/local/src/uml/linux-2.4.19/include/linux/types.h:8,
from /usr/local/src/uml/linux-2.4.19/include/linux/kernel.h:13,
from /usr/local/src/uml/linux-2.4.19/include/linux/wait.h:13,
from /usr/local/src/uml/linux-2.4.19/include/linux/fs.h:12,
from hppfs_kern.c:6:
features.h: No such file or directory

I have a file called features.h and it is located at /usr/include/features.h

Any help would be appreciated
Old 02-23-2003, 11:17 AM   #2
LQ Newbie
Registered: Feb 2003
Distribution: FreeBSD, OpenBSD, NetBSD, Gentoo, Debian, Slackware, LFS, Redhat, Suse, Mandrake
Posts: 4

Rep: Reputation: 0
Try running the following command in your kernel source tree:

yes "" | make config

Then do a compile on your kernel. If possible, keep your UML tree seperate from your main kernel tree. (eg, /usr/src/linux-2.4.19-uml)


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
upgraded kernel, won't let me compile kernel once Suspend2 patches are applied microsoft/linux Linux - Laptop and Netbook 3 10-02-2005 03:37 PM
UML--->compiling user mode linux in kernel 2.6 waqasgujjar Red Hat 0 12-18-2004 04:20 PM
Kernel Problems. Howto Compile a new kernel from 4.2 with backwards compatibility ? ShoCkwave Linux - General 2 06-19-2004 07:02 AM
Kernel 2.4.23 compile causes kernel panics on ATA RAID-1 (mirror) array Raptor Ramjet Slackware 3 12-18-2003 02:40 PM
Uml DVation Slackware 0 11-22-2002 12:42 PM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:54 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration