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 photosAll times are UTC
Ukraine
Port details
gcc14 GNU Compiler Collection 14
14.2.0_4 lang on this many watch lists=3 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 14.2.0_4Version of this port present on the latest quarterly branch.
Maintainer: salvadore@FreeBSD.org search for ports maintained by this maintainer
Port Added: 2024-06-20 12:41:17
Last Update: 2025-09-10 10:09:57
Commit Hash: 0683db4
People watching this port, also watch:: libevent, telegram-desktop, monit, memcached, ssss
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 gcc14, g++14, and gfortran14, 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/gcc14-14.2.0_4/catalog.mk
  3. /usr/local/share/licenses/gcc14-14.2.0_4/LICENSE
  4. /usr/local/share/licenses/gcc14-14.2.0_4/GPLv3
  5. /usr/local/share/licenses/gcc14-14.2.0_4/GPLv3RLE
  6. bin/x86_64-portbld-freebsd14.2-c++14
  7. bin/x86_64-portbld-freebsd14.2-g++14
  8. bin/x86_64-portbld-freebsd14.2-gcc14
  9. bin/x86_64-portbld-freebsd14.2-gcc-14.2.0
  10. bin/x86_64-portbld-freebsd14.2-gcc-ar14
  11. bin/x86_64-portbld-freebsd14.2-gcc-nm14
  12. bin/x86_64-portbld-freebsd14.2-gcc-ranlib14
  13. bin/x86_64-portbld-freebsd14.2-gfortran14
  14. bin/c++14
  15. bin/cpp14
  16. bin/g++14
  17. bin/gcc14
  18. bin/gcc-ar14
  19. bin/gcc-nm14
  20. bin/gcc-ranlib14
  21. bin/gcov14
  22. bin/gcov-dump14
  23. bin/gcov-tool14
  24. bin/gfortran14
  25. bin/lto-dump14
  26. include/gcc14/ISO_Fortran_binding.h
  27. share/man/man1/cpp14.1.gz
  28. share/man/man1/g++14.1.gz
  29. share/man/man1/gcc14.1.gz
  30. share/man/man1/gcov14.1.gz
  31. share/man/man1/gcov-dump14.1.gz
  32. share/man/man1/gcov-tool14.1.gz
  33. share/man/man1/gfortran14.1.gz
  34. share/man/man1/lto-dump14.1.gz
  35. share/gcc-14.2.0/python/libstdcxx/__init__.py
  36. share/gcc-14.2.0/python/libstdcxx/v6/__init__.py
  37. share/gcc-14.2.0/python/libstdcxx/v6/printers.py
  38. share/gcc-14.2.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:
  • gcc14>0:lang/gcc14
Conflicts:
CONFLICTS:
  • gcc14-devel
To install the port:
cd /usr/ports/lang/gcc14/ && make install clean
To add the package, run one of these commands:
  • pkg install lang/gcc14
  • pkg install gcc14
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.
PKGNAME: gcc14
Flavors: there is no flavor information for this port.
ONLY_FOR_ARCHS: aarch64 amd64 armv6 armv7 i386 powerpc powerpc64 powerpc64le riscv64
distinfo:
TIMESTAMP = 1723974697 SHA256 (gcc-14.2.0.tar.xz) = a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9 SIZE (gcc-14.2.0.tar.xz) = 92306460

Packages (timestamps in pop-ups are UTC):
gcc14
ABIaarch64amd64armv6armv7i386powerpcpowerpc64powerpc64le
FreeBSD:13:latest14.2.0_414.2.0_4-14.2.0_414.2.0_4n/an/an/a
FreeBSD:13:quarterly14.2.0_414.2.0_4-14.2.0_414.2.0_4n/an/an/a
FreeBSD:14:latest14.2.0_414.2.0_4-14.2.0_414.2.0_4---
FreeBSD:14:quarterly14.2.0_414.2.0_4-14.2.0_414.2.0_4---
FreeBSD:15:latest14.2.0_414.2.0_4n/a-n/an/a--
FreeBSD:15:quarterly14.2.0_414.2.0_4n/a-n/an/a--
FreeBSD:16:latest14.2.0_414.2.0_4n/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
This port is required by:
for Build
  1. cad/freecad
  2. cad/freecad-devel
  3. comms/gnuradio
  4. comms/gr-osmosdr
  5. devel/R-cran-clock
  6. devel/R-cran-collapse
  7. devel/R-cran-kit
