Thanks a lot

     Gerard MONTELEONE
     Ingenieur Systeme & Reseau
( 04.95.23.68.09 / 06.87.72.70.32
      S.I.T.E.C zi du Vazzio
     20090 AJACCIO Cedex

-----Message d'origine-----
De�: Linux on 390 Port [mailto:[EMAIL PROTECTED]] De la part de
Ulrich Weigand
Envoy�: lundi 14 octobre 2002 18:40
��: [EMAIL PROTECTED]
Objet�: Re: gcc make problem

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]

Reply via email to