build problems in layerscape target kernel
Y.b. Lu
yangbo.lu at nxp.com
Wed Jul 8 00:28:13 EDT 2020
Hi Hauke,
I had sent out a patch to fix the build issue temporarily.
https://github.com/openwrt/openwrt/pull/3179
Once the proper fix-up patches are developed, verified and ready. I will send them instead.
Thanks.
Best regards,
Yangbo Lu
> -----Original Message-----
> From: Y.b. Lu
> Sent: Tuesday, July 7, 2020 4:13 PM
> To: Hauke Mehrtens <hauke at hauke-m.de>
> Cc: LEDE Development List <openwrt-devel at lists.openwrt.org>; Jiafei Pan
> <jiafei.pan at nxp.com>
> Subject: RE: build problems in layerscape target kernel
>
> Hi Hauke,
>
> This headers installing issue is because of the introducing of below linux
> upstream patch.
>
> 5967577 scripts: headers_install: Exit with error on config leak
>
> I have reported this issue to our FMD Software owner to fix these headers. He
> will work on the patches but he has other urgent work now.
> Can I send a reversed patch for layerscape for now?
>
> Regarding to the second issue, I haven't reproduced it actually at that commit.
> https://buildbot.openwrt.org/master/images/builders/layerscape%2Farmv8_6
> 4b/builds/422
>
> May I confirm whether below config was used for build test?
> printf
> 'CONFIG_TARGET_layerscape=y\nCONFIG_TARGET_layerscape_armv8_64b=y\
> nCONFIG_SIGNED_PACKAGES=y\n' >> .config
>
> Thanks a lot.
>
> Best regards,
> Yangbo Lu
>
> > -----Original Message-----
> > From: Y.b. Lu
> > Sent: Monday, July 6, 2020 4:46 PM
> > To: 'Hauke Mehrtens' <hauke at hauke-m.de>
> > Cc: LEDE Development List <openwrt-devel at lists.openwrt.org>
> > Subject: RE: build problems in layerscape target kernel
> >
> > Thanks Huake.
> > Let me try to fix this issue.
> >
> > Best regards,
> > Yangbo Lu
> >
> > > -----Original Message-----
> > > From: Hauke Mehrtens <hauke at hauke-m.de>
> > > Sent: Sunday, July 5, 2020 6:34 PM
> > > To: Y.b. Lu <yangbo.lu at nxp.com>
> > > Cc: LEDE Development List <openwrt-devel at lists.openwrt.org>
> > > Subject: build problems in layerscape target kernel
> > >
> > > 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/b
> > > uilds/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_6
> > > 4b/builds/422
> > >
> > > I haven't looked closer into this problem.
> > >
> > >
> > > Hauke
More information about the openwrt-devel
mailing list