Expand this list (94 items / 87 hidden - sorry, this count includes any deleted ports)
  1. Collapse this list).
  2. devel/R-cran-later
  3. devel/R-cran-pak
  4. devel/R-cran-parallelly
  5. devel/R-cran-purrr
  6. devel/R-cran-rJava
  7. devel/R-cran-rappdirs
  8. devel/R-cran-testthat
  9. devel/R-cran-tibble
  10. devel/R-cran-tidyr
  11. devel/RStudio
  12. devel/json-fortran
  13. devel/matreshka
  14. devel/py-llvmlite
  15. devel/py-lxml
  16. devel/py-numba
  17. editors/openoffice-4
  18. editors/openoffice-devel
  19. emulators/wine
  20. emulators/wine-devel
  21. finance/R-cran-fBasics
  22. finance/R-cran-fGarch
  23. graphics/qgis
  24. graphics/qgis-ltr
  25. java/openjdk11
  26. java/openjdk11-jre
  27. java/openjdk17
  28. java/openjdk17-jre
  29. java/openjdk19
  30. java/openjdk20
  31. lang/spidermonkey115
  32. lang/spidermonkey140
  33. math/R-cran-VGAM
  34. math/R-cran-forecast
  35. math/R-cran-geepack
  36. math/R-cran-gss
  37. math/R-cran-hdrcde
  38. math/R-cran-mathjaxr
  39. math/R-cran-proxy
  40. math/R-cran-sf
  41. math/R-cran-terra
  42. math/R-cran-zoo
  43. math/octave-forge-control
  44. math/octave-forge-datatypes
  45. math/octave-forge-dicom
  46. math/octave-forge-instrument-control
  47. math/octave-forge-llms
  48. math/octave-forge-miscellaneous
  49. math/octave-forge-netcdf
  50. math/octave-forge-odbc
  51. math/octave-forge-signal
  52. math/octave-forge-sockets
  53. math/octave-forge-tablicious
  54. math/octave-forge-video
  55. math/octave-forge-zeromq
  56. math/openblas64
  57. math/py-numpy
  58. math/py-primme
  59. math/py-slepc4py
  60. math/scilab
  61. math/sfft
  62. math/superlu
  63. misc/R-cran-xfun
  64. misc/adios2
  65. misc/urh
  66. misc/visp
  67. multimedia/xanim
  68. net/py-mpi4py-mpich
  69. net-mgmt/aircrack-ng
  70. science/atompaw
  71. science/cgnslib
  72. science/dynare
  73. science/lammps
  74. science/meep
  75. science/octopus
  76. science/opensim-core
  77. science/packmol
  78. science/paraview
  79. science/psi4
  80. science/py-scikit-learn
  81. science/py-scipy
  82. science/seacas
  83. science/tinker
  84. security/R-cran-sodium
  85. sysutils/edk2
  86. textproc/R-cran-rbibutils
  87. textproc/R-cran-xml2
  88. Collapse this list.

Deleted ports which required this port:

Expand this list of 1 deleted port
  1. databases/cockroach*
  2. Collapse this list of deleted ports.
for Run
  1. cad/freecad
  2. cad/freecad-devel
  3. comms/gnuradio
  4. comms/gr-osmosdr
  5. devel/R-cran-clock
  6. devel/R-cran-collapse
  7. devel/R-cran-kit
