http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58642
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> --- What exact glibc do you use? I think the earliest that supports affinity in libgomp should be 2.3, then between that and 2.7 there were multiple header changes that the code just attempts to deal with using #ifdefs and finally 2.7 and newer should have the same headers as current glibc from what libgomp needs. I admit I have only tested it with glibc 2.17.