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 |
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) |
All times are GMT -5. The time now is 01:24 PM. |