Skip to contentSkip to conversation

kexec build regression in linux-6.6.70 (linux-6.6.y LTS branch)

DISCUSSION Lars Wendler 2 participants 3 messages Jan 10, 2025 Regressions

lore
Share & tools
lore
#0 lore raw

Hello folks,

trying to build latest linux-6.6.y release (6.6.70) fails with the following error:

LD .tmp_vmlinux.kallsyms1
ld: vmlinux.o: in function `__crash_kexec':
(.text+0x1bf9c1): undefined reference to `machine_crash_shutdown'
ld: vmlinux.o: in function `do_kexec_load':
kexec.c:(.text+0x1c15bb): undefined reference to
`arch_kexec_protect_crashkres' ld: kexec.c:(.text+0x1c1611):
undefined reference to `arch_kexec_unprotect_crashkres' ld:
vmlinux.o: in function `__do_sys_kexec_file_load':
kexec_file.c:(.text+0x1c272a): undefined reference to `arch_kexec_protect_crashkres' ld: kexec_file.c:(.text+0x1c2772):
undefined reference to `arch_kexec_unprotect_crashkres' make[2]: *** [scripts/Makefile.vmlinux:37: vmlinux] Error 1 make[1]: *** [/usr/src/linux-6.6.70/Makefile:1164: vmlinux] Error 2 make: *** [Makefile:234: __sub-make] Error 2

I suppose this is related to commit e5b1574a8ca28c40cf53eda43f6c3b016ed41e27 which is the only commit in question that changes kexec code between linux-6.6.69 and linux-6.6.70.

Kind regards
Lars Wendler

#1 lore raw
Quoted 21 lines · Lars Wendler

Hello folks,

trying to build latest linux-6.6.y release (6.6.70) fails with the following error:

LD .tmp_vmlinux.kallsyms1
ld: vmlinux.o: in function `__crash_kexec':
(.text+0x1bf9c1): undefined reference to `machine_crash_shutdown'
ld: vmlinux.o: in function `do_kexec_load':
kexec.c:(.text+0x1c15bb): undefined reference to
`arch_kexec_protect_crashkres' ld: kexec.c:(.text+0x1c1611):
undefined reference to `arch_kexec_unprotect_crashkres' ld:
vmlinux.o: in function `__do_sys_kexec_file_load':
kexec_file.c:(.text+0x1c272a): undefined reference to `arch_kexec_protect_crashkres' ld: kexec_file.c:(.text+0x1c2772):
undefined reference to `arch_kexec_unprotect_crashkres' make[2]: *** [scripts/Makefile.vmlinux:37: vmlinux] Error 1 make[1]: *** [/usr/src/linux-6.6.70/Makefile:1164: vmlinux] Error 2 make: *** [Makefile:234: __sub-make] Error 2

Quoted 3 lines

I suppose this is related to commit e5b1574a8ca28c40cf53eda43f6c3b016ed41e27 which is the only commit in question that changes kexec code between linux-6.6.69 and linux-6.6.70.

Yeah, this has been reported a number of times, I'll try to track down a fix later today, sorry about this...

If you change your .config, it does work :)

thanks,

greg k-h

#2 lore raw
Quoted 22 lines · Greg Kroah-Hartman
Quoted 21 lines · Lars Wendler

Hello folks,

trying to build latest linux-6.6.y release (6.6.70) fails with the following error:

LD .tmp_vmlinux.kallsyms1
ld: vmlinux.o: in function `__crash_kexec':
(.text+0x1bf9c1): undefined reference to `machine_crash_shutdown'
ld: vmlinux.o: in function `do_kexec_load':
kexec.c:(.text+0x1c15bb): undefined reference to
`arch_kexec_protect_crashkres' ld: kexec.c:(.text+0x1c1611):
undefined reference to `arch_kexec_unprotect_crashkres' ld:
vmlinux.o: in function `__do_sys_kexec_file_load':
kexec_file.c:(.text+0x1c272a): undefined reference to `arch_kexec_protect_crashkres' ld: kexec_file.c:(.text+0x1c2772):
undefined reference to `arch_kexec_unprotect_crashkres' make[2]: *** [scripts/Makefile.vmlinux:37: vmlinux] Error 1 make[1]: *** [/usr/src/linux-6.6.70/Makefile:1164: vmlinux] Error 2 make: *** [Makefile:234: __sub-make] Error 2

Quoted 8 lines
Quoted 3 lines

I suppose this is related to commit e5b1574a8ca28c40cf53eda43f6c3b016ed41e27 which is the only commit in question that changes kexec code between linux-6.6.69 and linux-6.6.70.

Yeah, this has been reported a number of times, I'll try to track down a fix later today, sorry about this...

If you change your .config, it does work :)

Should now be fixed with the 6.6.71 release.

thanks,

greg k-h