http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60644
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- If SYS_gettid is not defined, then it is a bug in the bionic libc headers as NR_gettid is defined in the kernel headers. Also pthread_yield should be defined in pthread.h if it is not then it is again a bug in bionic. For no you can use --disable-libcilkrts as a workaround for bionic being broken.