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
gcc12 GNU Compiler Collection 12
12.4.0_3 lang on this many watch lists=5 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 12.4.0_2Version of this port present on the latest quarterly branch.
Maintainer: salvadore@FreeBSD.org search for ports maintained by this maintainer
Port Added: 2022-05-06 18:12:06
Last Update: 2025-04-24 12:55:47
Commit Hash: 231018e
People watching this port, also watch:: samba419, 7-zip, samba416, rust, iperf3
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 gcc12, g++12, and gfortran12, respectively. Gerald Pfeifer <gerald@FreeBSD.org>
Homepage    cgit ¦ Codeberg ¦ GitHub ¦ GitLab ¦ SVNWeb - no subversion history for this port

Manual pages:
FreshPorts has no man page information for this port.
pkg-plist: as obtained via: make generate-plist
Expand this list (44 items)
Collapse this list.
  1. @ldconfig
  2. /usr/local/share/licenses/gcc12-12.4.0_3/catalog.mk
  3. /usr/local/share/licenses/gcc12-12.4.0_3/LICENSE
  4. /usr/local/share/licenses/gcc12-12.4.0_3/GPLv3
  5. /usr/local/share/licenses/gcc12-12.4.0_3/GPLv3RLE
  6. bin/x86_64-portbld-freebsd14.2-c++12
  7. bin/x86_64-portbld-freebsd14.2-g++12
  8. bin/x86_64-portbld-freebsd14.2-gcc12
  9. bin/x86_64-portbld-freebsd14.2-gcc-12.4.0
  10. bin/x86_64-portbld-freebsd14.2-gcc-ar12
  11. bin/x86_64-portbld-freebsd14.2-gcc-nm12
  12. bin/x86_64-portbld-freebsd14.2-gcc-ranlib12
  13. bin/x86_64-portbld-freebsd14.2-gfortran12
  14. bin/c++12
  15. bin/cpp12
  16. bin/g++12
  17. bin/gcc12
  18. bin/gcc-ar12
  19. bin/gcc-nm12
  20. bin/gcc-ranlib12
  21. bin/gcov12
  22. bin/gcov-dump12
  23. bin/gcov-tool12
  24. bin/gfortran12
  25. bin/lto-dump12
  26. include/gcc12/ISO_Fortran_binding.h
  27. share/man/man1/cpp12.1.gz
  28. share/man/man1/g++12.1.gz
  29. share/man/man1/gcc12.1.gz
  30. share/man/man1/gcov12.1.gz
  31. share/man/man1/gcov-dump12.1.gz
  32. share/man/man1/gcov-tool12.1.gz
  33. share/man/man1/gfortran12.1.gz
  34. share/man/man1/lto-dump12.1.gz
  35. share/gcc-12.4.0/python/libstdcxx/__init__.py
  36. share/gcc-12.4.0/python/libstdcxx/v6/__init__.py
  37. share/gcc-12.4.0/python/libstdcxx/v6/printers.py
  38. share/gcc-12.4.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.
Dependency lines:
  • gcc12>0:lang/gcc12
Conflicts:
CONFLICTS:
  • gcc12-devel
To install the port:
cd /usr/ports/lang/gcc12/ && make install clean
To add the package, run one of these commands:
  • pkg install lang/gcc12
  • pkg install gcc12
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.
PKGNAME: gcc12
Flavors: there is no flavor information for this port.
ONLY_FOR_ARCHS: aarch64 amd64 armv6 armv7 i386 powerpc powerpc64 powerpc64le riscv64
distinfo:
TIMESTAMP = 1724162795 SHA256 (gcc-12.4.0.tar.xz) = 704f652604ccbccb14bdabf3478c9511c89788b12cb3bbffded37341916a9175 SIZE (gcc-12.4.0.tar.xz) = 83377372

No package information for this port in our database
Sometimes this happens. Not all ports have packages. Perhaps there is a build error. Check the fallout link: pkg-fallout
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.36<5.37 : lang/perl5.36
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. astro/R-cran-maptools
  2. benchmarks/himenobench
  3. benchmarks/polygraph
  4. biology/psi88
  5. biology/seqan3
  6. cad/freehdl
  7. comms/ems-flasher
