https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71135
--- Comment #4 from Yaakov Selkowitz <yselkowi at redhat dot com> --- (In reply to Yaakov Selkowitz from comment #3) > It seems that #define _GLIBCXX_USE_WEAK_REF 1 would fix this; the question > is where exactly it should go (config/os/generic/os_defines.h ?) and under > what conditions. Sorry, that should be #define _GLIBCXX_USE_WEAK_REF 0 and (due to --with-newlib) in config/os/newlib/os_defines.h (which is already defined inside an ifdef __CYGWIN__ block).