Port details |
- gcc13 GNU Compiler Collection 13
- 13.3.0_3 lang
=7 13.3.0_2Version of this port present on the latest quarterly branch. - Maintainer: salvadore@FreeBSD.org
 - Port Added: 2023-04-29 15:27:09
- Last Update: 2025-05-03 09:46:25
- Commit Hash: 6a4bfe6
- People watching this port, also watch:: webp, wget, p5-libwww, libxml2, freetype2
- 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 gcc13, g++13,
and gfortran13, respectively.
¦ ¦ ¦ ¦ 
- Manual pages:
- FreshPorts has no man page information for this port.
- pkg-plist: as obtained via:
make generate-plist - Dependency lines:
-
- Conflicts:
- CONFLICTS:
- To install the port:
- cd /usr/ports/lang/gcc13/ && make install clean
- To add the package, run one of these commands:
- pkg install lang/gcc13
- pkg install gcc13
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.- PKGNAME: gcc13
- Flavors: there is no flavor information for this port.
- ONLY_FOR_ARCHS: aarch64 amd64 armv6 armv7 i386 powerpc powerpc64 powerpc64le riscv64
- distinfo:
- TIMESTAMP = 1724158317
SHA256 (gcc-13.3.0.tar.xz) = 0845e9621c9543a13f484e94584a49ffc0129970e9914624235fc1d061a0c083
SIZE (gcc-13.3.0.tar.xz) = 87909952
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.36<5.37 : lang/perl5.36
- Runtime dependencies:
-
- as : devel/binutils
- indexinfo : print/indexinfo
- Library dependencies:
-
- libgmp.so : math/gmp
- libmpfr.so : math/mpfr
- libmpc.so : math/mpc
- This port is required by:
- for Build
-
- archivers/R-cran-brotli
- archivers/R-cran-zip
- astro/R-cran-maptools
- astro/nightfall
- astro/wcslib
- benchmarks/hpl
- benchmarks/octave-forge-benchmark
-
Deleted ports which required this port:
- for Libraries
-
- science/ALPSCore
- for Run
-
- archivers/R-cran-brotli
- archivers/R-cran-zip
- astro/R-cran-maptools
- astro/nightfall
- astro/wcslib
- benchmarks/hpl
- benchmarks/octave-forge-benchmark
-
Deleted ports which required this port:
- * - deleted ports are only shown under the This port is required by section. It was harder to do for the Required section. Perhaps later...
Configuration Options:
- ===> The following configuration options are available for gcc13-13.3.0_3:
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_gcc13
- USES:
- compiler:c++11-lang cpe gmake iconv libtool makeinfo perl5 tar:xz
- pkg-message:
- For install:
- 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/gcc13
For ports leveraging USE_GCC, USES=compiler, or USES=fortran this happens
transparently.
- Master Sites:
|
Commit History - (may be incomplete: for full details, see links to repositories near top of page) |
Commit | Credits | Log message |
13.3.0_3 03 May 2025 09:46:25
    |
Lorenzo Salvadore (salvadore)  Author: Oleg Sidorkin |
lang/gcc13: Fix SIGBUS depending on CPUTYPE
Compiling GCC with some CPUTYPE values (e.g. broadwell) result in
breaking some applications (e.g. math/octave, cad/freecad), sending
a SIGBUS.
The issue is due to GCC generating instructions that require variables
to be aligned in memory on certain CPUs. Our libthr does not have the
required alignment so these CPUs fail to execute these instructions.
The patch disables the generation of such instructions and will get
obsolete once all supported FreeBSD releases include commit
22e564c74eb20e14bd93fd9fdde20e38a29cfcf1.
PR: 285711
Reported by: cracauer
Tested by: cracauer, jbo |
13.3.0_2 13 Mar 2025 16:54:27
    |
Baptiste Daroussin (bapt)  |
gcc*: properly define USE_LDCONFIG32 for multilib |
13.3.0_2 12 Mar 2025 14:30:52
    |
Lorenzo Salvadore (salvadore)  |
lang/gcc13: Fix libisl.so linking
Fix linking with libisl.so depending on GRAPHITE option, which is now
implemented through options helpers.
Co-authored-by: Gerald Pfeifer <gerald@FreeBSD.org>
PR: 276070
Reported by: Ivan Rozhuk <rozhuk.im@gmail.com> |
13.3.0_1 12 Mar 2025 14:30:43
    |
