from mrt/timespy.cpp:21: mrt/timespy.cpp: In destructor ‘mrt::TimeSpy::~TimeSpy()’: mrt/exception.h:63:163: error: throw will always call terminate() [-Werror=terminate] sage(mrt::format_string str); e.add_message(e.get_custom_message()); throw e; } ^ mrt/ioexception.h:31:23: note: in expansion of macro ‘throw_generic’ ----------------------------------------------------------------- This is an unstable amd64 chroot image (named desktop-libressl-abi32+64_20170215-185650) at a hardened host acting as a tinderbox. ----------------------------------------------------------------- gcc-config -l: [1] x86_64-pc-linux-gnu-6.3.0 * llvm-config: 3.9.1 Available Python interpreters, in order of preference: [1] python3.4 [2] python2.7 (fallback) java-config: The following VMs are available for generation-2: *) IcedTea JDK 3.3.0 [icedtea-bin-8] Available Java Virtual Machines: [1] icedtea-bin-8 system-vm
Created attachment 464188 [details] emerge-info.txt
Created attachment 464190 [details] config.log
Created attachment 464192 [details] emerge-history.txt
Created attachment 464194 [details] environment
Created attachment 464196 [details] etc.portage.tbz2
Created attachment 464198 [details] games-action:btanks-0.9.8083:20170218-012801.log
This is new behaviour from gcc 6 branch that means destructors are noexcept by default. As a workaround you can add "-Wno-error=terminate" to CXXFLAGS or try the attached patch. I have not tried it, but I believe it would help.
Created attachment 464206 [details, diff] patch to add noexcept(false) to destructor
(In reply to zakalwe from comment #8) > Created attachment 464206 [details, diff] [details, diff] > patch to add noexcept(false) to destructor That patch will fail with GCC 5 and below, as they compile C++ in -std=gnu++98 mode by default, which doesn't know noexcept(). The proper fix is to make it conditional on the __cplusplus macro value.
PR: https://github.com/gentoo/gentoo/pull/5190
commit ddc1a4cfd09f5429575c3eba483995b22907d9ef Author: Peter Levine <plevine457@gmail.com> Date: Mon Jul 24 00:26:42 2017 -0400 games-action/btanks: Fix building with -Werror=terminate in GCC-6 Bug: https://bugs.gentoo.org/show_bug.cgi?id=609692