http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54292
--- Comment #5 from Tobias Schlüter <tobi at gcc dot gnu.org> 2012-08-17 13:46:13 UTC --- It seems the build picks up the wrong mpfr.h header, the function was renamed in mpfr > 3.0.0, but API compatibility is ensured via a macro, see: <http://comments.gmane.org/gmane.comp.lib.mpfr.general/737> My system mpfr is 3.1.0, but the one inside the compiler tree is 2.4.2. So it seems to link against 3.1.0 while using the header from 2.4.2. I think this is consistent with the command line flags given.