Expand this list (93 items / 86 hidden - sorry, this count includes any deleted ports)
  1. Collapse this list).
  2. devel/R-cran-later
  3. devel/R-cran-pak
  4. devel/R-cran-parallelly
  5. devel/R-cran-purrr
  6. devel/R-cran-rJava
  7. devel/R-cran-rappdirs
  8. devel/R-cran-testthat
  9. devel/R-cran-tibble
  10. devel/R-cran-tidyr
  11. devel/RStudio
  12. devel/json-fortran
  13. devel/py-llvmlite
  14. devel/py-lxml
  15. devel/py-numba
  16. editors/openoffice-4
  17. editors/openoffice-devel
  18. emulators/wine
  19. emulators/wine-devel
  20. finance/R-cran-fBasics
  21. finance/R-cran-fGarch
  22. graphics/qgis
  23. graphics/qgis-ltr
  24. java/openjdk11
  25. java/openjdk11-jre
  26. java/openjdk17
  27. java/openjdk17-jre
  28. java/openjdk19
  29. java/openjdk20
  30. lang/spidermonkey115
  31. lang/spidermonkey140
  32. math/R-cran-VGAM
  33. math/R-cran-forecast
  34. math/R-cran-geepack
  35. math/R-cran-gss
  36. math/R-cran-hdrcde
  37. math/R-cran-mathjaxr
  38. math/R-cran-proxy
  39. math/R-cran-sf
  40. math/R-cran-terra
  41. math/R-cran-zoo
  42. math/octave-forge-control
  43. math/octave-forge-datatypes
  44. math/octave-forge-dicom
  45. math/octave-forge-instrument-control
  46. math/octave-forge-llms
  47. math/octave-forge-miscellaneous
  48. math/octave-forge-netcdf
  49. math/octave-forge-odbc
  50. math/octave-forge-signal
  51. math/octave-forge-sockets
  52. math/octave-forge-tablicious
  53. math/octave-forge-video
  54. math/octave-forge-zeromq
  55. math/openblas64
  56. math/py-numpy
  57. math/py-primme
  58. math/py-slepc4py
  59. math/scilab
  60. math/sfft
  61. math/superlu
  62. misc/R-cran-xfun
  63. misc/adios2
  64. misc/urh
  65. misc/visp
  66. multimedia/xanim
  67. net/py-mpi4py-mpich
  68. net-mgmt/aircrack-ng
  69. science/atompaw
  70. science/cgnslib
  71. science/dynare
  72. science/lammps
  73. science/meep
  74. science/octopus
  75. science/opensim-core
  76. science/packmol
  77. science/paraview
  78. science/psi4
  79. science/py-scikit-learn
  80. science/py-scipy
  81. science/seacas
  82. science/tinker
  83. security/R-cran-sodium
  84. sysutils/edk2
  85. textproc/R-cran-rbibutils
  86. textproc/R-cran-xml2
  87. Collapse this list.

Deleted ports which required this port:

Expand this list of 1 deleted port
  1. databases/cockroach*
  2. Collapse this list of deleted ports.
* - 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 gcc14-14.2.0_4: 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_gcc14
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/gcc14 For ports leveraging USE_GCC, USES=compiler, or USES=fortran this happens transparently.
Master Sites:
Expand this list (8 items)
Collapse this list.
  1. http://ftp.ntua.gr/pub/gnu/gcc/releases/gcc-14.2.0/
  2. http://gcc.gnu.org/pub/gcc/releases/gcc-14.2.0/
  3. http://mirror.koddos.net/gcc/releases/gcc-14.2.0/
  4. https://ftp-stud.hs-esslingen.de/pub/Mirrors/sourceware.org/gcc/releases/gcc-14.2.0/
  5. https://ftp.funet.fi/pub/mirrors/sourceware.org/pub/gcc/releases/gcc-14.2.0/
  6. https://ftp.mpi-inf.mpg.de/pub/gnu/mirror/gcc.gnu.org/pub/gcc/releases/gcc-14.2.0/
  7. https://mirrors.kernel.org/sourceware/gcc/releases/gcc-14.2.0/
  8. https://mirrorservice.org/sites/sourceware.org/pub/gcc/releases/gcc-14.2.0/
