Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 789627

Summary: media-radio/fldigi-4.1.18 - ./.../sound.h: error: ISO C++17 does not allow dynamic exception specifications (maybe gcc-11 related)
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Thomas Beierlein <tomjbe>
Status: RESOLVED FIXED    
Severity: normal CC: gentoo
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 732706    
Attachments: emerge-info.txt
emerge-history.txt
environment
etc.portage.tar.bz2
logs.tar.bz2
media-radio:fldigi-4.1.18:20210512-010320.log
temp.tar.bz2

Description Toralf Förster gentoo-dev 2021-05-12 09:07:00 UTC
                 from ./include/trx.h:30,
                 from main.cxx:82:
./include/sound.h:110:30: error: ISO C++17 does not allow dynamic exception specifications
  110 |         virtual ~SoundBase() throw (SndException);
      |                              ^~~~~
In file included from ./include/modem.h:28,
                 from ./include/trx.h:30,

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_gnome_systemd-abi32+64_j2-20210510-163641

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-7.3.1
 [2] x86_64-pc-linux-gnu-11.1.0 *
clang version 12.0.0
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/12/bin
/usr/lib/llvm/12
12.0.0
Python 3.8.10
Available Ruby profiles:
  (none found)
Available Rust versions:
  [1]   rust-bin-1.52.1
  [2]   rust-1.52.1 *
The following VMs are available for generation-2:
*)	AdoptOpenJDK 8.292_p10 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8  system-vm

The Glorious Glasgow Haskell Compilation System, version 8.10.4
  [1]   php8.0 *

  timestamp(s) of HEAD at this tinderbox image:
/var/db/repos/gentoo	Tue May 11 23:50:56 UTC 2021

emerge -qpvO media-radio/fldigi
[ebuild  N    ] media-radio/fldigi-4.1.18  USE="nls pulseaudio -hamlib" CPU_FLAGS_X86="sse sse2 sse3"
Comment 1 Toralf Förster gentoo-dev 2021-05-12 09:07:01 UTC
Created attachment 707400 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-05-12 09:07:03 UTC
Created attachment 707403 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2021-05-12 09:07:04 UTC
Created attachment 707406 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2021-05-12 09:07:05 UTC
Created attachment 707409 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2021-05-12 09:07:06 UTC
Created attachment 707412 [details]
logs.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2021-05-12 09:07:08 UTC
Created attachment 707415 [details]
media-radio:fldigi-4.1.18:20210512-010320.log
Comment 7 Toralf Förster gentoo-dev 2021-05-12 09:07:09 UTC
Created attachment 707418 [details]
temp.tar.bz2
Comment 8 Richard Freeman gentoo-dev 2021-06-17 19:20:33 UTC
I just fixed gcc-11 issues on flmsg, but I don't see an upstream commit addressing fldigi.

I tested that dropping the existing patch and adding "append-cxxflags $(test-flags-CXX -std=c++14)" does fix the bug for both gcc-11 and gcc-10 still works.

Not sure if anybody has a cleaner solution ready.
Comment 9 Thomas Beierlein gentoo-dev 2021-06-25 11:13:12 UTC
(In reply to Richard Freeman from comment #8)
> I just fixed gcc-11 issues on flmsg, but I don't see an upstream commit
> addressing fldigi.
> 
> I tested that dropping the existing patch and adding "append-cxxflags
> $(test-flags-CXX -std=c++14)" does fix the bug for both gcc-11 and gcc-10
> still works.
> 
> Not sure if anybody has a cleaner solution ready.

Rich, thanks for the helpful info. 

I can confirm that it works for using GCC as your compiler suite. Things are looking not so good for CLANG. Needs more work.
Comment 10 Thomas Beierlein gentoo-dev 2021-06-25 12:19:25 UTC
(In reply to Thomas Beierlein from comment #9)
> I can confirm that it works for using GCC as your compiler suite. Things are
> looking not so good for CLANG. Needs more work.

Wrong test settings.... CLANG should work also. Will fix in next days.
Comment 11 imese 2021-06-28 12:54:45 UTC
./include/sound.h:215:22: error: ISO C++17 does not allow dynamic exception specifications
  215 |         ~SoundPort() throw (SndException);
      |                      ^~~~~
make[3]: *** [Makefile:6783: misc/fldigi-arq_io.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: *** [Makefile:6811: misc/fldigi-ax25_decode.o] Error 1
make[3]: *** [Makefile:6727: fldigi-main.o] Error 1
make[3]: *** [Makefile:6853: misc/fldigi-configuration.o] Error 1
make[3]: Leaving directory '/var/tmp/portage/media-radio/fldigi-4.1.19/work/fldigi-4.1.19/src'
make[2]: *** [Makefile:8747: all-recursive] Error 1
make[2]: Leaving directory '/var/tmp/portage/media-radio/fldigi-4.1.19/work/fldigi-4.1.19/src'
make[1]: *** [Makefile:2036: all] Error 2
make[1]: Leaving directory '/var/tmp/portage/media-radio/fldigi-4.1.19/work/fldigi-4.1.19/src'
make: *** [Makefile:469: all-recursive] Error 1
 * ERROR: media-radio/fldigi-4.1.19::gentoo failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=media-radio/fldigi-4.1.19::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=media-radio/fldigi-4.1.19::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/media-radio/fldigi-4.1.19/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-radio/fldigi-4.1.19/temp/environment'.
 * Working directory: '/var/tmp/portage/media-radio/fldigi-4.1.19/work/fldigi-4.1.19'
 * S: '/var/tmp/portage/media-radio/fldigi-4.1.19/work/fldigi-4.1.19'

>>> Failed to emerge media-radio/fldigi-4.1.19, Log file:
Comment 12 Thomas Beierlein gentoo-dev 2021-06-29 17:17:12 UTC
(In reply to imese from comment #11)
> ./include/sound.h:215:22: error: ISO C++17 does not allow dynamic exception
> specifications
>   215 |         ~SoundPort() throw (SndException);
>       |                      ^~~~~
>.....
> >>> Failed to emerge media-radio/fldigi-4.1.19, Log file:

Yes we know that that is the problem (see attachments from original post). Please retest AFTER a change was made.
Comment 13 Larry the Git Cow gentoo-dev 2021-07-01 05:40:30 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9b2d57478d976e76b25b9dd71effd0cb1f0b6f77

commit 9b2d57478d976e76b25b9dd71effd0cb1f0b6f77
Author:     Thomas Beierlein <tomjbe@gentoo.org>
AuthorDate: 2021-07-01 05:40:14 +0000
Commit:     Thomas Beierlein <tomjbe@gentoo.org>
CommitDate: 2021-07-01 05:40:14 +0000

    media-radio/fldigi: Fix GCC-11 compilation problems (use C++14)
    
    Closes: https://bugs.gentoo.org/789627
    Package-Manager: Portage-3.0.20, Repoman-3.0.3
    Signed-off-by: Thomas Beierlein <tomjbe@gentoo.org>

 media-radio/fldigi/files/fldigi-c++11.patch | 41 -----------------------------
 media-radio/fldigi/fldigi-4.1.18.ebuild     |  5 ++--
 media-radio/fldigi/fldigi-4.1.19.ebuild     |  5 ++--
 3 files changed, 6 insertions(+), 45 deletions(-)