Linux MIPS Architecture development
 help / color / mirror / Atom feed
* klibc kernelheaders build failure on mips/mipsel
@ 2007-07-29  9:52 maximilian attems
  2007-07-29 13:43 ` [klibc] " H. Peter Anvin
  0 siblings, 1 reply; 6+ messages in thread
From: maximilian attems @ 2007-07-29  9:52 UTC (permalink / raw)
  To: ralf; +Cc: linux-mips, klibc, tbm

 switching to newer linux-libc-dev linux-2.6 provided kernel
 headers worked fine beside on mips mipsel:

  In file included from usr/klibc/arch/mips/crt0.S:11:
  usr/include/arch/mips/machine/asm.h:8:24: error: asm/regdef.h: No such
  file or directory
  usr/include/arch/mips/machine/asm.h:9:21: error: asm/asm.h: No such file
  or directory

  i'm not sure if you want to export both headers in the make
  kernelheaders target or if it is the fault of klibc to assume
  that those are available?

-- 
maks

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [klibc] klibc kernelheaders build failure on mips/mipsel
  2007-07-29  9:52 klibc kernelheaders build failure on mips/mipsel maximilian attems
@ 2007-07-29 13:43 ` H. Peter Anvin
  2007-07-29 14:44   ` Christoph Hellwig
  2007-07-30 12:05   ` Ralf Baechle
  0 siblings, 2 replies; 6+ messages in thread
From: H. Peter Anvin @ 2007-07-29 13:43 UTC (permalink / raw)
  To: maximilian attems; +Cc: ralf, linux-mips, klibc

maximilian attems wrote:
>  switching to newer linux-libc-dev linux-2.6 provided kernel
>  headers worked fine beside on mips mipsel:
> 
>   In file included from usr/klibc/arch/mips/crt0.S:11:
>   usr/include/arch/mips/machine/asm.h:8:24: error: asm/regdef.h: No such
>   file or directory
>   usr/include/arch/mips/machine/asm.h:9:21: error: asm/asm.h: No such file
>   or directory
> 
>   i'm not sure if you want to export both headers in the make
>   kernelheaders target or if it is the fault of klibc to assume
>   that those are available?
> 

