notbugAs an Amazon Associate I earn from qualifying purchases.
Want a good read? Try FreeBSD Mastery: Jails (IT Mastery Book 15)
Port details
gcc7 GNU Compiler Collection 7
7.4.0_1 lang on this many watch lists=2 search for ports that depend on this port Find issues related to this port Report an issue related to this port 7.4.0Version of this port present on the latest quarterly branch.
Maintainer: gerald@FreeBSD.org search for ports maintained by this maintainer
Port Added: 2017-08-14 23:20:47
Last Update: 2019-07-24 22:30:44
SVN Revision: 507302
License: GPLv3 GPLv3RLE
Description:
SVNWeb : Homepage
pkg-plist: as obtained via: make generate-plist
Expand this list (39 items)
  1. /usr/local/share/licenses/gcc7-7.4.0_1/catalog.mk
  2. /usr/local/share/licenses/gcc7-7.4.0_1/LICENSE
  3. /usr/local/share/licenses/gcc7-7.4.0_1/GPLv3
  4. /usr/local/share/licenses/gcc7-7.4.0_1/GPLv3RLE
  5. bin/x86_64-portbld-freebsd12.0-c++7
  6. bin/x86_64-portbld-freebsd12.0-g++7
  7. bin/x86_64-portbld-freebsd12.0-gcc7
  8. bin/x86_64-portbld-freebsd12.0-gcc-7.4.0
  9. bin/x86_64-portbld-freebsd12.0-gcc-ar7
  10. bin/x86_64-portbld-freebsd12.0-gcc-nm7
  11. bin/x86_64-portbld-freebsd12.0-gcc-ranlib7
  12. bin/x86_64-portbld-freebsd12.0-gfortran7
  13. bin/c++7
  14. bin/cpp7
  15. bin/g++7
  16. bin/gcc7
  17. bin/gcc-ar7
  18. bin/gcc-nm7
  19. bin/gcc-ranlib7
  20. bin/gcov7
  21. bin/gcov-dump7
  22. bin/gcov-tool7
  23. bin/gfortran7
  24. man/man1/cpp7.1.gz
  25. man/man1/g++7.1.gz
  26. man/man1/gcc7.1.gz
  27. man/man1/gcov7.1.gz
  28. man/man1/gcov-dump7.1.gz
  29. man/man1/gcov-tool7.1.gz
  30. man/man1/gfortran7.1.gz
  31. share/gcc-7.4.0/python/libstdcxx/__init__.py
  32. share/gcc-7.4.0/python/libstdcxx/v6/__init__.py
  33. share/gcc-7.4.0/python/libstdcxx/v6/printers.py
  34. share/gcc-7.4.0/python/libstdcxx/v6/xmethods.py
  35. @postexec if type ccache-update-links >/dev/null 2>&1; then ccache-update-links -v; fi
  36. @postunexec if type ccache-update-links >/dev/null 2>&1; then ccache-update-links -v; fi
  37. @comment Insert PLIST.lib here
  38. @postexec /usr/sbin/service ldconfig restart > /dev/null
  39. @postunexec /usr/sbin/service ldconfig restart > /dev/null
Collapse this list.
Dependency lines:
  • gcc7>0:lang/gcc7
Conflicts:
CONFLICTS:
  • gcc7-devel-7.*
Conflicts Matches:
There are no Conflicts Matches for this port. This is usually an error.
To install the port: cd /usr/ports/lang/gcc7/ && make install clean
To add the package: pkg install gcc7
PKGNAME: gcc7
Flavors: there is no flavor information for this port.
ONLY_FOR_ARCHS: aarch64 amd64 arm armv6 armv7 i386 powerpc powerpc64 powerpcspe sparc64
distinfo:

Dependencies
NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
Build dependencies:
  1. as : devel/binutils
  2. gmake : devel/gmake
  3. makeinfo : print/texinfo
  4. as : devel/binutils
  5. perl5>=5.28.r1<5.29 : lang/perl5.28
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
  4. libiconv.so : converters/libiconv
This port is required by:
for Build
  1. devel/xtensa-esp32-elf
  2. graphics/bugle

Deleted ports which required this port:

