Bug 263531

Summary: lang/plexil: Fails to build with GCC 11: error: ISO C++17 does not allow dynamic exception specifications
Product: Ports & Packages Reporter: Lorenzo Salvadore <salvadore>
Component: Individual Port(s)Assignee: Yuri Victorovich <yuri>
Status: Closed Overcome By Events    
Severity: Affects Some People CC: gerald, salvadore
Priority: --- Flags: bugzilla: maintainer-feedback? (yuri)
Version: Latest   
Hardware: Any   
OS: Any   
URL: http://package18.nyi.freebsd.org/data/122amd64-default-foo/2021-09-18_18h41m21s/logs/errors/plexil-4.5.0_1.log
Bug Depends on:    
Bug Blocks: 258378    

Description Lorenzo Salvadore freebsd_committer freebsd_triage 2022-04-24 19:09:53 UTC
Building port with GCC 11 gives the following error message (full log in URL):

In file included from Array.hh:30,
                 from Array.cc:27:
ValueType.hh:157:5: error: ISO C++17 does not allow dynamic exception specifications
  157 |     throw (ParserException);
      |     ^~~~~
ValueType.hh:161:5: error: ISO C++17 does not allow dynamic exception specifications
  161 |     throw (ParserException)
      |     ^~~~~
gmake[3]: *** [Makefile:569: libPlexilValue_la-Array.lo] Error 1
gmake[3]: *** Waiting for unfinished jobs....
In file included from Array.hh:30,
                 from ArrayImpl.hh:30,
                 from ArrayImpl.cc:27:
ValueType.hh:157:5: error: ISO C++17 does not allow dynamic exception specifications
  157 |     throw (ParserException);
      |     ^~~~~
ValueType.hh:161:5: error: ISO C++17 does not allow dynamic exception specifications
  161 |     throw (ParserException)
      |     ^~~~~
gmake[3]: *** [Makefile:576: libPlexilValue_la-ArrayImpl.lo] Error 1
Comment 1 Gerald Pfeifer freebsd_committer freebsd_triage 2022-04-24 19:21:29 UTC
Note, this blocks the update of GCC_DEFAULT from GCC 10 to GCC 11 (where
GCC 12 is going to be released soon).

Also, maybe once this is addressed USE_GCC can be removed in favor of 
using the default clang compiler?
Comment 2 commit-hook freebsd_committer freebsd_triage 2022-04-24 19:43:20 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=0dbe6a8466dd62cb74de254ecc058badcab264f5

commit 0dbe6a8466dd62cb74de254ecc058badcab264f5
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-04-24 19:41:02 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-04-24 19:42:21 +0000

    lang/plexil: Update 4.5.0-RC2 -> 4.5.0-RC3

    PR:             263531

 lang/plexil/Makefile  | 15 +++++++++++----
 lang/plexil/distinfo  |  6 +++---
 lang/plexil/pkg-plist | 12 +++++++++---
 3 files changed, 23 insertions(+), 10 deletions(-)
Comment 3 Yuri Victorovich freebsd_committer freebsd_triage 2022-04-24 19:43:40 UTC
Closing: the port doesn't depend on GCC any more.