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

Port details

devel/gcc-arm-embedded14.2r1_2

Complete GCC-based toolcahin for embedded ARM development

Maintainer
lev@FreeBSD.org
Packages
gcc-arm-embedded 14.2r1_2, gcc-arm-embedded-aarch64 14.2r1_2
Upstream
Higher version available: 15.3.rel2
CPE
gnu:gcc from the port
WWW
https://developer.arm.com/Tools%20and%20Software/GNU%20Toolchain
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 (95)

Rene Ladan (rene) · 14.2r1_2
all: drop support for FreeBSD 13, mips and risc64sf

Reviewed by:            many (*)
Differential Revision:  https://reviews.freebsd.org/D55624
Differential Revision:  https://reviews.freebsd.org/D55642 (merged in from bofh)

many (*)
  acm arrowd brooks cmt dch decke dinoex eduardo fluffy fuz gahr garga
  jbeich joerg jrm kai kenrap martymac matthew mfechner michaelo mizhka
  nobutaka pkubaj se tagattie thj

  Anton Saietskii
  GenericRikka
  Gert Doering
  Jan Bramkamp
  Oleh Hushchenkov
  Oleksandr Kryvulia
  Ralf van der Enden
  Yamagi

  desktop kde python tcltk office
2a7c056120
Lev A. Serebryakov (lev)
devel/gcc-arm-embedded: fix pkg-plist

Remove info/dir from pkg-plist, it is not needed and breaks `pkg check`.

PR:		293221
9e4dad79a7
Lev A. Serebryakov (lev)
devel/gcc-arm-embedded: Fix version-independend symlink.

PR:		293774
Reported by:	Ed Maste <emaste@freebsd.org>
1acb7642dc
Dimitry Andric (dim)
devel/gcc-arm-embedded: fix build with clang 21

With clang 21 devel/gcc-arm-embedded fails to build, with errors similar
to:

      /wrkdirs/usr/ports/devel/gcc-arm-embedded/work-default/src/binutils-gdb/binutils/readelf.c:23278:37: error: pointer comparison always evaluates to false [-Werror,-Wtautological-compare]
       23278 |           || inote.namedata + inote.namesz < inote.namedata)
             |                                            ^

and later many instances of:

    In file included from <built-in>:1:
    In file included from /wrkdirs/usr/ports/devel/gcc-arm-embedded/work-default/src/binutils-gdb--gdb/gdb/defs.h:63:
    /wrkdirs/usr/ports/devel/gcc-arm-embedded/work-default/src/binutils-gdb--gdb/gdb/../gdbsupport/enum-flags.h:97:34: error: non-type
          template argument is not a constant expression
       97 |     integer_for_size<sizeof (T), static_cast<bool>(T (-1) < T (0))>::type
          |                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /wrkdirs/usr/ports/devel/gcc-arm-embedded/work-default/src/binutils-gdb--gdb/gdb/../gdbsupport/enum-flags.h:134:20: note: in
          instantiation of template class 'enum_underlying_type<ui_out_flag>' requested here
      134 |   typedef typename enum_underlying_type<enum_type>::type underlying_type;
          |                    ^
    /wrkdirs/usr/ports/devel/gcc-arm-embedded/work-default/src/binutils-gdb--gdb/gdb/ui-out.h:385:16: note: in instantiation of template
          class 'enum_flags<ui_out_flag>' requested here
      385 |   ui_out_flags m_flags;
          |                ^
    /wrkdirs/usr/ports/devel/gcc-arm-embedded/work-default/src/binutils-gdb--gdb/gdb/../gdbsupport/enum-flags.h:97:52: note: integer value
          -1 is outside the valid range of values [0, 15] for the enumeration type 'ui_out_flag'
       97 |     integer_for_size<sizeof (T), static_cast<bool>(T (-1) < T (0))>::type
          |                                                    ^

The readelf error is due to it assuming pointer wrapping, which is
undefined behavior. This can be worked around by casting the pointers to
uintptr_t, or by adding -fno-strict-overflow to the CFLAGS (but if you
are messing with the CFLAGS, you might as well disable -Werror).

The enum errors are because it is no longer allowed to cast integer
values to enum values, if they fall outside of the valid range. Upstream
fixed this in
<https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=commit;h=4a0b2cb7210>,
which applies with a small bit of editing.

PR:		293168
Approved by:	maintainer timeout (2 weeks)
MFH:		2026Q1
37ed2bf637
Piotr Kubaj (pkubaj)
devel/gcc-arm-embedded: fix build on powerpc64*

1. Fix gmp build, set ABI="mode64".
2. Fix compiler detection for gmp - currently only
powerpc64{,le}-unknown-freebsd$VERSION-gcc, gcc and gcc64 are looked for.
3. Fix architecture detection - uname -p should be used on FreeBSD.
322fe7fe9b
Lev A. Serebryakov (lev)
devel/gcc-arm-embedded: Fix stupid mistake in pkg-plist

Last second change in pkg-plist ruined it.
7c1a376484
Christoph Moench-Tegeder (cmt)
devel/gcc-arm-embedded: fix pkg-plist

