Port details
gcc16 GNU Compiler Collection 16
16.2.0 lang Σ=0 search for ports that depend on this port Find issues related to this port Report an issue related to this port View this port on Repology. pkg-fallout 16.1.0_4Version of this port present on the latest quarterly branch.
Maintainer: salvadore@FreeBSD.org search for ports maintained by this maintainer
Port Added: 2026-05-15 13:27:28
Last Update: 2026-12-04 14:08:18
Commit Hash: 8eaf224
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 gcc16, g++16, and gfortran16, respectively.
Homepage    cgit ¦ Codeberg ¦ GitHub ¦ GitLab ¦ SVNWeb - no subversion history for this port
Manual pages: #
pkg-plist: as obtained via: make generate-plist #
Expand this list (45 items)
Collapse this list.
  1. @ldconfig
  2. /usr/local/share/licenses/gcc16-16.2.0/catalog.mk
  3. /usr/local/share/licenses/gcc16-16.2.0/LICENSE
  4. /usr/local/share/licenses/gcc16-16.2.0/GPLv3
  5. /usr/local/share/licenses/gcc16-16.2.0/GPLv3RLE
  6. share/sbom/pc/gcc16.pc
  7. bin/x86_64-portbld-freebsd15.1-c++16
  8. bin/x86_64-portbld-freebsd15.1-g++16
  9. bin/x86_64-portbld-freebsd15.1-gcc16
  10. bin/x86_64-portbld-freebsd15.1-gcc-16.2.0
  11. bin/x86_64-portbld-freebsd15.1-gcc-ar16
  12. bin/x86_64-portbld-freebsd15.1-gcc-nm16
  13. bin/x86_64-portbld-freebsd15.1-gcc-ranlib16
  14. bin/x86_64-portbld-freebsd15.1-gfortran16
  15. bin/c++16
  16. bin/cpp16
  17. bin/g++16
  18. bin/gcc16
  19. bin/gcc-ar16
  20. bin/gcc-nm16
  21. bin/gcc-ranlib16
  22. bin/gcov16
  23. bin/gcov-dump16
  24. bin/gcov-tool16
  25. bin/gfortran16
  26. bin/lto-dump16
  27. include/gcc16/ISO_Fortran_binding.h
  28. share/man/man1/cpp16.1.gz
  29. share/man/man1/g++16.1.gz
  30. share/man/man1/gcc16.1.gz
  31. share/man/man1/gcov16.1.gz
  32. share/man/man1/gcov-dump16.1.gz
  33. share/man/man1/gcov-tool16.1.gz
  34. share/man/man1/gfortran16.1.gz
  35. share/man/man1/lto-dump16.1.gz
  36. share/gcc-16.2.0/python/libstdcxx/__init__.py
  37. share/gcc-16.2.0/python/libstdcxx/v6/__init__.py
  38. share/gcc-16.2.0/python/libstdcxx/v6/printers.py
  39. share/gcc-16.2.0/python/libstdcxx/v6/xmethods.py
  40. @postexec if type ccache-update-links >/dev/null 2>&1; then ccache-update-links -v; fi
  41. @postunexec if type ccache-update-links >/dev/null 2>&1; then ccache-update-links -v; fi
  42. @comment Insert PLIST.lib here
  43. @owner
  44. @group
  45. @mode
Collapse this list.
USE_RC_SUBR (Service Scripts)
  • no SUBR information found for this port
Dependency lines:
  • gcc16>0:lang/gcc16
Conflicts: #
CONFLICTS:
To install the port: #
cd /usr/ports/lang/gcc16/ && make install clean
To add the package, run one of these commands:
  • pkg install lang/gcc16
  • pkg install gcc16
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.
PKGNAME: gcc16
Flavors: #
there is no flavor information for this port.
ONLY_FOR_ARCHS: aarch64 amd64 armv6 armv7 i386 powerpc powerpc64 powerpc64le
distinfo: #
TIMESTAMP = 1796189955 SHA256 (gcc-16.2.0.tar.xz) = e6738e29597f733270731aa90600f37ffdc045079dfc27ec7e8192cc81085c3e SIZE (gcc-16.2.0.tar.xz) = 107200820