Collapse this list.

Number of commits found: 12

Commit History - (may be incomplete: for full details, see links to repositories near top of page)
CommitCreditsLog message
14.2.0_4
10 Sep 2025 10:09:57
commit hash: 0683db4d8cc67701799ea3c9eafd3dce1cb5b9d1commit hash: 0683db4d8cc67701799ea3c9eafd3dce1cb5b9d1commit hash: 0683db4d8cc67701799ea3c9eafd3dce1cb5b9d1commit hash: 0683db4d8cc67701799ea3c9eafd3dce1cb5b9d1 files touched by this commit
Lorenzo Salvadore (salvadore) search for other commits by this committer
lang/gcc14: Build jit only when bootstrap is on

Building jit without bootstrap does not work, so we add jit to the
enabled languages only if a bootstrap option has been selected.

Indeed, building GCC on FreeBSD with FreeBSD's default compiler
(clang) and without bootstraping it is not fully supported.

See e-mail
https://lists.freebsd.org/archives/dev-commits-ports-main/2025-August/160223.html
for more details.

Reported by:	vishwin
14.2.0_4
03 May 2025 09:46:26
commit hash: ef502dd9562c894c1b0065f5f497dd3cd372fae0commit hash: ef502dd9562c894c1b0065f5f497dd3cd372fae0commit hash: ef502dd9562c894c1b0065f5f497dd3cd372fae0commit hash: ef502dd9562c894c1b0065f5f497dd3cd372fae0 files touched by this commit
Lorenzo Salvadore (salvadore) search for other commits by this committer
lang/gcc14: Add comment to existing patch

Add a comment to files/patch-libgcc_unwind.inc to remember when it will
get obsolete, i.e. once all supported FreeBSD releases include commit
22e564c74eb20e14bd93fd9fdde20e38a29cfcf1.

PR:             285711
14.2.0_4
24 Apr 2025 12:55:48
commit hash: 1c41fd97c78672391f5a73c2b15baee509e6a2e5commit hash: 1c41fd97c78672391f5a73c2b15baee509e6a2e5commit hash: 1c41fd97c78672391f5a73c2b15baee509e6a2e5commit hash: 1c41fd97c78672391f5a73c2b15baee509e6a2e5 files touched by this commit
Lorenzo Salvadore (salvadore) search for other commits by this committer
Author: Oleg Sidorkin
lang/gcc14: 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.

PR:             285711
Reported by:    cracauer
Tested by:      cracauer, jbo
14.2.0_3
13 Mar 2025 16:54:27
commit hash: 13904d7107442b60c6a3403d1fdd94bc13f731afcommit hash: 13904d7107442b60c6a3403d1fdd94bc13f731afcommit hash: 13904d7107442b60c6a3403d1fdd94bc13f731afcommit hash: 13904d7107442b60c6a3403d1fdd94bc13f731af files touched by this commit
Baptiste Daroussin (bapt) search for other commits by this committer
gcc*: properly define USE_LDCONFIG32 for multilib
14.2.0_3
05 Mar 2025 15:32:58
commit hash: 930be0aa27c2e99af9337396842ac164ed708df3commit hash: 930be0aa27c2e99af9337396842ac164ed708df3commit hash: 930be0aa27c2e99af9337396842ac164ed708df3commit hash: 930be0aa27c2e99af9337396842ac164ed708df3 files touched by this commit
Lorenzo Salvadore (salvadore) search for other commits by this committer
lang/gcc14: Fix linking with libisl.so

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>
14.2.0_2
10 Feb 2025 18:18:50
commit hash: 17c3f4ae6778531b634603266777f838a77d306ecommit hash: 17c3f4ae6778531b634603266777f838a77d306ecommit hash: 17c3f4ae6778531b634603266777f838a77d306ecommit hash: 17c3f4ae6778531b634603266777f838a77d306e files touched by this commit
Lorenzo Salvadore (salvadore) search for other commits by this committer
Author: Dimitry Andric
lang/gcc14: 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
14.2.0_1
28 Jan 2025 14:27:41
commit hash: aaa315e25e6d12a0df14b29fb5196f652a745c5ccommit hash: aaa315e25e6d12a0df14b29fb5196f652a745c5ccommit hash: aaa315e25e6d12a0df14b29fb5196f652a745c5ccommit hash: aaa315e25e6d12a0df14b29fb5196f652a745c5c files touched by this commit
Robert Clausecker (fuz) search for other commits by this committer
lang/gcc14: standard bootstrap also needed on arm