Expand this list of 25 deleted ports
  1. audio/firefly*
  2. biology/tinker*
  3. cad/gmsh-occ*
  4. comms/wsjt*
  5. comms/wspr*
  6. devel/bisoncpp*
  7. devel/libbobcat*
  8. devel/linux-kernel*
  9. games/syobon*
  10. lang/cilkplus*
  11. lang/v8-devel*
  12. mail/annoyance-filter*
  13. mail/pop3vscan*
  14. math/arpack*
  15. math/arpack-ng-mpich*
  16. math/hfst*
  17. math/octave-forge-communications*
  18. math/rpy2*
  19. net-p2p/dogecoin*
  20. print/gribouy*
  21. science/fvm*
  22. science/mpqc-mpich*
  23. science/ncs*
  24. sysutils/grub2*
  25. www/mod_security3*
  26. Collapse this list of deleted ports.
for Run
  1. devel/xtensa-esp32-elf
  2. graphics/bugle

Deleted ports which required this port:

Expand this list of 24 deleted ports
  1. audio/firefly*
  2. biology/tinker*
  3. cad/gmsh-occ*
  4. comms/wsjt*
  5. comms/wspr*
  6. devel/bisoncpp*
  7. devel/libbobcat*
  8. games/syobon*
  9. lang/cilkplus*
  10. lang/v8-devel*
  11. mail/annoyance-filter*
  12. mail/pop3vscan*
  13. math/arpack*
  14. math/arpack-ng-mpich*
  15. math/hfst*
  16. math/octave-forge-communications*
  17. math/rpy2*
  18. net-p2p/dogecoin*
  19. print/gribouy*
  20. science/fvm*
  21. science/mpqc-mpich*
  22. science/ncs*
  23. sysutils/grub2*
  24. www/mod_security3*
  25. 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

USES:

Master Sites:
  1. ftp://ftp.funet.fi/pub/mirrors/sourceware.org/pub/gcc/releases/gcc-7.4.0/
  2. ftp://ftp.gwdg.de/pub/misc/gcc/releases/gcc-7.4.0/
  3. ftp://ftp.irisa.fr/pub/mirrors/gcc.gnu.org/gcc/releases/gcc-7.4.0/
  4. ftp://ftp.lip6.fr/pub/gcc/releases/gcc-7.4.0/
  5. ftp://ftp.mirrorservice.org/sites/sourceware.org/pub/gcc/releases/gcc-7.4.0/
  6. ftp://ftp.mpi-sb.mpg.de/pub/gnu/mirror/gcc.gnu.org/pub/gcc/releases/gcc-7.4.0/
  7. ftp://ftp.nluug.nl/mirror/languages/gcc/releases/gcc-7.4.0/
  8. ftp://ftp.ntua.gr/pub/gnu/gcc/releases/gcc-7.4.0/
  9. ftp://ftp.uvsq.fr/pub/gcc/releases/gcc-7.4.0/
  10. ftp://gcc.gnu.org/pub/gcc/releases/gcc-7.4.0/
  11. http://gcc-uk.internet.bs/releases/gcc-7.4.0/
  12. http://gcc.cybermirror.org/releases/gcc-7.4.0/
  13. http://gcc.fyxm.net/releases/gcc-7.4.0/
  14. http://gcc.parentingamerica.com/releases/gcc-7.4.0/
  15. http://robotlab.itk.ppke.hu/gcc/releases/gcc-7.4.0/
  16. http://www.netgull.com/gcc/releases/gcc-7.4.0/
  17. https://ftp-stud.hs-esslingen.de/pub/Mirrors/sourceware.org/gcc/releases/gcc-7.4.0/
  18. https://mirrors.kernel.org/sourceware/gcc/releases/gcc-7.4.0/
Port Moves
  • port moved here from lang/gcc49 on 2019-04-27
    REASON: Has expired: Unsupported by upstream. Use GCC 7 or newer instead

Number of commits found: 33

Commit History - (may be incomplete: see SVNWeb link above for full details)
DateByDescription
24 Jul 2019 21:30:44
Original commit files touched by this commit  7.4.0_1
Revision:507302
tobik search for other commits by this committer
lang/gcc*: Hide pkg-message during upgrades

