*/*: Cleanup use of CONFIGURE_TARGET Since 4d1f8f16c1c9 replacing amd64 with x86_64 is not necessary.23544948cb
Port details
lang/gcc17-devel 17.0.0.s20261004
GNU Compiler Collection 17
Port info
- Maintainer
- salvadore@FreeBSD.org
- Packages
- latest: 17.0.0.s20261004
- Upstream
- up to date
- Last update
- to 17.0.0.s20261004 · 23544948cb
- Quarterly
- 2026Q4: 17.0.0.s20260802
- WWW
- https://gcc.gnu.org
- Links
- cgit · VuXML · Report wrong data
Install
- Package
# pkg install gcc17-develinstalls 17.0.0.s20261004 fromlatest; fromquarterly(2026Q4) 17.0.0.s20260802- Port
# cd /usr/ports/lang/gcc17-devel && make install clean# make -C /usr/ports/lang/gcc17-devel config # change options first
- Size
- 135 MiB download · 490 MiB installed
- Depends on
- devel/binutils 2.44,1, math/gmp 6.3.0, math/mpc 1.4.1, math/mpfr 4.2.2,1, print/indexinfo 0.3.1_1
- License
- GPLv3 and GPLv3RLE
- Options
- 2 of 4 on in the package: MULTILIB STANDARD_BOOTSTRAP
Show the 2 options that are off
GRAPHITE LTO_BOOTSTRAP - pkg-message
Shown after installing
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/gcc17 For ports leveraging USE_GCC, USES=compiler, or USES=fortran this happens transparently.
Packages by version and architecture
latest
| FreeBSD version | amd64 | aarch64 | i386 |
|---|---|---|---|
| FreeBSD 16 | 17.0.0.s20261004 | 17.0.0.s20261004 | – |
| FreeBSD 15 | 17.0.0.s20261004 | 17.0.0.s20261004 | – |
| FreeBSD 14 | 17.0.0.s20261004 | 17.0.0.s20260927 | 17.0.0.s20261004 |
quarterly (2026Q4)
| FreeBSD version | amd64 | aarch64 | i386 |
|---|---|---|---|
| FreeBSD 15 | 17.0.0.s20260802 | 17.0.0.s20260802 | – |
| FreeBSD 14 | 17.0.0.s20260802 | 17.0.0.s20260802 | 17.0.0.s20260802 |
version as in the ports tree (latest) or the most common one (quarterly) · different version · ✗ not built · – no packages for this platform. Package sets that have not been rebuilt for 60 days are left out.
Unaddressed and VuXML only (0)
No unaddressed CVE and nothing reported by
pkg audit for the packaged version 17.0.0.s20261004.Not counted (1)
CVEs that match this port only loosely: inherited from the whole project, or with versions that cannot be compared. What does this mean?
1 with versions that cannot be compared
The CVE record gives dates or the port uses snapshot versions (or the other way round), so the version of this port cannot be placed in the affected range.
| CVE | CVSS | Published | Description |
|---|---|---|---|
| CVE-2023-4039 | 4.8 | 2023-09-13 | **DISPUTED**A failure in the -fstack-protector feature in GCC-based toolchains that target AArch64 allows an attacker to exploit an existing buffer overflow in dynamic… |
Fixed (0)
No VuXML entries for this package.
Problem reports (1) · open in Bugzilla, most recently changed first
| PR | Summary | Status | Changed |
|---|---|---|---|
| 299150 | lang/gcc17-devel: Allow build of Modula2 (m2) frontend. | New | 2026-10-05 |
Commits (20)
lang/gcc17-devel: Update to 17.0.0.s2026100447f5c85b16
lang/gcc17-devel: Update to 17.0.0.s20260927d572ab7258
lang/gcc17-devel: fix build after base d08296c7ab0d
After base d08296c7ab0d7bb259bf7b8cdf9ffb819c1929ab ("libc: Implement
qualifier-preserving standard library functions"), lang/gcc17-devel
fails to build with an error like:
In file included from /wrkdirs/usr/ports/lang/gcc17-devel/work/.build/gcc/include-fixed/stdio.h:52,
from cp-demangle.c:109:
/wrkdirs/usr/ports/lang/gcc17-devel/work/gcc-17-20260727/libstdc++-v3/../include/libiberty.h:225:14: error: expected identifier or '(' before '_Generic'
225 | extern void *memrchr(const void *, int, size_t);
| ^~~~~~~
This is because memrchr is now a macro, similar to the other functions
in <string.h>, and libiberty.h attempts to incorrectly redeclare it.
In turn, cp-demangle.c includes libiberty.h, but does not include the
config.h generated for libiberty.h, instead using the config.h generated
for libstdc++.
The problem is really with the way upstream creates its config.h
headers: they should either make libiberty.h automatically include its
own config.h file, or rename that one to libiberty-config.h, so it can
be included at the same time as the libstdc++ config.h header.
The easiest way to fix it is to add a '!defined(__FreeBSD__)'
conditional to the #if statement that attempts to declare the
incompatible memrchr.
PR: 297629
Approved by: salvadore (maintainer)
MFH: 2026Q3096369a791lang/gcc17-devel: Update to 17.0.0.s20260802558ff160e0
lang/gcc17-devel: Update to 17.0.0.s20260727108a5ac627
lang/gcc17-devel: Update to 17.0.0.s2026071944d9923119
lang/gcc17-devel: Update to 17.0.0.s2026071293fdfcb097
lang/gcc17-devel: Update to 17.0.0.s202607059f4c0449e1
lang/gcc17-devel: Update to 17.0.0.s202606284ed7c022fd
lang/gcc17-devel: Update to 17.0.0.s202606210a5c97df5e
lang/gcc17-devel: Update to 17.0.0.s202606141f63956621
lang/gcc17-devel: Fix build on arm64 GCC upstream has removed conditional definitions for some constants, defining them directly with the same values used on Linux. However, FreeBSD values for the same constants are different. Then revert upstream commit. Co-authored-by: Mark Millard <marklmi26-fbsd@yahoo.com> PR: 294062 Reported by: Luke Yasuda <jing@jing.rocks>6931d2c016
lang/gcc17-devel: Update to 17.0.0.s202606070d7ea7abf4
lang/gcc17-devel: Update to 17.0.0.s202605319630635021
lang/gcc17-devel: Update to 17.0.0.s20260524822a7062cd
lang/gcc17-devel: Update to 17.0.0.s202605177fa68736aa
lang/gcc17-devel: Update to 17.0.0.s20260510f256e1123b
lang/gcc17-devel: Update to 17.0.0.s2026050355e1a9e99c
lang/gcc17-devel: Add port GCC, the GNU Compiler Collection, supports a number of languages. This port installs the C, C++, and Fortran front ends as gcc17, g++17, and gfortran17, respectively. This is the first snapshot from trunk with the GCC 17 designation. It largely is a copy of lang/gcc16-devel.619a15f867