In using "crosstool" to build a cross-compiler for the SH3, I get the following
error in building the early bootstrap gcc:

/home/rpjday/results/edge/build-tools/build-gcc-core/./gcc/xgcc
-B/home/rpjday/results/edge/build-tools/build-gcc-core/./gcc/
-B/home/rpjday/results/edge/build-tools/gcc-core-prefix/sh3-unknown-linux-gnu/bin/
-B/home/rpjday/results/edge/build-tools/gcc-core-prefix/sh3-unknown-linux-gnu/lib/
-isystem
/home/rpjday/results/edge/build-tools/gcc-core-prefix/sh3-unknown-linux-gnu/include
-isystem
/home/rpjday/results/edge/build-tools/gcc-core-prefix/sh3-unknown-linux-gnu/sys-include
-O2  -O2 -g -O2  -DIN_GCC -DCROSS_COMPILE   -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem
./include  -fpic -DNO_FPSCR_VALUES -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2
-D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I. -I.
-I/home/rpjday/results/edge/build-tools/gcc-4.1-20051022/gcc
-I/home/rpjday/results/edge/build-tools/gcc-4.1-20051022/gcc/.
-I/home/rpjday/results/edge/build-tools/gcc-4.1-20051022/gcc/../include
-I/home/rpjday/results/edge/build-tools/gcc-4.1-20051022/gcc/../libcpp/include 
-fexceptions  -c
/home/rpjday/results/edge/build-tools/gcc-4.1-20051022/gcc/unwind-dw2.c -o
libgcc/./unwind-dw2.o
In file included from ./gthr-default.h:1,
                 from
/home/rpjday/results/edge/build-tools/gcc-4.1-20051022/gcc/gthr.h:114,
                 from
/home/rpjday/results/edge/build-tools/gcc-4.1-20051022/gcc/unwind-dw2.c:42:
/home/rpjday/results/edge/build-tools/gcc-4.1-20051022/gcc/gthr-posix.h:43:21:
error: pthread.h: No such file or directory


  I'll shortly attach a script that isolates the error by compiling that single
file.


-- 
           Summary: "error: pthread.h: No such file or directory" while
                    building core gcc for cross-compiler
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: rpjday at mindspring dot com
  GCC host triplet: i686-unknown-linux
GCC target triplet: sh3-unknown-linux


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24571

Reply via email to