Date: Sun, 23 Apr 2023 18:44:50 +0000 From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 271030] devel/gperf: fix build with clang 16 Message-ID: <bug-271030-7788@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D271030 Bug ID: 271030 Summary: devel/gperf: fix build with clang 16 Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: dinoex@FreeBSD.org Reporter: dim@FreeBSD.org Assignee: dinoex@FreeBSD.org Flags: maintainer-feedback?(dinoex@FreeBSD.org) Since clang 16 (and gcc 11) the default C++ standard is now gnu++17. Because devel/gperf's Makefile does not explicitly set its C++ standard, this leads to an error: c++ -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -I. -c ./getline.cc ./getline.cc:58:7: error: ISO C++17 does not allow 'register' storage cla= ss specifier [-Wregister] register int c =3D getc (stream); ^~~~~~~~~ Add USE_CXXSTD=3Dgnu++89 to avoid this error. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-271030-7788>