It seems one of C++ extra qualification errors. (I know sys-apps/groff-1.18.1.1 was blamed GLSA 200411-15. But some non-English (like Japanese) man-pages require <sys-apps/groff-1.19 still now, IIRC.)
Created attachment 81728 [details] emerge --info output
Created attachment 81729 [details] A error massage when compiling sys-apps/groff-1.18.1.1 in official portage tree
Created attachment 81730 [details, diff] A patch for sys-apps/groff-1.18.1.1 with gcc-4.1.0 Plus, additional removing hard-coded 0 as NULL pointer nearby essential fixing for this compilation error.
Created attachment 81732 [details] A new ebuild for sys-apps/groff-1.18.1.1.
And then, I've tried to emerge with -O3, -O2, -O0 instead of -Os. But any -O? can't help this error. So, to filter flags without this patch won't resolve, IMHO.
base-system doesnt support the 1.18.x versions anymore
*** Bug 125559 has been marked as a duplicate of this bug. ***
(In reply to comment #6) > base-system doesnt support the 1.18.x versions anymore I didn't know that. It means non-English man-pages are not available at the moment? Anyway, this patch can help to work-around this compilation problem, IMHO. "man man" outputs seems O.K. On the other hand, it means I've not completely test it, though.
*** Bug 125660 has been marked as a duplicate of this bug. ***
Fixed, thanks.