Re: [PATCH v2] arch: fix broken BuildID for arm64 and riscv

From: chenjiahao (C)
Date: Fri May 12 2023 - 06:11:38 EST


Hi,

It seems this patch introduces a compile error on powerpc 85xx platform with
CONFIG_RELOCATABLE enabled.

To reproduce the problem, I compiled the mainline linux kernel with patch
99cb0d917ffa ("arch: fix broken BuildID for arm64 and riscv"), using configure
file:

arch/powerpc/configs/85xx-32bit.config

and enabled CONFIG_RELOCATABLE manually. Then the compile log with
Segmentation fault appeared as below:

  ...
  AR      fs/proc/built-in.a
  AR      fs/built-in.a
  AR      built-in.a
  AR      vmlinux.a
  LD      vmlinux.o
  OBJCOPY modules.builtin.modinfo
  GEN     modules.builtin
  MODPOST vmlinux.symvers
  UPD     include/generated/utsversion.h
  CC      init/version-timestamp.o
  LD      .tmp_vmlinux.kallsyms1
Segmentation fault (core dumped)
scripts/Makefile.vmlinux:34: recipe for target 'vmlinux' failed
make[1]: *** [vmlinux] Error 139
Makefile:1252: recipe for target 'vmlinux' failed
make: *** [vmlinux] Error 2

Could anyone reproduce above error, or have I missed anything else?

Thanks,
Jiahao