| Port details |
- gcc15 GNU Compiler Collection 15
- 15.2.0_4 lang
=0 15.2.0_3Version of this port present on the latest quarterly branch. - Maintainer: salvadore@FreeBSD.org
 - Port Added: 2025-05-03 09:54:54
- Last Update: 2026-08-09 10:44:54
- Commit Hash: cd7c885
- License: GPLv3 GPLv3RLE
- WWW:
- https://gcc.gnu.org
- Description:
- GCC, the GNU Compiler Collection, supports a number of languages.
This port installs the C, C++, and Fortran front ends as gcc15, g++15,
and gfortran15, respectively.
¦ ¦ ¦ ¦ 
- Manual pages:
-
- pkg-plist: as obtained via:
make generate-plist - USE_RC_SUBR (Service Scripts)
- no SUBR information found for this port
- Dependency lines:
-
- Conflicts:
- CONFLICTS:
- To install the port:
- cd /usr/ports/lang/gcc15/ && make install clean
- To add the package, run one of these commands:
- pkg install lang/gcc15
- pkg install gcc15
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.- PKGNAME: gcc15
- Flavors: there is no flavor information for this port.
- ONLY_FOR_ARCHS: aarch64 amd64 armv6 armv7 i386 powerpc powerpc64 powerpc64le
- distinfo:
- TIMESTAMP = 1755075794
SHA256 (gcc-15.2.0.tar.xz) = 438fd996826b0c82485a29da03a72d71d6e3541a83ec702df4271f6fe025d24e
SIZE (gcc-15.2.0.tar.xz) = 101056276
Packages (timestamps in pop-ups are UTC):
- Dependencies
- NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
- Build dependencies:
-
- as : devel/binutils
- gmake>=4.4.1 : devel/gmake
- makeinfo : print/texinfo
- as : devel/binutils
- perl5>=5.42.r<5.43 : lang/perl5.42
- Runtime dependencies:
-
- as : devel/binutils
- indexinfo : print/indexinfo
- Library dependencies:
-
- libgmp.so : math/gmp
- libmpfr.so : math/mpfr
- libmpc.so : math/mpc
- There are no ports dependent upon this port
Configuration Options:
- ===> The following configuration options are available for gcc15-15.2.0_4:
GRAPHITE=off: Support for Graphite loop optimizations
MULTILIB=on: Build support for 32-bit and 64-bit targets
====> Options available for the radio BOOTSTRAP: you can only select none or one of them
LTO_BOOTSTRAP=off: Build using a full LTO bootstrap
STANDARD_BOOTSTRAP=on: Build using a full bootstrap without LTO
===> Use 'make config' to modify these settings
- Options name:
- lang_gcc15
- USES:
- compiler:c++11-lang cpe gmake iconv libtool makeinfo perl5 tar:xz
- FreshPorts was unable to extract/find any pkg message
- Master Sites:
|
| Commit History - (may be incomplete: for full details, see links to repositories near top of page) |
| Commit | Credits | Log message |
15.2.0_4 09 Aug 2026 10:44:54
    |
Piotr Kubaj (pkubaj)  |
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/D58116 |
15.2.0_3 27 Jun 2026 20:55:24
    |
Piotr Kubaj (pkubaj)  |
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. |
15.2.0_3 21 Jun 2026 20:48:49
    |
Piotr Kubaj (pkubaj)  |
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: me |
15.2.0_2 21 Jun 2026 20:05:23
    |
Piotr Kubaj (pkubaj)  |
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). |
15.2.0_1 10 Sep 2025 10:09:59
    |
Lorenzo Salvadore (salvadore)  |
lang/gcc15: 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: vishwin |
15.2.0_1 13 Aug 2025 15:33:15
    |
Piotr Kubaj (pkubaj)  |
lang/gcc1{5,6}{,-devel}: drop USE_GCC on powerpc64*
Builds fine. |
15.2.0 13 Aug 2025 11:21:44
    |
Lorenzo Salvadore (salvadore)  |
lang/gcc15: Update to 15.2.0
Changes: https://gcc.gnu.org/gcc-15/changes.html#15.2 |
15.1.0_1 05 Jun 2025 13:54:07
    |
Lorenzo Salvadore (salvadore)  |
lang/gcc15: Unbreak on aarch64
FreeBSD defines ElfW(x) to translate Linux's convention to FreeBSD's convention.
GCC defines ElfW to convert its convention to FreeBSD's convention. This patch
removes the conversion defined by GCC so that the FreeBSD conversion only is
applied.
Co-authored-by: Mark Millard <marklmi26-fbsd@yahoo.com>
PR: 282797
Reported by: John F. Carr <jfc@mit.edu>
Email Thread:
https://lists.freebsd.org/archives/freebsd-toolchain/2025-May/002282.html
lang/gcc15: |
15.1.0 03 May 2025 09:46:26
    |
Lorenzo Salvadore (salvadore)  |
lang/gcc15: Add port
GCC, the GNU Compiler Collection, supports a number of languages.
This port installs the C, C++, and Fortran front ends as gcc15,
g++15, and gfortran15, respectively.
This is the first release from the GCC 15 series.
It largely is a copy of lang/gcc15-devel, with release-specific
modifications from lang/gcc14.
Common issues that could happen when porting code to GCC 15:
https://gcc.gnu.org/gcc-15/porting_to.html
Changes: https://gcc.gnu.org/gcc-15/changes.html
Note: files/patch-libgcc_unwind.inc will get obsolete once all supported
FreeBSD releases include commit
22e564c74eb20e14bd93fd9fdde20e38a29cfcf1. [1]
PR: 285711 [1] |