Expand this list (174 items / 167 hidden - sorry, this count includes any deleted ports)
  1. Collapse this list).
  2. converters/R-cran-base64enc
  3. databases/dbixx
  4. databases/fastdb
  5. databases/gigabase
  6. devel/R-cran-Hmisc
  7. devel/R-cran-ModelMetrics
  8. devel/R-cran-bindrcpp
  9. devel/R-cran-checkmate
  10. devel/R-cran-chron
  11. devel/R-cran-decor
  12. devel/R-cran-ellipsis
  13. devel/R-cran-fansi
  14. devel/R-cran-gbm
  15. devel/R-cran-glmnet
  16. devel/R-cran-gtools
  17. devel/R-cran-magrittr
  18. devel/R-cran-microbenchmark
  19. devel/R-cran-multicool
  20. devel/R-cran-plogr
  21. devel/R-cran-plyr
  22. devel/R-cran-prettyunits
  23. devel/R-cran-progress
  24. devel/R-cran-randomForest
  25. devel/R-cran-reshape
  26. devel/R-cran-reshape2
  27. devel/R-cran-tibble
  28. devel/R-cran-tidyr
  29. devel/R-cran-timechange
  30. devel/R-cran-vctrs
  31. devel/api-sanity-autotest
  32. devel/covtool
  33. devel/libcwd
  34. devel/lockfree-malloc
  35. finance/R-cran-TTR
  36. finance/R-cran-gmm
  37. finance/R-cran-lmtest
  38. french/med
  39. graphics/R-cran-GDD
  40. graphics/R-cran-pROC
  41. graphics/R-cran-png
  42. graphics/dataplot
  43. graphics/dcp2icc
  44. graphics/pgplot
  45. graphics/sam2p
  46. graphics/xd3d
  47. irc/undernet-ircu
  48. lang/gambit-c
  49. lang/gnat12
  50. lang/micropython
  51. lang/p5-ExtUtils-F77
  52. mail/milter-callback
  53. math/R-cran-BsMD
  54. math/R-cran-KFAS
  55. math/R-cran-RSvgDevice
  56. math/R-cran-acepack
  57. math/R-cran-ash
  58. math/R-cran-conquer
  59. math/R-cran-dplyr
  60. math/R-cran-exactRankTests
  61. math/R-cran-gpclib
  62. math/R-cran-haven
  63. math/R-cran-hdrcde
  64. math/R-cran-influenceR
  65. math/R-cran-irlba
  66. math/R-cran-isoband
  67. math/R-cran-lazyeval
  68. math/R-cran-mathjaxr
  69. math/R-cran-mcmc
  70. math/R-cran-nnls
  71. math/R-cran-partitions
  72. math/R-cran-prodlim
  73. math/R-cran-proxy
  74. math/R-cran-quadprog
  75. math/R-cran-sets
  76. math/R-cran-sm
  77. math/R-cran-truncnorm
  78. math/blacs
  79. math/blazeiterative
  80. math/cmlib
  81. math/ddfun
  82. math/dqfun
  83. math/dune-curvedgeometry
  84. math/dune-foamgrid
  85. math/dune-functions
  86. math/dune-localfunctions
  87. math/dune-metagrid
  88. math/dune-multidomaingrid
  89. math/dune-spgrid
  90. math/dune-typetree
  91. math/eispack
  92. math/hptt
  93. math/lapackpp
  94. math/librsb
  95. math/libxsmm
  96. math/lidia
  97. math/math77
  98. math/miracl
  99. math/optpp
  100. math/qd
  101. math/qxfun
  102. math/slatec
  103. math/spblas
  104. math/trlan
  105. misc/libemos
  106. misc/seabios
  107. misc/thrill
  108. misc/veles
  109. net/charm
  110. net-mgmt/aircrack-ng
  111. science/R-cran-DCluster
  112. science/R-cran-bayesm
  113. science/R-cran-eco
  114. science/R-cran-udunits2
  115. science/aircraft-datcom
  116. science/chimes-calculator
  117. science/dftd3
  118. science/dkh
  119. science/erd
  120. science/feff10
  121. science/fvcom
  122. science/fvcom-mpi
  123. science/gamess-us
  124. science/gdma
  125. science/h5z-zfp
  126. science/isaac-cfd
  127. science/kim-api
  128. science/libgridxc
  129. science/m-aneos
  130. science/mcstas-comps
  131. science/mdynamix
  132. science/namd
  133. science/openkim-models
  134. science/q
  135. science/qwalk
  136. science/silo
  137. science/xcrysden
  138. sysutils/arcconf
  139. sysutils/memtest86+
  140. sysutils/wiimms
  141. textproc/R-cran-bibtex
  142. textproc/R-cran-pystr
  143. textproc/R-cran-readr
  144. textproc/R-cran-vroom
  145. textproc/fox-xml
  146. textproc/senna
  147. www/R-cran-Rook
  148. www/cgicc
  149. www/kannel-sqlbox
  150. Collapse this list.

Deleted ports which required this port:

