Skip to content

console has some weird offset when built with clang #839

@illwieckz

Description

@illwieckz
Compiler Version Clang System Architecture Build Status Linux,C14+,Rel
GCC 9.5.0 🐧️ Linux, Ubuntu 🟫️ amd64 🟢️ Rel ✔️ fine
GCC 10.4.0 🐧️ Linux, Ubuntu 🟫️ amd64 🟢️ Rel ✔️ fine
GCC 11.3.0 🐧️ Linux, Ubuntu 🟫️ amd64 🟢️ Rel ✔️ fine
GCC 12.2.0 🐧️ Linux, Ubuntu 🟫️ amd64 🟢️ Rel ✔️ fine
ICC 2021.9.0 🐧️ Linux, Ubuntu 🟫️ amd64 🟢️ Rel ✔️ fine
Clang 11.1.0 11.1.0 🐧️ Linux, Ubuntu 🟫️ amd64 🟢️ Rel ✔️ fine
Clang 13.0.1 13.0.1 🐧️ Linux, Ubuntu 🟪️ i686 🟢️ Rel ✔️ fine
Clang 13.0.1 13.0.1 🐧️ Linux, Ubuntu 🟫️ amd64 🟢️ Rel ✔️ fine
Clang 13.0.1 13.0.1 🐧️ Linux, Debian 🟦️ arm64 🟢️ Rel ✔️ fine
AOCC 4.0.0 14.0.6 🐧️ Linux, Ubuntu 🟫️ amd64 🟢️ Rel ❌️ bug yes
Clang 14.0.6 14.0.6 🐧️ Linux, Ubuntu 🟪️ i686 🟢️ Rel ❌️ bug yes
Clang 14.0.6 14.0.6 🐧️ Linux, Ubuntu 🟫️ amd64 🟢️ Rel ❌️ bug yes
Clang 14.0.6 14.0.6 🐧️ Linux, Debian 🟦️ arm64 🟢️ Rel ❌️ bug yes
Clang 15.0.7 15.0.7 🐧️ Linux, Ubuntu 🟪️ i686 🟢️ Rel ❌️ bug yes
Clang 15.0.7 15.0.7 🐧️ Linux, Ubuntu 🟫️ amd64 🟢️ Rel ❌️ bug yes
Clang 15.0.7 15.0.7 🐧️ Linux, Debian 🟦️ arm64 🟢️ Rel ❌️ bug yes
ARM Clang 23.04 b21 16.0.0 🐧️ Linux, Debian 🟦️ arm64 🟢️ Rel ❌️ bug yes
ICX 2023.1.0 16.0.0 🐧️ Linux, Ubuntu 🟪️ i686 🟢️ Rel ❌️ bug yes
ICX 2023.1.0 16.0.0 🐧️ Linux, Ubuntu 🟫️ amd64 🟢️ Rel ❌️ bug yes
Zig 0.11.0 16.0.1 🐧️ Linux, Ubuntu 🟫️ amd64 🟢️ Rel ❌️ bug yes
Clang 16.0.4 16.0.4 🐧️ Linux, Ubuntu 🟪️ i686 🟢️ Rel ❌️ bug yes
Clang 16.0.4 16.0.4 🐧️ Linux, Ubuntu 🟫️ amd64 🟢️ Rel ❌️ bug yes
Clang 16.0.4 16.0.4 🐧️ Linux, Debian 🟦️ arm64 🟢️ Rel ❌️ bug yes
Clang 13.0.1 13.0.1 🐧️ Linux, Ubuntu 🟫️ amd64 🟠️ Deb ✔️ fine
AOCC 4.0.0 14.0.6 🐧️ Linux, Ubuntu 🟫️ amd64 🟠️ Deb ✔️ fine
Clang 14.0.6 14.0.6 🐧️ Linux, Ubuntu 🟫️ amd64 🟠️ Deb ✔️ fine
Clang 15.0.7 15.0.7 🐧️ Linux, Ubuntu 🟫️ amd64 🟠️ Deb ✔️ fine
ICX 2023.1.0 16.0.0 🐧️ Linux, Ubuntu 🟫️ amd64 🟠️ Deb ✔️ fine
Clang 16.0.4 16.0.4 🐧️ Linux, Ubuntu 🟫️ amd64 🟠️ Deb ✔️ fine
Apple Clang 10.0.1 10.0.1 🍏️ macOS 🟫️ amd64 🟢️ Rel ✔️ fine
Apple Clang 14.0.3 14.0.3 🍏️ macOS 🟫️ amd64 ? ✔️ fine
Clang 16.0.2 16.0.2 🪟️ Windows, MSYS2 🟫️ amd64 ? ✔️ fine

Quote from IRC:

Ishq: Hm
Ishq: We have a regression on master
Ishq: console is always one tab away

I reproduce the bug myself with clang but not with GCC.

GCC 12.2.0, Linux:

console offset clang

clang 15.0.7, Linux:

console offset clang

See how the /quit command in the console input line is displayed far on the right.

I also noticed this some days ago but haven't found time to report it.

Maybe I had seen it on macOS when releasing 0.54 but did not considered a release blocker, then forgot about it, one may try but that's very likely macOS release build is or will be affected since we use the stock clang-based Apple compiler on macOS.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions