[Bug 278879] LIB32 incompatible with gcc on aarch64

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 09 May 2024 17:29:55 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=278879

            Bug ID: 278879
           Summary: LIB32 incompatible with gcc on aarch64
           Product: Base System
           Version: CURRENT
          Hardware: arm64
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: brooks@FreeBSD.org

We can't build LIB32 with the aarch64-gcc13 toolchain because the compiler
doesn't support 32-bit arm via -m32 the way the amd64 and powerpc64* compilers
do.

This is due to a mix of GCC's architectural choice to not support multiple
architectures in a single build and Arm's decision to divorce the aarch64
backend from prior targets.

The easiest solution seems likely to be to add a toolchain wrapper port that
installs both aarch64-gcc13 and armv7-gcc13 (or armv6 I guess) and has compiler
wrappers that dispatch based on the presence of -m32 in the argument list.

Another alternative is to add a mechanism to specify a per-compat-target set of
tools and have the compat mechanism use it, but that's going to be a bunch of
work and complexity to support a single target with a non-default compiler.

-- 
You are receiving this mail because:
You are the assignee for the bug.