an extra '%' (percent) had crept into some lines

Approved by:	just-fix-it
72a37f5f5e
Lev A. Serebryakov (lev)
devel/gcc-arm-embedded: update toolchain to 14.2.rel1 from 2024/12/10

Build system has been completely revamped.

 Now port uses official build scripts with minimal pathing to adopt some
Linux-isms to FreeBSD.

 Two flavors are made: "default" one form AArch32 (ARMv7) ISA and "aarch64"
for AArch64 (ARMv8) ISA.

 AArch32 (default) build supports A-, R- and M-profiles by default, but
A-profiles can be turned off in options.

 AARch64 doesn't have choice of profiles.

 gdb is built with python support by default, but can be built without
one with custom option.

 All builds are using included snapshots of all libraries, like
libgmp, libmpfr, etc. There is no option to use system-wide versions
of these libraries anymore.

 NLS is turned off by vendor and cannot be turned on.

 No Linux cross-tools targets are provided for now, this port is
made to provde bare metal toolchains only.

 Binaries are not stripped, as official ones are.
75ee0ced6e
Gerald Pfeifer (gerald) · 10.3.20210921
devel/gcc-arm-embedded: Spell GCC, the project, all uppercase

Approved by:	portmgr blanket
02690b76a3
Gerald Pfeifer (gerald) · 10.3.20210921
devel/gcc-arm-embedded: Update web site

Arm has moved the toolchain from launchpad.net to a site of their own.
748c8029b8
Lorenzo Salvadore (salvadore) · 10.3.20210921
devel/gcc-arm-embedded: Set USE_GCC=13

Does not build with GCC 14. Set USE_GCC=13 so that the port does not
block GCC_DEFAULT update to GCC 14.

PR:		281247
a1cf722127
Rene Ladan (rene) · 10.3.20210921
all: drop support for expired FreeBSD 14.0

Simplify expressions for FreeBSD 13.X

Reviewed by:	many

Differential Revision:	https://reviews.freebsd.org/D46601
4485bd8221
Muhammad Moinur Rahman (bofh) · 10.3.20210921
devel/gcc-arm-embedded: Sanitize MANPREFIX

Approved by:    portmgr (blanket)
b4d80488e7
Dimitry Andric (dim) · 10.3.20210921
devel/gcc-arm-embedded: 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.

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

See also: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111632

PR:		274039
Approved by:	maintainer timeout (2 weeks)
MFH:		2023Q4
e0a6f0f303
Muhammad Moinur Rahman (bofh) · 10.3.20210921
devel/gcc-arm-embedded: Fix build on 14

Approved by:	portmgr (blanket)
Sponsored by:	The FreeBSD Foundation
79ef06b046
Muhammad Moinur Rahman (bofh) · 10.3.20210921
devel/gcc-arm-embedded: Remove pointers to defunct armeb ARCH

