https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123632
Bug ID: 123632
Summary: libphobos doesn't build on FreeBSD 15.0
Product: gcc
Version: 16.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: d
Assignee: ibuclaw at gdcproject dot org
Reporter: ro at gcc dot gnu.org
Target Milestone: ---
Target: amd64-pc-freebsd15.0
When I tried to build libphobos on FreeBSD 15.0, I initially failed:
libphobos/libdruntime/core/sys/
freebsd/config.d:24:6: error: static assert: "Unsupported version of FreeBSD"
24 | else static assert(false, "Unsupported version of FreeBSD");
| ^
This is already fixed in dmd master:
commit 063ee15f6fa93c270f475bffd646b58e61e1294d
Author: Jonathan M Davis <[email protected]>
Date: Mon Dec 15 01:06:07 2025 -0700
fix #22239: Add the FreeBSD_15 version identifier. (#22240)
I've cherry-picked the druntime/src/core/sys/freebsd/config.d part from there
to get further along. The compiler/src/dmd/target.d part is already cared for
by freebsd_d_os_builtins and thus not needed.
This allowed me to get further along, only to run into another issue to be
reported at once.