Wipedout my hdisk..started fresh.

Here is the output with 'V=1'. Its not able to find .config?? I just did 'make defconfig ARCH=um' and did build of uml in /home/kdev/uml/linux-2.6.25. At

http://user-mode-linux.sourceforge.net/old/UserModeLinux-HOWTO-2.html#ss2.2

someone suggested to get CFLAGS as

make script 'SCRIPT=@echo $(CFLAGS)' ARCH=um

but that is giving error saying 'no such target script' for 2.6.25

kdev@hj-desktop:~/mods$ make V=1
make -C /home/kdev/uml/linux-2.6.25 M=/home/kdev/mods modules
make[1]: Entering directory `/home/kdev/uml/linux-2.6.25'
test -e include/linux/autoconf.h -a -e include/config/auto.conf || (        \
    echo;                                \
    echo "  ERROR: Kernel configuration is invalid.";        \
    echo "         include/linux/autoconf.h or include/config/auto.conf are missing.";    \
    echo "         Run 'make oldconfig && make prepare' on kernel src to fix it.";    \
    echo;                                \
    /bin/false)
mkdir -p /home/kdev/mods/.tmp_versions ; rm -f /home/kdev/mods/.tmp_versions/*
make -f scripts/Makefile.build obj=/home/kdev/mods
  gcc -Wp,-MD,/home/kdev/mods/.hello.o.d  -nostdinc -isystem /usr/lib/gcc/i486-linux-gnu/4.2.3/include -D__KERNEL__ -Iinclude  -include include/linux/autoconf.h -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Os  -fno-stack-protector -m32 -msoft-float -mregparm=3 -freg-struct-return -mpreferred-stack-boundary=2  -march=i686 -ffreestanding   -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -Iinclude/asm-x86/mach-default -fno-omit-frame-pointer -fno-optimize-sibling-calls -g -Wdeclaration-after-statement -Wno-pointer-sign    -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(hello)"  -D"KBUILD_MODNAME=KBUILD_STR(hello)" -c -o /home/kdev/mods/hello.o /home/kdev/mods/hello.c
In file included from include/linux/prefetch.h:14,
                 from include/linux/list.h:8,
                 from include/linux/module.h:9,
                 from /home/kdev/mods/hello.c:1:
include/asm/processor.h:16:30: error: sysdep/faultinfo.h: No such file or directory
In file included from include/linux/prefetch.h:14,
                 from include/linux/list.h:8,
                 from include/linux/module.h:9,
                 from /home/kdev/mods/hello.c:1:
include/asm/processor.h:28: error: field ¡faultinfo¢ has incomplete type
In file included from include/asm/arch/user_32.h:4,
                 from include/asm/arch/user.h:2,
                 from include/asm/processor.h:51,
                 from include/linux/prefetch.h:14,
                 from include/linux/list.h:8,
                 from include/linux/module.h:9,
                 from /home/kdev/mods/hello.c:1:
include/asm/page.h:101:17: error: mem.h: No such file or directory
In file included from include/asm/ptrace.h:12,
                 from include/asm/processor-generic.h:13,
                 from include/asm/processor.h:76,
                 from include/linux/prefetch.h:14,
                 from include/linux/list.h:8,
                 from include/linux/module.h:9,
                 from /home/kdev/mods/hello.c:1:
include/asm/ptrace-generic.h:13:27: error: sysdep/ptrace.h: No such file or directory
In file included from include/asm/ptrace.h:12,
                 from include/asm/processor-generic.h:13,
                 from include/asm/processor.h:76,
                 from include/linux/prefetch.h:14,
                 from include/linux/list.h:8,
                 from include/linux/module.h:9,
                 from /home/kdev/mods/hello.c:1:
include/asm/ptrace-generic.h:16: error: field ¡regs¢ has incomplete type
In file included from include/asm/processor.h:76,
                 from include/linux/prefetch.h:14,
                 from include/linux/list.h:8,
                 from include/linux/module.h:9,
                 from /home/kdev/mods/hello.c:1:
include/asm/processor-generic.h:14:23: error: registers.h: No such file or directory
include/asm/processor-generic.h:15:31: error: sysdep/archsetjmp.h: No such file or directory
In file included from include/asm/processor.h:76,
                 from include/linux/prefetch.h:14,
                 from include/linux/list.h:8,
                 from include/linux/module.h:9,
                 from /home/kdev/mods/hello.c:1:
include/asm/processor-generic.h:32: error: expected specifier-qualifier-list before ¡jmp_buf¢
In file included from include/asm/thread_info.h:13,
                 from include/linux/thread_info.h:35,
                 from include/linux/preempt.h:9,
                 from include/linux/spinlock.h:49,
                 from include/linux/seqlock.h:29,
                 from include/linux/time.h:8,
                 from include/linux/stat.h:60,
                 from include/linux/module.h:10,
                 from /home/kdev/mods/hello.c:1:
include/asm/uaccess.h:41:24: error: um_uaccess.h: No such file or directory
In file included from include/linux/elf.h:7,
                 from include/linux/module.h:14,
                 from /home/kdev/mods/hello.c:1:
include/asm/elf.h:9:18: error: skas.h: No such file or directory
make[2]: *** [/home/kdev/mods/hello.o] Error 1
make[1]: *** [_module_/home/kdev/mods] Error 2
make[1]: Leaving directory `/home/kdev/uml/linux-2.6.25'
make: *** [all] Error 2
kdev@hj-desktop:~/mods$






----- Original Message ----
From: Jeff Dike <jdike@addtoit.com>
To: K D <kdcalif@yahoo.com>
Cc: user-mode-linux-user@lists.sourceforge.net
Sent: Wednesday, May 14, 2008 8:08:23 AM
Subject: Re: [uml-user] do i have to recompile my module in UML

On Tue, May 13, 2008 at 10:49:36PM -0700, K D wrote:
> > [root@localhost rdp]# make -C /oldext/downloads/uml-krnl/linux-2.6.24 M=`pwd` modules

Can you add "V=1" to the make command?

In /oldext/downloads/uml-krnl/linux-2.6.24, you should have
arch/um/include/sysdep pointing to arch/um/include/sysdep-i386 with
faultinfo.h in it.  I'm suspicious that the -I switches are wrong
somehow.

                Jeff
--
Work email - jdike at linux dot intel dot com