Port details |
- gcc12 GNU Compiler Collection 12
- 12.2.0_6 lang
=5 12.2.0_5Version of this port present on the latest quarterly branch. - Maintainer: salvadore@FreeBSD.org
 - Port Added: 2022-05-06 18:12:06
- Last Update: 2023-05-12 15:39:47
- Commit Hash: 5b4cadb
- People watching this port, also watch:: sudo, pkg, git, smartmontools, binutils
- License: GPLv3 GPLv3RLE
- 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>
¦ ¦ ¦ ¦ 
- pkg-plist: as obtained via:
make generate-plist - Dependency lines:
-
- Conflicts:
- CONFLICTS:
- Conflicts Matches:
-
There are no Conflicts Matches for this port. This is usually an error.
- 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 arm armv6 armv7 i386 powerpc powerpc64 powerpc64le
- distinfo:
- TIMESTAMP = 1660912619
SHA256 (gcc-12.2.0.tar.xz) = e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
SIZE (gcc-12.2.0.tar.xz) = 84645292
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.3 : devel/gmake
- makeinfo : print/texinfo
- as : devel/binutils
- perl5>=5.32.r0<5.33 : lang/perl5.32
- 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-zip
- astro/R-cran-maptools
- astro/nightfall
- astro/wcslib
- audio/gsequencer
- audio/openspc
- audio/pamixer
-
Deleted ports which required this port:
- for Libraries
-
- sysutils/arcconf
-
Deleted ports which required this port:
- for Run
-
- archivers/R-cran-zip
- astro/R-cran-maptools
- astro/nightfall
- astro/wcslib
- audio/gsequencer
- audio/openspc
- audio/pamixer
-
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 gcc12-12.2.0_6:
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=on: Build using a full LTO bootstrap
STANDARD_BOOTSTRAP=off: 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.
- WWW: https://gcc.gnu.org
- Master Sites:
|
Commit History - (may be incomplete: for full details, see links to repositories near top of page) |
Commit | Credits | Log message |
12.2.0_6 12 May 2023 15:39:47
    |
Lorenzo Salvadore (salvadore)  |
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
    |
Gerald Pfeifer (gerald)  |
*: Bump PORTREVISIONs for math/mpc update to 1.3.1 |
12.2.0_5 03 Feb 2023 15:11:03
    |
Lorenzo Salvadore (salvadore)  |
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
    |
Lorenzo Salvadore (salvadore)  |
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
    |
Lorenzo Salvadore (salvadore)  |
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
    |
Lorenzo Salvadore (salvadore)  |
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
    |
Gerald Pfeifer (gerald)  |
lang/gcc12: The Fortran front end is gfortran12 |
12.2.0_1 08 Sep 2022 15:46:38
    |
Stefan Eßer (se)  |
Remove WWW lines that have been moved into Makefiles
Approved by: portmgr (implicit) |
12.2.0_1 08 Sep 2022 15:43:21
    |
Stefan Eßer (se)  |
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
    |
Jan Beich (jbeich)  |
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
    |
Lorenzo Salvadore (salvadore)  |
lang/gcc12: Update to 12.2.0
Also take maintainership. |
12.1.0 20 Jul 2022 14:22:15
    |
Tobias C. Berner (tcberner)  |
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 ) |
12.1.0 07 Jul 2022 22:56:01
    |
Lorenzo Salvadore (salvadore)  |
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
    |
Piotr Kubaj (pkubaj)  |
lang/gcc12: add gcc 12
Changelog: https://gcc.gnu.org/gcc-12/changes.html |