ld.lld: error: undefined symbol: amba_driver_register

14 views
Skip to first unread message

kernel test robot

unread,
Oct 29, 2020, 12:57:50 AM10/29/20
to Krzysztof Kozlowski, kbuil...@lists.01.org, clang-bu...@googlegroups.com, linux-...@vger.kernel.org
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 <l...@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/kbuil...@lists.01.org
.config.gz

Nick Desaulniers

unread,
Oct 29, 2020, 3:29:07 PM10/29/20
to Krzysztof Kozlowski, kbuil...@lists.01.org, clang-built-linux, LKML, kernel test robot
On Wed, Oct 28, 2020 at 9:57 PM kernel test robot <l...@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.
> --
> 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-li...@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

Krzysztof Kozlowski

unread,
Oct 29, 2020, 3:30:57 PM10/29/20
to Nick Desaulniers, kbuil...@lists.01.org, 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 <l...@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
Reply all
Reply to author
Forward
0 new messages