Created attachment 434746 [details, diff] Perl gcc6 fix This patch is needed to compile perl with lto on gcc6 Taken from https://rt.perl.org/Public/Bug/Display.html?id=128131
There's no way we can test this since gcc6 is not in the Gentoo main tree yet.
The patch is scheduled for 5.24.2; I'd suggest we add it in Gentoo already to 5.24.1 proper once that is released and bumped.
Fixed in 5.22.3( final ) and 5.24.1-r1 commit f7f55098218de72848fed8ab450b5d895efc02eb Author: Kent Fredric <kentnl@gentoo.org> Date: Wed Feb 22 05:56:13 2017 +1300 dev-lang/perl,virtual/perl-Module-CoreList: Bump to 5.22.3 Final - Fix bug with patching now-missing CPANPLUS code #608966 - Update cross-perl to 1.1.4 - Fix cross-compile bugs - Fix GCC6 + lto bugs #583532 - Backport fixes from Compress-Raw-Zlib 2.074 for zlib 1.2.9+ #606374 Bug: https://bugs.gentoo.org/608966 Bug: https://bugs.gentoo.org/583532 Bug: https://bugs.gentoo.org/606374 Package-Manager: Portage-2.3.3, Repoman-2.3.1 dev-lang/perl/perl-5.22.3.ebuild | 550 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 550 insertions(+) commit e03cb8b9c2fee8ea8fbc7668e9b9b01d9fca059a Author: Kent Fredric <kentnl@gentoo.org> Date: Tue Feb 21 15:14:57 2017 +1300 dev-lang/perl: Update to patchelevel 3 - Fix related to bug #608966 under crossdev where "touch" on a path would fail because the parent path did not exist - Fix patching failure under crossdev due to SHA1Sums changing - Upgrade perl-cross to 1.1.4 - Fix makefile ordering issue when compiling unicore/ parts before Config.pm has been compiled - Ensure miniperl is built with the right target arch for bootstrap - Upgrade base.pm patchset to latest for testing - Fix compilation with GCC6 and -flto #583532 - Properly fix compilation against newer zlibs #606374 by backporting changes to ZLib.xs from Compress-Raw-Zlib 2.074 Bug: https://bugs.gentoo.org/608966 Bug: https://bugs.gentoo.org/583532 Bug: https://bugs.gentoo.org/606374 Package-Manager: Portage-2.3.3, Repoman-2.3.1 dev-lang/perl/perl-5.24.1-r1.ebuild | 559 ++++++++++++++++++++++++++++++++++++ 1 file changed, 559 insertions(+)