https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69988
--- Comment #10 from John Paul Adrian Glaubitz <glaubitz at physik dot fu-berlin.de> --- I'm trying this now: --- gcc-5-5.3.1/gcc-5.3.0/libgo/configure.ac 2015-09-17 14:46:06.000000000 +0200 +++ gcc-5-5.3.1/gcc-5.3.0/libgo/configure.ac 2016-03-09 05:23:29.407181247 +0100 @@ -573,7 +573,7 @@ LIBS="$LIBS_hold" LIBS_hold="$LIBS" -LIBS="$LIBS $MATH_LIBS" +LIBS="$LIBS $MATH_LIBS -lc" AC_CHECK_FUNCS(matherr) LIBS="$LIBS_hold" Let's see.