public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* /usr/include/linux/errno.h:1:23: fatal error: asm/errno.h: No such file or directory
@ 2012-12-16  1:23 Jeff Chua
  2012-12-16  1:28 ` Al Viro
  0 siblings, 1 reply; 6+ messages in thread
From: Jeff Chua @ 2012-12-16  1:23 UTC (permalink / raw)
  To: lkml

How should the symbolic links be setup to compile the latest kernel?


Currently I had these links and kernels compiled fine until 2 days ago.

         asm -> /usr/src/linux/include/uapi/asm-generic/
         asm-generic -> /usr/src/linux/include/uapi/asm-generic
         linux -> /usr/src/linux/include/uapi/linux


# make
make[1]: Nothing to be done for `all'.
  HOSTCC  arch/x86/tools/relocs
In file included from /usr/include/bits/errno.h:24:0,
                 from /usr/include/errno.h:35,
                 from arch/x86/tools/relocs.c:6:
/usr/include/linux/errno.h:1:23: fatal error: asm/errno.h: No such
file or directory
compilation terminated.
make[1]: *** [arch/x86/tools/relocs] Error 1
make: *** [archscripts] Error 2


Thanks,
Jeff

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

* Re: /usr/include/linux/errno.h:1:23: fatal error: asm/errno.h: No such file or directory
  2012-12-16  1:23 /usr/include/linux/errno.h:1:23: fatal error: asm/errno.h: No such file or directory Jeff Chua
@ 2012-12-16  1:28 ` Al Viro
  2012-12-16  1:39   ` Jeff Chua
  0 siblings, 1 reply; 6+ messages in thread
From: Al Viro @ 2012-12-16  1:28 UTC (permalink / raw)
  To: Jeff Chua; +Cc: lkml

On Sun, Dec 16, 2012 at 09:23:38AM +0800, Jeff Chua wrote:
> How should the symbolic links be setup to compile the latest kernel?
> 
> 
> Currently I had these links and kernels compiled fine until 2 days ago.
> 
>          asm -> /usr/src/linux/include/uapi/asm-generic/
>          asm-generic -> /usr/src/linux/include/uapi/asm-generic
>          linux -> /usr/src/linux/include/uapi/linux

