Bug 273071 - devel/gcc-arm-embedded: error: ISO C++17 does not allow 'register' storage class specifier
Summary: devel/gcc-arm-embedded: error: ISO C++17 does not allow 'register' storage cl...
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Lev A. Serebryakov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-08-11 13:44 UTC by O. Hartmann
Modified: 2023-08-11 13:44 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (lev)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description O. Hartmann 2023-08-11 13:44:35 UTC
Host is running recent CURRENT, poudriere jail is 13-STABLE (see below).

On all build hosts poudriere build fails for target CURRENT and 13-STABLE with several compiler errors:

[...]

c++: error: unsupported option '-print-multi-os-directory'
c++: error: no input files

[...]

In file included from /wrkdirs/usr/ports/devel/gcc-arm-embedded/work/gcc-arm-none-eabi-10.3-2021.10/src/gcc/gcc/cp/except.c:972:
cfns.gperf:35:18: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
libc_name::hash (register const char *str, register unsigned int len)
                 ^~~~~~~~~
cfns.gperf:35:44: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
libc_name::hash (register const char *str, register unsigned int len)
                                           ^~~~~~~~~
cfns.gperf:66:3: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
  register int hval = len;
  ^~~~~~~~~
cfns.gperf:93:25: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
libc_name::libc_name_p (register const char *str, register unsigned int len)
                        ^~~~~~~~~
cfns.gperf:93:51: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
libc_name::libc_name_p (register const char *str, register unsigned int len)
                                                  ^~~~~~~~~
cfns.gperf:359:7: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
      register int key = hash (str, len);
      ^~~~~~~~~
cfns.gperf:363:11: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
          register int index = lookup[key];
          ^~~~~~~~~
cfns.gperf:367:15: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
              register const char *s = wordlist[index].name;
              ^~~~~~~~~
1 warning and 8 errors generated.
gmake[4]: *** [Makefile:1117: cp/except.o] Error 1

[...]

Environment:
=>> Building devel/gcc-arm-embedded
build started at Fri Aug 11 03:03:26 UTC 2023
port directory: /usr/ports/devel/gcc-arm-embedded
package name: gcc-arm-embedded-10.3.20210921
building for: FreeBSD host.dr-intern  13.2-STABLE FreeBSD 13.2-STABLE 1302507 amd64
maintained by: lev@FreeBSD.org
Makefile datestamp: -rw-r--r--  1 root  wheel  4942 Jul 17 17:01 /usr/ports/devel/gcc-arm-embedded/Makefile
Ports top last git commit: 5e15fd93e916
Ports top unclean checkout: no
Port dir last git commit: 474d6cc20c5e
Port dir unclean checkout: no
Poudriere version: poudriere-git-3.3.99.20220831
Host OSVERSION: 1400094
Jail OSVERSION: 1302507
Job Id: 01

---Begin Environment---
SHELL=/bin/csh
OSVERSION=1302507
UNAME_v=FreeBSD 13.2-STABLE 1302507
UNAME_r=13.2-STABLE
BLOCKSIZE=K
MAIL=/var/mail/root
MM_CHARSET=UTF-8
LANG=C.UTF-8
STATUS=1
HOME=/root
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin
LOCALBASE=/usr/local
USER=root
POUDRIERE_NAME=poudriere-git
LIBEXECPREFIX=/usr/local/libexec/poudriere
POUDRIERE_VERSION=3.3.99.20220831
MAKEOBJDIRPREFIX=/pool/sources/13-STABLE/obj/
MASTERMNT=/pool/poudriere/data/.m/13-amd64-head-default/ref
LC_COLLATE=C
POUDRIERE_BUILD_TYPE=bulk
PACKAGE_BUILDING=yes
SAVED_TERM=screen
OUTPUT_REDIRECTED_STDERR=4
OUTPUT_REDIRECTED=1
PWD=/pool/poudriere/data/.m/13-amd64-head-default/01/.p
OUTPUT_REDIRECTED_STDOUT=3
P_PORTS_FEATURES=FLAVORS SELECTED_OPTIONS
MASTERNAME=13-amd64-head-default
SCRIPTPREFIX=/usr/local/share/poudriere
SCRIPTNAME=bulk.sh
OLDPWD=/pool/poudriere/data/.m/13-amd64-head-default/ref/.p/pool
POUDRIERE_PKGNAME=poudriere-git-3.3.99.20220831
SCRIPTPATH=/usr/local/share/poudriere/bulk.sh
POUDRIEREPATH=/usr/local/bin/poudriere
---End Environment---

---Begin Poudriere Port Flags/Env---
PORT_FLAGS=
PKGENV=
FLAVOR=
DEPENDS_ARGS=
MAKE_ARGS=
---End Poudriere Port Flags/Env---

---Begin OPTIONS List---
===> The following configuration options are available for gcc-arm-embedded-10.3.20210921:
     APROFILE=off: Add support for Cortex-A profiles
     DOCS=on: Build and/or install documentation
     EXAMPLES=on: Build and/or install examples
     HTML=off: Install HTML documentation
     PDF=off: Install PDF documentation (requires TeX, it is huge)
     PURE=on: Use all libraries from bundle, do not depend on anything
     PYGDB=on: Build and install python-enabled gdb in addition to standard one
     SYMLINK=on: Make version-independent symlink /usr/local/gcc-arm-embedded
===> Use 'make config' to modify these settings
---End OPTIONS List---

--MAINTAINER--
lev@FreeBSD.org
--End MAINTAINER--

--CONFIGURE_ARGS--
--prefix=/usr/local ${_LATE_CONFIGURE_ARGS}
--End CONFIGURE_ARGS--