Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 182089

Summary: UML doesn't build with recent linux-headers
Product: Gentoo Linux Reporter: Arun Raghavan (RETIRED) <ford_prefect>
Component: [OLD] Core systemAssignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers <kernel>
Status: RESOLVED DUPLICATE    
Severity: normal CC: toralf, x
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 159304    

Description Arun Raghavan (RETIRED) gentoo-dev 2007-06-15 05:31:50 UTC
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
Comment 1 Daniel Gryniewicz (RETIRED) gentoo-dev 2007-06-15 20:23:55 UTC
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 ***
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2007-08-22 07:38:15 UTC
*** Bug 189616 has been marked as a duplicate of this bug. ***
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2007-09-03 05:40:59 UTC
*** Bug 191113 has been marked as a duplicate of this bug. ***