Created attachment 444460 [details] build log for media-libs/smpeg-0.4.4-r10 using gcc-6.2.0 After having upgraded gcc to version 6.2.0 I can't build media-libs/smpeg-0.4.4-r10 anymore. It used to work with gcc-5.4.0 Snippet of error message: > /var/tmp/portage/media-libs/smpeg-0.4.4-r10/work/smpeg-0.4.4/audio/huffmantable.cpp:587:1: error: narrowing conversion of '-1' from 'int' to 'unsigned int' inside { } [-Wnarrowing] > }; > ^ > /var/tmp/portage/media-libs/smpeg-0.4.4-r10/work/smpeg-0.4.4/audio/huffmantable.cpp:587:1: error: narrowing conversion of '-1' from 'int' to 'unsigned int' inside { } [-Wnarrowing] > /var/tmp/portage/media-libs/smpeg-0.4.4-r10/work/smpeg-0.4.4/audio/huffmantable.cpp:587:1: error: narrowing conversion of '-1' from 'int' to 'unsigned int' inside { } [-Wnarrowing] > /var/tmp/portage/media-libs/smpeg-0.4.4-r10/work/smpeg-0.4.4/audio/huffmantable.cpp:587:1: error: narrowing conversion of '-1' from 'int' to 'unsigned int' inside { } [-Wnarrowing] > /var/tmp/portage/media-libs/smpeg-0.4.4-r10/work/smpeg-0.4.4/audio/huffmantable.cpp:587:1: error: narrowing conversion of '-1' from 'int' to 'unsigned int' inside { } [-Wnarrowing] > /var/tmp/portage/media-libs/smpeg-0.4.4-r10/work/smpeg-0.4.4/audio/huffmantable.cpp:587:1: error: narrowing conversion of '-1' from 'int' to 'unsigned int' inside { } [-Wnarrowing] > make[1]: *** [Makefile:427: huffmantable.lo] Error 1 ---------------- # emerge -pv smpeg These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild R ] media-libs/smpeg-0.4.4-r10::gentoo USE="X opengl -debug -static-libs" ABI_X86="(64) -32 (-x32)" CPU_FLAGS_X86="(-mmx)" 0 KiB Total: 1 package (1 reinstall), Size of downloads: 0 KiB
Created attachment 444462 [details] emerge --info
Adding -std=gnu++98 to CXXFLAGS fixes the problem.
Created attachment 447256 [details, diff] smpeg-0.4.4-gcc6.patch
I confirm I'm able to correctly build media-libs/smpeg-0.4.4-r10 with patch from comment 3.
*** Bug 598452 has been marked as a duplicate of this bug. ***
commit ef5af0ae93adbe5f549ad922756f3f566244d274 Author: Alexis Ballier <aballier@gentoo.org> Date: Thu Dec 29 15:17:32 2016 +0100 media-libs/smpeg: fix build with gcc6, bug #592450, patch by Peter Levine. thanks