http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53679 --- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-06-15 16:41:53 UTC --- Actually this is due to your modifications to gcc to enable fority by default and glibc's bad idea that write needs to be check for error after each write.