http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52850
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-04-24 03:58:50 UTC --- >The problem is that there is an unsuitable copy of libz installed That sounds like an user problem rather than a GCC issue.