>--- On Fri, 10/31/08, Emanoil Kotsev <[EMAIL PROTECTED]> wrote: >From: Emanoil Kotsev <[EMAIL PROTECTED]> >Subject: Re: can't build um architecture linux image on lenny >To: debian-user@lists.debian.org >Date: Friday, October 31, 2008, 4:50 PM > >Jeff D wrote: > >> On Thu, 30 Oct 2008, Brad Brock wrote: >> >>> I've been using user-mode-linux (UML) since 3 years ago. I enjoyed its >>> costumizable guest kernel until last week when I realize that building >>> custom guest kernel on previous kernels version (I've tried 2.6.18 and >>> 1.6.22) is no longer available due errors while compiling the kernel. The >>> errors occured when I was building these kernels on lenny environment but >>> there is no error when I used etch. Does anyone can explain to me >>> why...?? >>> >>> thanks in advance >> >> Are you building it from source from kernel.org or trying to build it from >> debian supplied source? Any reason to not use the debian supplied uml >> kernel from user-mode-linux ? What error messages are you getting when >> you try to compile the kernel? >> >> jeff > >there is a problem with the default gcc compiler in lenny (version 4.3) >compiling some (older) kernels. >Try using other compiler version > >regards
I compiled from source supplied by debian. I use older kernel than user-mode-linux package because I'm using some modules that haven't support new kernel yet. I used gcc version 4.1. I always use this one since etch because my bad experiences using higher versions. These are my errors : make[1]: Entering directory `/usr/src/linux-source-2.6.18' SYMLINK arch/um/include/kern_constants.h SYMLINK include/asm-um/arch SYMLINK arch/um/include/sysdep SYMLINK arch/um/os SYMLINK include/asm-um/archparam.h SYMLINK include/asm-um/system.h SYMLINK include/asm-um/sigcontext.h SYMLINK include/asm-um/processor.h SYMLINK include/asm-um/ptrace.h SYMLINK include/asm-um/module.h SYMLINK include/asm-um/vm-flags.h SYMLINK include/asm-um/elf.h SYMLINK include/asm-um/host_ldt.h CHK arch/um/include/uml-config.h UPD arch/um/include/uml-config.h CC arch/um/sys-i386/user-offsets.s arch/um/sys-i386/user-offsets.c:4:22: error: asm/user.h: No such file or directory arch/um/sys-i386/user-offsets.c: In function 'foo': arch/um/sys-i386/user-offsets.c:19: warning: implicit declaration of function 'offsetof' arch/um/sys-i386/user-offsets.c:19: error: expected expression before 'struct' arch/um/sys-i386/user-offsets.c:20: error: expected expression before 'struct' arch/um/sys-i386/user-offsets.c:21: error: expected expression before 'struct' arch/um/sys-i386/user-offsets.c:22: error: expected expression before 'struct' arch/um/sys-i386/user-offsets.c:23: error: expected expression before 'struct' arch/um/sys-i386/user-offsets.c:24: error: expected expression before 'struct' arch/um/sys-i386/user-offsets.c:25: error: expected expression before 'struct' arch/um/sys-i386/user-offsets.c:26: error: expected expression before 'struct' arch/um/sys-i386/user-offsets.c:27: error: expected expression before 'struct' arch/um/sys-i386/user-offsets.c:28: error: expected expression before 'struct' arch/um/sys-i386/user-offsets.c:29: error: expected expression before 'struct' arch/um/sys-i386/user-offsets.c:30: error: expected expression before 'struct' arch/um/sys-i386/user-offsets.c:31: error: expected expression before 'struct' arch/um/sys-i386/user-offsets.c:32: error: expected expression before 'struct' arch/um/sys-i386/user-offsets.c:33: error: expected expression before 'struct' arch/um/sys-i386/user-offsets.c:34: error: expected expression before 'struct' arch/um/sys-i386/user-offsets.c:35: error: expected expression before 'struct' arch/um/sys-i386/user-offsets.c:36: error: expected expression before 'struct' arch/um/sys-i386/user-offsets.c:37: error: expected expression before 'struct' arch/um/sys-i386/user-offsets.c:38: error: expected expression before 'struct' arch/um/sys-i386/user-offsets.c:39: error: expected expression before 'struct' arch/um/sys-i386/user-offsets.c:40: error: expected expression before 'struct' arch/um/sys-i386/user-offsets.c:41: error: expected expression before 'struct' arch/um/sys-i386/user-offsets.c:42: error: expected expression before 'struct' arch/um/sys-i386/user-offsets.c:43: error: expected expression before 'struct' arch/um/sys-i386/user-offsets.c:44: error: expected expression before 'struct' arch/um/sys-i386/user-offsets.c:45: error: expected expression before 'struct' arch/um/sys-i386/user-offsets.c:46: error: expected expression before 'struct' arch/um/sys-i386/user-offsets.c:47: error: expected expression before 'struct' arch/um/sys-i386/user-offsets.c:48: error: expected expression before 'struct' arch/um/sys-i386/user-offsets.c:51: error: invalid application of 'sizeof' to incomplete type 'struct user_i387_struct' arch/um/sys-i386/user-offsets.c:52: error: invalid application of 'sizeof' to incomplete type 'struct user_fxsr_struct' arch/um/sys-i386/user-offsets.c:70: error: invalid application of 'sizeof' to incomplete type 'struct user_regs_struct' make[2]: *** [arch/um/sys-i386/user-offsets.s] Error 1 make[1]: *** [arch/um/sys-i386/user-offsets.s] Error 2 make[1]: Leaving directory `/usr/src/linux-source-2.6.18' make: *** [debian/stamp-build-kernel] Error 2 I just can't understand why these errors occured on lenny but not on etch and why these happened just about 2 or 3 weeks ago..?? Since, I've never had such problem before. Is there any updated package that cause these errors? Thanks in advance -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]