[lfs-support] Error compiling the kernel as a normal user.

Manuel Gonzalez Montoya manuel.gonzalez.montoya at gmail.com
Mon Oct 24 11:44:11 PDT 2016


On Mon, Oct 24, 2016 at 12:58 PM, Bruce Dubbs <bruce.dubbs at gmail.com> wrote:
> I assume you are using the latest gcc:
>
> $ gcc --version
> gcc (GCC) 6.2.0

Yes,  gcc 6.2.0 from last LFS-7.10

>
> Also, did you do 'rm -rf linux-4.8.4' before you extracted the source? The
> make mrproper *should* fix that it you didn't, but if there are remnants
> owned by root, then it could cause a problem.

Yes, im sure of that. Everything is done in a fresh temp dir, like this:

$ mkdir linux-tmp
$ cd linux-tmp
$ wget ...
...

>
> Also, arch/x86/include/generated/uapi/asm/unistd_64.h line 313 for me is:
>
> #define __NR_getcpu 309
>
> Since that appears to be a generated file, it looks like it wasn't generated
> properly.

For me the last 2 lines (312 & 313 ) from
arch/x86/include/generated/uapi/asm/unistd_64.h looks like this
when openned in vim

312 #define __NR_setns 308
313 #def^@^@^@^@^@^@^@^@

the amount of "^@" is repeated  a few dozen times.

using hexdump -C over the file, reveals those are null caracters (hex 00)

00001ff0  52 5f 73 65 74 6e 73 20  33 30 38 0a 23 64 65 66  |R_setns 308.#def|
00002000  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
00002250


More information about the lfs-support mailing list