Lorenzo Salvadore (salvadore)  Author: Dimitry Andric |
lang/gcc13: Fix segfaults for static binaries
Fix segmentation faults caused by -static flag into compiled
binaries.
Email thread:
https://lists.freebsd.org/archives/freebsd-hackers/2025-January/004236.html
Upstream bug report:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118685
PR: 284441
Reported by: kargl |
13.3.0 29 Oct 2024 23:54:20
    |
Kyle Evans (kevans)  |
lang/gcc*: disable building of libssp
For today's FreeBSD 14 and earlier, libssp is a nop because nothing on
FreeBSD will be referencing these headers or lib. On FreeBSD 15, it
actively breaks building with FORTIFY_SOURCE enabled and it's not worth
trying to make it work- the potential for GCC improvements comes from
the __builtin_object_size enhancement, not from these headers.
PR: 280265
Approved by: salvadore (maintainer) |
13.3.0 04 Sep 2024 14:31:01
    |
Lorenzo Salvadore (salvadore)  |
lang/gcc13: Update to 13.3.0
Changes: https://gcc.gnu.org/gcc-13/changes.html#13.3
PR: 281091
Tested by: exp-run (antoine) |
13.2.0_4 13 May 2024 21:19:50
    |
Robert Clausecker (fuz)  |
lang/gcc13: enable on riscv64
Builds fine on 15-CURRENT.
PR: 272759
Approved by: salvadore (maintainer)
MFH: 2024Q2 |
13.2.0_4 03 Feb 2024 09:57:04
    |
Lorenzo Salvadore (salvadore)  |
lang/gcc{12,13}: Switch back to standard bootstrap
Switch back to STANDARD_BOOTSTRAP on i386, amd64 and aarch64 as default
option instead of LTO_BOOTSTRAP, forwarding the changes already commited
in the devel ports (commits daf12c76bd531335f58e7602afd3bc8da8fc5c33,
872d61f8ead10a6d935117876cf60057a46770ff, and
da4cb11216a7ed594d5dc453deb4693b48c3c7e9) and in lang/gcc11 (commit
3e0fc5e7607d30400bfb3d5a7b3d1b77e1a6699a)
Users wanting to use LTO_BOOTSTRAP can still enable the option manually.
PR: 273397
Tested by: exp-run (antoine) |
13.2.0_3 28 Jan 2024 13:39:27
    |
Muhammad Moinur Rahman (bofh)  |
lang/gcc13: Moved man to share/man
Approved by: portmgr (blanket) |
13.2.0_2 13 Jan 2024 08:18:34
    |
Lorenzo Salvadore (salvadore)  |
lang/gcc13: Fix Address sanitizer
Software compiled with -fsanitize=address fails to run with the error
message "ASan runtime does not come first in initial library list; you
should either link runtime to your application or manually preload it
with LD_PRELOAD".
This commit fixes the issue by ignoring the [vdso] loaded shared library
instead of linux-vdso.so.
To successfully run the software compiled with -fsanitize=address it is
still necessary to disable ASLR.
PR: 267751
Reported by: yuri
Co-authored-by: Andreas Tobler <andreast@gcc.gnu.org> |
13.2.0_1 05 Jan 2024 21:03:48
    |
Piotr Kubaj (pkubaj)  |
lang/gcc13: drop ELFv1 support |
13.2.0_1 31 Dec 2023 00:37:05
    |
