Hi,
I'm following the guide here
http://wiki.osdev.org/GCC_Cross-Compiler, my target being
Code:
mipsel-unknown-linux-gnu
and I'm stuck at
Code:
make all-target-libgcc
which fails with
Code:
In file included from ../../../gcc-7.2.0/libgcc/gthr.h:148:0,
from ../../../gcc-7.2.0/libgcc/libgcov-interface.c:27:
./gthr-default.h:35:10: fatal error: pthread.h: No such file or directory
#include <pthread.h>
^~~~~~~~~~~
compilation terminated.
make[1]: *** [Makefile:915: _gcov_dump.o] Error 1
make[1]: Leaving directory '/home/alikim/src/build-gcc/mipsel-unknown-linux-gnu/libgcc'
make: *** [Makefile:11866: all-target-libgcc] Error 2
What do I need to do to fix this error?
Also, since I'm not building a OS, just a program that needs to run under linux, will
Code:
--without-headers
limit my ability to use standard C libraries in my code?
Thank you!