* ld.lld: error: relocation R_PPC_ADDR16_LO cannot be used against symbol 'init_task'; recompile with -fPIC
@ 2026-07-09 22:18 kernel test robot
2026-07-10 2:51 ` Feng Tang
0 siblings, 1 reply; 4+ messages in thread
From: kernel test robot @ 2026-07-09 22:18 UTC (permalink / raw)
To: Feng Tang; +Cc: oe-kbuild-all, linux-kernel, Marek Szyprowski
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 0e35b9b6ec0ffcc5e23cbdec09f5c622ad532b53
commit: d5cae2261b86913e602452ce4a07e6aefc0f603b dma-contiguous: simplify numa cma area handling
date: 6 weeks ago
config: powerpc-randconfig-r133-20260709 (https://download.01.org/0day-ci/archive/20260710/202607100652.WPUlEAfx-lkp@intel.com/config)
compiler: clang version 21.1.8 (https://github.com/llvm/llvm-project 2078da43e25a4623cab2d0d60decddf709aaea28)
sparse: v0.6.5-rc1
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260710/202607100652.WPUlEAfx-lkp@intel.com/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
| Fixes: d5cae2261b86 ("dma-contiguous: simplify numa cma area handling")
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202607100652.WPUlEAfx-lkp@intel.com/
All errors (new ones prefixed by >>):
>> ld.lld: error: relocation R_PPC_ADDR16_LO cannot be used against symbol 'init_task'; recompile with -fPIC
>>> defined in vmlinux.a(init/init_task.o)
>>> referenced by head_44x.S:101 (arch/powerpc/kernel/head_44x.S:101)
>>> arch/powerpc/kernel/head_44x.o:(.head.text+0x42) in archive vmlinux.a
--
>> ld.lld: error: relocation R_PPC_ADDR16_HI cannot be used against symbol 'init_thread_union'; recompile with -fPIC
>>> defined in ./arch/powerpc/kernel/vmlinux.lds:133
>>> referenced by head_44x.S:108 (arch/powerpc/kernel/head_44x.S:108)
>>> arch/powerpc/kernel/head_44x.o:(.head.text+0x4e) in archive vmlinux.a
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for HOTPLUG_CPU
Depends on [n]: SMP [=y] && (PPC_PSERIES [=n] || PPC_PMAC [=n] || PPC_POWERNV [=n] || FSL_SOC_BOOKE [=n])
Selected by [y]:
- PM_SLEEP_SMP [=y] && SMP [=y] && (ARCH_SUSPEND_POSSIBLE [=y] || ARCH_HIBERNATION_POSSIBLE [=y]) && PM_SLEEP [=y]
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: ld.lld: error: relocation R_PPC_ADDR16_LO cannot be used against symbol 'init_task'; recompile with -fPIC 2026-07-09 22:18 ld.lld: error: relocation R_PPC_ADDR16_LO cannot be used against symbol 'init_task'; recompile with -fPIC kernel test robot @ 2026-07-10 2:51 ` Feng Tang 2026-07-10 4:33 ` Christophe Leroy (CS GROUP) 0 siblings, 1 reply; 4+ messages in thread From: Feng Tang @ 2026-07-10 2:51 UTC (permalink / raw) To: kernel test robot, linuxppc-dev Cc: oe-kbuild-all, linux-kernel, Marek Szyprowski Thanks for the report! Add Powerpc list. On Fri, Jul 10, 2026 at 06:18:50AM +0800, kernel test robot wrote: > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master > head: 0e35b9b6ec0ffcc5e23cbdec09f5c622ad532b53 > commit: d5cae2261b86913e602452ce4a07e6aefc0f603b dma-contiguous: simplify numa cma area handling > date: 6 weeks ago > config: powerpc-randconfig-r133-20260709 (https://download.01.org/0day-ci/archive/20260710/202607100652.WPUlEAfx-lkp@intel.com/config) > compiler: clang version 21.1.8 (https://github.com/llvm/llvm-project 2078da43e25a4623cab2d0d60decddf709aaea28) > sparse: v0.6.5-rc1 > reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260710/202607100652.WPUlEAfx-lkp@intel.com/reproduce) > All errors (new ones prefixed by >>): > > >> ld.lld: error: relocation R_PPC_ADDR16_LO cannot be used against symbol 'init_task'; recompile with -fPIC > >>> defined in vmlinux.a(init/init_task.o) > >>> referenced by head_44x.S:101 (arch/powerpc/kernel/head_44x.S:101) > >>> arch/powerpc/kernel/head_44x.o:(.head.text+0x42) in archive vmlinux.a > -- > >> ld.lld: error: relocation R_PPC_ADDR16_HI cannot be used against symbol 'init_thread_union'; recompile with -fPIC > >>> defined in ./arch/powerpc/kernel/vmlinux.lds:133 > >>> referenced by head_44x.S:108 (arch/powerpc/kernel/head_44x.S:108) > >>> arch/powerpc/kernel/head_44x.o:(.head.text+0x4e) in archive vmlinux.a I checked the patch and couldn't find obvious clue between the patch and the error. commit d5cae2261b8691 only changes kernel/dma/contiguous.c, which is under CONFIG_DMA_CMA per kernel/dma/Makefile. In your config above, CONFIG_DMA_CMA is not even set, so the contigous.c should not be compiled. Could you help to double check? thanks! - Feng > Kconfig warnings: (for reference only) > WARNING: unmet direct dependencies detected for HOTPLUG_CPU > Depends on [n]: SMP [=y] && (PPC_PSERIES [=n] || PPC_PMAC [=n] || PPC_POWERNV [=n] || FSL_SOC_BOOKE [=n]) > Selected by [y]: > - PM_SLEEP_SMP [=y] && SMP [=y] && (ARCH_SUSPEND_POSSIBLE [=y] || ARCH_HIBERNATION_POSSIBLE [=y]) && PM_SLEEP [=y] > > -- > 0-DAY CI Kernel Test Service > https://github.com/intel/lkp-tests/wiki ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: ld.lld: error: relocation R_PPC_ADDR16_LO cannot be used against symbol 'init_task'; recompile with -fPIC 2026-07-10 2:51 ` Feng Tang @ 2026-07-10 4:33 ` Christophe Leroy (CS GROUP) 2026-07-10 9:44 ` Feng Tang 0 siblings, 1 reply; 4+ messages in thread From: Christophe Leroy (CS GROUP) @ 2026-07-10 4:33 UTC (permalink / raw) To: Feng Tang, kernel test robot, linuxppc-dev, Nathan Chancellor, Nick Desaulniers, clang-built-linux Cc: oe-kbuild-all, linux-kernel, Marek Szyprowski + Clang Le 10/07/2026 à 04:51, Feng Tang a écrit : > Thanks for the report! > > Add Powerpc list. This is a Clang build with Clang linker, did you reproduce the problem with a normal GCC build ? Thanks Christophe > > On Fri, Jul 10, 2026 at 06:18:50AM +0800, kernel test robot wrote: >> tree: https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgit.kernel.org%2Fpub%2Fscm%2Flinux%2Fkernel%2Fgit%2Ftorvalds%2Flinux.git&data=05%7C02%7Cchristophe.leroy2%40cs-soprasteria.com%7C016c05b801ba48f2593f08dede2e29c2%7C8b87af7d86474dc78df45f69a2011bb5%7C0%7C0%7C639192487094863506%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=fQm6QfsJ2ggaKoRJWCz4dsaquz7Wo3uhRnOexVUrTnQ%3D&reserved=0 master >> head: 0e35b9b6ec0ffcc5e23cbdec09f5c622ad532b53 >> commit: d5cae2261b86913e602452ce4a07e6aefc0f603b dma-contiguous: simplify numa cma area handling >> date: 6 weeks ago >> config: powerpc-randconfig-r133-20260709 (https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdownload.01.org%2F0day-ci%2Farchive%2F20260710%2F202607100652.WPUlEAfx-lkp%40intel.com%2Fconfig&data=05%7C02%7Cchristophe.leroy2%40cs-soprasteria.com%7C016c05b801ba48f2593f08dede2e29c2%7C8b87af7d86474dc78df45f69a2011bb5%7C0%7C0%7C639192487094899182%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=BkT0BYyJtniz6YPzGpYbO0jn2T7vBDBLaK2Tsh1LcnE%3D&reserved=0) >> compiler: clang version 21.1.8 (https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fllvm%2Fllvm-project&data=05%7C02%7Cchristophe.leroy2%40cs-soprasteria.com%7C016c05b801ba48f2593f08dede2e29c2%7C8b87af7d86474dc78df45f69a2011bb5%7C0%7C0%7C639192487094917538%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=5%2BLVtRoojuNbhEMr3BhM2xF50PV%2FIYh%2FWw3ipDIWG%2FY%3D&reserved=0 2078da43e25a4623cab2d0d60decddf709aaea28) >> sparse: v0.6.5-rc1 >> reproduce (this is a W=1 build): (https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdownload.01.org%2F0day-ci%2Farchive%2F20260710%2F202607100652.WPUlEAfx-lkp%40intel.com%2Freproduce&data=05%7C02%7Cchristophe.leroy2%40cs-soprasteria.com%7C016c05b801ba48f2593f08dede2e29c2%7C8b87af7d86474dc78df45f69a2011bb5%7C0%7C0%7C639192487094935016%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=%2BrpcCLuNecZIfyF6N5X%2FFcHhdG9YzLBAErvBGHyjjak%3D&reserved=0) > > >> All errors (new ones prefixed by >>): >> >>>> ld.lld: error: relocation R_PPC_ADDR16_LO cannot be used against symbol 'init_task'; recompile with -fPIC >> >>> defined in vmlinux.a(init/init_task.o) >> >>> referenced by head_44x.S:101 (arch/powerpc/kernel/head_44x.S:101) >> >>> arch/powerpc/kernel/head_44x.o:(.head.text+0x42) in archive vmlinux.a >> -- >>>> ld.lld: error: relocation R_PPC_ADDR16_HI cannot be used against symbol 'init_thread_union'; recompile with -fPIC >> >>> defined in ./arch/powerpc/kernel/vmlinux.lds:133 >> >>> referenced by head_44x.S:108 (arch/powerpc/kernel/head_44x.S:108) >> >>> arch/powerpc/kernel/head_44x.o:(.head.text+0x4e) in archive vmlinux.a > > I checked the patch and couldn't find obvious clue between the patch and > the error. > > commit d5cae2261b8691 only changes kernel/dma/contiguous.c, which is under > CONFIG_DMA_CMA per kernel/dma/Makefile. In your config above, CONFIG_DMA_CMA > is not even set, so the contigous.c should not be compiled. Could you help > to double check? thanks! > > - Feng > >> Kconfig warnings: (for reference only) >> WARNING: unmet direct dependencies detected for HOTPLUG_CPU >> Depends on [n]: SMP [=y] && (PPC_PSERIES [=n] || PPC_PMAC [=n] || PPC_POWERNV [=n] || FSL_SOC_BOOKE [=n]) >> Selected by [y]: >> - PM_SLEEP_SMP [=y] && SMP [=y] && (ARCH_SUSPEND_POSSIBLE [=y] || ARCH_HIBERNATION_POSSIBLE [=y]) && PM_SLEEP [=y] >> >> -- >> 0-DAY CI Kernel Test Service >> https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fintel%2Flkp-tests%2Fwiki&data=05%7C02%7Cchristophe.leroy2%40cs-soprasteria.com%7C016c05b801ba48f2593f08dede2e29c2%7C8b87af7d86474dc78df45f69a2011bb5%7C0%7C0%7C639192487094952205%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=sqz%2BJ2dpT3ZZjlQyyvAhgPdP9jS0kJLpbRKTcV4rM50%3D&reserved=0 > ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: ld.lld: error: relocation R_PPC_ADDR16_LO cannot be used against symbol 'init_task'; recompile with -fPIC 2026-07-10 4:33 ` Christophe Leroy (CS GROUP) @ 2026-07-10 9:44 ` Feng Tang 0 siblings, 0 replies; 4+ messages in thread From: Feng Tang @ 2026-07-10 9:44 UTC (permalink / raw) To: Christophe Leroy (CS GROUP), lkp Cc: kernel test robot, linuxppc-dev, Nathan Chancellor, Nick Desaulniers, clang-built-linux, oe-kbuild-all, linux-kernel, Marek Szyprowski On Fri, Jul 10, 2026 at 06:33:49AM +0200, Christophe Leroy (CS GROUP) wrote: > + Clang > > Le 10/07/2026 à 04:51, Feng Tang a écrit : > > Thanks for the report! > > > > Add Powerpc list. > > This is a Clang build with Clang linker, did you reproduce the problem with > a normal GCC build ? I tried the 'reproduce' provided by 0day bot, but it failed early: /workspace/feng/ws2/projects/linux-2.6/Makefile:1244: C=1 specified, but sparse is not available or not up to date Documentation/.renames.txt: warning: ignored by one of the .gitignore files ../arch/powerpc/lib/sstep.c:1346:31: error: variable 'rc' set but not used [-Werror,-Wunused-but-set-variable] 1346 | unsigned int opcode, ra, rb, rc, rd, spr, u; | ^ ../arch/powerpc/lib/sstep.c:1350:21: error: variable 'suffix' set but not used [-Werror,-Wunused-but-set-variable] 1350 | unsigned int word, suffix; | ^ 2 errors generated. 0day folks, could you help to check? thanks > Thanks > Christophe > > > > > On Fri, Jul 10, 2026 at 06:18:50AM +0800, kernel test robot wrote: > > > tree: https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgit.kernel.org%2Fpub%2Fscm%2Flinux%2Fkernel%2Fgit%2Ftorvalds%2Flinux.git&data=05%7C02%7Cchristophe.leroy2%40cs-soprasteria.com%7C016c05b801ba48f2593f08dede2e29c2%7C8b87af7d86474dc78df45f69a2011bb5%7C0%7C0%7C639192487094863506%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=fQm6QfsJ2ggaKoRJWCz4dsaquz7Wo3uhRnOexVUrTnQ%3D&reserved=0 master > > > head: 0e35b9b6ec0ffcc5e23cbdec09f5c622ad532b53 > > > commit: d5cae2261b86913e602452ce4a07e6aefc0f603b dma-contiguous: simplify numa cma area handling > > > date: 6 weeks ago > > > config: powerpc-randconfig-r133-20260709 (https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdownload.01.org%2F0day-ci%2Farchive%2F20260710%2F202607100652.WPUlEAfx-lkp%40intel.com%2Fconfig&data=05%7C02%7Cchristophe.leroy2%40cs-soprasteria.com%7C016c05b801ba48f2593f08dede2e29c2%7C8b87af7d86474dc78df45f69a2011bb5%7C0%7C0%7C639192487094899182%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=BkT0BYyJtniz6YPzGpYbO0jn2T7vBDBLaK2Tsh1LcnE%3D&reserved=0) > > > compiler: clang version 21.1.8 (https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fllvm%2Fllvm-project&data=05%7C02%7Cchristophe.leroy2%40cs-soprasteria.com%7C016c05b801ba48f2593f08dede2e29c2%7C8b87af7d86474dc78df45f69a2011bb5%7C0%7C0%7C639192487094917538%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=5%2BLVtRoojuNbhEMr3BhM2xF50PV%2FIYh%2FWw3ipDIWG%2FY%3D&reserved=0 2078da43e25a4623cab2d0d60decddf709aaea28) > > > sparse: v0.6.5-rc1 > > > reproduce (this is a W=1 build): (https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdownload.01.org%2F0day-ci%2Farchive%2F20260710%2F202607100652.WPUlEAfx-lkp%40intel.com%2Freproduce&data=05%7C02%7Cchristophe.leroy2%40cs-soprasteria.com%7C016c05b801ba48f2593f08dede2e29c2%7C8b87af7d86474dc78df45f69a2011bb5%7C0%7C0%7C639192487094935016%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=%2BrpcCLuNecZIfyF6N5X%2FFcHhdG9YzLBAErvBGHyjjak%3D&reserved=0) > > > > > > > All errors (new ones prefixed by >>): > > > > > > > > ld.lld: error: relocation R_PPC_ADDR16_LO cannot be used against symbol 'init_task'; recompile with -fPIC > > > >>> defined in vmlinux.a(init/init_task.o) > > > >>> referenced by head_44x.S:101 (arch/powerpc/kernel/head_44x.S:101) > > > >>> arch/powerpc/kernel/head_44x.o:(.head.text+0x42) in archive vmlinux.a > > > -- > > > > > ld.lld: error: relocation R_PPC_ADDR16_HI cannot be used against symbol 'init_thread_union'; recompile with -fPIC > > > >>> defined in ./arch/powerpc/kernel/vmlinux.lds:133 > > > >>> referenced by head_44x.S:108 (arch/powerpc/kernel/head_44x.S:108) > > > >>> arch/powerpc/kernel/head_44x.o:(.head.text+0x4e) in archive vmlinux.a > > > > I checked the patch and couldn't find obvious clue between the patch and > > the error. > > > > commit d5cae2261b8691 only changes kernel/dma/contiguous.c, which is under > > CONFIG_DMA_CMA per kernel/dma/Makefile. In your config above, CONFIG_DMA_CMA > > is not even set, so the contigous.c should not be compiled. Could you help > > to double check? thanks! > > > > - Feng > > > > > Kconfig warnings: (for reference only) > > > WARNING: unmet direct dependencies detected for HOTPLUG_CPU > > > Depends on [n]: SMP [=y] && (PPC_PSERIES [=n] || PPC_PMAC [=n] || PPC_POWERNV [=n] || FSL_SOC_BOOKE [=n]) > > > Selected by [y]: > > > - PM_SLEEP_SMP [=y] && SMP [=y] && (ARCH_SUSPEND_POSSIBLE [=y] || ARCH_HIBERNATION_POSSIBLE [=y]) && PM_SLEEP [=y] > > > > > > -- > > > 0-DAY CI Kernel Test Service > > > https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fintel%2Flkp-tests%2Fwiki&data=05%7C02%7Cchristophe.leroy2%40cs-soprasteria.com%7C016c05b801ba48f2593f08dede2e29c2%7C8b87af7d86474dc78df45f69a2011bb5%7C0%7C0%7C639192487094952205%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=sqz%2BJ2dpT3ZZjlQyyvAhgPdP9jS0kJLpbRKTcV4rM50%3D&reserved=0 > > ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2026-07-10 9:44 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2026-07-09 22:18 ld.lld: error: relocation R_PPC_ADDR16_LO cannot be used against symbol 'init_task'; recompile with -fPIC kernel test robot 2026-07-10 2:51 ` Feng Tang 2026-07-10 4:33 ` Christophe Leroy (CS GROUP) 2026-07-10 9:44 ` Feng Tang
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox