fatal error: pthread.h: No such file or directory

Moore, Richard F. rfm6@leicester.ac.uk
Mon Mar 14 15:54:00 GMT 2016


Hi Yann,

Pulling latest git, I make, then do this to use built in recipe

./ct-ng x86_64-unknown-linux-uclibc

Everything builds fine.


If I do the same but only change (via ct-ng menuconfig) the target to
be 32 bit rather than 64 bit I get this on pass-2;


[INFO ]  Installing C library headers: done in 6.68s (at 08:20)
[INFO ] 
 =================================================================
[INFO ]  Installing pass-2 core C gcc compiler
[EXTRA]    Configuring core C gcc compiler
[EXTRA]    Building gcc
[ERROR]    /media/3/cyclone/crosstool-ng/.build/src/gcc
-5.3.0/libgcc/generic-morestack-thread.c:41:21: fatal error: pthread.h:
No such file or directory
[ERROR]    make[2]: *** [generic-morestack-thread.o] Error 1
[ERROR]    make[1]: *** [all-target-libgcc] Error 2
[ERROR]   
[ERROR]  >>
[ERROR]  >>  Build failed in step 'Installing pass-2 core C gcc
compiler'
[ERROR]  >>        called in step '(top-level)'
[ERROR]  >>
[ERROR]  >>  Error happened in: CT_DoExecLog[scripts/functions@259]
[ERROR]  >>        called from: do_gcc_core_backend[
scripts/build/cc/100-gcc.sh@520]
[ERROR]  >>        called from: do_gcc_core_pass_2[
scripts/build/cc/100-gcc.sh@154]
[ERROR]  >>        called from: do_cc_core_pass_2[
scripts/build/cc.sh@42]
[ERROR]  >>        called from: main[scripts/crosstool-NG.sh@650]
[ERROR]  >>
[ERROR]  >>  For more info on this error, look at the file: 'build.log'
[ERROR]  >>  There is a list of known issues, some with workarounds,
in:
[ERROR]  >>      'share/doc/crosstool-ng/crosstool-ng-1.22.0-126
-gd7339f5/B - Known issues.txt'
[ERROR]   
[ERROR]  (elapsed: 12:13.06)
[12:13] / ct-ng:152: recipe for target 'build' failed
make: *** [build] Error 2


I have tried altering various versions of build tools and it is always
the same error.
(I tried attaching build.log but it just bounced so resending without)


Cheers

Rich


More information about the crossgcc mailing list