Same crash as on powerpc.

Approved by:	portmgr (build fix blanket)
MFH:		2025Q1
14.2.0_1
12 Jan 2025 21:36:38
commit hash: 4a64cb4161d4a61f840a48eadfd59e2bb68f384ccommit hash: 4a64cb4161d4a61f840a48eadfd59e2bb68f384ccommit hash: 4a64cb4161d4a61f840a48eadfd59e2bb68f384ccommit hash: 4a64cb4161d4a61f840a48eadfd59e2bb68f384c files touched by this commit
Piotr Kubaj (pkubaj) search for other commits by this committer
lang/gcc14: fix build on powerpc

Bootstrap is required on powerpc as well:
/usr/include/c++/v1/locale:288:32: error: attempt to use a poisoned identifier
14.2.0_1
29 Oct 2024 23:54:20
commit hash: 17024a6f828904fbd57ff459b32f9ed21f77a1a4commit hash: 17024a6f828904fbd57ff459b32f9ed21f77a1a4commit hash: 17024a6f828904fbd57ff459b32f9ed21f77a1a4commit hash: 17024a6f828904fbd57ff459b32f9ed21f77a1a4 files touched by this commit
Kyle Evans (kevans) search for other commits by this committer
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)
14.2.0_1
04 Sep 2024 08:56:43
commit hash: d46106eb4b6dcda7b820e52a37d1f95226376e51commit hash: d46106eb4b6dcda7b820e52a37d1f95226376e51commit hash: d46106eb4b6dcda7b820e52a37d1f95226376e51commit hash: d46106eb4b6dcda7b820e52a37d1f95226376e51 files touched by this commit
Lorenzo Salvadore (salvadore) search for other commits by this committer
lang/gcc14: Add jit language

The jit language was missing by accident. Restore it.

PR:		281091
Reported by:	ashish
14.2.0
20 Aug 2024 13:50:52
commit hash: b175cabc52fe0eb63a4c5d1673e05aa7eecd7396commit hash: b175cabc52fe0eb63a4c5d1673e05aa7eecd7396commit hash: b175cabc52fe0eb63a4c5d1673e05aa7eecd7396commit hash: b175cabc52fe0eb63a4c5d1673e05aa7eecd7396 files touched by this commit
Lorenzo Salvadore (salvadore) search for other commits by this committer
lang/gcc14: Update to 14.2.0

Changes: https://gcc.gnu.org/gcc-14/changes.html#14.2
14.1.0
20 Jun 2024 12:33:31
commit hash: 4700c3f17859f7cc2c00fd5c9c7bf41e92c8142bcommit hash: 4700c3f17859f7cc2c00fd5c9c7bf41e92c8142bcommit hash: 4700c3f17859f7cc2c00fd5c9c7bf41e92c8142bcommit hash: 4700c3f17859f7cc2c00fd5c9c7bf41e92c8142b files touched by this commit
Lorenzo Salvadore (salvadore) search for other commits by this committer
lang/gcc14: Add port

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

This is the first release from the GCC 14 series.
It largely is a copy of lang/gcc14-devel, with release-specific
modifications from lang/gcc13.

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

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

Number of commits found: 12