If I remember correctly (sorry, I'm on the road at the moment), those 
files should be exportable.  They wouldn't be all that hard to replicate 
in klibc, though.

	-hpa

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [klibc] klibc kernelheaders build failure on mips/mipsel
  2007-07-29 13:43 ` [klibc] " H. Peter Anvin
@ 2007-07-29 14:44   ` Christoph Hellwig
  2007-07-30 12:05   ` Ralf Baechle
  1 sibling, 0 replies; 6+ messages in thread
From: Christoph Hellwig @ 2007-07-29 14:44 UTC (permalink / raw)
  To: H. Peter Anvin; +Cc: maximilian attems, ralf, linux-mips, klibc

On Sun, Jul 29, 2007 at 06:43:23AM -0700, H. Peter Anvin wrote:
> >  i'm not sure if you want to export both headers in the make
> >  kernelheaders target or if it is the fault of klibc to assume
> >  that those are available?
> >
> 
> If I remember correctly (sorry, I'm on the road at the moment), those 
> files should be exportable.  They wouldn't be all that hard to replicate 
> in klibc, though.

Both headers contain cpp macros for assembly code to work with the
mariads of mips ABIs.  I don't think the kernel should export those
headers.  And yes, they're both quite trivial.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [klibc] klibc kernelheaders build failure on mips/mipsel
  2007-07-29 13:43 ` [klibc] " H. Peter Anvin
  2007-07-29 14:44   ` Christoph Hellwig
@ 2007-07-30 12:05   ` Ralf Baechle
  2007-07-30 12:12     ` Ralf Baechle
  1 sibling, 1 reply; 6+ messages in thread
From: Ralf Baechle @ 2007-07-30 12:05 UTC (permalink / raw)
  To: H. Peter Anvin; +Cc: maximilian attems, linux-mips, klibc

On Sun, Jul 29, 2007 at 06:43:23AM -0700, H. Peter Anvin wrote:

> >  In file included from usr/klibc/arch/mips/crt0.S:11:
> >  usr/include/arch/mips/machine/asm.h:8:24: error: asm/regdef.h: No such
> >  file or directory
> >  usr/include/arch/mips/machine/asm.h:9:21: error: asm/asm.h: No such file
> >  or directory
> >
> >  i'm not sure if you want to export both headers in the make
> >  kernelheaders target or if it is the fault of klibc to assume
> >  that those are available?
> >
> 
> If I remember correctly (sorry, I'm on the road at the moment), those 
> files should be exportable.  They wouldn't be all that hard to replicate 
> in klibc, though.

<asm/asm.h> would need to add __KERNEL__ wrappers around the CONFIG_* bits.
In addition you probably want to have <asm/fpregdef.h> exported.  With a
few changes you should be able to get away without using <asm/sgidefs.h>.

  Ralf

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [klibc] klibc kernelheaders build failure on mips/mipsel
  2007-07-30 12:05   ` Ralf Baechle
@ 2007-07-30 12:12     ` Ralf Baechle
  2007-07-30 12:41       ` H. Peter Anvin
  0 siblings, 1 reply; 6+ messages in thread
From: Ralf Baechle @ 2007-07-30 12:12 UTC (permalink / raw)
  To: H. Peter Anvin; +Cc: maximilian attems, linux-mips, klibc

On Mon, Jul 30, 2007 at 01:05:57PM +0100, Ralf Baechle wrote:

> > >  In file included from usr/klibc/arch/mips/crt0.S:11:
> > >  usr/include/arch/mips/machine/asm.h:8:24: error: asm/regdef.h: No such
> > >  file or directory
> > >  usr/include/arch/mips/machine/asm.h:9:21: error: asm/asm.h: No such file
> > >  or directory
> > >
> > >  i'm not sure if you want to export both headers in the make
> > >  kernelheaders target or if it is the fault of klibc to assume
> > >  that those are available?
> > >
> > 
> > If I remember correctly (sorry, I'm on the road at the moment), those 
> > files should be exportable.  They wouldn't be all that hard to replicate 
> > in klibc, though.
> 
> <asm/asm.h> would need to add __KERNEL__ wrappers around the CONFIG_* bits.
> In addition you probably want to have <asm/fpregdef.h> exported.  With a
> few changes you should be able to get away without using <asm/sgidefs.h>.

Oh, the canonical place for these headers outside the kernel is either
<{regdef,fpregdef,asm}.h> and <sys/{regdef,fpregdef,asm}.h>, not <asm/...>.

  Ralf

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [klibc] klibc kernelheaders build failure on mips/mipsel
  2007-07-30 12:12     ` Ralf Baechle
@ 2007-07-30 12:41       ` H. Peter Anvin
  0 siblings, 0 replies; 6+ messages in thread
From: H. Peter Anvin @ 2007-07-30 12:41 UTC (permalink / raw)
  To: Ralf Baechle; +Cc: maximilian attems, linux-mips, klibc

Ralf Baechle wrote:
> 
> Oh, the canonical place for these headers outside the kernel is either
> <{regdef,fpregdef,asm}.h> and <sys/{regdef,fpregdef,asm}.h>, not <asm/...>.
> 

Well, yes, but klibc implements a lot of headers by #including 
appropriate kernel bits.

	-hpa

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2007-07-30 12:41 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-29  9:52 klibc kernelheaders build failure on mips/mipsel maximilian attems
2007-07-29 13:43 ` [klibc] " H. Peter Anvin
2007-07-29 14:44   ` Christoph Hellwig
2007-07-30 12:05   ` Ralf Baechle
2007-07-30 12:12     ` Ralf Baechle
2007-07-30 12:41       ` H. Peter Anvin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox