Re: ERROR: modpost: "__popcountdi2" [lib/kunit/kunit-example-test.ko] undefined!

From: Nathan Chancellor
Date: Sun Aug 04 2024 - 23:00:51 EST


On Sun, Aug 04, 2024 at 07:13:11PM +0800, kernel test robot wrote:
> Hi Michal,
>
> First bad commit (maybe != root cause):
>
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> head: 17712b7ea0756799635ba159cc773082230ed028
> commit: ee5f8cc2770b2f0f7cfefb5bf7534e2859e39485 kunit: Reset test status on each param iteration
> date: 11 months ago
> config: riscv-randconfig-001-20240804 (https://download.01.org/0day-ci/archive/20240804/202408041932.EzITeEV4-lkp@xxxxxxxxx/config)
> compiler: clang version 20.0.0git (https://github.com/llvm/llvm-project 423aec6573df4424f90555468128e17073ddc69e)
> reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240804/202408041932.EzITeEV4-lkp@xxxxxxxxx/reproduce)
>
> If you fix the issue in a separate patch/commit (i.e. not just a new version of
> the same patch/commit), kindly add following tags
> | Reported-by: kernel test robot <lkp@xxxxxxxxx>
> | Closes: https://lore.kernel.org/oe-kbuild-all/202408041932.EzITeEV4-lkp@xxxxxxxxx/
>
> All errors (new ones prefixed by >>, old ones prefixed by <<):
...
> >> ERROR: modpost: "__popcountdi2" [lib/kunit/kunit-example-test.ko] undefined!
> ERROR: modpost: "__popcountdi2" [lib/test_hexdump.ko] undefined!

Sorry for the noise, this appears to be a regression with tip of tree
LLVM:

https://github.com/llvm/llvm-project/pull/101786#issuecomment-2268077506

Cheers,
Nathan