http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57316
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> --- If you don't have __NR_exit_group, your kernel very likely doesn't have the rest of NPTL support either (so e.g. __NR_futex), so I'm surprised this is the only error.