Muhammad Moinur Rahman (bofh)  |
*/*: Sunset 12.4-RELEASE/12-STABLE from ports tree
- Remove all references to defunct ARCH arm
- Remove all references to defunct ARCH sparc64
- Remove x11-drivers/xf86-video-sunffb which requires defunct sparc64
ARCH
- Remove sysutils/afbinit requires defunct sparc64 ARCH
- Remove all references to bktr driver
- Remove all references to defunct FreeBSD_12
- Remove all references to OSVERSION/OSREL corresponding to 12
- Remove conditionals in Mk/Uses/cabal.mk
- Remove sparc reference from Mk/Uses/qt-dist.mk
- Remove BROKEN_sparc64/NOT_FOR_ARCH=sparc64
- Remove BROKEN_FreeBSD_12* from:
- Remove OpenSSL patches from:
- Remove conditional flags for OSVERSION >= 1300000 to fixed flags.
Also move conditional flags for non sparc64/arm ARCH to fixed flags.
Reviewed by: brooks, jbeich, rene, salvadore
Differential Revision: https://reviews.freebsd.org/D42068 |
13.2.0_1 15 Dec 2023 20:36:59
    |
Dimitry Andric (dim)  |
lang/gcc12 lang/gcc12-devel lang/gcc13 lang/gcc13-devel lang/gcc14-devel: fix
build without bootstrap
When more recent gcc ports are built without bootstrap, compiling libcc1
plugins results in errors similar to:
In file included from
/wrkdirs/share/dim/ports/lang/gcc13/work/gcc-13.2.0/libcc1/libcc1plugin.cc:72:
In file included from /usr/include/c++/v1/vector:321:
In file included from /usr/include/c++/v1/__format/formatter_bool.h:20:
In file included from /usr/include/c++/v1/__format/formatter_integral.h:32:
/usr/include/c++/v1/locale:289:36: error: attempt to use a poisoned identifier
289 | __status = (unsigned char*)malloc(__nkw);
| ^
/usr/include/c++/v1/locale:1584:28: error: attempt to use a poisoned
identifier
1584 | __ob =
(char_type*)malloc(2*static_cast<size_t>(__nc)*sizeof(char_type));
| ^ (Only the first 15 lines of the commit message are shown above ) |
13.2.0_1 05 Dec 2023 18:11:27
    |
Thierry Thomas (thierry)  |
lang/gcc12+: forward the installation of ISO_Fortran_binding.h in a separate dir
PR: 275431
Approved by: salvadore@ (maintainer) |
13.2.0 14 Oct 2023 20:38:33
    |
Lorenzo Salvadore (salvadore)  |
lang/gcc13: Update to 13.2.0
Changes: https://gcc.gnu.org/gcc-13/changes.html#13.2 |
13.1.0_1 12 Oct 2023 05:06:22
    |
Piotr Kubaj (pkubaj)  |
lang/gcc13: disable LTO on powerpc to fix build
cc1plus: out of memory allocating 48749344 bytes after a total of 0 bytes |
13.1.0_1 06 Oct 2023 17:48:53
    |
Dimitry Andric (dim)  |
lang/gcc10 lang/gcc11 lang/gcc11-devel lang/gcc12 lang/gcc12-devel lang/gcc13
lang/gcc13-devel lang/gcc14-devel: fix build with libc++ 17
When building relatively recent gcc ports (with C++ in them) against
libc++ 17, you get errors similar to:
In file included from
/wrkdirs/usr/ports/lang/gcc12/work/gcc-12.2.0/gcc/cp/module.cc:208:
In file included from
/wrkdirs/usr/ports/lang/gcc12/work/gcc-12.2.0/gcc/system.h:239:
In file included from /usr/include/c++/v1/vector:321:
In file included from /usr/include/c++/v1/__format/formatter_bool.h:20:
In file included from /usr/include/c++/v1/__format/formatter_integral.h:32:
In file included from /usr/include/c++/v1/locale:202:
/usr/include/c++/v1/__locale:546:5: error: '__abi_tag__' attribute only
applies to structs, variables, functions, and namespaces
546 | _LIBCPP_INLINE_VISIBILITY
| ^
/usr/include/c++/v1/__config:813:37: note: expanded from macro
'_LIBCPP_INLINE_VISIBILITY' (Only the first 15 lines of the commit message are shown above ) |
13.1.0_1 19 Jun 2023 15:19:22
    |
Piotr Kubaj (pkubaj)  |
lang/gcc*: fix build with CPUTYPE?=g[3-5]
GCC does not accept -mcpu=g4, but does accept -mcpu=G4. |
13.1.0_1 02 May 2023 09:39:47
    |
Piotr Kubaj (pkubaj)  |
lang/gcc13: switch to using clang on powerpc64*
As with other released GCC versions (as opposed to snapshots), use base
clang to build this port. |
13.1.0 29 Apr 2023 15:23:21
    |
Lorenzo Salvadore (salvadore)  |
lang/gcc13: Add port
GCC, the GNU Compiler Collection, supports a number of languages.
This port installs the C, C++, and Fortran front ends as gcc13,
g++13, and gfortran13, respectively.
This is the first release from the GCC 13 series.
It largely is a copy of lang/gcc13-devel, with release-specific
modifications from lang/gcc12.
Common issues that could happen when porting code to GCC 13:
https://gcc.gnu.org/gcc-13/porting_to.html
Changes: https://gcc.gnu.org/gcc-13/changes.html
Reviewed by: gerald, Dan McGregor <dan.mcgregor@usask.ca>
Differential Revision: https://reviews.freebsd.org/D39841 |