PR:		239419
Approved by:	gerald (maintainer)
10 Mar 2019 05:22:49
Original commit files touched by this commit  7.4.0_1
Revision:495227
gerald search for other commits by this committer
No longer require a not too old version of GCC to build on powerpc64, but
rely on the system compiler (even if that means we need to be explicitly
conservative when it comes to optimizations). [1]

Simplify the creation of the multilib-related sub-directory tree on
powerpc64 and avoid leaving an empty directory behind on the way. [2]

PR:		235975 [1], 235964 [2], 231804 [2]
Submitted by:	Piotr Kubaj <pkubaj@anongoth.pl> [1]
Discussed with:	Piotr Kubaj <pkubaj@anongoth.pl> [2]
04 Feb 2019 09:40:33
Original commit files touched by this commit  7.4.0_1
Revision:492106
gerald search for other commits by this committer
On powerpcspe configure GCC --with-cpu=8548 instead of --with-cpu=8540,
which caused the build to fail after the update to binutils 2.31 and was
factually incorrect anyways (since the oldest we support is 8548).

PR:		235393
Reported by:	jhibbits
29 Dec 2018 15:38:31
Original commit files touched by this commit  7.4.0_1
Revision:488673
andreast search for other commits by this committer
Fix build of GCC on powerpc64.

While building GCC itself we have to use the built GCC libraries to configure
additional parts of GCC and not the libraires from the host.

Install the built 32-bit libraries. This was not done up to now.

PR:	231804
Approved by:	gerald@
12 Dec 2018 01:35:36
Original commit files touched by this commit  7.4.0_1
Revision:487272
gerald search for other commits by this committer
Bump PORTREVISION for ports depending on the canonical version of GCC
defined via Mk/bsd.default-versions.mk which has moved from GCC 7.4 t
GCC 8.2 under most circumstances.

This includes ports
 - with USE_GCC=yes or USE_GCC=any,
 - with USES=fortran,
 - using Mk/bsd.octave.mk which in turn features USES=fortran, and
 - with USES=compiler specifying openmp, nestedfct, c11, c++0x, c++11-lang,
   c++11-lib, c++14-lang, c++17-lang, or gcc-c++11-lib
plus, as a double check, everything INDEX-11 showed depending on lang/gcc7.

PR:		231590
08 Dec 2018 08:35:45
Original commit files touched by this commit  7.4.0
Revision:486920
gerald search for other commits by this committer
Update to the GCC 7.4 release.

This fixes more than 190 bugs and includes files/patch-libgfortran
which I had also applied upstream.

On the way create a separate USES block earlier in the Makefile and
moving relevant items there. [1]

Reported by:	portlint [1]
10 Nov 2018 18:12:58
Original commit files touched by this commit  7.3.0_6
Revision:484628
bapt search for other commits by this committer
Install texinfo files (GNU info) into ${PREFIX}/share/info

After a discussion on the mailing list on moving manpages to
${PREFIX}/share/man for consistency with base where it is
installed in usr/share/man, it appeared the same should happen
to GNU info files which were installed under share in base and
not in ports.

Now texinfo is not in base on any of the supported version of FreeBSD
it is possible to proceed to this move and it is easier to do than
the manpage change.

Other benefit than consistency are less patching: all build tools but
cmake are expecting info files to be under share/info and cmake (patched here)
was having an exception for BSD so the patch makes FreeBSD case less
specific for them

Bump revision of all impacted ports

PR:		232907
exp-run by:	antoine
Differential Revision:	https://reviews.freebsd.org/D17816
20 Oct 2018 10:59:10
Original commit files touched by this commit  7.3.0_5
Revision:482485
gerald search for other commits by this committer
Copy over files/patch-libgfortran from revision r481429 of lang/gcc7-devel:

Add a partial fix for what was reported in PR 231804, the part that's
actually relevant upstream and that I made there, cf.
https://gcc.gnu.org/ml/gcc-patches/2018-10/msg00076.html as a new
local patch files/patch-libgfortran until I have backported this to the
upstream release branch and hence we get it via the weekly snapshots.

