Skip to content

static calls on x86_64 are broken with clang conditional tail calls #1774

@ernsteiswuerfel

Description

@ernsteiswuerfel

Got another seemingly clang problem on another box of mine. Built with clang-15.0.6 the 6.1.1 kernel fails to boot on the machine, stuck at showing the "Loading Linux 6.1.1 ..." message. I don't get any screen/console output after that, it's also too early for netconsole. So unfortunately I can't provide more details.

The same kernel + config built with GCC 12 just boots fine. I'll attach the 2 configs and the dmesg from a successfull GCC 12 kernel boot.

Some data about the machine:

$ inxi -bZ
System:
  Host: outsider Kernel: 6.1.1-bdver2 arch: x86_64 bits: 64 Desktop: MATE
    v: 1.26.0 Distro: Gentoo Base System release 2.9
Machine:
  Type: Desktop System: Gigabyte product: N/A v: N/A
    serial: <superuser required>
  Mobo: Gigabyte model: 970-GAMING v: x.x serial: <superuser required>
    UEFI: American Megatrends v: F2 date: 04/06/2016
CPU:
  Info: 8-core AMD FX-8370 [MT MCP] speed (MHz): avg: 1491 min/max: 1400/4000
Graphics:
  Device-1: AMD Turks XT [Radeon HD 6670/7670] driver: radeon v: kernel
  Display: x11 server: X.Org v: 21.1.4 driver: X: loaded: radeon
    unloaded: fbdev,modesetting gpu: radeon resolution: 1920x1080~60Hz
  OpenGL: renderer: AMD TURKS (DRM 2.50.0 / 6.1.1-bdver2 LLVM 15.0.6)
    v: 3.3 Mesa 22.2.3
Network:
  Device-1: Qualcomm Atheros Killer E2400 Gigabit Ethernet driver: alx

config_611_clang.txt
config_611_gcc.txt
dmesg_611_gcc.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    [ARCH] x86_64This bug impacts ARCH=x86_64[BUG] linuxA bug that should be fixed in the mainline kernel.[FIXED][LINUX] 6.3This bug was fixed in Linux 6.3boot failureThis issue results in a failure to boot

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions