NetBSD Problem Report #60121
From www@netbsd.org Mon Mar 23 23:34:35 2026
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256
client-signature RSA-PSS (2048 bits) client-digest SHA256)
(Client CN "mail.netbsd.org", Issuer "R12" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id 585CC1A9239
for <gnats-bugs@gnats.NetBSD.org>; Mon, 23 Mar 2026 23:34:35 +0000 (UTC)
Message-Id: <20260323233434.36AD81A923D@mollari.NetBSD.org>
Date: Mon, 23 Mar 2026 23:34:34 +0000 (UTC)
From: opensauce04@gmail.com
Reply-To: opensauce04@gmail.com
To: gnats-bugs@NetBSD.org
Subject: gcc12: Build fails on modern ARM64 macOS with error ‘_Float16’ does not name a type
X-Send-Pr-Version: www-1.0
X-From4GNATS: "opensauce04@gmail.com via gnats" <gnats-admin@NetBSD.org>
>Number: 60121
>Category: pkg
>Synopsis: gcc12: Build fails on modern ARM64 macOS with error ‘_Float16’ does not name a type
>Confidential: no
>Severity: critical
>Priority: high
>Responsible: macos-pkg-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Mar 23 23:35:00 +0000 2026
>Last-Modified: Sat Apr 11 13:22:03 +0000 2026
>Originator: Daniel
>Release: 2025Q4
>Organization:
>Environment:
Darwin danmbp 25.4.0 Darwin Kernel Version 25.4.0: Thu Mar 5 22:05:44 PST 2026; root:xnu-12377.101.14~18/RELEASE_ARM64_T8142 arm64
>Description:
GCC 12 fails to compile on macOS with the error described above. This is very problematic as GCC 12 is required whenever any package in any dependency tree requires GCC in spite of any attempt to increase the minimum, presumably due to bootstrapping or something else, meaning that a non-insignificant portion of the ports available in pkgsrc will fail to build on affected macOS versions due to some dependency interacting with GCC.
I am experiencing this issue on macOS 26, however I also found a GitHub issue describing the issue occurring on macOS 15. The repository this issue was filed under was a fork of GCC 12 which seems to have managed to address the issue in its most recent commit. The aforementioned issue can be found here: https://github.com/iains/gcc-12-branch/issues/24
Notably, according to the above issue, the problem *only* seems to affect ARM64 Mac devices, with Intel Macs being seemingly unaffected.
>How-To-Repeat:
Attempt to build gcc12 from pkgsrc on either macOS 26 or 15 with an up-to-date Xcode install (Xcode 16 or 26).
>Fix:
This commit as a patch may or may not address the issue?
https://github.com/iains/gcc-12-branch/commit/99533d94172ed7a24c0e54c4ea97e6ae2260409e
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: pkg-manager->darwin-pkg-people
Responsible-Changed-By: wiz@NetBSD.org
Responsible-Changed-When: Tue, 24 Mar 2026 08:22:25 +0000
Responsible-Changed-Why:
macOS issue
From: Thomas Klausner <wiz@netbsd.org>
To: NetBSD bugtracking <gnats-bugs@netbsd.org>
Cc:
Subject: Re: pkg/60121: gcc12: Build fails on modern ARM64 =?utf-8?Q?macOS?=
=?utf-8?B?IHdpdGggZXJyb3Ig4oCYX0Zsb2F0MTbigJk=?= does not name a type
Date: Tue, 24 Mar 2026 09:25:45 +0100
As a workaround - gcc12 seems to build fine in
https://reports.pkgci.org/Darwin/14.5/arm64/20260320.1921/meta/report.html
(IIUC on a slightly older macOS)
so you could use the binary package from there, see
https://pkgsrc.smartos.org/install-on-macos/
Thomas
From: Jonathan Perkin <jperkin@pkgsrc.org>
To: gnats-bugs@netbsd.org
Cc: darwin-pkg-people@netbsd.org, gnats-admin@netbsd.org,
pkgsrc-bugs@netbsd.org, opensauce04@gmail.com
Subject: Re: pkg/60121: gcc12: Build =?utf-8?Q?fail?=
=?utf-8?Q?s_on_modern_ARM64_macOS_with_error_=E2=80=98=5FFloat16?=
=?utf-8?B?4oCZ?= does not name a type
Date: Tue, 24 Mar 2026 08:38:07 +0000
* On 2026-03-24 at 08:30 GMT, Thomas Klausner via gnats wrote:
> As a workaround - gcc12 seems to build fine in
> https://reports.pkgci.org/Darwin/14.5/arm64/20260320.1921/meta/report.html
> (IIUC on a slightly older macOS)
> so you could use the binary package from there, see
> https://pkgsrc.smartos.org/install-on-macos/
FWIW I use my own GCC packages for those builds because I disagree
strongly with the way the pkgsrc packages are done. My builds use these
two packages:
https://github.com/TritonDataCenter/pkgsrc-extra/tree/main/gcc14-macos
https://github.com/TritonDataCenter/pkgsrc-extra/tree/main/gcc14-macos-libs
to ensure that the package is fully Darwin compatible, does not have any
unnecessary patches for other OS applied to it, and also so that there
is proper -libs package support for all Fortran packages, thus avoiding
the huge gcc runtime dependency.
--
Jonathan Perkin pkgsrc.smartos.org
Open Source Complete Cloud www.tritondatacenter.com
Responsible-Changed-From-To: darwin-pkg-people->macos-pkg-people
Responsible-Changed-By: wiz@NetBSD.org
Responsible-Changed-When: Sat, 11 Apr 2026 13:22:03 +0000
Responsible-Changed-Why:
Same role account, different name
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.