PR:		231804
10 Sep 2018 13:11:24
Original commit files touched by this commit  7.3.0_5
Revision:479405
mat search for other commits by this committer
After an include, PLIST_SUB must be appended to, not overwritten.

If it is overwritten, many values will be clobbered, and
pain will ensue.

PR:		230864
Submitted by:	mat
exp-runs by:	antoine
04 Sep 2018 22:26:16
Original commit files touched by this commit  7.3.0_5
Revision:478993
kbowling search for other commits by this committer
lang/gcc7{,-devel}: Fix powerpc64 USE_GCC dependency loop

Approved by:	gerald (maintainer), timur (mentor)
Differential Revision:	https://reviews.freebsd.org/D16784
01 Sep 2018 20:17:46
Original commit files touched by this commit  7.3.0_5
Revision:478722
gerald search for other commits by this committer
Disable the build/use of libssp/gets-chk since FreeBSD 12 and later
do not feature gets() any longer.

PR:		222796, 231066
Differential Revision:	https://reviews.freebsd.org/D12298
29 Jul 2018 22:18:46
Original commit files touched by this commit  7.3.0_5
Revision:475857
gerald search for other commits by this committer
Bump PORTREVISION for ports depending on the canonical version of GCC
in the ports tree (via Mk/bsd.default-versions.mk and lang/gcc) which
has now moved from GCC 6 to GCC 7 by default.

This includes ports
 - featuring USE_GCC=yes or USE_GCC=any,
 - featuring USES=fortran,
 - using Mk/bsd.octave.mk which in turn features USES=fortran, and those
 - with USES=compiler specifying one of openmp, nestedfct, c11, c++0x,
   c++11-lib, c++11-lang, c++14-lang, c++17-lang, or gcc-c++11-lib.

PR:		222542
28 May 2018 09:04:30
Original commit files touched by this commit  7.3.0_4
Revision:471032
gerald search for other commits by this committer
Forward port r469788 from lang/gcc6:

  Filter the -mretpoline command-line option, which is understood by
  recent versions of clang (and used in the context of the Spectre
  security issues), but not GCC (which uses different options for the
  same) from CFLAGS and CXXFLAGS.

  This avoids the build of this port via bootstrap, which is the default
  and leverages both the system compiler (clang in most cases) plus a just
  built version GCC, to fail due to the latter not knowing -mretpoline.

PR:		228205
Submitted by:	rozhuk.im@gmail.com
14 May 2018 19:15:36
Original commit files touched by this commit  7.3.0_4
Revision:469956
tijl search for other commits by this committer
Run "/usr/sbin/service ldconfig restart" for USE_LDCONFIG instead of
"ldconfig -m <path>" so the order of ldconfig search directories after
package installation is the same as after a reboot.  The original command
simply appends the path to the list of directories while the ldconfig rc.d
script uses "sort -u".

Bump lang/gcc* which are known to install libraries with exactly the same
name so the library loaded at runtime depends on the order of the search
directories.

PR:		228046
Approved by:	portmgr (antoine)
13 May 2018 00:32:07
Original commit files touched by this commit  7.3.0_3
Revision:469768
gerald search for other commits by this committer
Simplify MASTER_SITES, taking advantage of the default for GCC releases
provided by MASTER_SITES_ABBREVS.

Reported by:	portlint
19 Apr 2018 07:08:45
Original commit files touched by this commit  7.3.0_3
Revision:467751
ale search for other commits by this committer
Update mpfr to 4.0.1 release and bump PORTVERSION of dependent ports.
08 Apr 2018 19:05:37
Original commit files touched by this commit  7.3.0_2
Revision:466827
danilo search for other commits by this committer
math/cloog
 - Update to 0.19.0
 - Use github
 - Add ac_cv_prog_TEXI2DVI to avoid building docs for now

devel/isl
 - Update to 0.19

- Bump PORTREVISION of all dependencies
31 Mar 2018 12:11:36
Original commit files touched by this commit  7.3.0_1
Revision:466045
linimon search for other commits by this committer
Allow gcc compilers to be built on new arch 'powerpcspe'.