Expand this list of 19 deleted ports
  1. cad/NASTRAN-95*
  2. comms/ncid*
  3. comms/sdr-wspr*
  4. databases/mysql-q4m*
  5. emulators/skyeye*
  6. emulators/wine7*
  7. finance/R-cran-ccgarch*
  8. graphics/R-cran-rtiff*
  9. graphics/gimp-gmic-plugin*
  10. graphics/py-open3d-python*
  11. mail/spamdyke*
  12. math/R-cran-RHmm*
  13. math/cvc3*
  14. math/octave-forge-statistics-bootstrap*
  15. net/openmpi3*
  16. science/dcl*
  17. science/libgeodecomp*
  18. sysutils/bacula11-libs3*
  19. www/anyterm*
  20. Collapse this list of deleted ports.
for Libraries
  1. sysutils/arcconf

Deleted ports which required this port:

Expand this list of 1 deleted port
  1. math/hs-penrose*
  2. Collapse this list of deleted ports.
for Run
  1. astro/R-cran-maptools
  2. benchmarks/himenobench
  3. benchmarks/polygraph
  4. biology/psi88
  5. biology/seqan3
  6. cad/freehdl
  7. comms/ems-flasher
Expand this list (174 items / 167 hidden - sorry, this count includes any deleted ports)
  1. Collapse this list).
  2. converters/R-cran-base64enc
  3. databases/dbixx
  4. databases/fastdb
  5. databases/gigabase
  6. devel/R-cran-Hmisc
  7. devel/R-cran-ModelMetrics
  8. devel/R-cran-bindrcpp
  9. devel/R-cran-checkmate
  10. devel/R-cran-chron
  11. devel/R-cran-decor
  12. devel/R-cran-ellipsis
  13. devel/R-cran-fansi
  14. devel/R-cran-gbm
  15. devel/R-cran-glmnet
  16. devel/R-cran-gtools
  17. devel/R-cran-magrittr
  18. devel/R-cran-microbenchmark
  19. devel/R-cran-multicool
  20. devel/R-cran-plogr
  21. devel/R-cran-plyr
  22. devel/R-cran-prettyunits
  23. devel/R-cran-progress
  24. devel/R-cran-randomForest
  25. devel/R-cran-reshape
  26. devel/R-cran-reshape2
  27. devel/R-cran-tibble
  28. devel/R-cran-tidyr
  29. devel/R-cran-timechange
  30. devel/R-cran-vctrs
  31. devel/api-sanity-autotest
  32. devel/covtool
  33. devel/libcwd
  34. devel/lockfree-malloc
  35. finance/R-cran-TTR
  36. finance/R-cran-gmm
  37. finance/R-cran-lmtest
  38. french/med
  39. graphics/R-cran-GDD
  40. graphics/R-cran-pROC
  41. graphics/R-cran-png
  42. graphics/dataplot
  43. graphics/dcp2icc
  44. graphics/pgplot
  45. graphics/sam2p
  46. graphics/xd3d
  47. irc/undernet-ircu
  48. lang/gambit-c
  49. lang/gcc
  50. lang/gnat12
  51. lang/micropython
  52. lang/p5-ExtUtils-F77
  53. mail/milter-callback
  54. math/R-cran-BsMD
  55. math/R-cran-KFAS
  56. math/R-cran-RSvgDevice
  57. math/R-cran-acepack
  58. math/R-cran-ash
  59. math/R-cran-conquer
  60. math/R-cran-dplyr
  61. math/R-cran-exactRankTests
  62. math/R-cran-gpclib
  63. math/R-cran-haven
  64. math/R-cran-hdrcde
  65. math/R-cran-influenceR
  66. math/R-cran-irlba
  67. math/R-cran-isoband
  68. math/R-cran-lazyeval
  69. math/R-cran-mathjaxr
  70. math/R-cran-mcmc
  71. math/R-cran-nnls
  72. math/R-cran-partitions
  73. math/R-cran-prodlim
  74. math/R-cran-proxy
  75. math/R-cran-quadprog
  76. math/R-cran-sets
  77. math/R-cran-sm
  78. math/R-cran-truncnorm
  79. math/blacs
  80. math/blazeiterative
  81. math/cmlib
  82. math/combblas
  83. math/ddfun
  84. math/dqfun
  85. math/dune-curvedgeometry
  86. math/dune-foamgrid
  87. math/dune-functions
  88. math/dune-localfunctions
  89. math/dune-metagrid
  90. math/dune-multidomaingrid
  91. math/dune-spgrid
  92. math/dune-typetree
  93. math/eispack
  94. math/hptt
  95. math/lapackpp
  96. math/librsb
  97. math/libxsmm
  98. math/lidia
  99. math/math77
  100. math/miracl
  101. math/optpp
  102. math/qd
  103. math/qxfun
  104. math/slatec
  105. math/spblas
  106. math/trlan
  107. misc/libemos
  108. misc/thrill
  109. misc/veles
  110. net/charm
  111. net-mgmt/aircrack-ng
  112. science/R-cran-DCluster
  113. science/R-cran-bayesm
  114. science/R-cran-eco
  115. science/R-cran-udunits2
  116. science/aircraft-datcom
  117. science/chimes-calculator
  118. science/dftd3
  119. science/dkh
  120. science/erd
  121. science/feff10
  122. science/fvcom
  123. science/fvcom-mpi
  124. science/gamess-us
  125. science/gdma
  126. science/h5z-zfp
  127. science/isaac-cfd
  128. science/kim-api
  129. science/libgridxc
  130. science/m-aneos
  131. science/mcstas-comps
  132. science/mdynamix
  133. science/namd
  134. science/openkim-models
  135. science/q
  136. science/qwalk
  137. science/silo
  138. science/xcrysden
  139. sysutils/arcconf
  140. sysutils/wiimms
  141. textproc/R-cran-bibtex
  142. textproc/R-cran-pystr
  143. textproc/R-cran-readr
  144. textproc/R-cran-vroom
  145. textproc/fox-xml
  146. textproc/senna
  147. www/R-cran-Rook
  148. www/cgicc
  149. www/kannel-sqlbox
  150. Collapse this list.

Deleted ports which required this port:

Expand this list of 19 deleted ports
  1. cad/NASTRAN-95*
  2. comms/ncid*
  3. comms/sdr-wspr*
  4. databases/mysql-q4m*
  5. emulators/skyeye*
  6. emulators/wine7*
  7. finance/R-cran-ccgarch*
  8. graphics/R-cran-rtiff*
  9. graphics/gimp-gmic-plugin*
  10. graphics/py-open3d-python*
  11. mail/spamdyke*
  12. math/R-cran-RHmm*
  13. math/cvc3*
  14. math/octave-forge-statistics-bootstrap*
  15. net/openmpi3*
  16. science/dcl*
  17. science/libgeodecomp*
  18. sysutils/bacula11-libs3*
  19. www/anyterm*
  20. 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 gcc12-12.4.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_gcc12
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/gcc12 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-12.4.0/
  2. http://gcc.gnu.org/pub/gcc/releases/gcc-12.4.0/
  3. http://mirror.koddos.net/gcc/releases/gcc-12.4.0/
  4. https://ftp-stud.hs-esslingen.de/pub/Mirrors/sourceware.org/gcc/releases/gcc-12.4.0/
  5. https://ftp.funet.fi/pub/mirrors/sourceware.org/pub/gcc/releases/gcc-12.4.0/
  6. https://ftp.mpi-inf.mpg.de/pub/gnu/mirror/gcc.gnu.org/pub/gcc/releases/gcc-12.4.0/
  7. https://mirrors.kernel.org/sourceware/gcc/releases/gcc-12.4.0/
  8. https://mirrorservice.org/sites/sourceware.org/pub/gcc/releases/gcc-12.4.0/
Collapse this list.

Number of commits found: 31

Commit History - (may be incomplete: for full details, see links to repositories near top of page)
CommitCreditsLog message
12.4.0_3
24 Apr 2025 12:55:47
commit hash: 231018e228187099b8fac7e55b1a662cdc81c1f8commit hash: 231018e228187099b8fac7e55b1a662cdc81c1f8commit hash: 231018e228187099b8fac7e55b1a662cdc81c1f8commit hash: 231018e228187099b8fac7e55b1a662cdc81c1f8 files touched by this commit
Lorenzo Salvadore (salvadore) search for other commits by this committer
Author: Oleg Sidorkin
lang/gcc12: 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
12.4.0_2
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
12.4.0_2
05 Mar 2025 15:32:48
commit hash: 1846a7fe9b587894845d69a895510f37eb2f40d8commit hash: 1846a7fe9b587894845d69a895510f37eb2f40d8commit hash: 1846a7fe9b587894845d69a895510f37eb2f40d8commit hash: 1846a7fe9b587894845d69a895510f37eb2f40d8 files touched by this commit
Lorenzo Salvadore (salvadore) search for other commits by this committer
lang/gcc12: 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>
12.4.0_1
10 Feb 2025 18:18:05
commit hash: 6f5f51aaee2e3d4b217eebeccc64850b924e414acommit hash: 6f5f51aaee2e3d4b217eebeccc64850b924e414acommit hash: 6f5f51aaee2e3d4b217eebeccc64850b924e414acommit hash: 6f5f51aaee2e3d4b217eebeccc64850b924e414a files touched by this commit
Lorenzo Salvadore (salvadore) search for other commits by this committer
Author: Dimitry Andric
lang/gcc12: 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
12.4.0
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)
12.4.0
03 Sep 2024 15:45:41
commit hash: 0cd003615453bb5fb998e0e1b45db0344bf677cdcommit hash: 0cd003615453bb5fb998e0e1b45db0344bf677cdcommit hash: 0cd003615453bb5fb998e0e1b45db0344bf677cdcommit hash: 0cd003615453bb5fb998e0e1b45db0344bf677cd files touched by this commit
Lorenzo Salvadore (salvadore) search for other commits by this committer
lang/gcc12: Update to 12.4.0

Changes: https://gcc.gnu.org/gcc-12/changes.html#12.4

PR:		281091
Tested by:	exp-run (antoine)
12.3.0
13 May 2024 21:19:50
commit hash: f040d259aeda3ec5cd7c440c8f03364bdcac9311commit hash: f040d259aeda3ec5cd7c440c8f03364bdcac9311commit hash: f040d259aeda3ec5cd7c440c8f03364bdcac9311commit hash: f040d259aeda3ec5cd7c440c8f03364bdcac9311 files touched by this commit
Robert Clausecker (fuz) search for other commits by this committer
lang/gcc12: enable for riscv64

Builds fine on riscv64 15-CURRENT.

PR:		272759
Approved by:	salvadore (maintainer)
MFH:		2024Q2
12.3.0
03 Feb 2024 09:57:04
commit hash: a51e69c269575d3c8d9e4e6592efc1bf0605473ccommit hash: a51e69c269575d3c8d9e4e6592efc1bf0605473ccommit hash: a51e69c269575d3c8d9e4e6592efc1bf0605473ccommit hash: a51e69c269575d3c8d9e4e6592efc1bf0605473c files touched by this commit
Lorenzo Salvadore (salvadore) search for other commits by this committer
lang/gcc12: Update to 12.3.0

Changes: https://gcc.gnu.org/gcc-12/changes.html#12.3

PR:		273397
Tested by:	exp-run (antoine)
12.2.0_9
03 Feb 2024 09:57:04
commit hash: 41870b7b7d042523cff7d8fe3abde24f5a394804commit hash: 41870b7b7d042523cff7d8fe3abde24f5a394804commit hash: 41870b7b7d042523cff7d8fe3abde24f5a394804commit hash: 41870b7b7d042523cff7d8fe3abde24f5a394804 files touched by this commit
Lorenzo Salvadore (salvadore) search for other commits by this committer
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)
12.2.0_8
27 Jan 2024 00:30:41
commit hash: 821de0efb0621de4ec372c91303bc97cab6e4750commit hash: 821de0efb0621de4ec372c91303bc97cab6e4750commit hash: 821de0efb0621de4ec372c91303bc97cab6e4750commit hash: 821de0efb0621de4ec372c91303bc97cab6e4750 files touched by this commit
Muhammad Moinur Rahman (bofh) search for other commits by this committer
lang/gcc12: Moved man to share/man

