[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAAJw_Zun1Ax1jf4C8wyfvHQHCo5gE869bjD3Ck1cRWuDkPr7bw@mail.gmail.com>
Date: Sun, 16 Dec 2012 10:06:16 +0800
From: Jeff Chua <jeff.chua.linux@...il.com>
To: Al Viro <viro@...iv.linux.org.uk>
Cc: lkml <linux-kernel@...r.kernel.org>
Subject: Re: /usr/include/linux/errno.h:1:23: fatal error: asm/errno.h: No
such file or directory
On Sun, Dec 16, 2012 at 9:53 AM, Al Viro <viro@...iv.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@...iv.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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists