[Letux-kernel] v5.9-rc1 compile issue

H. Nikolaus Schaller hns at goldelico.com
Tue Aug 18 11:04:25 CEST 2020


Hi David,

> Am 18.08.2020 um 10:46 schrieb H. Nikolaus Schaller <hns at goldelico.com>:
> 
> Hi David,
> 
> With v5.9-rc1 it works. So I have some conflicting patch in Letux. Maybe one of
> the compile-fixes needed for earlier kernels?

By adding just the Letux compile fixes to v5.9-rc1 I got the error back.

Well, what I have done in the compile fixes is to comment out #include <asm/rwonce.h> because otherwise I get for a clean build:

  SYSHDR  arch/arm/include/generated/uapi/asm/unistd-common.h - due to unistd-common.h not in $(targets)
  SYSHDR  arch/arm/include/generated/uapi/asm/unistd-oabi.h - due to unistd-oabi.h not in $(targets)
  SYSHDR  arch/arm/include/generated/uapi/asm/unistd-eabi.h - due to unistd-eabi.h not in $(targets)
  HOSTCC  scripts/selinux/genheaders/genheaders - due to: scripts/selinux/genheaders/genheaders.c
In file included from ./security/selinux/include/classmap.h:3:0,
                 from scripts/selinux/genheaders/genheaders.c:19:
include/linux/compiler.h:232:24: fatal error: asm/rwonce.h: No such file or directory
 #include <asm/rwonce.h>
                        ^
compilation terminated.

The file ./arch/arm/include/generated/asm/rwonce.h doesn't exist after a clean...

It appears as if genheaders depends on asm/rwonce.h but does not know how to build it.

Ah, I think it may be my compiler hack to work around an issue with HOSTCC conflicts for sys/socket.h
in scripts/selinux/genheaders/genheaders.c

BR,
Nikolaus



More information about the Letux-kernel mailing list