I was trying to install =sys-libs/libstdc++-v3-3.3.6 and it failed because I was using a gcc option not available for gcc-3.3.6. This option is very common because it's used to check if CFLAGS and CXXFLAGS are mixed: https://bugs.gentoo.org/show_bug.cgi?id=234011#c0 I'm talking about "-Wno-pointer-sign" Adding "filter-flags -Wno-pointer-sign" in the ebuild fixes the problem. I'm not sure, but I think that option was added to gcc in the version 4.0: http://gcc.gnu.org/ml/gcc-patches/2005-01/msg00505.html Maybe it would be a good idea to collect what options has been added after 3.3.6 and filter all of them. Or maybe not..., you choose :-P
In 30 days I will add "filter-flags -Wno-pointer-sign" to the ebuild and I will close this bug, if you don't have any objection.
I don't know about "very common", but go ahead.
(In reply to comment #2) > I don't know about "very common", but go ahead. Done.
(In reply to comment #2) yeah, it's not common at all. you also only updated libstdc++-v3-3.3.6.ebuild which isn't the latest. i dropped your change and updated it to filter all -W flags. none of them really make sense with this.
Commit message: Filter all -W flags http://sources.gentoo.org/sys-libs/libstdc++-v3/libstdc++-v3-3.3.6-r1.ebuild?r1=1.3&r2=1.4 http://sources.gentoo.org/sys-libs/libstdc++-v3/libstdc++-v3-3.3.6.ebuild?r1=1.28&r2=1.29