build problems in layerscape target kernel

Hauke Mehrtens hauke at hauke-m.de
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/headers_install.sh 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

https://buildbot.openwrt.org/master/images/builders/layerscape%2Farmv7/builds/349

It is happening since:
https://git.openwrt.org/68d9cb82143b864d70e4fb3d7cbb7068f82216a1

----------------------

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

  LD      vmlinux
  SORTEX  vmlinux
  SYSMAP  System.map
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:
https://buildbot.openwrt.org/master/images/builders/layerscape%2Farmv8_64b/builds/422

I haven't looked closer into this problem.


Hauke

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://lists.openwrt.org/pipermail/openwrt-devel/attachments/20200705/c985cec5/attachment.sig>


More information about the openwrt-devel mailing list