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

Bug 191113

Summary: linux-headers appears to be missing asm/user.h, which breaks user mode linux kernel build
Product: Gentoo Linux Reporter: Christopher Smith <x>
Component: [OLD] Core systemAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Christopher Smith 2007-09-03 02:19:18 UTC
The subject pretty much says it all. I've seen a few reports of this and it appears to only be happening to Gentoo users.

# make linux ARCH=um
  SYMLINK arch/um/include/kern_constants.h
  SYMLINK arch/um/include/sysdep
  CC      arch/um/sys-i386/user-offsets.s
arch/um/sys-i386/user-offsets.c:4:22: 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 `user_i387_struct' 
arch/um/sys-i386/user-offsets.c:52: error: invalid application of `sizeof' to incomplete type `user_fxsr_struct' 
arch/um/sys-i386/user-offsets.c:70: error: invalid application of `sizeof' to incomplete type `user_regs_struct' 
make[1]: *** [arch/um/sys-i386/user-offsets.s] Error 1
make: *** [arch/um/sys-i386/user-offsets.s] Error 2

# emerge --search linux-headers
Searching...   
[ Results for search key : linux-headers ]
[ Applications found : 1 ]
 
*  sys-kernel/linux-headers
      Latest version available: 2.6.21
      Latest version installed: 2.6.21
      Size of files: 4,286 kB
      Homepage:      http://www.kernel.org/ http://www.gentoo.org/
      Description:   Linux system headers
      License:       GPL-2


Reproducible: Always

Steps to Reproduce:
1. Install linux-headers.
2. Download kernel sources, apply skas patch v8.2
3. make menuconfig ARCH=um
4. make linux ARCH=um

Actual Results:  
See description.

Expected Results:  
This should build just fine of course.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-09-03 05:40:59 UTC

*** This bug has been marked as a duplicate of bug 182089 ***