Bug 263538 - multimedia/avidemux: Fails to build with GCC 11: error: ISO C++17 does not allow dynamic exception specifications
Summary: multimedia/avidemux: Fails to build with GCC 11: error: ISO C++17 does not al...
Status: Closed Unable to Reproduce
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-multimedia (Nobody)
URL: http://package18.nyi.freebsd.org/data...
Keywords:
Depends on:
Blocks: 258378
  Show dependency treegraph
 
Reported: 2022-04-24 21:43 UTC by Lorenzo Salvadore
Modified: 2022-05-21 14:20 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (multimedia)


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 21:43:48 UTC
Updating GCC_DEFAULT from GCC 10 to GCC 11 is blocked by the fact that building this port with GCC 11 gives errors like the following (full log in URL):

/wrkdirs/usr/ports/multimedia/avidemux/work/avidemux_2.7.6/avidemux_core/ADM_coreUtils/src/Source/JSONDefs/GNU_C.h:58:28: error: ISO C++17 does not allow dynamic exception specifications
   58 |     #define json_throws(x) throw(x)
      |                            ^~~~~

Also, please check that USE_GCC is still needed and that the default clang compier can't be used instead.
Comment 1 Lorenzo Salvadore freebsd_committer freebsd_triage 2022-05-21 14:20:03 UTC
I was unable to reproduce the bug: I could build successfully the port with poudriere on {i386, amd64} {12.3,13.0,13.1}-RELEASE.

The results of the exp-run are old and the issue has probably been fixed since then, maybe with the update to 2.7.8:
https://cgit.freebsd.org/ports/commit/?id=4fded9331ce96f4ebae8106c1ab27844d92719d8