UM Linux 2.6.0-test5 (-mm2) fails to build

From: Peter Lieverdink
Date: Mon Sep 15 2003 - 20:52:41 EST


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

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/