build problems in layerscape target kernel

Hauke Mehrtens hauke at
Sun Jul 5 06:33:52 EDT 2020

Hi Yangbo Lu,

I see some build problem with the layerscape target in the OpenWrt build
bots recently.

Since the update to kernel 5.4.50 the scripts/ script
complains that include/linux/fmd/Peripherals/fm_port_ioctls.h includes
CONFIG_COMPAT. This is a problem when some user space application
includes this file, because user space applications do not know of the
kernel configuration and normally none of these CONFIG_ symbols is set.

This happens when changing the Linux kernel from version 45.4.48 to
5.4.49, but I do not know why this change is triggering this error and
why it did not happen before.

This is the error message:
  HDRINST usr/include/linux/fmd/integrations/integration_ioctls.h
  HDRINST usr/include/linux/fmd/Peripherals/fm_port_ioctls.h
error: include/uapi/linux/fmd/Peripherals/fm_port_ioctls.h: leak
CONFIG_COMPAT to user-space
scripts/Makefile.headersinst:63: recipe for target
'usr/include/linux/fmd/Peripherals/fm_port_ioctls.h' failed
make[5]: *** [usr/include/linux/fmd/Peripherals/fm_port_ioctls.h] Error 1
Makefile:1198: recipe for target 'headers' failed
make[4]: *** [headers] Error 2

It is happening since:


Before we saw this problem the layerscape target in the linking of the
kernel image. It shows this error message.

  LD      vmlinux
  SORTEX  vmlinux
Inconsistent kallsyms data
Try make KALLSYMS_EXTRA_PASS=1 as a workaround
Makefile:1081: recipe for target 'vmlinux' failed
make[4]: *** [vmlinux] Error 1

This is happening since this build bot run, the changes since the
previous build are listed in the log:

I haven't looked closer into this problem.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <>

More information about the openwrt-devel mailing list