Created attachment 444438 [details] build log using gcc-6.2.0 Package x11-libs/wxGTK-3.0.2.0-r2 cannot be built with gcc-6.x. > error: call of overloaded 'abs(XYPOSITION)' is ambiguous ---------------- # emerge -pv =x11-libs/wxGTK-3.0.2.0-r2 These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild R ] x11-libs/wxGTK-3.0.2.0-r2:3.0::gentoo USE="X gstreamer libnotify opengl sdl tiff webkit (-aqua) -debug -doc" ABI_X86="(64) -32 (-x32)" 0 KiB Total: 1 package (1 reinstall), Size of downloads: 0 KiB
Created attachment 444440 [details] emerge --info
Created attachment 444622 [details, diff] wxGTK-3 abs -> fabs
Created attachment 444624 [details, diff] wxGTK-3 abs -> fabs (cmath) Same, but some more native for c++ (#include <cmath>)
Patch from comment 3 works for me.
I see this has been fixed in wxGTK 3.1.0 with the patch from here: https://github.com/wxphp/appimage/blob/master/wxgtk-gcc6.patch. I will also mention this in the wxGTK 3.1.0 thread (bug 577030).
Thanks, I'll have a look next week.
(In reply to ncahill_alt from comment #5) > I see this has been fixed in wxGTK 3.1.0 with the patch from here: > https://github.com/wxphp/appimage/blob/master/wxgtk-gcc6.patch. > > I will also mention this in the wxGTK 3.1.0 thread (bug 577030). This is the correct patch. If someone wants to apply it go ahead. I don't have commit access at the moment.
commit 8fc2b29f54a92b6c66baa691ab751285be34cdb4 Author: David Seifert <soap@gentoo.org> Date: Sun Oct 2 13:21:57 2016 +0200 x11-libs/wxGTK: Allow for compiling with GCC 6 Gentoo-bug: 592436 Acked-by: Ryan Hill <rhill@gentoo.org> commit eb60cc77486346e23e843acc46e4a710b9d8cdbc Author: David Seifert <soap@gentoo.org> Date: Sun Oct 2 11:41:03 2016 +0200 x11-libs/wxGTK: Allow for compiling with GCC 6 Gentoo-bug: 592436 Acked-by: Ryan Hill <rhill@gentoo.org>