2023-06-06 09:32:06

by Naresh Kamboju

[permalink] [raw]
Subject: Re: arm: shmobile_defconfig: ld.lld: error: undefined symbol: lynx_pcs_destroy

+ netdev



On Tue, 6 Jun 2023 at 14:17, Naresh Kamboju <[email protected]> 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



>
> ld.lld: error: undefined symbol: lynx_pcs_destroy
> >>> referenced by stmmac_mdio.c
> >>> drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.o:(stmmac_mdio_unregister) in archive vmlinux.a
> make[2]: *** [scripts/Makefile.vmlinux:35: vmlinux] Error 1
>
>
> Reported-by: Linux Kernel Functional Testing <[email protected]>
>
> links,
> - https://qa-reports.linaro.org/lkft/linux-next-master/build/next-20230606/testrun/17347517/suite/build/test/gcc-12-shmobile_defconfig/history/
> - https://qa-reports.linaro.org/lkft/linux-next-master/build/next-20230606/testrun/17347562/suite/build/test/clang-16-shmobile_defconfig/log
>
> --
> Linaro LKFT
> https://lkft.linaro.org


2023-06-06 09:34:50

by Geert Uytterhoeven

[permalink] [raw]
Subject: Re: arm: shmobile_defconfig: ld.lld: error: undefined symbol: lynx_pcs_destroy

Hi Naresh,

On Tue, Jun 6, 2023 at 10:53 AM Naresh Kamboju
<[email protected]> wrote:
> On Tue, 6 Jun 2023 at 14:17, Naresh Kamboju <[email protected]> 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/7b36ac43778b41831debd5c30b5b37d268512195.1686039915.git.geert+renesas@glider.be

Thanks!

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds

2023-06-07 14:27:12

by Aithal, Srikanth

[permalink] [raw]
Subject: Re: arm: shmobile_defconfig: ld.lld: error: undefined symbol: lynx_pcs_destroy

On 6/6/2023 2:31 PM, Geert Uytterhoeven wrote:
> Hi Naresh,
>
> On Tue, Jun 6, 2023 at 10:53 AM Naresh Kamboju
> <[email protected]> wrote:
>> On Tue, 6 Jun 2023 at 14:17, Naresh Kamboju <[email protected]> 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/7b36ac43778b41831debd5c30b5b37d268512195.1686039915.git.geert+renesas@glider.be
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.
>
> Thanks!
>
> Gr{oetje,eeting}s,
>
> Geert
>