[Bug 215862] clang-15 fails ppc64 BE kernel build - ld.lld: error: undefined symbol: .early_setup

bugzilla-daemon at kernel.org bugzilla-daemon at kernel.org
Wed Nov 16 05:48:52 AEDT 2022


https://bugzilla.kernel.org/show_bug.cgi?id=215862

Erhard F. (erhard_f at mailbox.org) changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|clang-14 fails 5.18-rc3     |clang-15 fails ppc64 BE
                   |ppc64 BE kernel build -     |kernel build - ld.lld:
                   |<unknown>:0: error:         |error: undefined symbol:
                   |expected relocatable        |.early_setup
                   |expression                  |

--- Comment #1 from Erhard F. (erhard_f at mailbox.org) ---
Reinvestigated with clang 15 on my PowerMac G5 11,2.

Got further on as kernel + modules are built now. But I get an error at the
linking stage:

 # LLVM=1 LLVM_IAS=1 make
  CALL    scripts/checksyscalls.sh
  UPD     include/generated/utsversion.h
  CC      init/version-timestamp.o
  LD      .tmp_vmlinux.kallsyms1
ld.lld: error: undefined symbol: .early_setup
>>> referenced by head_64.S:973
>>> (/usr/src/linux-stable/arch/powerpc/kernel/head_64.S:973)
>>>               arch/powerpc/kernel/head_64.o:(.ref.text+0xBE) in archive
>>>               vmlinux.a
>>> referenced by head_64.S:973
>>> (/usr/src/linux-stable/arch/powerpc/kernel/head_64.S:973)
>>>               arch/powerpc/kernel/head_64.o:(.ref.text+0xC2) in archive
>>>               vmlinux.a
>>> did you mean: early_setup
>>> defined in: vmlinux.a(arch/powerpc/kernel/setup_64.o)
make[1]: *** [scripts/Makefile.vmlinux:34: vmlinux] Error 1
make: *** [Makefile:1236: vmlinux] Error 2

Toolchain used was llvm/clang/lld-15.0.3. Same kernel builds fine with
gcc-12.2, binutils-2.39.

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.


More information about the Linuxppc-dev mailing list