Hi, I am trying to compile a module on UML. The kernel with which I am booting UML is my custom kernel built on i386 machine with the command line as "make defconfig ARCH=um; make linux ARCH=um". After the kernel boots up my uname shows something like below :- bash-3.2# uname -a Linux localhost.localdomain 2.6.30.4 #6 Wed Aug 5 15:12:08 IST 2009 i686 i686 i386 GNU/Linux Now when I compile a module, by default it resolves the ARCH to x86. And some of the compilation fails because somethings are expected to be always defined on x86 but not on UML (e.g. CONFIG_TRACE_IRQFLAGS_SUPPORT). because my asm directory resolves to asm-um rather than asm-x86. It throws error like below. In file included from include/linux/prefetch.h:14, from include/linux/list.h:6, from include/linux/wait.h:22, from include/linux/fs.h:359, from include/linux/buffer_head.h:11, from /home/mkatiyar/personal/ohsm/test/kernel/admin.c:23: /mnt/host/home/mkatiyar/personal/uml/linux-2.6.30.4/arch/x86/include/asm/processor.h: In function 'load_cr3': /mnt/host/home/mkatiyar/personal/uml/linux-2.6.30.4/arch/x86/include/asm/processor.h:191: error: 'CONFIG_PAGE_OFFSETUL' undeclared (first use in this function) /mnt/host/home/mkatiyar/personal/uml/linux-2.6.30.4/arch/x86/include/asm/processor.h:191: error: (Each undeclared identifier is reported only once /mnt/host/home/mkatiyar/personal/uml/linux-2.6.30.4/arch/x86/include/asm/processor.h:191: error: for each function it appears in.) /mnt/host/home/mkatiyar/personal/uml/linux-2.6.30.4/arch/x86/include/asm/processor.h: In function 'wbinvd_halt': /mnt/host/home/mkatiyar/personal/uml/linux-2.6.30.4/arch/x86/include/asm/processor.h:771: error: implicit declaration of function 'halt' My question is how do people build modules which are specific to a particular architecture on UML ? Is it possible ? Once I export ARCH=um before doing a make, I can do a successful build. -- Thanks - Manish -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