Hi all

I want to run user-mode-linux on my Gentoo box. I tried to use this doc
http://www.gentoo.org/doc/en/uml.xml First I tried to use
gentoo-dev-sources-2.6.10-r6 but it gives this error:
In file included from include/asm/thread_info.h:17,
                 from include/linux/thread_info.h:21,
                 from include/linux/spinlock.h:12,
                 from include/linux/seqlock.h:30,
                 from include/linux/time.h:7,
                 from arch/um/util/mk_constants_kern.c:3:
include/asm/processor.h:68: error: `CONFIG_X86_L1_CACHE_SHIFT'
undeclared here (not in a function)
include/asm/processor.h:68: error: requested alignment is not a constant
make[1]: *** [arch/um/util/mk_constants_kern.o] Error 1
make: *** [arch/um/util] Error 2

The same with -r5. I tried development-sources-2.6.11_rc4, at least it
compiles, but when I try to run linux I immediately get a Segmentation
fault. I tried to enable the 2G/2G option, but it doesn't help (and I
don't think I have a 2G/2G system). usermode-sources gives me this
compile-error:

/usr/src/uml/linux-2.4.26-uml1-r12/lib/vsprintf.c:730: multiple
definition of `sscanf'
arch/um/kernel/tt/unmap_fin.o(.text+0x324b0): first defined here
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/../../../../i686-pc-linux-gnu/bi=
n/ld:
Warning: size of symbol `sscanf' changed from 33 in
arch/um/kernel/tt/unmap_fin.o to 35 in vmlinux.o
vmlinux.o(.text+0x13dba0): In function `strpbrk':
/usr/src/uml/linux-2.4.26-uml1-r12/lib/string.c:280: multiple definition
of `strpbrk'
arch/um/kernel/tt/unmap_fin.o(.text+0x349d0): first defined here
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/../../../../i686-pc-linux-gnu/bi=
n/ld:
Warning: size of symbol `strpbrk' changed from 179 in
arch/um/kernel/tt/unmap_fin.o to 82 in vmlinux.o
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/../../../../i686-pc-linux-gnu/bi=
n/ld:
BFD 2.15.92.0.2 20040927 assertion fail elf.c:3637
collect2: ld returned 1 exit status
make: *** [linux] Error 1

I can send configs if you want.
Please help me!
Thanks
Gábor

--
[email protected] mailing list

Reply via email to