LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 02-20-2003, 02:26 PM   #1
hero4hire
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 -
DKBUILD_BASENAME=hppfs_kern -D__KERNEL__ -
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.
h:46,
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:
/usr/lib/gcc-lib/i386-slackware-linux/2.95.3/include/asm/posix_types.h:3:
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, 10:17 AM   #2
lucifar
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)
 
  


Reply


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 02:37 PM
UML--->compiling user mode linux in kernel 2.6 waqasgujjar Red Hat 0 12-18-2004 03:20 PM
Kernel Problems. Howto Compile a new kernel from 4.2 with backwards compatibility ? ShoCkwave Linux - General 2 06-19-2004 06:02 AM
Kernel 2.4.23 compile causes kernel panics on ATA RAID-1 (mirror) array Raptor Ramjet Slackware 3 12-18-2003 01:40 PM
Uml DVation Slackware 0 11-22-2002 11:42 AM


All times are GMT -5. The time now is 07:22 AM.

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