Approved by:    portmgr (blanket)
12.2.0_7
05 Jan 2024 21:04:07
commit hash: 3250ebd7afb568ba91b56de9dec722de6bd9e546commit hash: 3250ebd7afb568ba91b56de9dec722de6bd9e546commit hash: 3250ebd7afb568ba91b56de9dec722de6bd9e546commit hash: 3250ebd7afb568ba91b56de9dec722de6bd9e546 files touched by this commit
Piotr Kubaj (pkubaj) search for other commits by this committer
lang/gcc12: drop ELFv1 support
12.2.0_7
31 Dec 2023 00:37:05
commit hash: bbab7f59e9630416397189df70ec133bdd690e38commit hash: bbab7f59e9630416397189df70ec133bdd690e38commit hash: bbab7f59e9630416397189df70ec133bdd690e38commit hash: bbab7f59e9630416397189df70ec133bdd690e38 files touched by this commit
Muhammad Moinur Rahman (bofh) search for other commits by this committer
*/*: 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
12.2.0_7
15 Dec 2023 20:36:59
commit hash: a4831f4933d006071d96a861506ff0db44d1d3accommit hash: a4831f4933d006071d96a861506ff0db44d1d3accommit hash: a4831f4933d006071d96a861506ff0db44d1d3accommit hash: a4831f4933d006071d96a861506ff0db44d1d3ac files touched by this commit
Dimitry Andric (dim) search for other commits by this committer
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 View all of this commit message)
12.2.0_7
05 Dec 2023 18:11:27
commit hash: 3c2b953b9cde73c0d2770889cd83d66e707cdfebcommit hash: 3c2b953b9cde73c0d2770889cd83d66e707cdfebcommit hash: 3c2b953b9cde73c0d2770889cd83d66e707cdfebcommit hash: 3c2b953b9cde73c0d2770889cd83d66e707cdfeb files touched by this commit
Thierry Thomas (thierry) search for other commits by this committer
lang/gcc12: install ISO_Fortran_binding.h in a separate directory

ISO_Fortran_binding.h is sometimes needed for the support of Fortran
2018, e.g. MPICH must find it to build mpi_f08.mod.

ATM it is installed in a directory depending on $CONFIGURE_TARGET with
a complex path, and it is not possible to point CFLAGS towards this dir
because other headers (like stdatomic.h) would conflict with those from
the system.

Therefore create a new directory /usr/local/include/gcc12 to install
this header.

PR:		275431
Approved by:	salvadore@ (maintainer)
12.2.0_6
06 Oct 2023 17:48:53
commit hash: b7833e78f7bdf5b00b5b0d25ed983f1b8d413e32commit hash: b7833e78f7bdf5b00b5b0d25ed983f1b8d413e32commit hash: b7833e78f7bdf5b00b5b0d25ed983f1b8d413e32commit hash: b7833e78f7bdf5b00b5b0d25ed983f1b8d413e32 files touched by this commit
Dimitry Andric (dim) search for other commits by this committer
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 View all of this commit message)
12.2.0_6
19 Jun 2023 13:39:01
commit hash: 6f24acefb2cd4bf07a02dfabd21e7a9a116f1567commit hash: 6f24acefb2cd4bf07a02dfabd21e7a9a116f1567commit hash: 6f24acefb2cd4bf07a02dfabd21e7a9a116f1567commit hash: 6f24acefb2cd4bf07a02dfabd21e7a9a116f1567 files touched by this commit
Piotr Kubaj (pkubaj) search for other commits by this committer
lang/gcc12: check for CPUTYPE being defined

Reported by:	freshports
19 Jun 2023 13:18:06
commit hash: dcbc273b6b19b13eac1b1fbbb013148e1721dc85commit hash: dcbc273b6b19b13eac1b1fbbb013148e1721dc85commit hash: dcbc273b6b19b13eac1b1fbbb013148e1721dc85commit hash: dcbc273b6b19b13eac1b1fbbb013148e1721dc85 files touched by this commit Sanity Test Failure Refresh
Piotr Kubaj (pkubaj) search for other commits by this committer
lang/gcc12: fix build on powerpc64* with CPUTYPE?=g[3-5]

GCC doesn't support -mcpu=g4, but it supports -mcpu=G4. Same for g3 and g5.
12.2.0_6
12 May 2023 15:39:47
commit hash: 5b4cadb23cbc2db23d7e2a40c16abd3e862fcf62commit hash: 5b4cadb23cbc2db23d7e2a40c16abd3e862fcf62commit hash: 5b4cadb23cbc2db23d7e2a40c16abd3e862fcf62commit hash: 5b4cadb23cbc2db23d7e2a40c16abd3e862fcf62 files touched by this commit
Lorenzo Salvadore (salvadore) search for other commits by this committer
lang/gcc12: Work around aarch64 extraction bug

Extraction fails with poudriere on aarch64 with the following error:

=> SHA256 Checksum OK for gcc-12.2.0.tar.xz.
tar: Pathname can't be converted from UTF-8 to current locale.
tar: Pathname can't be converted from UTF-8 to current locale.
tar: Error exit delayed from previous errors.

Enforcing use of bsdtar works around the issue. The issue is specific to
lang/gcc11 and lang/gcc12: no other GCC port is affected.

See also bug https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=246670.

PR:		271052
Reported by:	Vidar Karlsen <vidar@karlsen.tech>
Reviewed by:	gerald, mikael
12.2.0_6
23 Apr 2023 09:09:58
commit hash: 8d3e020ed032a8db00208994d0db646de7dc6f5bcommit hash: 8d3e020ed032a8db00208994d0db646de7dc6f5bcommit hash: 8d3e020ed032a8db00208994d0db646de7dc6f5bcommit hash: 8d3e020ed032a8db00208994d0db646de7dc6f5b files touched by this commit
Gerald Pfeifer (gerald) search for other commits by this committer
*: Bump PORTREVISIONs for math/mpc update to 1.3.1
12.2.0_5
03 Feb 2023 15:11:03
commit hash: 444f183cebf8b5e304b143a900e2f70f1e30bde4commit hash: 444f183cebf8b5e304b143a900e2f70f1e30bde4commit hash: 444f183cebf8b5e304b143a900e2f70f1e30bde4commit hash: 444f183cebf8b5e304b143a900e2f70f1e30bde4 files touched by this commit
Lorenzo Salvadore (salvadore) search for other commits by this committer
lang/gcc12: Mark PIE_UNSAFE

Building the port with WITH_PIE fails if STANDARD_BOOTSTRAP or
LTO_BOOTSTRAP option is enabled.

Mark PIE_UNSAFE when such an option is enabled until a better solution
is found.

PR:             268901
Reported by:    netchild
12.2.0_5
30 Nov 2022 12:52:57
commit hash: d187c559f003650fe5eb4b9bcdc499f623d3b4a3commit hash: d187c559f003650fe5eb4b9bcdc499f623d3b4a3commit hash: d187c559f003650fe5eb4b9bcdc499f623d3b4a3commit hash: d187c559f003650fe5eb4b9bcdc499f623d3b4a3 files touched by this commit
Lorenzo Salvadore (salvadore) search for other commits by this committer
lang/gcc12: Re-execute program with ASLR disabled when necessary

Software compiled with -fsanitize=address needs ASLR to be disabled to
run successfully.

Add patches taken from the commits listed below that improve ASLR
detection and re-execute the program with ASLR disabled if necessary.

https://cgit.freebsd.org/src/commit/?id=7cafe89f9ce33effe6e471b185339d413da1ca46
https://cgit.freebsd.org/src/commit/?id=930a7c2ac67e1e8e511aa1d0a31a16c632060ebb
https://cgit.freebsd.org/src/commit/?id=96fe7c8ab0f65cf829619abd74ae6c126b21e15f

PR:		267751
12.2.0_4
30 Nov 2022 12:52:52
commit hash: 27141421f69cb2d2bc6a462d005b251921f2c52bcommit hash: 27141421f69cb2d2bc6a462d005b251921f2c52bcommit hash: 27141421f69cb2d2bc6a462d005b251921f2c52bcommit hash: 27141421f69cb2d2bc6a462d005b251921f2c52b files touched by this commit
Lorenzo Salvadore (salvadore) search for other commits by this committer
lang/gcc12: 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.

PR:		267751
Reported by:	yuri
12.2.0_3
09 Nov 2022 13:29:15
commit hash: f1957296ed2dce8a09bb9582e9a5a715bf8b3d4dcommit hash: f1957296ed2dce8a09bb9582e9a5a715bf8b3d4dcommit hash: f1957296ed2dce8a09bb9582e9a5a715bf8b3d4dcommit hash: f1957296ed2dce8a09bb9582e9a5a715bf8b3d4d files touched by this commit
Lorenzo Salvadore (salvadore) search for other commits by this committer
lang/gcc12: Fix conflict on libgccjit.h and libgccjit++.h

GCC 11, GCC 12 and GCC 13 install libgccjit.h and libgccjit++.h in the
same directory.

Fix conflict for lang/gcc12, which is soon to become GCC_DEFAULT, by
installing those files in a directory specific to GCC 12.

See also commit 0338e04504ee269b7a95e6707f1314bc1c4239fe that fixed the
conflict in the same way for lang/gcc11.

PR:		257060
12.2.0_2
09 Sep 2022 11:10:15
commit hash: 781f8a55a2b744679d8b7ac936f198d573906685commit hash: 781f8a55a2b744679d8b7ac936f198d573906685commit hash: 781f8a55a2b744679d8b7ac936f198d573906685commit hash: 781f8a55a2b744679d8b7ac936f198d573906685 files touched by this commit
Gerald Pfeifer (gerald) search for other commits by this committer
lang/gcc12: The Fortran front end is gfortran12
12.2.0_1
08 Sep 2022 15:46:38
commit hash: ade2a047e0eb835f7f42682496614cfd259757eacommit hash: ade2a047e0eb835f7f42682496614cfd259757eacommit hash: ade2a047e0eb835f7f42682496614cfd259757eacommit hash: ade2a047e0eb835f7f42682496614cfd259757ea files touched by this commit
Stefan Eßer (se) search for other commits by this committer
Remove WWW lines that have been moved into Makefiles

Approved by:	portmgr (implicit)
12.2.0_1
08 Sep 2022 15:43:21
commit hash: 986beaaabc71b9e7e29e7e89e0f36405b687216fcommit hash: 986beaaabc71b9e7e29e7e89e0f36405b687216fcommit hash: 986beaaabc71b9e7e29e7e89e0f36405b687216fcommit hash: 986beaaabc71b9e7e29e7e89e0f36405b687216f files touched by this commit
Stefan Eßer (se) search for other commits by this committer
Move more WWW entries from pkg-descr files into Makefiles

The WWW: lines in the pkg-descr files of these ports where not at the
end of those files and have been missed in prior conversion runs.

Approved by:	portmgr (implicit)
12.2.0_1
25 Aug 2022 21:35:37
commit hash: 86e7abbbf467e97ffa58363ca3327d08395931eecommit hash: 86e7abbbf467e97ffa58363ca3327d08395931eecommit hash: 86e7abbbf467e97ffa58363ca3327d08395931eecommit hash: 86e7abbbf467e97ffa58363ca3327d08395931ee files touched by this commit
Jan Beich (jbeich) search for other commits by this committer
lang/gcc12: Expose non-default -stdlib=libc++ support

Fix -stdlib=libc++ option which produced "error: unrecognized
command-line option '-stdlib=libc++'".

PR:		265962
Approved by:	salvadore (maintainer)
Exp-run by:	antoine (via bug 265964)
12.2.0
19 Aug 2022 18:41:54
commit hash: 3a4acf7356e7b2eea67c3a471255f072514e80decommit hash: 3a4acf7356e7b2eea67c3a471255f072514e80decommit hash: 3a4acf7356e7b2eea67c3a471255f072514e80decommit hash: 3a4acf7356e7b2eea67c3a471255f072514e80de files touched by this commit
Lorenzo Salvadore (salvadore) search for other commits by this committer
lang/gcc12: Update to 12.2.0

Also take maintainership.
12.1.0
20 Jul 2022 14:22:15
commit hash: f98ae56653d5255e3519da4e97d6edbaa7e6df91commit hash: f98ae56653d5255e3519da4e97d6edbaa7e6df91commit hash: f98ae56653d5255e3519da4e97d6edbaa7e6df91commit hash: f98ae56653d5255e3519da4e97d6edbaa7e6df91 files touched by this commit
Tobias C. Berner (tcberner) search for other commits by this committer
lang: remove 'Created by' lines

A big Thank You to the original contributors of these ports:

  *  Aaron Dalton <aaron@FreeBSD.org>
  *  Adam Weinberger <adamw@FreeBSD.org>
  *  Akinori MUSHA aka knu <knu@idaemons.org>
  *  Alex Dupre <ale@FreeBSD.org>
  *  Alexey Dokuchaev <danfe@FreeBSD.org>
  *  Alonso Cardenas Marquez <acm@FreeBSD.org>
  *  Andreas Klemm <andreas@klemm.gtn.com>
  *  Andrew Pantyukhin <infofarmer@FreeBSD.org>
  *  Andrey Zakhvatov
  *  Anton Berezin <tobez@FreeBSD.org>
  *  Anton Berezin <tobez@tobez.org>
(Only the first 15 lines of the commit message are shown above View all of this commit message)
12.1.0
07 Jul 2022 22:56:01
commit hash: 320e9debc3c3b4a90292a9aa29f139be9df00f40commit hash: 320e9debc3c3b4a90292a9aa29f139be9df00f40commit hash: 320e9debc3c3b4a90292a9aa29f139be9df00f40commit hash: 320e9debc3c3b4a90292a9aa29f139be9df00f40 files touched by this commit
Lorenzo Salvadore (salvadore) search for other commits by this committer
lang/gcc>=11: Warn about LTO_BOOTSTRAP

Warn users about the amount of ram and time needed to build GCC with
LTO_BOOTSTRP enabled.

PR:		264949
Reported by:	Tomoaki AOKI <junchoon@dec.sakura.ne.jp> and others
Reviewed by:	gerald
Differential Revision: https://reviews.freebsd.org/D35688
12.1.0
06 May 2022 18:01:39
commit hash: ca48c22e1c7a4e39244d6bea3b9f52cc17047592commit hash: ca48c22e1c7a4e39244d6bea3b9f52cc17047592commit hash: ca48c22e1c7a4e39244d6bea3b9f52cc17047592commit hash: ca48c22e1c7a4e39244d6bea3b9f52cc17047592 files touched by this commit
Piotr Kubaj (pkubaj) search for other commits by this committer
lang/gcc12: add gcc 12

Changelog:	https://gcc.gnu.org/gcc-12/changes.html

Number of commits found: 31