Subject: [Bug 215862] New: clang-14 fails 5.18-rc3 ppc64 BE kernel build - <unknown>:0: error: expected relocatable expression

From: [email-masked]
Date: Mon, 18 Apr 2022 14:12:39 +0000

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

            Bug ID: 215862
           Summary: clang-14 fails 5.18-rc3 ppc64 BE kernel build -
                    <unknown>:0: error: expected relocatable expression
           Product: Platform Specific/Hardware
           Version: 2.5
    Kernel Version: 5.18-rc3
          Hardware: PPC-64
                OS: Linux
              Tree: Mainline
            Status: NEW
          Severity: normal
          Priority: P1
         Component: PPC-64
          Assignee: [email-masked]
          Reporter: [email-masked]
        Regression: No

Created attachment 300776
  --> https://bugzilla.kernel.org/attachment.cgi?id=300776&action=edit
kernel .config (kernel 5.18-rc3, Talos II)

# make LLVM=1
[...]
  AR      usr/built-in.a
  CC      arch/powerpc/kernel/ptrace/ptrace.o
  CC      arch/powerpc/kernel/ptrace/ptrace-view.o
  CC      arch/powerpc/kernel/ptrace/ptrace-fpu.o
  CC      arch/powerpc/kernel/ptrace/ptrace32.o
  CC      arch/powerpc/kernel/ptrace/ptrace-vsx.o
  CC      arch/powerpc/kernel/ptrace/ptrace-altivec.o
  CC      arch/powerpc/kernel/ptrace/ptrace-tm.o
  CC      arch/powerpc/kernel/ptrace/ptrace-noadv.o
  AR      arch/powerpc/kernel/ptrace/built-in.a
  AR      arch/powerpc/kernel/trace/built-in.a
  AS      arch/powerpc/kernel/head_64.o
<unknown>:0: error: expected relocatable expression
make[2]: *** [scripts/Makefile.build:389: arch/powerpc/kernel/head_64.o] Fehler
1
make[1]: *** [scripts/Makefile.build:550: arch/powerpc/kernel] Fehler 2
make: *** [Makefile:1834: arch/powerpc] Fehler 2

Toolchain used was llvm/clang/lld-14.0.1. Same kernel builds fine with
gcc-11.2, binutils-2.37.

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

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