http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60789
David Abdurachmanov <david.abdurachmanov at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #2 from David Abdurachmanov <david.abdurachmanov at gmail dot com> --- I am marking it as RESOLVED INVALID. After looking more closely, I found a typo in CXXFLAGS. It caused the following test to fail in the first place: >From libstdc++-v3/linkage.m4 in GLIBCXX_CHECK_MATH_SUPPORT: 361 dnl Check libm 362 AC_CHECK_LIB(m, sin, libm="-lm") 363 ac_save_LIBS="$LIBS" 364 LIBS="$LIBS $libm" Thus `-lm` was not added for the rest of the tests.