/bin/sh ../libtool --tag=CC --mode=link x86_64-pc-linux-gnu-gcc -I../include -pipe -march=native -fno-diagnostics-color -O2 -fno-lto -Wall -Wsign-compare -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wl,--defsym=__gentoo_check_ldflags__=0 -o upssched upssched.o ../common/libcommon.la ../common/libparseconf.la -lpthread In file included from nutclient.cpp:20: nutclient.h:135:86: error: ISO C++17 does not allow dynamic exception specifications 135 | enticate(const std::string& user, const std::string& passwd)throw(NutException)=0; | ^~~~~ nutclient.h:141:30: error: ISO C++17 does not allow dynamic exception specifications ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 17.1_developer-j3_abi32+64-20210708-145748 ------------------------------------------------------------------- gcc-config -l: [1] x86_64-pc-linux-gnu-11.1.0 * clang version 12.0.1 Target: x86_64-pc-linux-gnu Thread model: posix InstalledDir: /usr/lib/llvm/12/bin /usr/lib/llvm/12 12.0.1 Python 3.9.6 Available Ruby profiles: [1] ruby26 (with Rubygems) [2] ruby30 (with Rubygems) * Available Rust versions: [1] rust-bin-1.53.0 * 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 HEAD of ::gentoo commit 0dd37694f4291b067ffaae49e134011a658ea695 Author: Repository mirror & CI <repomirrorci@gentoo.org> Date: Sat Jul 10 02:37:03 2021 +0000 2021-07-10 02:37:02 UTC emerge -qpvO sys-power/nut [ebuild N ] sys-power/nut-2.7.4-r7 USE="snmp (split-usr) ssl tcpd ups_drivers_al175 ups_drivers_apcsmart ups_drivers_apcsmart-old ups_drivers_apcupsd-ups ups_drivers_bcmxcp ups_drivers_bcmxcp_usb ups_drivers_belkin ups_drivers_belkinunv ups_drivers_bestfcom ups_drivers_bestfortress ups_drivers_bestuferrups ups_drivers_bestups ups_drivers_blazer_ser ups_drivers_blazer_usb ups_drivers_clone ups_drivers_clone-outlet ups_drivers_dummy-ups ups_drivers_etapro ups_drivers_everups ups_drivers_gamatronic ups_drivers_genericups ups_drivers_isbmex ups_drivers_ivtscd ups_drivers_liebert ups_drivers_liebert-esp2 ups_drivers_masterguard ups_drivers_metasys ups_drivers_mge-shut ups_drivers_mge-utalk ups_drivers_microdowell ups_drivers_nutdrv_qx ups_drivers_oldmge-shut ups_drivers_oneac ups_drivers_optiups ups_drivers_powercom ups_drivers_powerpanel ups_drivers_rhino ups_drivers_richcomm_usb ups_drivers_riello_ser ups_drivers_riello_usb ups_drivers_safenet ups_drivers_solis ups_drivers_tripplite ups_drivers_tripplite_usb ups_drivers_tripplitesu ups_drivers_upscode2 ups_drivers_usbhid-ups ups_drivers_victronups usb xml zeroconf -cgi -ipmi (-selinux) -ups_drivers_netxml-ups -ups_drivers_nut-ipmipsu -ups_drivers_snmp-ups"
Created attachment 723109 [details] emerge-info.txt
Created attachment 723112 [details] emerge-history.txt
Created attachment 723115 [details] environment
Created attachment 723118 [details] etc.portage.tar.bz2
Created attachment 723121 [details] logs.tar.bz2
Created attachment 723124 [details] sys-power:nut-2.7.4-r7:20210710-034858.log
Created attachment 723127 [details] temp.tar.bz2
Compiles with gcc-11 when specifying C++14 standard instead of the now-default C++17 --- /var/db/gentoo/sys-power/nut/nut-2.7.4-r6.ebuild 2020-09-07 10:09:40.000000000 +0100 +++ /var/db/repos/localrepo/sys-power/nut/nut-2.7.4-r6999.ebuild 2021-07-10 13:16:07.408870230 +0100 @@ -113,7 +113,7 @@ src_configure() { local myconf - append-flags -fno-lto + append-flags -fno-lto -std=c++14 tc-export CC tc-export CXX tc-export AR
appendflags -std=c++14 makes it build with all non-masked version of gcc (tested gcc-8.4.0-r2, 9.3.0-r2, 10.3.0-r2, 11.1.0-r2)
See also: https://bugs.gentoo.org/show_bug.cgi?id=786702
*** This bug has been marked as a duplicate of bug 786702 ***
(In reply to Gary E. Miller from comment #10) > See also: https://bugs.gentoo.org/show_bug.cgi?id=786702 Thanks!