CVE and update status of the FreeBSD ports tree4,826 unaddressed CVEs in 618 portsAll times are CET

Port details

devel/freebsd-gcc1212.4.0_1

Cross GNU Compiler 12 for FreeBSD/aarch64

Maintainer
jhb@FreeBSD.org
Packages
aarch64-gcc12 12.4.0_1, amd64-gcc12 12.4.0_1, armv6-gcc12 12.4.0_1, armv7-gcc12 12.4.0_1, i386-gcc12 12.4.0_1, powerpc-gcc12 12.4.0_1, powerpc64-gcc12 12.4.0_1, riscv64-gcc12 12.4.0_1
Upstream
Higher version available: 16.2.0
CPE
gnu:gcc from the port
WWW
https://gcc.gnu.org/
Links
cgit · VuXML

Unaddressed (1) · The CVE record lists this version as affected, no VuXML entry names the CVE

CVE-2023-40394.8published 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 dynamically-sized local variables in your application without this being detected. This stack-protector failure only applies to C99-style dynamically-sized local variables or those created using …

VuXML only (0) · listed, port not fixed yet

None. pkg audit reports nothing for this version.

Fixed (0)

No VuXML entries for this package.

Commits (18)

John Baldwin (jhb) · 12.4.0_1
devel/freebsd-gcc*: Update kernel printf format checking for %b

- Permit the l and ll size modifiers to be used with '%b' for GCC 12/13
  (GCC 14/15 already permitted these).

- Permit the '#' modifier to be used with %b.  This isn't documented but
  the RISC-V kernel uses this.

Reviewed by:	mhorne, lwhsu
Differential Revision:	https://reviews.freebsd.org/D55016
7b603f0ab6
John Baldwin (jhb) · 12.4.0
devel/freebsd_gcc12: Update to 12.4.0
ddeff036cd
John Baldwin (jhb) · 12.3.0_2
devel/freebsd-gcc*: Fix error in printf0 format checker patch

Fix a mismerge of the printf0 format checking patch from GCC 9 to GCC
12/13.  GCC 11 and later don't warn for NULL format strings (instead a
separate nonnull attribute is used).  The printf0 format specifier is
left for now to support builds of existing FreeBSD releases but will
be removed in the future.

Reviewed by:	imp
Differential Revision:	https://reviews.freebsd.org/D45941
a5d8c86fe6
Muhammad Moinur Rahman (bofh) · 12.3.0_1
devel/freebsd-gcc12: Moved man to share/man

