public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* ld.lld: error: undefined symbol: amba_driver_register
@ 2020-10-29  4:56 kernel test robot
  2020-10-29 19:28 ` Nick Desaulniers
  0 siblings, 1 reply; 3+ messages in thread
From: kernel test robot @ 2020-10-29  4:56 UTC (permalink / raw)
  To: Krzysztof Kozlowski; +Cc: kbuild-all, clang-built-linux, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 1781 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   23859ae44402f4d935b9ee548135dd1e65e2cbf4
commit: ea0c0ad6b6eb36726088991d97a55b99cae456d0 memory: Enable compile testing for most of the drivers
date:   2 months ago
config: arm-randconfig-r024-20201028 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 50dfa19cc799ae7cddd39a95dbfce675a12672ad)
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # install arm cross compiling tool for clang build
        # apt-get install binutils-arm-linux-gnueabi
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=ea0c0ad6b6eb36726088991d97a55b99cae456d0
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout ea0c0ad6b6eb36726088991d97a55b99cae456d0
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

>> ld.lld: error: undefined symbol: amba_driver_register
   >>> referenced by pl353-smc.c
   >>> memory/pl353-smc.o:(pl353_smc_driver_init) in archive drivers/built-in.a
--
>> ld.lld: error: undefined symbol: amba_driver_unregister
   >>> referenced by pl353-smc.c
   >>> memory/pl353-smc.o:(pl353_smc_driver_exit) in archive drivers/built-in.a

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 34485 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: ld.lld: error: undefined symbol: amba_driver_register
  2020-10-29  4:56 ld.lld: error: undefined symbol: amba_driver_register kernel test robot
@ 2020-10-29 19:28 ` Nick Desaulniers
  2020-10-29 19:30   ` Krzysztof Kozlowski
  0 siblings, 1 reply; 3+ messages in thread
From: Nick Desaulniers @ 2020-10-29 19:28 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: kbuild-all, clang-built-linux, LKML, kernel test robot

On Wed, Oct 28, 2020 at 9:57 PM kernel test robot <lkp@intel.com> wrote:
>
> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> head:   23859ae44402f4d935b9ee548135dd1e65e2cbf4
> commit: ea0c0ad6b6eb36726088991d97a55b99cae456d0 memory: Enable compile testing for most of the drivers
> date:   2 months ago
> config: arm-randconfig-r024-20201028 (attached as .config)

^ Note, this was a randconfig, so the preprocessor guards on CONFIGs
might be wrong.

> compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 50dfa19cc799ae7cddd39a95dbfce675a12672ad)
> reproduce (this is a W=1 build):
>         wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
>         chmod +x ~/bin/make.cross
>         # install arm cross compiling tool for clang build
>         # apt-get install binutils-arm-linux-gnueabi
>         # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=ea0c0ad6b6eb36726088991d97a55b99cae456d0
>         git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
>         git fetch --no-tags linus master
>         git checkout ea0c0ad6b6eb36726088991d97a55b99cae456d0
>         # save the attached .config to linux build tree
>         COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm
>
> If you fix the issue, kindly add following tag as appropriate
> Reported-by: kernel test robot <lkp@intel.com>
>
> All errors (new ones prefixed by >>):
>
> >> ld.lld: error: undefined symbol: amba_driver_register
>    >>> referenced by pl353-smc.c
>    >>> memory/pl353-smc.o:(pl353_smc_driver_init) in archive drivers/built-in.a
> --
> >> ld.lld: error: undefined symbol: amba_driver_unregister
>    >>> referenced by pl353-smc.c
>    >>> memory/pl353-smc.o:(pl353_smc_driver_exit) in archive drivers/built-in.a
>
> ---
> 0-DAY CI Kernel Test Service, Intel Corporation
> https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
>
> --
> You received this message because you are subscribed to the Google Groups "Clang Built Linux" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to clang-built-linux+unsubscribe@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/clang-built-linux/202010291249.MFjbb8tv-lkp%40intel.com.



-- 
Thanks,
~Nick Desaulniers

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: ld.lld: error: undefined symbol: amba_driver_register
  2020-10-29 19:28 ` Nick Desaulniers
@ 2020-10-29 19:30   ` Krzysztof Kozlowski
  0 siblings, 0 replies; 3+ messages in thread
From: Krzysztof Kozlowski @ 2020-10-29 19:30 UTC (permalink / raw)
  To: Nick Desaulniers; +Cc: kbuild-all, clang-built-linux, LKML, kernel test robot

On Thu, Oct 29, 2020 at 12:28:54PM -0700, Nick Desaulniers wrote:
> On Wed, Oct 28, 2020 at 9:57 PM kernel test robot <lkp@intel.com> wrote:
> >
> > tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> > head:   23859ae44402f4d935b9ee548135dd1e65e2cbf4
> > commit: ea0c0ad6b6eb36726088991d97a55b99cae456d0 memory: Enable compile testing for most of the drivers
> > date:   2 months ago
> > config: arm-randconfig-r024-20201028 (attached as .config)
> 
> ^ Note, this was a randconfig, so the preprocessor guards on CONFIGs
> might be wrong.

The report looks correct. It's possible to craft ARM config without
ARM_AMBA which would cause this issue. I have a fix ready.

Best regards,
Krzysztof

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-10-29 19:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-10-29  4:56 ld.lld: error: undefined symbol: amba_driver_register kernel test robot
2020-10-29 19:28 ` Nick Desaulniers
2020-10-29 19:30   ` Krzysztof Kozlowski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox