https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124586
Bug ID: 124586
Summary: [16 Regression?] aarch64-netbsd native build misses
driver-aarch64.o for host_detect_local_cpu
Product: gcc
Version: 16.0
Status: UNCONFIRMED
Keywords: build
Severity: normal
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: albert at tugraz dot at
Target Milestone: ---
Native aarch64-netbsd builds fail during stage1 link because gcc/config.host
does not include aarch64*-*-netbsd* in the host pattern that selects
driver-aarch64.o.
On cfarm428 (NetBSD 10.1 aarch64), this shows up as an undefined reference to
host_detect_local_cpu while linking the driver.
This was discovered while testing PR124512, but Andre Vehreschild confirmed on
2026-03-20 that this is a separate issue from the libgfortran shmem CAF build
failure tracked there.
Current config.host pattern:
aarch64*-*-freebsd* | aarch64*-*-linux* | aarch64*-*-fuchsia* |
aarch64*-*-darwin*
Expected fix:
also include aarch64*-*-netbsd* so that host_extra_gcc_objs=driver-aarch64.o
is set for native NetBSD/aarch64 hosts, matching the existing arm*-*-netbsd*
handling.
A one-line patch is available and will be attached.