#1136968 clang-22 - Need multi-arch support

Package:
clang-22
Source:
clang-22
Description:
C, C++ and Objective-C compiler
Submitter:
Bastian Blank
Date:
2026-05-17 19:19:02 UTC
Severity:
normal
#1136968#5
Date:
2026-05-17 19:17:10 UTC
From:
To:
The kernel team thinks about switching the Linux kernel over to building
with clang.  For the way this works we really need multi-arch support
for the compiler (and also llvm-* and lld-* packages), aka those packages
needs to be marked as Multi-Arch: foreign, so we always get a usable one.

Currently at least clang-* is not marked this way.  Also it seems this
package is currently used for two purposes:
- Provide the programs.  Those need to be m-a:foreign.
- Provide the dependencies to pull in development stuff for c, c++ and
  so standard libs.  Those need to be m-a:same.

gcc did this by introducing "gcc-for-host" packages, which via
indirection can be used via build-depends.

Bastian