Approved by:	portmgr (blanket)
474d6cc20c
Muhammad Moinur Rahman (bofh) · 10.3.20210921
Mk/**tex.mk: Convert bsd.tex.mk to USES=tex

- Update all the consumers to use USES=tex
- USE_TEX=yes is the old way of writing USES=tex which has been removed
  and replaced in all ports
- Almost all of the USE_TEX features remains unchanged
- Some consumers had the same variables defined both in the mk
  infrastructure and also in the ports which have been removed from the
  ports as those are redundant.

In case any of the consumers are failing to build please make sure that
the nexessary USES=tex is there. Unlike previous USE_TEX=yes will no
longer load the required VARS for tex and related dependencies.

Reviewed by:	portmgr
Approved by:	portmgr (blanket)
721e5776c9
Stefan Eßer (se) · 10.3.20210921
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) · 10.3.20210921
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
Lev A. Serebryakov (lev) · 10.3.20210921
devel/gcc-arm-embedded: Update to latest version 2021.10

Toolchain has been updated to latest version 2021.10.
  This release has new versioning scheme.
3e93a63af1
Mikael Urankar (mikael) · 10.2.20201211_1
devel/gcc-arm-embedded: remove BROKEN_aarch64

It builds / runs fine on aarch64.

PR:		258024
Reported by:	Brian McGovern
Approved by:	portmgr (build fix blanket)
d67dc22f75
Mathieu Arnold (mat) · 10.2.20201211_1
One more small cleanup, forgotten yesterday. Reported by:	lwhsu
cf118ccf87
Mathieu Arnold (mat) · 10.2.20201211_1
all: Remove all other $FreeBSD keywords.
135fdeebb9
Mathieu Arnold (mat) · 10.2.20201211_1
Remove # $FreeBSD$ from Makefiles.
305f148f48
Gerald Pfeifer (gerald) · 10.2.20201211_1
Update to MPC version 1.2.0 with the following changes:  - New functions:    . mpc_sum    . mpc_dot  - Several functions are more robust with a reduced exponent range    (for example corresponding to IEEE 754 binary formats).  - New mpcheck tool for comparison with the native C library (which    is not installed by default).

Bump all directly dependent ports. Do not bump those indirectly
dependent via the lang/gcc* family since their run-time dependencies
and code generated should not be affected.

PR:		249950
Submitted by:	wen
3c29491c0b
Lev A. Serebryakov (lev) · 10.2.20201211
Update to latest release 10.2.
677d215140
Piotr Kubaj (pkubaj) · 9.3.20300529_2
devel/gcc-arm-embedded: fix build on powerpc64le

Use the same patch that other gcc ports use.
e7230b4c6f
Lev A. Serebryakov (lev) · 9.3.20300529_2
Fix build with poudriere.
bb93ce934f
Lev A. Serebryakov (lev) · 9.3.20300529_2
(1) Fix build of gmp on i386.  (2) Sync configure options for all components.  (3) Add option to build Cortex-A profiles (turn off by default).  (4) Use system iconv even in PURE version, as bundled iconv is      used by authors only for mingw32 builds.
fe8e5d6f84
Lev A. Serebryakov (lev) · 9.3.20300529_1
(1) Return option PURE, as libraries are bundled again.  (2) Make PURE default, as isl in ports have newer version.  (3) Fix HTML pkg-plist entries.

Yes, date in version is wrong (typo!), but I don't want to add epoch.
 Next update of gcc will fix it.
1ecbd73607
Lev A. Serebryakov (lev) · 9.3.20300529
Update to latest release 2020q2-update
a809c12c7b
Ed Maste (emaste) · 9.2.20191106_2
add objdump binutils dependencies to remaining devel/* ports

/usr/bin/objdump has been removed from the base system before FreeBSD 13.0.

Approved by:	bapt (implicit)
1625b63697
Lev A. Serebryakov (lev) · 9.2.20191106_2
Fix libiconv detection for gdb.

PR:		244925
Submitted by:	Ilia Skalozubov <freebsd@skinc.ru>
79c96605ce
Lev A. Serebryakov (lev) · 9.2.20191106_1
Migrate to python3
7f3ff11744
Lev A. Serebryakov (lev) · 9.2.20191106
Update to latest release 9-2019q4-major.
0614164be9
Piotr Kubaj (pkubaj) · 8.2.20181220_1
devel/gcc-arm-embedded: fix build on powerpc64 elfv2

Merge the same patch that is already in other GCC ports to fix build on powerpc64 elfv2.

PR:		242382
Approved by:	lev (maintainer timeout)
7a918113b2
Gerald Pfeifer (gerald) · 8.2.20181220_1
Bump PORTREVISION for ports depending on the canonical version of GCC as defined in Mk/bsd.default-versions.mk which has moved from GCC 8.3 to GCC 9.1 under most circumstances now after revision 507371.

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, everything INDEX-11 shows with a dependency on lang/gcc9 now.

PR:		238330
ea8c8ec7da
Lev A. Serebryakov (lev) · 8.2.20181220
Update to latest 2018-q4-major (gcc 8.2.1).
fe57bbff28
Gerald Pfeifer (gerald) · 7.3.20180627_1
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
a9f015d155
Mark Linimon (linimon) · 7.3.20180627
Fix build on gcc-based archs via USES=compiler:c++11-lang.

While here, fix obvious typo in SYMLINK_DESC.

PR:		232793
Submitted by:	Piotr Kubaj
Approved by:	portmgr (tier-2 blanket)
b13a5289ee
Lev A. Serebryakov (lev) · 7.3.20180627
Update to 2018q2-update.
f61b3fe565
Mark Linimon (linimon) · 7.2.20171218_5
Mark as broken on aarch64, and, where appropriate, armvX.

While here, pet portlint.

Approved by:	portmgr (tier-2 blanket)
0e9d79c998
Alex Dupre (ale) · 7.2.20171218_5
Update mpfr to 4.0.1 release and bump PORTVERSION of dependent ports.
aca2d686e3
Danilo Egea Gondolfo (danilo) · 7.2.20171218_4
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
6919f1bde0
Gerald Pfeifer (gerald) · 7.2.20171218_3
Bump PORTREVISIONs of all users of math/mpc that we just updated to version 1.1.0 (via revision 464079).
c2a92a1aea
Lev A. Serebryakov (lev) · 7.2.20171218_2
Fix build with clang 3 (10-STABLE) and clang 6 (12-CURRENT) compilers.

Add option (default ON) to create version-independend symlink for Arduino IDE.
ee1cdeab01
Lev A. Serebryakov (lev) · 7.2.20171218_1
Try to fix build with clang6.
1388aab9b0
Lev A. Serebryakov (lev) · 7.2.20171218
Update to latest release 7.2.1
6b385e4290
Ed Maste (emaste) · 6.3.20170628_1
devel/gcc-arm-embedded: enable for arm64

This was disabled with the reason being that it's slow to build in
emulation, but arm64 packages have been building on real hardware for
quite some time now.

Approved by:	lev
29ef845380
Mark Linimon (linimon) · 6.3.20170628_1
For ports that are marked NOT_FOR/ONLY_FOR armv6, also mark them so on armv7.

This is part one of a multipart commit to bring armv7 ports to parity
with armv6.

Approved by:	portmgr (tier-2 blanket)
14295721d4