x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I/var/tmp/portage/dev-cpp/htmlcxx-0.87/work/htmlcxx-0.87/html -I.. -pipe -march=native -fno-diagnostics-color -O2 -DDEFAULT_CSS="\"/usr/share/htmlcxx/css/default.css\"" -c -o tests.o /var/tmp/portage/dev-cpp/htmlcxx-0.87/work/htmlcxx-0.87/html/tests.cc In file included from /var/tmp/portage/dev-cpp/htmlcxx-0.87/work/htmlcxx-0.87/html/tests.cc:6: /var/tmp/portage/dev-cpp/htmlcxx-0.87/work/htmlcxx-0.87/html/CharsetConverter.h:20:90: error: ISO C++17 does not allow dynamic exception specifications 20 | CharsetConverter(const std::string &from, const std::string &to) throw (Exception); | ^~~~~ make[2]: *** [Makefile:690: tests.o] Error 1 make[2]: Leaving directory '/var/tmp/portage/dev-cpp/htmlcxx-0.87/work/htmlcxx-0.87-abi_x86_64.amd64/html' ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 17.1_desktop_plasma-20210420-165442 ------------------------------------------------------------------- gcc-config -l: [1] 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.9 Available Ruby profiles: [1] ruby26 (with Rubygems) [2] ruby30 (with Rubygems) * Available Rust versions: [1] rust-bin-1.51.0 [2] rust-1.51.0 * The Glorious Glasgow Haskell Compilation System, version 8.10.4 timestamp(s) of HEAD at this tinderbox image: /var/db/repos/gentoo Wed Apr 28 23:50:13 UTC 2021 emerge -qpvO dev-cpp/htmlcxx [ebuild N ] dev-cpp/htmlcxx-0.87 USE="-static-libs" ABI_X86="(64) -32 (-x32)"
Created attachment 703707 [details] emerge-info.txt
Created attachment 703710 [details] dev-cpp:htmlcxx-0.87:20210429-042558.log
Created attachment 703713 [details] emerge-history.txt
Created attachment 703716 [details] environment
Created attachment 703719 [details] etc.portage.tar.bz2
Created attachment 703722 [details] logs.tar.bz2
Created attachment 703725 [details] temp.tar.bz2
I am able to reproduce. This is definitely related to gcc-11 defaulting to "-std=c++17", a workaround is to set the previous default of "-std=c++11" in CXXFLAGS which works.
(In reply to Alfred Wingate from comment #8) > I am able to reproduce. This is definitely related to gcc-11 defaulting to > "-std=c++17", a workaround is to set the previous default of "-std=c++11" in > CXXFLAGS which works. I am mistaken. Previous default was "-std=c++14". The above still applies but for "-std=c++14".
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f7b7c15da117ceb50850679f14573de8a1e22e4e commit f7b7c15da117ceb50850679f14573de8a1e22e4e Author: James Le Cuirot <chewi@gentoo.org> AuthorDate: 2021-06-01 21:54:20 +0000 Commit: James Le Cuirot <chewi@gentoo.org> CommitDate: 2021-06-01 21:55:09 +0000 dev-cpp/htmlcxx: Patch to fix building with GCC 11 / C++-17 Closes: https://bugs.gentoo.org/786684 Package-Manager: Portage-3.0.19, Repoman-3.0.3 Signed-off-by: James Le Cuirot <chewi@gentoo.org> dev-cpp/htmlcxx/files/htmlcxx-0.87-c++17.patch | 26 ++++++++++++++++++++++++++ dev-cpp/htmlcxx/htmlcxx-0.87.ebuild | 6 +++++- 2 files changed, 31 insertions(+), 1 deletion(-)