Packages (timestamps in pop-ups are UTC): #
gcc16
ABIaarch64amd64armv6armv7i386
FreeBSD:14:latest16.1.0_316.1.0_4--16.1.0_4
FreeBSD:14:quarterly16.1.0_316.1.0_4--16.1.0_4
FreeBSD:15:latest16.1.0_416.1.0_4n/a-n/a
FreeBSD:15:quarterly16.1.0_316.1.0_4n/a-n/a
FreeBSD:16:latest CURRENT16.1.0_316.1.0_4n/a-n/a
Dependencies #
NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
Build dependencies: #
  1. as : devel/binutils
  2. gmake>=4.4.1 : devel/gmake
  3. makeinfo : print/texinfo
  4. as : devel/binutils
  5. perl5>=5.42.r<5.43 : lang/perl5.42
Runtime dependencies: #
  1. as : devel/binutils
  2. indexinfo : print/indexinfo
Library dependencies: #
  1. libgmp.so : math/gmp
  2. libmpfr.so : math/mpfr
  3. libmpc.so : math/mpc
There are no ports dependent upon this port #

Configuration Options: #
===> The following configuration options are available for gcc16-16.2.0: GRAPHITE=off: Support for Graphite loop optimizations ====> 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_gcc16
USES: #
compiler:c++11-lang cpe gmake iconv libtool makeinfo perl5 tar:xz
pkg-message: #
FreshPorts was unable to extract/find any pkg message
Master Sites: #
Expand this list (8 items)
Collapse this list.
  1. http://ftp.ntua.gr/pub/gnu/gcc/releases/gcc-16.2.0/
  2. http://gcc.gnu.org/pub/gcc/releases/gcc-16.2.0/
  3. http://mirror.koddos.net/gcc/releases/gcc-16.2.0/
  4. https://ftp-stud.hs-esslingen.de/pub/Mirrors/sourceware.org/gcc/releases/gcc-16.2.0/
  5. https://ftp.funet.fi/pub/mirrors/sourceware.org/pub/gcc/releases/gcc-16.2.0/
  6. https://ftp.mpi-inf.mpg.de/pub/gnu/mirror/gcc.gnu.org/pub/gcc/releases/gcc-16.2.0/
  7. https://mirrors.kernel.org/sourceware/gcc/releases/gcc-16.2.0/
  8. https://mirrorservice.org/sites/sourceware.org/pub/gcc/releases/gcc-16.2.0/
Collapse this list.

Number of commits found: 10 #

Commit History - (may be incomplete: for full details, see links to repositories near top of page)
CommitCreditsLog message
16.2.0
04 Dec 2026 14:08:18
commit hash: 8eaf2247f0b5f430d688bb3d3021d4ae4afaa84ecommit hash: 8eaf2247f0b5f430d688bb3d3021d4ae4afaa84ecommit hash: 8eaf2247f0b5f430d688bb3d3021d4ae4afaa84ecommit hash: 8eaf2247f0b5f430d688bb3d3021d4ae4afaa84e files touched by this commit
Lorenzo Salvadore (salvadore) search for other commits by this committer
Author: Alastair Hogge
lang/gcc16: Update to 16.2.0

Changes: https://gcc.gnu.org/gcc-16/changes.html#16.2

