On 10 April 2012 18:06, Alberich de megres wrote: > After some testings, and check your script and link (thanks for both), > i'm having a different problem: > > while building gcc step 2, and libgcc: > libgcc/../gcc/libgcc2.c:29: > /opt/x/usr/include/pthread.h:25:19: fatal error: sched.h: No such file > or directory > > In pthread.h I can see the include line is this one: > #include <sched.h> > > while headers are located at include/linux/sched.h > > shouldn't it be: > #include <linux/sched.h> No, that's the kernel's sched.h but you should probably have a separate usr/include/sched.h file belonging to libc, which is probably different to the kernel one. pthread.h wants to include the libc one.