Date: Tue, 20 Jun 2023 18:56:06 +0000 From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 272101] math/cbc: fix build with clang 16 Message-ID: <bug-272101-7788@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D272101 Bug ID: 272101 Summary: math/cbc: 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: yuri@freebsd.org Reporter: dim@FreeBSD.org Assignee: yuri@freebsd.org Flags: maintainer-feedback?(yuri@freebsd.org) Since clang 16 (and gcc 11) the default C++ standard is now gnu++17. Because math/cbc's build infrastructure does not explicitly set its C++ standard, this leads to errors: ./CbcSymmetry.hpp:83:30: error: ISO C++17 does not allow 'register' stora= ge class specifier [-Wregister] inline void color_vertex(register int k) { color =3D k; } ^~~~~~~~~ ./CbcSymmetry.hpp:91:24: error: ISO C++17 does not allow 'register' stora= ge class specifier [-Wregister] inline void bounds(register double a, register double b) ^~~~~~~~~ To work around the error, add USE_CXXSTD=3Dgnu++11 to compile for C++11 with GNU extensions instead. --=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-272101-7788>