http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56346
--- Comment #4 from Jason Merrill <jason at gcc dot gnu.org> 2013-03-11 16:33:18 UTC --- Created attachment 29638 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29638 tentative patch __cxa_thread_atexit is in libstdc++; the default implementation doesn't do anything with the dso_handle parm, so I think it makes sense to just pass NULL on targets without __cxa_atexit. Does this patch fix the failure for you?