Approved by:    portmgr (blanket)
09bb83b530
Muhammad Moinur Rahman (bofh) · 12.3.0
*/*: 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
bbab7f59e9
John Baldwin (jhb) · 12.3.0
devel/freebsd-gcc{9,12}: Various cleanups, no functional change

- Use DISTVERSION instead of PORTVERISON
- Don't silence post-install commands to remove various files from the
  staging area
- Simplify logic to handle arch-specific packing lists
- Clarify package comment and description
- Clarify FreeBSD 12 ignore rule for gcc12

Reviewed by:	fuz
Differential Revision:	https://reviews.freebsd.org/D42590
5723f9adab
Dimitry Andric (dim) · 12.3.0
devel/freebsd-gcc12: 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'
    813 | #  define _LIBCPP_INLINE_VISIBILITY _LIBCPP_HIDE_FROM_ABI
        |                                     ^
  /usr/include/c++/v1/__config:792:26: note: expanded from macro '_LIBCPP_HIDE_FROM_ABI'
    792 |           __attribute__((__abi_tag__(_LIBCPP_TOSTRING(_LIBCPP_VERSIONED_IDENTIFIER))))
        |                          ^
  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:547:37: error: expected ';' at end of declaration list
    547 |     char_type toupper(char_type __c) const
        |                                     ^
  /usr/include/c++/v1/__locale:553:48: error: too many arguments provided to function-like macro invocation
    553 |     const char_type* toupper(char_type* __low, const char_type* __high) const
        |                                                ^
  /wrkdirs/usr/ports/lang/gcc12/work/gcc-12.2.0/gcc/../include/safe-ctype.h:146:9: note: macro 'toupper' defined here
    146 | #define toupper(c) do_not_use_toupper_with_safe_ctype
        |         ^

This is because gcc/system.h includes safe-ctype.h which redefines ctype
macros such as toupper, tolower, etc to "poison" them.

However, it should only include the safe-ctype.h header *after* any C++
headers, such as <list>, <map>, <string>, etc, otherwise these might
transitively include internal ctype headers (such as with libc++ 17),
causing the above conflicts.

This commit moves the safe-ctype.h inclusion to later in gcc/system.h,
which solves this issue, and makes it possible to build against libc++
17.

PR:		274037
Approved by:	jhb (maintainer)
MFH:		2023Q3
6fd6fb3a9f
John Baldwin (jhb) · 12.3.0
devel/freebsd-gcc12: Update to 12.3.0.
ca6653834d
John Baldwin (jhb) · 12.2.0_9
devel/freebsd-gcc12: Use -stdlib=libc++ to use libc++.

Instead of overriding the path and library name of libstdc++, set the
path for libc++ and change the default of -stdlib= from libstdc++ to
libc++.
e858e20eec
John Baldwin (jhb) · 12.2.0_8
devel/freebsd-gcc*: Drop stale workaround for arm targets.

This workaround to force -fbracket-depth=512 was removed from lang/gcc
during the upgrade from gcc 4.8 to gcc 5.
57ea9f921c
Gerald Pfeifer (gerald) · 12.2.0_8
*: Bump PORTREVISIONs for math/mpc update to 1.3.1
8d3e020ed0
John Baldwin (jhb) · 12.2.0
devel/freebsd-gcc12: Bump to 12.2.0.
4e94ac9eb9
John Baldwin (jhb) · 12.1.0_1
devel/freebsd-gcc12: Fix support for FreeBSD kernel printf.

Remove -fformat-extensions and instead follow clang and add a new
format type: __freebsd_kprintf__.  This permits removing unsupported
width specifies such as 'D' which conflict with the local %D specifier
used in the kernel which the old -fformat-extensions did not handle.
91431b0114
John Baldwin (jhb) · 12.1.0
devel/freebsd-gcc12: Ignore on FreeBSD 12.

The powerpc flavor fails to build on FreeBSD 12.x as GCC does not
install the secureplt.h header for that version (GCC assumes secureplt
is only used on 13.0 and later).  In addition, the fixes needed to
build FreeBSD with GCC 12.x are not going to be backported to
stable/12, so just skip this port on FreeBSD 12.
acd1216134
Stefan Eßer (se) · 12.1.0
Remove WWW entries moved into port Makefiles

Commit b7f05445c00f has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.

This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.

Approved by:		portmgr (tcberner)
fb16dfecae
Stefan Eßer (se) · 12.1.0
Add WWW entries to port Makefiles

It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.

Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.

There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.

This commit implements such a proposal and moves one of the WWW: entries
of each pkg-descr file into the respective port's Makefile. A heuristic
attempts to identify the most relevant URL in case there is more than
one WWW: entry in some pkg-descr file. URLs that are not moved into the
Makefile are prefixed with "See also:" instead of "WWW:" in the pkg-descr
files in order to preserve them.

There are 1256 ports that had no WWW: entries in pkg-descr files. These
ports will not be touched in this commit.

The portlint port has been adjusted to expect a WWW entry in each port
Makefile, and to flag any remaining "WWW:" lines in pkg-descr files as
deprecated.

Approved by:		portmgr (tcberner)
b7f05445c0
Baptiste Daroussin (bapt) · 12.1.0
compiler: use CHOSEN_COMPILER_TYPE instead of COMPILER_TYPE

CHOSEN_COMPILER_TYPE is the only safe variable to let a port know which
typer of compiler has been elected to be used by the framework

PR: 	199098
a60b5f495b
John Baldwin (jhb) · 12.1.0
devel/freebsd-gcc12: External FreeBSD toolchain based on GCC 12.

This port provides external GCC toolchains for GCC 12.1.0 for the
aarch64, amd64, armv6, armv7, i386, powerpc, powerpc64, and riscv64
platforms.

Reviewed by:	lwhsu
Differential Revision:	https://reviews.freebsd.org/D35685
fabbde505b