BSD Ports

lang/gcc15 15.2.0_4 FreeBSD

GNU Compiler Collection 15

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
Last update
Commit
955eda5e75
License
GPLv3, GPLv3RLE
Categories
lang
Package size
92066.5 KiB, 333494.3 KiB installed

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.

In the other systems

SystemPortVersion
FreeBSDlang/gcc1515.2.0_4
MidnightBSDlang/gcc1515.2.0_1

Install

Binary package:

pkg install gcc15

From the ports tree:

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

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

RUN_DEPENDS=	gcc15>0:lang/gcc15

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:latest15.2.0_415.2.0_4-15.2.0_115.2.0_4
FreeBSD:14:quarterly15.2.0_415.2.0_4n/a15.1.0_115.2.0_4
FreeBSD:15:latest15.2.0_415.2.0_4n/a-15.2.0_1
FreeBSD:15:quarterly15.2.0_415.2.0_4n/an/an/a
FreeBSD:16:latest15.2.0_415.2.0_4n/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
gcc15-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/gcc15

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-15.2.0.tar.xz1.01056276e+08438fd996826b0c82485a29da03a72d71d6e3541a83ec702df4271f6fe025d24e
Master sites 1
  • GCC

Commit history 2

DateCommitCreditsLog message
955eda5e75 Dimitry Andric lang/gcc15: fix build after base d08296c7ab0d
After base d08296c7ab0d7bb259bf7b8cdf9ffb819c1929ab ("libc: Implement qualifier-preserving standard library functions"), lang/gcc15 fails to build with errors like: /wrkdirs/usr/ports/lang/gcc15/work/gcc-15.2.0/libgomp/affinity-fmt.c: In function 'gomp_display_affinity': /wrkdirs/usr/ports/lang/gcc15/work/gcc-15.2.0/libgomp/affinity-fmt.c:330:25: error: initialization discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers] 330 | char *q = strchr (p + 1, '}'); | ^~~~~~ and: In file included from /wrkdirs/usr/ports/lang/gcc15/work/.build/gcc/include-fixed/stdio.h:52, from cp-demangle.c:109: …
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