New: clang-14 fails 5.18-rc3 ppc64 BE kernel build - <unknown>:0: error: expected relocatable expression
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 protected]
Reporter: [email protected]
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.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 215862] clang-15 fails ppc64 BE kernel build - ld.lld: error: undefined symbol: .early_setup
https://bugzilla.kernel.org/show_bug.cgi?id=215862
Erhard F. ([email protected]) 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. ([email protected]) --- 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
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
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.adid 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.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 215862] clang-15 fails ppc64 BE kernel build - ld.lld: error: undefined symbol: .early_setup
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=215862
--- Comment #2 from Erhard F. ([email protected]) --- Created attachment 303185
--> https://bugzilla.kernel.org/attachment.cgi?id=303185&action=edit
kernel .config (6.1-rc5, PowerMac G5 11,2)
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 215862] clang-15 fails ppc64 BE kernel build - ld.lld: error: undefined symbol: .early_setup
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=215862
Christophe Leroy ([email protected]) changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]
--- Comment #3 from Christophe Leroy ([email protected]) --- If not already done, can you report the problem at
https://github.com/ClangBuiltLinux/linux/issues
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 215862] clang-15 fails ppc64 BE kernel build - ld.lld: error: undefined symbol: .early_setup
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=215862
Erhard F. ([email protected]) changed:
What |Removed |Added
----------------------------------------------------------------------------
URL| |https://github.com/ClangBui | |ltLinux/linux/issues/1761
--- Comment #4 from Erhard F. ([email protected]) --- (In reply to Christophe Leroy from comment #3)
Quoted 2 lines
If not already done, can you report the problem at
https://github.com/ClangBuiltLinux/linux/issues
I was not aware of this issue tracker. Thanks for the hint!
Filed now unter https://github.com/ClangBuiltLinux/linux/issues/1761
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 215862] clang-15 fails ppc64 BE kernel build - ld.lld: error: undefined symbol: .early_setup
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=215862
Erhard F. ([email protected]) changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |OBSOLETE--- Comment #5 from Erhard F. ([email protected]) --- Fixed in kernel v6.4.x series.
Closing.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 215862] clang-15 fails ppc64 BE kernel build - ld.lld: error: undefined symbol: .early_setup
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=215862
--- Comment #6 from Christophe Leroy ([email protected]) --- I'm out of office until August 1st.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.