[Bug 271044] textproc/source-highlight: fix build with clang 16
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 24 Apr 2023 15:29:41 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=271044 Bug ID: 271044 Summary: textproc/source-highlight: 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: tcberner@freebsd.org Reporter: dim@FreeBSD.org Assignee: tcberner@freebsd.org Flags: maintainer-feedback?(tcberner@freebsd.org) Since clang 16 (and gcc 11) the default C++ standard is now gnu++17. Because textproc/source-highlight's Makefile does not explicitly set its C++ standard, this leads to several errors: In file included from fileutil.cc:28: ./fileutil.h:30:41: error: ISO C++17 does not allow dynamic exception specifications [-Wdynamic-exception-spec] string readFile(const string &fileName) throw (IOException); ^~~~~~~~~~~~~~~~~~~ ./fileutil.h:30:41: note: use 'noexcept(false)' instead string readFile(const string &fileName) throw (IOException); ^~~~~~~~~~~~~~~~~~~ noexcept(false) fileutil.cc:51:41: error: ISO C++17 does not allow dynamic exception specifications [-Wdynamic-exception-spec] string readFile(const string &fileName) throw (IOException) { ^~~~~~~~~~~~~~~~~~~ fileutil.cc:51:41: note: use 'noexcept(false)' instead string readFile(const string &fileName) throw (IOException) { ^~~~~~~~~~~~~~~~~~~ noexcept(false) In http://git.savannah.gnu.org/cgit/src-highlite.git/commit/?id=416b397 indicates that after 3.1.9 C++11 will be required and supported, so add USE_CXXSTD=gnu++11 to avoid the errors for now. -- You are receiving this mail because: You are the assignee for the bug.