With linux-headers-2.6.20 or greater, and vanilla-sources-2.6.22-rc4, here's what I get when I do a "make linux ARCH=um". When I use linux-headers-2.6.19,2-r2, this problem goes away and UML builds and runs just fine. CC arch/um/sys-i386/user-offsets.s arch/um/sys-i386/user-offsets.c:7: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: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[1]: *** [arch/um/sys-i386/user-offsets.s] Error 1 make: *** [arch/um/sys-i386/user-offsets.s] Error 2
This is a known issue with UML. It's fixed in usermode-sources-2.6.18-r2, but the fix has not yet gone upstream. One of the patches was submitted for 2.6.22 *** This bug has been marked as a duplicate of bug 170544 ***
*** Bug 189616 has been marked as a duplicate of this bug. ***
*** Bug 191113 has been marked as a duplicate of this bug. ***