BSD Ports

lang/gcc16 16.1.0_3 FreeBSD

GNU Compiler Collection 16

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
Last update
Commit
19c6e313dc
License
GPLv3, GPLv3RLE
Categories
lang
Package size
95608.6 KiB, 347552.1 KiB installed

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.

Install

Binary package:

pkg install gcc16

From the ports tree:

cd /usr/ports/lang/gcc16/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	gcc16>0:lang/gcc16

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest16.1.0_316.1.0_3--16.1.0_3
FreeBSD:14:quarterly16.1.0_316.1.0_3n/a-16.1.0_3
FreeBSD:15:latest16.1.0_316.1.0_3n/a--
FreeBSD:15:quarterly16.1.0_316.1.0_3n/an/an/a
FreeBSD:16:latest16.1.0_316.1.0_3n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

As this port's Makefile names them.

Build 1

Library 3

Runtime 1

The full lists below include those, and their dependencies in turn.

Build dependencies 16
Run dependencies 7

No port depends on this one.

Configuration

Options name: lang_gcc

OptionDefaultDescription
GRAPHITEoffSupport for Graphite loop optimizations
LTO_BOOTSTRAPoffBuild using a full LTO bootstrap
STANDARD_BOOTSTRAPoffBuild using a full bootstrap without LTO
USES
compiler:c++11-lang cpe gmake iconv libtool makeinfo perl5 tar:xz
Service scripts
none
Conflicts with
gcc16-devel

Message 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/gcc16

For ports leveraging USE_GCC, USES=compiler, or USES=fortran this happens
transparently.

Files

Manual pages 8
  • cpp(1)
  • g++(1)
  • gcc(1)
  • gcov(1)
  • gcov-dump(1)
  • gcov-tool(1)
  • gfortran(1)
  • lto-dump(1)
pkg-plist 35
  • bin/-c++
  • bin/-g++
  • bin/-gcc
  • bin/-gcc-
  • bin/-gcc-ar
  • bin/-gcc-nm
  • bin/-gcc-ranlib
  • bin/-gfortran
  • bin/c++
  • bin/cpp
  • bin/g++
  • bin/gcc
  • bin/gcc-ar
  • bin/gcc-nm
  • bin/gcc-ranlib
  • bin/gcov
  • bin/gcov-dump
  • bin/gcov-tool
  • bin/gfortran
  • bin/lto-dump
  • include/gcc%%SUFFIX%%/ISO_Fortran_binding.h
  • share/man/man1/cpp.1.gz
  • share/man/man1/g++.1.gz
  • share/man/man1/gcc.1.gz
  • share/man/man1/gcov.1.gz
  • share/man/man1/gcov-dump.1.gz
  • share/man/man1/gcov-tool.1.gz
  • share/man/man1/gfortran.1.gz
  • share/man/man1/lto-dump.1.gz
  • share/gcc-%%GCC_VERSION%%/python/libstdcxx/__init__.py
  • share/gcc-%%GCC_VERSION%%/python/libstdcxx/v6/__init__.py
  • share/gcc-%%GCC_VERSION%%/python/libstdcxx/v6/printers.py
  • share/gcc-%%GCC_VERSION%%/python/libstdcxx/v6/xmethods.py
  • @postexec if type ccache-update-links >/dev/null 2>&1; then ccache-update-links -v; fi
  • @postunexec if type ccache-update-links >/dev/null 2>&1; then ccache-update-links -v; fi
distinfo 1
FileSizeSHA256
gcc-16.1.0.tar.xz1.024569e+0850efb4d94c3397aff3b0d61a5abd748b4dd31d9d3f2ab7be05b171d36a510f79
Master sites 1
  • GCC

Commit history 3

DateCommitCreditsLog message
19c6e313dc Dimitry Andric 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. In turn, cp-demangle.c includes libiberty.h, but does not include the …
cd7c885d05 Piotr Kubaj 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
13e3a42d6e Lorenzo Salvadore 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 <[email protected]> PR: 294062 Reported by: Luke Yasuda <[email protected]>