Bug 263529 - cad/alliance: Fails to build with GCC 11: error: ISO C++17 does not allow dynamic exception specifications
Summary: cad/alliance: Fails to build with GCC 11: error: ISO C++17 does not allow dyn...
Status: Closed Overcome By Events
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-ports-bugs (Nobody)
URL: http://package18.nyi.freebsd.org/data...
Keywords:
Depends on:
Blocks:
 
Reported: 2022-04-24 19:01 UTC by Lorenzo Salvadore
Modified: 2023-02-03 15:41 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lorenzo Salvadore freebsd_committer freebsd_triage 2022-04-24 19:01:04 UTC
Building port with GCC 11 gives the following error message (full log in URL):

!!! build failure encountered !!!
                                                         5140,1        Fon
  153 |     char  z2via         (int z) throw (except_done);
      |                                 ^~~~~
MMBK.h:261:49: error: ISO C++17 does not allow dynamic exception specifications
  261 |     CFig (string &nameLofig, string &namePhfig) throw (except_done);
      |                                                 ^~~~~
MMBK.h:354:60: error: ISO C++17 does not allow dynamic exception specifications
  354 |     CPowers (CFig*, long xoff, long yoff, char, int, long) throw (except_done);
      |                                                            ^~~~~
In file included from RDefs.h:23,
                 from nero.cpp:19:
ADefs.h:274:38: error: ISO C++17 does not allow dynamic exception specifications
  274 |     private: bool  step       (void) throw (trapped_astar);
      |                                      ^~~~~
ADefs.h:282:44: error: ISO C++17 does not allow dynamic exception specifications
  282 |     public:  void  route      (CNet *pNet) throw (reach_max_pri);
      |                                            ^~~~~
In file included from nero.cpp:19:
RDefs.h:73:42: error: ISO C++17 does not allow dynamic exception specifications
   73 |     public: void  mbksave (string &name) throw (except_done);
      |                                          ^~~~~
Comment 1 Lorenzo Salvadore freebsd_committer freebsd_triage 2022-04-26 14:10:53 UTC
The port has been marked as broken after the date of the exp-run with

BROKEN= fails to build with latest TeX2021

Please see

https://cgit.freebsd.org/ports/commit/?id=6e7c07e3a636f52c452d030a4db680c859d70437

So this can't block GCC default version update and I remove the exp-run from the 'Blocks' field.
Comment 2 Thierry Thomas freebsd_committer freebsd_triage 2022-11-20 15:49:33 UTC
I just committed some changes on this port: see commit 99731f4c2354.

I' is OK for me, but I have been unable to reproduce the error you reported before my fixes: could you please check?
Comment 3 Lorenzo Salvadore freebsd_committer freebsd_triage 2022-11-20 18:36:54 UTC
(In reply to Thierry Thomas from comment #2)

I will check as soon as possible and let you know.

You might want to test the port build with GCC 12 too, as I do not think it as ever been tested in any of the exp-run I requested for the update of GCC_DEFAULT to version 12. Please see also bug #265948.
Comment 4 Lorenzo Salvadore freebsd_committer freebsd_triage 2022-11-22 21:21:03 UTC
I have built the port successfully both with GCC 11 and GCC 12 on FreeBSD 13.1 amd64. I guess this bug can be safely closed with "Overcome by events".
Comment 5 Lorenzo Salvadore freebsd_committer freebsd_triage 2023-02-03 15:41:16 UTC
I close this bug. Freshports also reports the port is being built successfully with a GCC 12 dependency: https://www.freshports.org/cad/alliance/ .