Hi,

I am building gcc-4.1.1 like this:

$SRC/configure \
--enable-languages="c,c++"                      \
--disable-nls                                   \
--build=i386-pc-linux-gnu                       \
--host=i386-pc-linux-gnu                        \
--target=x86_64-pc-linux-gnu                    \
--disable-threads                               \
--with-system-zlib                              \
--enable-threads=posix                          \

"make all-gcc" dies like this:

xgcc -B/.share/usr/src/gcc-4.1.1.obj-x86_64/./gcc/ 
-B/usr/app/gcc-4.1.1-x86_64/x86_64-pc-linux
-gnu/bin/ -B/usr/app/gcc-4.1.1-x86_64/x86_64-pc-linux-gnu/lib/ -isystem 
/usr/app/gcc-4.1.1-x86_64/x86_64-pc-linux-gnu/include -isystem /u
sr/app/gcc-4.1.1-x86_64/x86_64-pc-linux-gnu/sys-include -O2  -O2 -Os 
-falign-functions=1 -falign-labels=1 -falign-loops=1 -falign-jumps=1
   -DIN_GCC -DCROSS_COMPILE -DNATIVE_CROSS   -W -Wall -Wwrite-strings 
-Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -i
system ./include  -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 
-D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I. -I. -I../../gcc-4.1.1/gcc -I../..
/gcc-4.1.1/gcc/. -I../../gcc-4.1.1/gcc/../include 
-I../../gcc-4.1.1/gcc/../libcpp/include  -fexceptions -fvisibility=hidden 
-DHIDE_EXPORT
S -c ../../gcc-4.1.1/gcc/unwind-dw2.c -o libgcc/./unwind-dw2.o
In file included from ./gthr-default.h:1,
                 from ../../gcc-4.1.1/gcc/gthr.h:114,
                 from ../../gcc-4.1.1/gcc/unwind-dw2.c:42:
../../gcc-4.1.1/gcc/gthr-posix.h:43:21: error: pthread.h: No such file or 
directory
../../gcc-4.1.1/gcc/gthr-posix.h:44:20: error: unistd.h: No such file or 
directory

Lots of errors follows of course...

I tried removing
--with-system-zlib                              \
--enable-threads=posix                          \
but the problem is exactly the same.

What gives?
--
vda

Reply via email to