Gerard Monteleone wrote: >I'm trying to compile gcc 3.2 and i get this result, has someone already >solved this problem ?
>/mnt/usr/src/gcc-build/gcc/xgcc -B/mnt/usr/src/gcc-build/gcc/ >-B/usr/local/s390-ibm-linux/bin/ -B/usr/local/s390-ibm-linux/lib/ >-isystem /usr/local/s390-ibm-linux/include -O2 -DIN_GCC -DCROSS_COMPILE >-W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes >-isystem ./include -fPIC -include >../../gcc-3.2/gcc/config/s390/fixdfdi.h -g -DHAVE_GTHR_DEFAULT >-DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I. -I. >-I../../gcc-3.2/gcc -I../../gcc-3.2/gcc/. -I../../gcc-3.2/gcc/config >-I../../gcc-3.2/gcc/../include -fexceptions -c >../../gcc-3.2/gcc/unwind-dw2.c -o libgcc/./unwind-dw2.o You didn't mention it, but from this line it would appear you are trying to do a *cross* build of gcc, right? What is the exact configure line you were using? >../../gcc-3.2/gcc/gthr-posix.h:37:21: pthread.h: No such file or >directory You do not have the cross headers installed. This is a requirement when trying to build a gcc with thread support. The problem here is that the headers are installed with glibc, but you cannot build a cross-glibc before you have a cross-gcc. One workaround is to first build a 'minimal' cross-gcc (without shared libary or thread support, no other languages but C), use this first-stage gcc to build a cross-glibc, and once that is installed, rebuild a full cross-gcc. Mit freundlichen Gruessen / Best Regards Ulrich Weigand -- Dr. Ulrich Weigand Linux for S/390 Design & Development IBM Deutschland Entwicklung GmbH, Schoenaicher Str. 220, 71032 Boeblingen Phone: +49-7031/16-3727 --- Email: [EMAIL PROTECTED]
