Hi Matthias,

On Fri, Feb 14, 2025 at 04:26:02PM +0100, Matthias Klose wrote:
> I don't want to apply this patch for trixie.  Having these as and ld
> symlinks in the gcc_lib_dir had other issues.  The main reason for that

Fair enough. However, we need some mechanism to redirect gcc into using
the "right" as and ld, which is not /usr/bin/{as,ld}. You already ruled
out --with-as earlier. This is particularly important for using "reverse
cross compilers" to alleviate the address space problem on 32bit. It
would help a lot if you could remember what those issues were.

> failure is installing the native arm64 compiler on amd64.  Is there a way to
> discourage installation of the native arm64 compiler in favor of the arm64
> cross compiler?

It already is discouraged. gcc-VER-TRIPLET is marked M-A:foreign.
Therefore apt prefers the native package over the foreign one. sbuild
now configures APT::BarbarianArchitectures to fully forbid the foreign
native compiler. To be really strict, we could add a dependency on
"native-architecture" to the native toolchains. However, that bears a
risk of inducing temporary installability issues when it is uploaded.

Helmut

Reply via email to