Tested for no-harm on amd64.

Submitted by:		jhibbits
Approved by:		portmgr (tier-2 blanket)
Differential Revision:	D13126
10 Mar 2018 17:46:06
Original commit files touched by this commit  7.3.0_1
Revision:464084
gerald search for other commits by this committer
Bump PORTREVISIONs of all users of math/mpc that we just updated to
version 1.1.0 (via revision 464079).
26 Jan 2018 09:50:19
Original commit files touched by this commit  7.3.0
Revision:459981
gerald search for other commits by this committer
Update to the GCC 7.3 release.

This fixes 99+ bugs and includes code generation options to mitigate
Spectre Variant 2 (CVE 2017-5715) for the x86 and powerpc targets
(-mindirect-branch=, -mfunction-return=, and -mindirect-branch-register).

files/patch-armv7-support and files/patch-freebsd-unwind.h, which I
had backported are now included, so remove them.
03 Dec 2017 13:33:03
Original commit files touched by this commit  7.2.0_4
Revision:455404
gerald search for other commits by this committer
Remove special code handling armv7 and armv6 (which for GCC 6 and
5-based ports is necessary for aarch64, armv6 and armv7, but that
we do not need for newer ports). [1]

Shorten the distinct .if statements for architecture-specific settings,
to use .elif instead.

Consulted with:	andreast [1]
14 Nov 2017 14:05:47
Original commit files touched by this commit  7.2.0_4
Revision:454177
gerald search for other commits by this committer
Make sure what we install is stripped (i.e., debug info is removed).

The straightforward way is setting INSTALL_TARGET to install-strip,
which is supported by the upstream GCC build machinery.

Unfortunately this fails when running as regular user (non-root)
since strip requires write permission to the files in question,
and we install binaries as r-xr-xr-x by default.  To work around
that we need to set BINMODE to allow for write access by the user,
something that's common on GNU/Linux (which is why this probably
has not been noticed there).  This is not necessary when running
as root.

(A different approach suggested was to set STRIP=true, alas that
leads to many files actually not being stripped.  This is due to
GCC using its own script install-sh that in turn uses cp, chmod,
strip,...  instead of our own install-* tools in many cases.)

According to tests by sobomax@ and me installs of lang/gcc6 went
down by about a fourth.

Reported by:	Ports QA Framework, miwi, sobomax
Discussed with:	tijl, miwi
Tested by:	sobomax
Differential Revision:	https://reviews.freebsd.org/D10357
14 Nov 2017 05:38:55
Original commit files touched by this commit  7.2.0_3
Revision:454162
gerald search for other commits by this committer
Fix up the format of files/patch-armv7-support .

Reported by:	portlint
11 Nov 2017 22:04:15
Original commit files touched by this commit  7.2.0_3
Revision:454006
gerald search for other commits by this committer
Add a patch that we just pulled into gcc7-devel via upstream that
addresses a real-world issue around threading and unwinding as
files/patch-freebsd-unwind.h .

This will become obsolete with the next release of GCC 7, GCC 7.3.

Bump PORTREVISION since this is a functional change.
10 Oct 2017 19:20:31
Original commit files touched by this commit  7.2.0_2
Revision:451719
andreast search for other commits by this committer
Add support for armv7-*-freebsd*.
This patch is already upstreamed, it can be dropped when a new GCC 7.x is
available.

PR:	221905
Approved by:	gerald@ (maintainer)
02 Oct 2017 22:45:01
Original commit files touched by this commit  7.2.0_2
Revision:451102
gerald search for other commits by this committer
Add a conflict with the lang/gcc7-devel port as we've had it in lang/gcc5
(for lang/gcc5-devel) for a fair while.

Bump PORTREVISION.
17 Sep 2017 17:51:24
Original commit files touched by this commit  7.2.0_1
Revision:450008
gerald search for other commits by this committer
Do not quote constant strings compared with ${ARCH}. [1]  Remove
some commented (and thus disabled) logic around this on the way.

This brings the active lang/gcc* release-based ports in sync with
their respective lang/gcc*-devel twins.

