Hi Jeff,
I'm having a play with UML (on Debian testing, gcc 2.95.4, x86 box) and the
um kernel fails to build. Same on Debian unstable with gcc-3.3. Looks like
either a missing include or changed struct. (or both) My experience extends
about as far as trying to include <asm/cache.h> (which defines
CONFIG_X86_L1_CACHE_SHIFT) in "include/linux/sched.h" but that didn't work,
oh well :-)
Hopefully a more or less useful bugreport.
- Peter.
--
make -f scripts/Makefile.build obj=arch/um/util
gcc -o arch/um/util/mk_task_user.o -c arch/um/util/mk_task_user.c
CC arch/um/util/mk_task_kern.o
In file included from include/asm/thread_info.h:13,
from include/linux/thread_info.h:21,
from include/linux/spinlock.h:12,
from include/linux/capability.h:45,
from include/linux/sched.h:7,
from arch/um/util/mk_task_kern.c:1:
include/asm/processor.h:66: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here
(not in a function)
include/asm/processor.h:66: requested alignment is not a constant
In file included from include/linux/gfp.h:4,
from include/linux/slab.h:15,
from include/linux/percpu.h:4,
from include/linux/sched.h:31,
from arch/um/util/mk_task_kern.c:1:
include/linux/mmzone.h:60: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not
in a function)
include/linux/mmzone.h:60: requested alignment is not a constant
arch/um/util/mk_task_kern.c: In function `main':
arch/um/util/mk_task_kern.c:13: structure has no member named `regs'
make[1]: *** [arch/um/util/mk_task_kern.o] Error 1
make: *** [arch/um/util] Error 2
On Mon, 2003-09-15 at 18:49, Peter Lieverdink wrote:
> Hopefully a more or less useful bugreport.
You're not doing the build correctly. Read the docs. All your
invocations of make must have ARCH=um somewhere.
<b