*/*: Cleanup use of CONFIGURE_TARGET Since 4d1f8f16c1c9 replacing amd64 with x86_64 is not necessary.23544948cb
Port details
lang/gcc14 14.2.0_7
GNU Compiler Collection 14
Port info
- Maintainer
- salvadore@FreeBSD.org
- Packages
- latest: 14.2.0_7
- Upstream
- up to date
- Last update
- to 14.2.0_7 · 23544948cb
- Quarterly
- 2026Q4: 14.2.0_7
- WWW
- https://gcc.gnu.org
- Links
- cgit · VuXML
Install
- Package
# pkg install gcc14installs 14.2.0_7 fromlatest; fromquarterly(2026Q4) 14.2.0_7- Port
# cd /usr/ports/lang/gcc14 && make install clean# make -C /usr/ports/lang/gcc14 config # change options first
- Size
- 94 MiB download · 359 MiB installed
- Depends on
- devel/binutils 2.44,1, math/gmp 6.3.0, math/mpc 1.4.1, math/mpfr 4.2.2,1, print/indexinfo 0.3.1_1
- License
- GPLv3 and GPLv3RLE
- Options
- 2 of 4 on in the package: MULTILIB STANDARD_BOOTSTRAP
Show the 2 options that are off
GRAPHITE LTO_BOOTSTRAP - pkg-message
Shown after installing
To ensure binaries built with this toolchain find appropriate versions of the necessary run-time libraries, you may want to link using -Wl,-rpath=/usr/local/lib/gcc14 For ports leveraging USE_GCC, USES=compiler, or USES=fortran this happens transparently.
Packages by version and architecture
latest
| FreeBSD version | amd64 | aarch64 | i386 |
|---|---|---|---|
| FreeBSD 16 | 14.2.0_7 | 14.2.0_7 | – |
| FreeBSD 15 | 14.2.0_7 | 14.2.0_7 | – |
| FreeBSD 14 | 14.2.0_7 | 14.2.0_7 | 14.2.0_7 |
quarterly (2026Q4)
| FreeBSD version | amd64 | aarch64 | i386 |
|---|---|---|---|
| FreeBSD 15 | 14.2.0_7 | 14.2.0_7 | – |
| FreeBSD 14 | 14.2.0_7 | 14.2.0_7 | 14.2.0_7 |
version as in the ports tree (latest) or the most common one (quarterly) · different version · ✗ not built · – no packages for this platform. Package sets that have not been rebuilt for 60 days are left out.
Unaddressed and VuXML only (0)
No unaddressed CVE and nothing reported by
pkg audit for the packaged version 14.2.0_7.Not counted (1)
CVEs that match this port only loosely: inherited from the whole project, or with versions that cannot be compared. What does this mean?
1 with versions that cannot be compared
The CVE record gives dates or the port uses snapshot versions (or the other way round), so the version of this port cannot be placed in the affected range.
| CVE | CVSS | Published | Description |
|---|---|---|---|
| CVE-2023-4039 | 4.8 | 2023-09-13 | **DISPUTED**A failure in the -fstack-protector feature in GCC-based toolchains that target AArch64 allows an attacker to exploit an existing buffer overflow in dynamic… |
Fixed (0)
No VuXML entries for this package.
Problem reports (3) · open in Bugzilla, most recently changed first
| PR | Summary | Status | Changed |
|---|---|---|---|
| 296997 | maintainer-feedback+ lang/gcc14: libgcc_s.so.1 on FreeBSD 15.1 aarch64 is missing the GCC_4.6.0 symbol version | Open | 2026-09-29 |
| 285160 | maintainer-feedback+ lang/gcc14: fix possible segfaults in libgccjit garbage collection | In Progress | 2026-03-17 |
| 286458 | maintainer-feedback+ lang/gcc14 -- Fortran-compiled binaries die of SIGBUS | Open | 2025-07-24 |
Commits (17)
lang/gcc1?: further improvements for powerpc64* 1. Backport of e8385ea3b57862ce6c6ace5e6973b96cf238f4b6. Fixes libgcc on powerpc64*, found with octave crashing. 2. Merge https://gcc.gnu.org/pipermail/gcc-patches/2026-July/723975.html, not yet upstreamed, but allows to build all the remaining failing ports due to ld128 switch for powerpc64le. Differential Revision: https://reviews.freebsd.org/D58116cd7c885d05
lang/gcc1[2-6]: actually fix build on powerpc64le/CURRENT Without this patch, gcc attempts to enable support for IBM long double, when IEEE long double is enabled, which is wrong. Allow to only specify IEEE long double. The whole patchset for IEEE long double on FreeBSD/powerpc64le is being upstreamed at https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126012.70f1f8cf77
lang/gcc1[2-6]: add necessary contents to patch-gcc_configure 1. For gcc14, restore the lost content. 2. For others, add powerpc64le-related content. Pointy hat: me35a12271a3
lang/gcc1?: fix runtime on powerpc64le/CURRENT Since powerpc64le recently switched to 128-bit long double, use them to generate proper binaries. Patches are necessary to allow use of --with-long-double-format=ieee on FreeBSD (to be upstreamed).c02c1227e2
lang/gcc14: Build jit only when bootstrap is on Building jit without bootstrap does not work, so we add jit to the enabled languages only if a bootstrap option has been selected. Indeed, building GCC on FreeBSD with FreeBSD's default compiler (clang) and without bootstraping it is not fully supported. See e-mail https://lists.freebsd.org/archives/dev-commits-ports-main/2025-August/160223.html for more details. Reported by: vishwin0683db4d8c
lang/gcc14: Add comment to existing patch Add a comment to files/patch-libgcc_unwind.inc to remember when it will get obsolete, i.e. once all supported FreeBSD releases include commit 22e564c74eb20e14bd93fd9fdde20e38a29cfcf1. PR: 285711ef502dd956
lang/gcc14: Fix SIGBUS depending on CPUTYPE Compiling GCC with some CPUTYPE values (e.g. broadwell) result in breaking some applications (e.g. math/octave, cad/freecad), sending a SIGBUS. The issue is due to GCC generating instructions that require variables to be aligned in memory on certain CPUs. Our libthr does not have the required alignment so these CPUs fail to execute these instructions. The patch disables the generation of such instructions. PR: 285711 Reported by: cracauer Tested by: cracauer, jbo1c41fd97c7
gcc*: properly define USE_LDCONFIG32 for multilib13904d7107
lang/gcc14: Fix linking with libisl.so Fix linking with libisl.so depending on GRAPHITE option, which is now implemented through options helpers. Co-authored-by: Gerald Pfeifer <gerald@FreeBSD.org> PR: 276070 Reported by:Ivan Rozhuk <rozhuk.im@gmail.com>930be0aa27
lang/gcc14: Fix segfaults for static binaries Fix segmentation faults caused by -static flag into compiled binaries. Email thread: https://lists.freebsd.org/archives/freebsd-hackers/2025-January/004236.html Upstream bug report: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118685 PR: 284441 Reported by: kargl17c3f4ae67
lang/gcc14: standard bootstrap also needed on arm Same crash as on powerpc. Approved by: portmgr (build fix blanket) MFH: 2025Q1aaa315e25e
lang/gcc14: fix build on powerpc Bootstrap is required on powerpc as well: /usr/include/c++/v1/locale:288:32: error: attempt to use a poisoned identifier4a64cb4161
lang/gcc*: disable building of libssp For today's FreeBSD 14 and earlier, libssp is a nop because nothing on FreeBSD will be referencing these headers or lib. On FreeBSD 15, it actively breaks building with FORTIFY_SOURCE enabled and it's not worth trying to make it work- the potential for GCC improvements comes from the __builtin_object_size enhancement, not from these headers. PR: 280265 Approved by: salvadore (maintainer)17024a6f82
lang/gcc14: Add jit language The jit language was missing by accident. Restore it. PR: 281091 Reported by: ashishd46106eb4b
lang/gcc14: Update to 14.2.0 Changes: https://gcc.gnu.org/gcc-14/changes.html#14.2b175cabc52
lang/gcc14: Add port GCC, the GNU Compiler Collection, supports a number of languages. This port installs the C, C++, and Fortran front ends as gcc14, g++14, and gfortran14, respectively. This is the first release from the GCC 14 series. It largely is a copy of lang/gcc14-devel, with release-specific modifications from lang/gcc13. Common issues that could happen when porting code to GCC 14: https://gcc.gnu.org/gcc-14/porting_to.html Changes: https://gcc.gnu.org/gcc-14/changes.html4700c3f178