From: Domenico A. <ca...@li...> - 2003-12-30 00:08:47
|
Domenico Andreoli wrote: > UML side: > i'm not able to build a uml kernel :( > incredibly i moved forward :) i discovered a bashism in arch/um/Makefile at line 104: STACK_SIZE := $(shell echo $$[ 4096 * (1 << $(CONFIG_KERNEL_STACK_ORDER)) ] ) ^ ^ my /bin/sh points to dash, dash doesn't like these paretheses and for who knows why this produces the error i reported below. > if i apply 00-Combo-4.patch.bz2 from to a vanilla 2.6.0 linux kernel and i > try to build i get the following errors: > > 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: error: `CONFIG_X86_L1_CACHE_SHIFT' > undeclared here (not in a function) > include/asm/processor.h:66: error: requested alignment is not a constant > after i made my /bin/sh point back to bash, i restarted the build. i had to make a little fix (i'm compiling with SMP option) for CC arch/um/kernel/irq.o arch/um/kernel/irq.c: In function `irq_affinity_write_proc': arch/um/kernel/irq.c:637: error: `tmp' undeclared (first use in this function) arch/um/kernel/irq.c:637: error: (Each undeclared identifier is reported only once arch/um/kernel/irq.c:637: error: for each function it appears in.) make[1]: *** [arch/um/kernel/irq.o] Error 1 and restarted build again. then it's the time for following error: USR-CC arch/um/sys-i386/bugs.o arch/um/sys-i386/bugs.c: In function `disable_lcall': arch/um/sys-i386/bugs.c:110: error: storage size of `ldt' isn't known arch/um/sys-i386/bugs.c:117: warning: implicit declaration of function `modify_ldt' arch/um/sys-i386/bugs.c:110: warning: unused variable `ldt' make[1]: *** [arch/um/sys-i386/bugs.o] Error 1 hmmm... i'm pretty sure to have already seen stuff about modify_ldt somewhere.. ah, si.. uml-combo-2.6.0-A5b.uml provided by Jeff Chua.. two easy rejects and i'm back ready to build again. this is the final error, which i'm trying to fix: CC arch/um/sys-i386/ptrace.o arch/um/sys-i386/ptrace.c: In function `putreg': arch/um/sys-i386/ptrace.c:41: error: `FS' undeclared (first use in this function) arch/um/sys-i386/ptrace.c:41: error: (Each undeclared identifier is reported only once arch/um/sys-i386/ptrace.c:41: error: for each function it appears in.) arch/um/sys-i386/ptrace.c:46: error: `GS' undeclared (first use in this function) arch/um/sys-i386/ptrace.c:51: error: `DS' undeclared (first use in this function) arch/um/sys-i386/ptrace.c:52: error: `ES' undeclared (first use in this function) arch/um/sys-i386/ptrace.c:57: error: `SS' undeclared (first use in this function) arch/um/sys-i386/ptrace.c:58: error: `CS' undeclared (first use in this function) arch/um/sys-i386/ptrace.c:63: error: `EFL' undeclared (first use in this function) arch/um/sys-i386/ptrace.c:68: error: `EIP' undeclared (first use in this function) arch/um/sys-i386/ptrace.c:68: error: `UESP' undeclared (first use in this function) arch/um/sys-i386/ptrace.c:68: error: `EAX' undeclared (first use in this function) arch/um/sys-i386/ptrace.c:68: error: `EBX' undeclared (first use in this function) arch/um/sys-i386/ptrace.c:68: error: `ECX' undeclared (first use in this function) arch/um/sys-i386/ptrace.c:68: error: `EDX' undeclared (first use in this function) arch/um/sys-i386/ptrace.c:68: error: `ESI' undeclared (first use in this function) arch/um/sys-i386/ptrace.c:68: error: `EDI' undeclared (first use in this function) arch/um/sys-i386/ptrace.c:68: error: `EBP' undeclared (first use in this function) arch/um/sys-i386/ptrace.c:68: error: `ORIG_EAX' undeclared (first use in this function) arch/um/sys-i386/ptrace.c: In function `getreg': arch/um/sys-i386/ptrace.c:78: error: `FS' undeclared (first use in this function) arch/um/sys-i386/ptrace.c:79: error: `GS' undeclared (first use in this function) arch/um/sys-i386/ptrace.c:80: error: `DS' undeclared (first use in this function) arch/um/sys-i386/ptrace.c:81: error: `ES' undeclared (first use in this function) arch/um/sys-i386/ptrace.c:82: error: `SS' undeclared (first use in this function) arch/um/sys-i386/ptrace.c:83: error: `CS' undeclared (first use in this function) arch/um/sys-i386/ptrace.c:87: error: `EIP' undeclared (first use in this function) arch/um/sys-i386/ptrace.c:87: error: `UESP' undeclared (first use in this function) arch/um/sys-i386/ptrace.c:87: error: `EAX' undeclared (first use in this function) arch/um/sys-i386/ptrace.c:87: error: `EBX' undeclared (first use in this function) arch/um/sys-i386/ptrace.c:87: error: `ECX' undeclared (first use in this function) arch/um/sys-i386/ptrace.c:87: error: `EDX' undeclared (first use in this function) arch/um/sys-i386/ptrace.c:87: error: `ESI' undeclared (first use in this function) arch/um/sys-i386/ptrace.c:87: error: `EDI' undeclared (first use in this function) arch/um/sys-i386/ptrace.c:87: error: `EBP' undeclared (first use in this function) arch/um/sys-i386/ptrace.c:87: error: `ORIG_EAX' undeclared (first use in this function) arch/um/sys-i386/ptrace.c:87: error: `EFL' undeclared (first use in this function) make[1]: *** [arch/um/sys-i386/ptrace.o] Error 1 so i'm asking again the magic question: anybody has any good advice for me? thanks domenico -----[ Domenico Andreoli, aka cavok --[ http://filibusta.crema.unimi.it/~cavok/gpgkey.asc ---[ 3A0F 2F80 F79C 678A 8936 4FEE 0677 9033 A20E BC50 |