UML build issue with v2.6.26-rc2-129-g9604006

Previous thread: taskstats and /proc/.../io asymmetry? by Mark Seger on Wednesday, May 14, 2008 - 3:59 am. (2 messages)

Next thread: [GIT]: Networking by David Miller on Wednesday, May 14, 2008 - 4:06 am. (1 message)
From: Toralf
Date: Wednesday, May 14, 2008 - 4:01 am

--Boundary-01=_HasKImM3k7J6h6k
Content-Type: text/plain;
  charset="iso-8859-15"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

Today I got:

=2E..
  CC      arch/um/os-Linux/skas/process.o
  LD      arch/um/os-Linux/skas/built-in.o
  CC      arch/um/os-Linux/sys-i386/registers.o
arch/um/os-Linux/sys-i386/registers.c:8:22: error: asm/user.h: No such file=
 or directory
arch/um/os-Linux/sys-i386/registers.c: In function 'arch_init_registers':
arch/um/os-Linux/sys-i386/registers.c:78: error: storage size of 'fpx_regs'=
 isn't known
arch/um/os-Linux/sys-i386/registers.c:78: warning: unused variable 'fpx_reg=
s'
make[2]: *** [arch/um/os-Linux/sys-i386/registers.o] Error 1
make[1]: *** [arch/um/os-Linux/sys-i386] Error 2
make: *** [arch/um/os-Linux] Error 2

=2D-=20
MfG/Sincerely

Toralf F=F6rster
pgp finger print: 7B1A 07F4 EC82 0F90 D4C2 8936 872A E508 7DB6 9DA3

--Boundary-01=_HasKImM3k7J6h6k
Content-Type: text/plain;
  charset="iso-8859-15";
  name=".config"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename=".config"

#
# Automatically generated make config: don't edit
# Linux kernel version: 2.6.26-rc2
# Wed May 14 12:59:38 2008
#
CONFIG_DEFCONFIG_LIST="arch/$ARCH/defconfig"
CONFIG_GENERIC_HARDIRQS=y
CONFIG_UML=y
CONFIG_MMU=y
CONFIG_NO_IOMEM=y
# CONFIG_TRACE_IRQFLAGS_SUPPORT is not set
CONFIG_LOCKDEP_SUPPORT=y
# CONFIG_STACKTRACE_SUPPORT is not set
CONFIG_GENERIC_CALIBRATE_DELAY=y
CONFIG_GENERIC_BUG=y
CONFIG_GENERIC_TIME=y
CONFIG_GENERIC_CLOCKEVENTS=y
CONFIG_IRQ_RELEASE_METHOD=y
CONFIG_HZ=100

#
# UML-specific options
#
# CONFIG_STATIC_LINK is not set

#
# Host processor type and features
#
# CONFIG_M386 is not set
# CONFIG_M486 is not set
# CONFIG_M586 is not set
# CONFIG_M586TSC is not set
# CONFIG_M586MMX is not set
# CONFIG_M686 is not set
# CONFIG_MPENTIUMII is not set
# CONFIG_MPENTIUMIII is not set
CONFIG_MPENTIUMM=y
# CONFIG_MPENTIUM4 is not set
# CONFIG_MK6 is not set
# ...
From: WANG Cong
Date: Wednesday, May 14, 2008 - 4:22 am

Hmm, it seems that I can't reproduce it with your .config.
And <asm/user.h> does exist.

Have you used 'ARCH=um' when you ran 'make'? If not, please try it.

Thanks!
--

From: Jeff Dike
Date: Wednesday, May 14, 2008 - 5:55 am

I bet he's using the headers exported by the current kernel, not what
his distro gives him.

			Jeff

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

From: Toralf
Date: Wednesday, May 14, 2008 - 6:03 am

Right, IIRC I ran into this some times ago under Gentoo Linux.

=2D-=20
MfG/Sincerely

Toralf F=F6rster
pgp finger print: 7B1A 07F4 EC82 0F90 D4C2 8936 872A E508 7DB6 9DA3
From: Jeff Dike
Date: Wednesday, May 14, 2008 - 7:52 am

Commit c1445db9f72db0537c43a2eab6e1b0f6741162f5 unexported asm/user.h
(and linux/user.h):

     Author: Kirill A. Shutemov <k.shutemov@gmail.com>
     Date:   Thu Feb 7 00:15:53 2008 -0800

         Unexport asm/user.h and linux/user.h
    
        Do not export asm/user.h and linux/user.h during make
        headers_install.

As far as I can see, this renders PTRACE_[SG]ETFPREGS and
PTRACE_[SG]ETFPXREGS unusable, as userspace has no way to figure out
what size buffer to pass in.

I think we either need to make user_i387_struct and user_fxsr_struct
available someplace else, or re-export user.h.

	  	    	     Jeff

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

Previous thread: taskstats and /proc/.../io asymmetry? by Mark Seger on Wednesday, May 14, 2008 - 3:59 am. (2 messages)

Next thread: [GIT]: Networking by David Miller on Wednesday, May 14, 2008 - 4:06 am. (1 message)