PR:		221905 [1]
Submitted by:	linimon [1]
10 Sep 2017 20:55:39
Original commit files touched by this commit  7.2.0_1
Revision:449591
gerald search for other commits by this committer
Bump PORTREVISION for ports depending on the canonical version of GCC
(via Mk/bsd.default-versions.mk and lang/gcc) which has moved from
GCC 5.4 to GCC 6.4 under most circumstances.

This includes ports
 - with USE_GCC=yes or USE_GCC=any,
 - with USES=fortran,
 - using Mk/bsd.octave.mk which in turn features USES=fortran, and
 - with USES=compiler specifying openmp, nestedfct, c++11-lib, c++11-lang,
   c++14-lang, c++0x, c11, or gcc-c++11-lib.

PR:		219275
09 Sep 2017 07:02:36
Original commit files touched by this commit  7.2.0
Revision:449474
gerald search for other commits by this committer
Move ONLY_FOR_ARCHS to its proper place in Makefile.
16 Aug 2017 22:18:53
Original commit files touched by this commit  7.2.0
Revision:448067
gerald search for other commits by this committer
Fix PR 221571 more thoroughly and aligned with lang/gcc6 and lang/gcc5:
release tarballs, unlike snapshots, always contain prebuilt .info files.

PR:		221571
16 Aug 2017 20:45:06
Original commit files touched by this commit  7.2.0
Revision:448065
gerald search for other commits by this committer
Also package libitm.info and libquadmath.info on aarch64.

PR:		221571
15 Aug 2017 22:30:05
Original commit files touched by this commit  7.2.0
Revision:448016
gerald search for other commits by this committer
Update to the GCC 7.2 release which mostly fixes some hundred bugs.

Also, this now comes as a .tar.xz archive instead of .tar.bz2.
14 Aug 2017 23:20:34
Original commit files touched by this commit  7.1.0
Revision:447971
gerald search for other commits by this committer
Welcome GCC 7.1, the first release of the GCC 7 series!

In terms of optimizations, GCC now uses a new local register allocator
(LRA) for most targets (now also including PowerPC and SPARC), a new
store merging pass, is able to determine the return value or range of
return values of some calls to the sprintf family of functions as
input for futher passes, features improved code hoisting, new
interprocedural bitwise constant propagation, interprocedural value
range propagation, new loop splitting, improved shrink-wrapping that
separates portions of prologues and epilogues, and many more.

DWARF 5 is supported through the -gdwarf-5, while DWARF 4 remains the
default for the time being.

The C and C++ frontends have gained a large number of additional
(Only the first 15 lines of the commit message are shown above View all of this commit message)

Number of commits found: 33

Login
User Login
Create account

Servers and bandwidth provided by
New York Internet, iXsystems, and RootBSD

This site
What is FreshPorts?
About the authors
Issues
FAQ
How big is it?
The latest upgrade!
Privacy
Forums
Blog
Contact

Search
Enter Keywords:
 
more...

Latest Vulnerabilities
python37Oct 19
py-pillowOct 15
mod_perl2Oct 09
xpdfOct 06
xpdf3Oct 06
xpdf4Oct 06
unboundOct 03
cactiOct 02
gitlab-ceOct 02
gitlab-ceOct 02
ruby24Oct 02
ruby25Oct 02
mongodb34Sep 30
mongodb34Sep 30
mongodb36Sep 30

4 vulnerabilities affecting 12 ports have been reported in the past 14 days

* - modified, not new

All vulnerabilities

Last updated:
2019-10-19 10:52:46


Ports
Home
Categories
Deleted ports
Sanity Test Failures
Newsfeeds

Statistics
Graphs
NEW Graphs (Javascript)
Traffic

Calculated hourly:
Port count 37698
Broken 75
Deprecated 101
Ignore 340
Forbidden 3
Restricted 156
No CDROM 73
Vulnerable 26
Expired 15
Set to expire 72
Interactive 0
new 24 hours 2
new 48 hours4
new 7 days17
new fortnight41
new month151

Servers and bandwidth provided by
New York Internet, iXsystems, and RootBSD
Valid HTML, CSS, and RSS.
Copyright © 2000-2019 Dan Langille. All rights reserved.