notbugAs an Amazon Associate I earn from qualifying purchases.
Want a good read? Try FreeBSD Mastery: Jails (IT Mastery Book 15)
Want a good monitor light? See my photos
All times are UTC
Ukraine
The recently imposed "must be logged in" restriction is a response to increased bot traffic on the site. This affects search, commits, and vuxml pages.
Search engines are not blocked. Try using "site:www.freshports.org" and your search terms.
Port details
gcc16 GNU Compiler Collection 16
16.1.0_2 lang on this many watch lists=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_2Version 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:37
Last Update: 2026-07-12 10:44:44
Commit Hash: 13e3a42
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 (44 items)
Collapse this list.
  1. @ldconfig
  2. /usr/local/share/licenses/gcc16-16.1.0_2/catalog.mk
  3. /usr/local/share/licenses/gcc16-16.1.0_2/LICENSE
  4. /usr/local/share/licenses/gcc16-16.1.0_2/GPLv3
  5. /usr/local/share/licenses/gcc16-16.1.0_2/GPLv3RLE
  6. bin/x86_64-portbld-freebsd15.0-c++16
  7. bin/x86_64-portbld-freebsd15.0-g++16
  8. bin/x86_64-portbld-freebsd15.0-gcc16
  9. bin/x86_64-portbld-freebsd15.0-gcc-16.1.0
  10. bin/x86_64-portbld-freebsd15.0-gcc-ar16
  11. bin/x86_64-portbld-freebsd15.0-gcc-nm16
  12. bin/x86_64-portbld-freebsd15.0-gcc-ranlib16
  13. bin/x86_64-portbld-freebsd15.0-gfortran16
  14. bin/c++16
  15. bin/cpp16
  16. bin/g++16
  17. bin/gcc16
  18. bin/gcc-ar16
  19. bin/gcc-nm16
  20. bin/gcc-ranlib16
  21. bin/gcov16
  22. bin/gcov-dump16
  23. bin/gcov-tool16
  24. bin/gfortran16
  25. bin/lto-dump16
  26. include/gcc16/ISO_Fortran_binding.h
  27. share/man/man1/cpp16.1.gz
  28. share/man/man1/g++16.1.gz
  29. share/man/man1/gcc16.1.gz
  30. share/man/man1/gcov16.1.gz
  31. share/man/man1/gcov-dump16.1.gz
  32. share/man/man1/gcov-tool16.1.gz
  33. share/man/man1/gfortran16.1.gz
  34. share/man/man1/lto-dump16.1.gz
  35. share/gcc-16.1.0/python/libstdcxx/__init__.py
  36. share/gcc-16.1.0/python/libstdcxx/v6/__init__.py
  37. share/gcc-16.1.0/python/libstdcxx/v6/printers.py
  38. share/gcc-16.1.0/python/libstdcxx/v6/xmethods.py
  39. @postexec if type ccache-update-links >/dev/null 2>&1; then ccache-update-links -v; fi
  40. @postunexec if type ccache-update-links >/dev/null 2>&1; then ccache-update-links -v; fi
  41. @comment Insert PLIST.lib here
  42. @owner
  43. @group
  44. @mode
Collapse this list.
USE_RC_SUBR (Service Scripts)
  • no SUBR information found for this port
Dependency lines:
  • gcc16>0:lang/gcc16
Conflicts:
CONFLICTS:
  • gcc16-devel
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 = 1778340390 SHA256 (gcc-16.1.0.tar.xz) = 50efb4d94c3397aff3b0d61a5abd748b4dd31d9d3f2ab7be05b171d36a510f79 SIZE (gcc-16.1.0.tar.xz) = 102456900

Packages (timestamps in pop-ups are UTC):
gcc16
ABIaarch64amd64armv6armv7i386powerpcpowerpc64powerpc64le
FreeBSD:13:latest-----n/an/an/a
FreeBSD:13:quarterly-----n/an/an/a
FreeBSD:14:latest-16.1.0_2--16.1.0_2---
FreeBSD:14:quarterly-16.1.0_2--16.1.0_2---
FreeBSD:15:latest-16.1.0_2n/a-n/an/a--
FreeBSD:15:quarterly-16.1.0_2n/a-n/an/a--
FreeBSD:16:latest-16.1.0_2n/a-n/an/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.1.0_2: 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_gcc16
USES:
compiler:c++11-lang cpe gmake iconv libtool makeinfo perl5 tar:xz
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.1.0/
  2. http://gcc.gnu.org/pub/gcc/releases/gcc-16.1.0/
  3. http://mirror.koddos.net/gcc/releases/gcc-16.1.0/
  4. https://ftp-stud.hs-esslingen.de/pub/Mirrors/sourceware.org/gcc/releases/gcc-16.1.0/
  5. https://ftp.funet.fi/pub/mirrors/sourceware.org/pub/gcc/releases/gcc-16.1.0/
  6. https://ftp.mpi-inf.mpg.de/pub/gnu/mirror/gcc.gnu.org/pub/gcc/releases/gcc-16.1.0/
  7. https://mirrors.kernel.org/sourceware/gcc/releases/gcc-16.1.0/
  8. https://mirrorservice.org/sites/sourceware.org/pub/gcc/releases/gcc-16.1.0/
Collapse this list.

Number of commits found: 5

Commit History - (may be incomplete: for full details, see links to repositories near top of page)
CommitCreditsLog message
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: 5