Subject: Re: arm: shmobile_defconfig: ld.lld: error: undefined symbol: lynx_pcs_destroy

From: "Russell King (Oracle)" <[email-masked]>
Date: Wed, 7 Jun 2023 14:41:02 +0100

On Wed, Jun 07, 2023 at 06:57:17PM +0530, Aithal, Srikanth wrote:
> On 6/6/2023 2:31 PM, Geert Uytterhoeven wrote:
> > Hi Naresh,
> > 
> > On Tue, Jun 6, 2023 at 10:53 AM Naresh Kamboju
> > <[email-masked]> wrote:
> > > On Tue, 6 Jun 2023 at 14:17, Naresh Kamboju <[email-masked]> wrote:
> > > > Following build regressions found while building arm shmobile_defconfig on
> > > > Linux next-20230606.
> > > > 
> > > > Regressions found on arm:
> > > > 
> > > >   - build/clang-16-shmobile_defconfig
> > > >   - build/gcc-8-shmobile_defconfig
> > > >   - build/gcc-12-shmobile_defconfig
> > > >   - build/clang-nightly-shmobile_defconfig
> > > 
> > > And mips defconfig builds failed.
> > > Regressions found on mips:
> > > 
> > >    - build/clang-16-defconfig
> > >    - build/gcc-12-defconfig
> > >    - build/gcc-8-defconfig
> > >    - build/clang-nightly-defconfig
> > 
> > Please give my fix a try:
> > https://lore.kernel.org/linux-renesas-soc/7b36a[email-masked]
> On x86 as well seeing couple of issues related to same, not on defconfig
> though..
> 
> ERROR: modpost: "lynx_pcs_destroy"
> [drivers/net/ethernet/stmicro/stmmac/stmmac.ko] undefined!
> ERROR: modpost: "lynx_pcs_destroy"
> [drivers/net/ethernet/altera/altera_tse.ko] undefined!
> make[1]: *** [scripts/Makefile.modpost:136: Module.symvers] Error 1
> make: *** [Makefile:1984: modpost] Error 2
> 
> Among above issues stmmac issue would be resolved with above mentioned fix.

Patches are in progress to resolve this issue (on netdev), please be
patient.

Even better would be to check netdev for the patches, review them, and
give them a test, and provide feedback, which will help get them
merged.

Latest version can be found here:

https://lore.kernel.org/netdev/[email-masked]/T/#t

Thanks.

-- 
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!