What symlinks?  /usr/include/* should not contain any symlinks into
the kernel source.  At all.

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

* Re: /usr/include/linux/errno.h:1:23: fatal error: asm/errno.h: No such file or directory
  2012-12-16  1:28 ` Al Viro
@ 2012-12-16  1:39   ` Jeff Chua
  2012-12-16  1:40     ` Jeff Chua
  2012-12-16  1:53     ` Al Viro
  0 siblings, 2 replies; 6+ messages in thread
From: Jeff Chua @ 2012-12-16  1:39 UTC (permalink / raw)
  To: Al Viro; +Cc: lkml

On Sun, Dec 16, 2012 at 9:28 AM, Al Viro <viro@zeniv.linux.org.uk> wrote:
> On Sun, Dec 16, 2012 at 09:23:38AM +0800, Jeff Chua wrote:
>> How should the symbolic links be setup to compile the latest kernel?
>>
>>
>> Currently I had these links and kernels compiled fine until 2 days ago.
>>
>>          asm -> /usr/src/linux/include/uapi/asm-generic/
>>          asm-generic -> /usr/src/linux/include/uapi/asm-generic
>>          linux -> /usr/src/linux/include/uapi/linux
>
> What symlinks?  /usr/include/* should not contain any symlinks into
> the kernel source.  At all.

Al,

Oh, perhaps I'm having the right setup. Where should I get the kernel
headers. After removing the links to the kernel source, here what I
got ...

make[1]: Nothing to be done for `all'.
  HOSTCC  scripts/basic/fixdep
In file included from /usr/include/bits/posix1_lim.h:160:0,
                 from /usr/include/limits.h:144,
                 from scripts/basic/fixdep.c:114:
/usr/include/bits/local_lim.h:38:26: fatal error: linux/limits.h: No
such file or directory
compilation terminated.

Thanks,
Jeff.

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

* Re: /usr/include/linux/errno.h:1:23: fatal error: asm/errno.h: No such file or directory
  2012-12-16  1:39   ` Jeff Chua
@ 2012-12-16  1:40     ` Jeff Chua
  2012-12-16  1:53     ` Al Viro
  1 sibling, 0 replies; 6+ messages in thread
From: Jeff Chua @ 2012-12-16  1:40 UTC (permalink / raw)
  To: Al Viro; +Cc: lkml

On Sun, Dec 16, 2012 at 9:39 AM, Jeff Chua <jeff.chua.linux@gmail.com> wrote:
> On Sun, Dec 16, 2012 at 9:28 AM, Al Viro <viro@zeniv.linux.org.uk> wrote:
>> On Sun, Dec 16, 2012 at 09:23:38AM +0800, Jeff Chua wrote:
>>> How should the symbolic links be setup to compile the latest kernel?
>>>
>>>
>>> Currently I had these links and kernels compiled fine until 2 days ago.
>>>
>>>          asm -> /usr/src/linux/include/uapi/asm-generic/
>>>          asm-generic -> /usr/src/linux/include/uapi/asm-generic
>>>          linux -> /usr/src/linux/include/uapi/linux
>>
>> What symlinks?  /usr/include/* should not contain any symlinks into
>> the kernel source.  At all.
>
> Al,
>
> Oh, perhaps I'm having the right setup. Where should I get the kernel
> headers. After removing the links to the kernel source, here what I
> got ...
>
> make[1]: Nothing to be done for `all'.
>   HOSTCC  scripts/basic/fixdep
> In file included from /usr/include/bits/posix1_lim.h:160:0,
>                  from /usr/include/limits.h:144,
>                  from scripts/basic/fixdep.c:114:
> /usr/include/bits/local_lim.h:38:26: fatal error: linux/limits.h: No
> such file or directory
> compilation terminated.

> Oh, perhaps I'm having the right setup. Where should I get the kernel

NOT having the right setup.


Jeff.

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

* Re: /usr/include/linux/errno.h:1:23: fatal error: asm/errno.h: No such file or directory
  2012-12-16  1:39   ` Jeff Chua
  2012-12-16  1:40     ` Jeff Chua
@ 2012-12-16  1:53     ` Al Viro
  2012-12-16  2:06       ` Jeff Chua
  1 sibling, 1 reply; 6+ messages in thread
From: Al Viro @ 2012-12-16  1:53 UTC (permalink / raw)
  To: Jeff Chua; +Cc: lkml

On Sun, Dec 16, 2012 at 09:39:01AM +0800, Jeff Chua wrote:
> On Sun, Dec 16, 2012 at 9:28 AM, Al Viro <viro@zeniv.linux.org.uk> wrote:
> > On Sun, Dec 16, 2012 at 09:23:38AM +0800, Jeff Chua wrote:
> >> How should the symbolic links be setup to compile the latest kernel?
> >>
> >>
> >> Currently I had these links and kernels compiled fine until 2 days ago.
> >>
> >>          asm -> /usr/src/linux/include/uapi/asm-generic/
> >>          asm-generic -> /usr/src/linux/include/uapi/asm-generic
> >>          linux -> /usr/src/linux/include/uapi/linux
> >
> > What symlinks?  /usr/include/* should not contain any symlinks into
> > the kernel source.  At all.
> 
> Al,
> 
> Oh, perhaps I'm having the right setup. Where should I get the kernel
> headers.

>From your libc.  Which ought to have its own copies, normally coming from
make headers_install in kernel source.  And yes, it had been that way
for many years by now.  Userland should *not* blindly grab the kernel
headers.

Incidentally, your 'asm' is obviously bogus - the headers that should end
up there ought to come from arch/<whatever>/include/uapi/asm (and _not_
by pointing a symlink to it); yours points to the place where asm-generic
ones ought to have been copied from.

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

* Re: /usr/include/linux/errno.h:1:23: fatal error: asm/errno.h: No such file or directory
  2012-12-16  1:53     ` Al Viro
@ 2012-12-16  2:06       ` Jeff Chua
  0 siblings, 0 replies; 6+ messages in thread
From: Jeff Chua @ 2012-12-16  2:06 UTC (permalink / raw)
  To: Al Viro; +Cc: lkml

On Sun, Dec 16, 2012 at 9:53 AM, Al Viro <viro@zeniv.linux.org.uk> wrote:
> On Sun, Dec 16, 2012 at 09:39:01AM +0800, Jeff Chua wrote:
>> On Sun, Dec 16, 2012 at 9:28 AM, Al Viro <viro@zeniv.linux.org.uk> wrote:
>> > On Sun, Dec 16, 2012 at 09:23:38AM +0800, Jeff Chua wrote:
>> >> How should the symbolic links be setup to compile the latest kernel?
>> >>
>> >>
>> >> Currently I had these links and kernels compiled fine until 2 days ago.
>> >>
>> >>          asm -> /usr/src/linux/include/uapi/asm-generic/
>> >>          asm-generic -> /usr/src/linux/include/uapi/asm-generic
>> >>          linux -> /usr/src/linux/include/uapi/linux
>> >
>> > What symlinks?  /usr/include/* should not contain any symlinks into
>> > the kernel source.  At all.
>>
>> Al,
>>
>> Oh, perhaps I'm having the right setup. Where should I get the kernel
>> headers.
>
> From your libc.  Which ought to have its own copies, normally coming from
> make headers_install in kernel source.  And yes, it had been that way
> for many years by now.  Userland should *not* blindly grab the kernel
> headers.
>
> Incidentally, your 'asm' is obviously bogus - the headers that should end
> up there ought to come from arch/<whatever>/include/uapi/asm (and _not_
> by pointing a symlink to it); yours points to the place where asm-generic
> ones ought to have been copied from.

Al,

Thanks for the pointers. Will try as what you suggested:)

Merry Christmas.

Jeff

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

end of thread, other threads:[~2012-12-16  2:06 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-16  1:23 /usr/include/linux/errno.h:1:23: fatal error: asm/errno.h: No such file or directory Jeff Chua
2012-12-16  1:28 ` Al Viro
2012-12-16  1:39   ` Jeff Chua
2012-12-16  1:40     ` Jeff Chua
2012-12-16  1:53     ` Al Viro
2012-12-16  2:06       ` Jeff Chua

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