https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100289
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> --- This is libgcc configure, so it should be checking for target headers there. So, do you have sys/mman.h on the host and not present in the sysroot (ditto other C library headers, including stdlib.h)? For x86_64-*-linux* target that certainly seems like a user error. Though, from config.log it seems the sys/mman.h etc. header checking passed while for stdlib.h it didn't.