PR:		301400
16.1.0_4
24 Nov 2026 16:06:28
commit hash: a9844c5f4e09f61d7f32547bba99636395fd9341commit hash: a9844c5f4e09f61d7f32547bba99636395fd9341commit hash: a9844c5f4e09f61d7f32547bba99636395fd9341commit hash: a9844c5f4e09f61d7f32547bba99636395fd9341 files touched by this commit
Dag-Erling Smørgrav (des) search for other commits by this committer
various: Bump ports with CPE data
16.1.0_3
26 Oct 2026 16:35:32
commit hash: 23544948cb74a8a0a66b4865ef705d3c5fea27fccommit hash: 23544948cb74a8a0a66b4865ef705d3c5fea27fccommit hash: 23544948cb74a8a0a66b4865ef705d3c5fea27fccommit hash: 23544948cb74a8a0a66b4865ef705d3c5fea27fc files touched by this commit
Tijl Coosemans (tijl) search for other commits by this committer
*/*: Cleanup use of CONFIGURE_TARGET

Since 4d1f8f16c1c9 replacing amd64 with x86_64 is not necessary.
16.1.0_3
22 Aug 2026 22:22:18
commit hash: 19c6e313dc8df082c9888a64c09cd355cc57e6b2commit hash: 19c6e313dc8df082c9888a64c09cd355cc57e6b2commit hash: 19c6e313dc8df082c9888a64c09cd355cc57e6b2commit hash: 19c6e313dc8df082c9888a64c09cd355cc57e6b2 files touched by this commit
Dimitry Andric (dim) search for other commits by this committer
lang/gcc16: fix build after base d08296c7ab0d

After base d08296c7ab0d7bb259bf7b8cdf9ffb819c1929ab ("libc: Implement
qualifier-preserving standard library functions"), lang/gcc16
fails to build with an error like:

  In file included from
/wrkdirs/usr/ports/lang/gcc16/work/.build/gcc/include-fixed/stdio.h:52,
                   from cp-demangle.c:109:
 
/wrkdirs/usr/ports/lang/gcc16/work/gcc-16.1.0/libstdc++-v3/../include/libiberty.h:225:14:
error: expected identifier or '(' before '_Generic'
    225 | extern void *memrchr(const void *, int, size_t);
        |              ^~~~~~~

This is because memrchr is now a macro, similar to the other functions
in <string.h>, and libiberty.h attempts to incorrectly redeclare it.
(Only the first 15 lines of the commit message are shown above View all of this commit message)
16.1.0_3
09 Aug 2026 10:44:54
commit hash: cd7c885d050ff02b68b47559b68be439b631c0c2commit hash: cd7c885d050ff02b68b47559b68be439b631c0c2commit hash: cd7c885d050ff02b68b47559b68be439b631c0c2commit hash: cd7c885d050ff02b68b47559b68be439b631c0c2 files touched by this commit
Piotr Kubaj (pkubaj) search for other commits by this committer
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
16.1.0_2
12 Jul 2026 10:44:44
commit hash: 13e3a42d6eebb30b822e95a16ba09ce14bcb557dcommit hash: 13e3a42d6eebb30b822e95a16ba09ce14bcb557dcommit hash: 13e3a42d6eebb30b822e95a16ba09ce14bcb557dcommit hash: 13e3a42d6eebb30b822e95a16ba09ce14bcb557d files touched by this commit
Lorenzo Salvadore (salvadore) search for other commits by this committer
lang/gcc16: Fix build on arm64

GCC upstream has removed conditional definitions for some constants,
defining them directly with the same values used on Linux. However,
FreeBSD values for the same constants are different. Then revert
upstream commit.

Co-authored-by: Mark Millard <marklmi26-fbsd@yahoo.com>
PR:             294062
Reported by:    Luke Yasuda <jing@jing.rocks>
16.1.0_2
27 Jun 2026 20:55:24
commit hash: 70f1f8cf7762db8fe6648bff3436cc604507d494commit hash: 70f1f8cf7762db8fe6648bff3436cc604507d494commit hash: 70f1f8cf7762db8fe6648bff3436cc604507d494commit hash: 70f1f8cf7762db8fe6648bff3436cc604507d494 files touched by this commit
Piotr Kubaj (pkubaj) search for other commits by this committer
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.
16.1.0_2
21 Jun 2026 20:48:49
commit hash: 35a12271a3ee93d0e2e4fc6a742b927fccc721f9commit hash: 35a12271a3ee93d0e2e4fc6a742b927fccc721f9commit hash: 35a12271a3ee93d0e2e4fc6a742b927fccc721f9commit hash: 35a12271a3ee93d0e2e4fc6a742b927fccc721f9 files touched by this commit
Piotr Kubaj (pkubaj) search for other commits by this committer
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
16.1.0_1
21 Jun 2026 20:05:23
commit hash: c02c1227e2d23dbfdb7a4b32cc29f42847a21cfdcommit hash: c02c1227e2d23dbfdb7a4b32cc29f42847a21cfdcommit hash: c02c1227e2d23dbfdb7a4b32cc29f42847a21cfdcommit hash: c02c1227e2d23dbfdb7a4b32cc29f42847a21cfd files touched by this commit
Piotr Kubaj (pkubaj) search for other commits by this committer
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).
16.1.0
15 May 2026 13:23:13
commit hash: 3c75afef9941e853e08438c3bc576ae1fb33d94ecommit hash: 3c75afef9941e853e08438c3bc576ae1fb33d94ecommit hash: 3c75afef9941e853e08438c3bc576ae1fb33d94ecommit hash: 3c75afef9941e853e08438c3bc576ae1fb33d94e files touched by this commit
Lorenzo Salvadore (salvadore) search for other commits by this committer
lang/gcc16: Add port

GCC, the GNU Compiler Collection, supports a number of languages.
This port installs the C, C++, and Fortran front ends as gcc16,
g++16, and gfortran16, respectively.

This is the first release from the GCC 16 series.
It largely is a copy of lang/gcc16-devel, with release-specific
modifications from lang/gcc15.

Common issues that could happen when porting code to GCC 16:
https://gcc.gnu.org/gcc-16/porting_to.html

Changes: https://gcc.gnu.org/gcc-16/changes.html

Number of commits found: 10