All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bug 215862] New: clang-14 fails 5.18-rc3 ppc64 BE kernel build - <unknown>:0: error: expected relocatable expression
@ 2022-04-18 14:12 bugzilla-daemon
  2022-11-15 18:48 ` [Bug 215862] clang-15 fails ppc64 BE kernel build - ld.lld: error: undefined symbol: .early_setup bugzilla-daemon
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: bugzilla-daemon @ 2022-04-18 14:12 UTC (permalink / raw)
  To: linuxppc-dev

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: platform_ppc-64@kernel-bugs.osdl.org
          Reporter: erhard_f@mailbox.org
        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.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug 215862] clang-15 fails ppc64 BE kernel build - ld.lld: error: undefined symbol: .early_setup
  2022-04-18 14:12 [Bug 215862] New: clang-14 fails 5.18-rc3 ppc64 BE kernel build - <unknown>:0: error: expected relocatable expression bugzilla-daemon
@ 2022-11-15 18:48 ` bugzilla-daemon
  2022-11-15 18:49 ` bugzilla-daemon
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: bugzilla-daemon @ 2022-11-15 18:48 UTC (permalink / raw)
  To: linuxppc-dev

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

Erhard F. (erhard_f@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@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.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug 215862] clang-15 fails ppc64 BE kernel build - ld.lld: error: undefined symbol: .early_setup
  2022-04-18 14:12 [Bug 215862] New: clang-14 fails 5.18-rc3 ppc64 BE kernel build - <unknown>:0: error: expected relocatable expression bugzilla-daemon
  2022-11-15 18:48 ` [Bug 215862] clang-15 fails ppc64 BE kernel build - ld.lld: error: undefined symbol: .early_setup bugzilla-daemon
@ 2022-11-15 18:49 ` bugzilla-daemon
  2022-11-15 20:08 ` bugzilla-daemon
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: bugzilla-daemon @ 2022-11-15 18:49 UTC (permalink / raw)
  To: linuxppc-dev

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

--- Comment #2 from Erhard F. (erhard_f@mailbox.org) ---
Created attachment 303185
  --> https://bugzilla.kernel.org/attachment.cgi?id=303185&action=edit
kernel .config (6.1-rc5, PowerMac G5 11,2)

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

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug 215862] clang-15 fails ppc64 BE kernel build - ld.lld: error: undefined symbol: .early_setup
  2022-04-18 14:12 [Bug 215862] New: clang-14 fails 5.18-rc3 ppc64 BE kernel build - <unknown>:0: error: expected relocatable expression bugzilla-daemon
  2022-11-15 18:48 ` [Bug 215862] clang-15 fails ppc64 BE kernel build - ld.lld: error: undefined symbol: .early_setup bugzilla-daemon
  2022-11-15 18:49 ` bugzilla-daemon
@ 2022-11-15 20:08 ` bugzilla-daemon
  2022-11-15 23:11 ` bugzilla-daemon
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: bugzilla-daemon @ 2022-11-15 20:08 UTC (permalink / raw)
  To: linuxppc-dev

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

Christophe Leroy (christophe.leroy@csgroup.eu) changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |christophe.leroy@csgroup.eu

--- Comment #3 from Christophe Leroy (christophe.leroy@csgroup.eu) ---
If not already done, can you report the problem at
https://github.com/ClangBuiltLinux/linux/issues

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

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug 215862] clang-15 fails ppc64 BE kernel build - ld.lld: error: undefined symbol: .early_setup
  2022-04-18 14:12 [Bug 215862] New: clang-14 fails 5.18-rc3 ppc64 BE kernel build - <unknown>:0: error: expected relocatable expression bugzilla-daemon
                   ` (2 preceding siblings ...)
  2022-11-15 20:08 ` bugzilla-daemon
@ 2022-11-15 23:11 ` bugzilla-daemon
  2023-07-31 10:22 ` bugzilla-daemon
  2023-07-31 10:23 ` bugzilla-daemon
  5 siblings, 0 replies; 7+ messages in thread
From: bugzilla-daemon @ 2022-11-15 23:11 UTC (permalink / raw)
  To: linuxppc-dev

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                URL|                            |https://github.com/ClangBui
                   |                            |ltLinux/linux/issues/1761

--- Comment #4 from Erhard F. (erhard_f@mailbox.org) ---
(In reply to Christophe Leroy from comment #3)
> 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

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

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug 215862] clang-15 fails ppc64 BE kernel build - ld.lld: error: undefined symbol: .early_setup
  2022-04-18 14:12 [Bug 215862] New: clang-14 fails 5.18-rc3 ppc64 BE kernel build - <unknown>:0: error: expected relocatable expression bugzilla-daemon
                   ` (3 preceding siblings ...)
  2022-11-15 23:11 ` bugzilla-daemon
@ 2023-07-31 10:22 ` bugzilla-daemon
  2023-07-31 10:23 ` bugzilla-daemon
  5 siblings, 0 replies; 7+ messages in thread
From: bugzilla-daemon @ 2023-07-31 10:22 UTC (permalink / raw)
  To: linuxppc-dev

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |OBSOLETE

--- Comment #5 from Erhard F. (erhard_f@mailbox.org) ---
Fixed in kernel v6.4.x series.

Closing.

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

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug 215862] clang-15 fails ppc64 BE kernel build - ld.lld: error: undefined symbol: .early_setup
  2022-04-18 14:12 [Bug 215862] New: clang-14 fails 5.18-rc3 ppc64 BE kernel build - <unknown>:0: error: expected relocatable expression bugzilla-daemon
                   ` (4 preceding siblings ...)
  2023-07-31 10:22 ` bugzilla-daemon
@ 2023-07-31 10:23 ` bugzilla-daemon
  5 siblings, 0 replies; 7+ messages in thread
From: bugzilla-daemon @ 2023-07-31 10:23 UTC (permalink / raw)
  To: linuxppc-dev

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

--- Comment #6 from Christophe Leroy (christophe.leroy@csgroup.eu) ---
I'm out of office until August 1st.

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

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2023-07-31 10:24 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-18 14:12 [Bug 215862] New: clang-14 fails 5.18-rc3 ppc64 BE kernel build - <unknown>:0: error: expected relocatable expression bugzilla-daemon
2022-11-15 18:48 ` [Bug 215862] clang-15 fails ppc64 BE kernel build - ld.lld: error: undefined symbol: .early_setup bugzilla-daemon
2022-11-15 18:49 ` bugzilla-daemon
2022-11-15 20:08 ` bugzilla-daemon
2022-11-15 23:11 ` bugzilla-daemon
2023-07-31 10:22 ` bugzilla-daemon
2023-07-31 10:23 ` bugzilla-daemon

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.