From: Dinesh G. <din...@di...> - 2005-07-30 00:24:24
|
Hi, I have Fedora Core 3 installed on my PC, with kernel version 2.6 I had installed : user_mode_linux-2.4.19.5um-0.i386.rpm ,and when I run "linux" command, it gives me this error : [root@GC dinesh]# linux tracing thread pid = 20663 Linux version 2.4.19-5um (jd...@um...) (gcc version 2.96 20000731 (Red Hat Linux 7.1 2.96-81)) #2 Mon Sep 16 15:41:15 EDT 2002 On node 0 totalpages: 8192 zone(0): 8192 pages. zone(1): 0 pages. zone(2): 0 pages. Kernel command line: root=/dev/ubd0 Calibrating delay loop... 1915.29 BogoMIPS Memory: 30192k available Dentry cache hash table entries: 4096 (order: 3, 32768 bytes) Inode cache hash table entries: 2048 (order: 2, 16384 bytes) Mount-cache hash table entries: 512 (order: 0, 4096 bytes) Buffer-cache hash table entries: 1024 (order: 0, 4096 bytes) Page-cache hash table entries: 8192 (order: 3, 32768 bytes) Checking for host processor cmov support...Yes Checking for host processor xmm support...No Checking that ptrace can change system call numbers...OK Checking that host ptys support output SIGIO...Yes Checking that host ptys support SIGIO on close...No, enabling workaround POSIX conformance testing by UNIFIX Linux NET4.0 for Linux 2.4 Based upon Swansea University Computer Society NET3.039 Initializing RT netlink socket Kernel panic: outer trampoline didn't exit with SIGKILL .... I read somewhere, that it is better to compile UMl from source code. So i did that too. I started off with linux-2.6.0.tar.bz2 with uml-patch-2.6.0-1.bz2. I had a compilation problem, when I ran # make linux ARCH=um Well, later learnt that this bug has not been fixed yet. I tried the same with > linux-2.4.0.tar.bz2 WITH uml-patch-2.4.0.bz2 I got a compilation error. (after # make linux ARCH=um) : - gcc -D__KERNEL__ -I/home/dinesh/uml_2.4/linux/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -U__i386__ -Ui386 -D__arch_um__ -DSUBARCH=\"i386\" -DNESTING=0 -c -o init/main.o init/main.c In file included from /home/dinesh/uml_2.4/linux/include/asm/string.h:4, from /home/dinesh/uml_2.4/linux/include/linux/string.h:21, from /home/dinesh/uml_2.4/linux/include/linux/fs.h:23, from /home/dinesh/uml_2.4/linux/include/linux/capability.h:17, from /home/dinesh/uml_2.4/linux/include/linux/binfmts.h:5, from /home/dinesh/uml_2.4/linux/include/linux/sched.h:9, from /home/dinesh/uml_2.4/linux/include/linux/mm.h:4, from /home/dinesh/uml_2.4/linux/include/linux/slab.h:14, from /home/dinesh/uml_2.4/linux/include/linux/malloc.h:4, from /home/dinesh/uml_2.4/linux/include/linux/proc_fs.h:5, from init/main.c:15: /home/dinesh/uml_2.4/linux/include/asm/arch/string.h:552:17: missing terminating " character In file included from /home/dinesh/uml_2.4/linux/include/asm/string.h:4, from /home/dinesh/uml_2.4/linux/include/linux/string.h:21, from /home/dinesh/uml_2.4/linux/include/linux/fs.h:23, from /home/dinesh/uml_2.4/linux/include/linux/capability.h:17, from /home/dinesh/uml_2.4/linux/include/linux/binfmts.h:5, from /home/dinesh/uml_2.4/linux/include/linux/sched.h:9, from /home/dinesh/uml_2.4/linux/include/linux/mm.h:4, from /home/dinesh/uml_2.4/linux/include/linux/slab.h:14, from /home/dinesh/uml_2.4/linux/include/linux/malloc.h:4, from /home/dinesh/uml_2.4/linux/include/linux/proc_fs.h:5, from init/main.c:15: /home/dinesh/uml_2.4/linux/include/asm/arch/string.h: In function `memscan': /home/dinesh/uml_2.4/linux/include/asm/arch/string.h:553: error: syntax error before "jnz" /home/dinesh/uml_2.4/linux/include/asm/arch/string.h:553:21: invalid suffix "f" on integer constant /home/dinesh/uml_2.4/linux/include/asm/arch/string.h:555:17: missing terminating " character In file included from /home/dinesh/uml_2.4/linux/include/asm/system.h:4, from /home/dinesh/uml_2.4/linux/include/asm/arch/semaphore.h:39, from /home/dinesh/uml_2.4/linux/include/asm/semaphore.h:4, from /home/dinesh/uml_2.4/linux/include/linux/fs.h:191, from /home/dinesh/uml_2.4/linux/include/linux/capability.h:17, from /home/dinesh/uml_2.4/linux/include/linux/binfmts.h:5, from /home/dinesh/uml_2.4/linux/include/linux/sched.h:9, from /home/dinesh/uml_2.4/linux/include/linux/mm.h:4, from /home/dinesh/uml_2.4/linux/include/linux/slab.h:14, from /home/dinesh/uml_2.4/linux/include/linux/malloc.h:4, from /home/dinesh/uml_2.4/linux/include/linux/proc_fs.h:5, from init/main.c:15: /home/dinesh/uml_2.4/linux/include/asm/arch/system.h:148:9: missing terminating " character In file included from /home/dinesh/uml_2.4/linux/include/asm/system.h:4, from /home/dinesh/uml_2.4/linux/include/asm/arch/semaphore.h:39, from /home/dinesh/uml_2.4/linux/include/asm/semaphore.h:4, from /home/dinesh/uml_2.4/linux/include/linux/fs.h:191, from /home/dinesh/uml_2.4/linux/include/linux/capability.h:17, from /home/dinesh/uml_2.4/linux/include/linux/binfmts.h:5, from /home/dinesh/uml_2.4/linux/include/linux/sched.h:9, from /home/dinesh/uml_2.4/linux/include/linux/mm.h:4, from /home/dinesh/uml_2.4/linux/include/linux/slab.h:14, from /home/dinesh/uml_2.4/linux/include/linux/malloc.h:4, from /home/dinesh/uml_2.4/linux/include/linux/proc_fs.h:5, from init/main.c:15: /home/dinesh/uml_2.4/linux/include/asm/arch/system.h: In function `__set_64bit': /home/dinesh/uml_2.4/linux/include/asm/arch/system.h:149: error: syntax error before "movl" /home/dinesh/uml_2.4/linux/include/asm/arch/system.h:150: warning: implicit declaration of function `cmpxchg8b' /home/dinesh/uml_2.4/linux/include/asm/arch/system.h:150: error: syntax error before '%' token /home/dinesh/uml_2.4/linux/include/asm/arch/system.h:151:21: invalid suffix "b" on integer constant /home/dinesh/uml_2.4/linux/include/asm/arch/system.h:151: error: `jnz' undeclared (first use in this function) /home/dinesh/uml_2.4/linux/include/asm/arch/system.h:151: error: (Each undeclared identifier is reported only once /home/dinesh/uml_2.4/linux/include/asm/arch/system.h:151: error: for each function it appears in.) /home/dinesh/uml_2.4/linux/include/asm/arch/system.h:151:23: missing terminating " character In file included from /home/dinesh/uml_2.4/linux/include/asm/checksum.h:4, from /home/dinesh/uml_2.4/linux/include/net/checksum.h:33, from /home/dinesh/uml_2.4/linux/include/linux/raid/md.h:34, from init/main.c:24: /home/dinesh/uml_2.4/linux/include/asm/arch/checksum.h:72:30: missing terminating " character In file included from /home/dinesh/uml_2.4/linux/include/asm/checksum.h:4, from /home/dinesh/uml_2.4/linux/include/net/checksum.h:33, from /home/dinesh/uml_2.4/linux/include/linux/raid/md.h:34, from init/main.c:24: /home/dinesh/uml_2.4/linux/include/asm/arch/checksum.h: In function `ip_fast_csum': /home/dinesh/uml_2.4/linux/include/asm/arch/checksum.h:73: error: syntax error before "movl" /home/dinesh/uml_2.4/linux/include/asm/arch/checksum.h:75:17: invalid suffix "f" on integer constant /home/dinesh/uml_2.4/linux/include/asm/arch/checksum.h:82:17: invalid suffix "b" on integer constant /home/dinesh/uml_2.4/linux/include/asm/arch/checksum.h:90:13: missing terminating " character /home/dinesh/uml_2.4/linux/include/asm/arch/checksum.h:105:17: missing terminating " character /home/dinesh/uml_2.4/linux/include/asm/arch/checksum.h: In function `csum_fold': /home/dinesh/uml_2.4/linux/include/asm/arch/checksum.h:106: error: syntax error before "addl" /home/dinesh/uml_2.4/linux/include/asm/arch/checksum.h:108:17: missing terminating " character /home/dinesh/uml_2.4/linux/include/asm/arch/checksum.h:121:13: missing terminating " character /home/dinesh/uml_2.4/linux/include/asm/arch/checksum.h: In function `csum_tcpudp_nofold': /home/dinesh/uml_2.4/linux/include/asm/arch/checksum.h:122: error: syntax error before "addl" /home/dinesh/uml_2.4/linux/include/asm/arch/checksum.h:126:9: missing terminating " character /home/dinesh/uml_2.4/linux/include/asm/arch/checksum.h:128: error: `__x' undeclared (first use in this function) /home/dinesh/uml_2.4/linux/include/asm/arch/checksum.h: At top level: /home/dinesh/uml_2.4/linux/include/asm/arch/checksum.h:128: error: syntax error before ')' token /home/dinesh/uml_2.4/linux/include/asm/arch/checksum.h:161:17: missing terminating " character /home/dinesh/uml_2.4/linux/include/asm/arch/checksum.h: In function `csum_ipv6_magic': /home/dinesh/uml_2.4/linux/include/asm/arch/checksum.h:162: error: syntax error before "addl" /home/dinesh/uml_2.4/linux/include/asm/arch/checksum.h:173:17: missing terminating " character /home/dinesh/uml_2.4/linux/include/asm/arch/checksum.h:176: error: `__x' undeclared (first use in this function) /home/dinesh/uml_2.4/linux/include/asm/arch/checksum.h:176: warning: no return statement in function returning non-void /home/dinesh/uml_2.4/linux/include/asm/arch/checksum.h: At top level: /home/dinesh/uml_2.4/linux/include/asm/arch/checksum.h:176: error: syntax error before ')' token /home/dinesh/uml_2.4/linux/include/asm/arch/checksum.h:176: error: syntax error before "__u32" make: *** [init/main.o] Error 1 I have tried with different versions of kernel with corresponding uml-patch, but have been getting errors (mostly the same). All in vain !!! Kindly give me a solution. Installing UML is the first step of my project. Well !! not the start that I wanted. Thanx in advance. Regards, Dinesh |