klcc -c -Os -march=pentium3 -mtune=core2 -mfpmath=sse -fomit-frame-pointer -pipe -fno-stack-protector -fno-stack-protector-all -I/usr/src/linux/include -Ilibs/x86emu -I. -I../../include -I../../include/x86emu -o decode.o decode.c cc1: error: unrecognized command line option "-fno-stack-protector-all" In the ebuild: filter-flags -fstack-protector -fstack-protector-all Last successful build of v86d on my machine was at Sep 21 2012, and it seems that what broke the build (adding -fno-... for non-present flags due to filter-flags) should be in flag-o-matic.eclass commits since then, but I can't find something that seems relevant in CVS.
Forgot to mention, the problem is only present on hardened. So it's probably something to do with _filter-hardened() in flag-o-matic.eclass.
This is the offending commit: http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/eclass/flag-o-matic.eclass?r1=1.185&r2=1.186 Reversing it fixes the issue: -fno-stack-protector-all is not added to klcc (-fno-stack-protector is still added, but klcc from stable dev-libs/klibc-1.5.20 supports it).
Short summary: Mike did some unreviewed changes to the eclass http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/eclass/flag-o-matic.eclass?r1=1.181&r2=1.182 http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/eclass/flag-o-matic.eclass?r1=1.181&r2=1.182 which broke compatibility for <gcc-4.7 and intel compilers see: bug 443778 and bug 445244 I tried to commit a fix but this let to this bug here. The whole thing needs to be fixed or reverted to original state. @qa Could you please supervise the changes made? @Mike Please fix this whole thing. I am sorry that my commit breaks something additionally, but broken things for stable packages.
*** This bug has been marked as a duplicate of bug 445244 ***
this bug is not fixed. The eclass function does not work.
no one said this was fixed. it's a dupe of an existing bug. *** This bug has been marked as a duplicate of bug 445244 ***