This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: powerpc-linux gcc build


Dan Kegel wrote:
> 
> Dimi Shahbaz wrote:
> > I'm trying to build a cross toolset for ppc.  The binutils build and
> > install fine.  When I try gcc, however, I get the following error ...
> > In file included from tm.h:7,
> >                  from ../../gcc-3.0.4/gcc/config/rs6000/xm-sysv4.h:35,
> >                  from tconfig.h:3,
> >                  from ../../gcc-3.0.4/gcc/libgcc2.c:36:
> > ../../gcc-3.0.4/gcc/config/rs6000/linux.h:81:20: signal.h: No such file
> > or directory
> > ../../gcc-3.0.4/gcc/config/rs6000/linux.h:82:26: sys/ucontext.h: No such
> > file or directory
> >
> > Here is my configure line:
> > ../gcc-3.0.4/configure --target=powerpc-linux --build=`arch`-linux
> > --program-prefix=powerpc-linux- --prefix=$HOME/opt/ppc405/
> > --without-headers --enable-languages=c --with-newlib --disable-shared
> > --with-cpu=403 --nfp
> >
> > As far as I can tell, sys/ucontext.h as well as signal.h are part of
> > glibc, which I would normally build/install *after* gcc.
> 
> Hmm.  Check out the following thread:
> http://sources.redhat.com/ml/crossgcc/2001-08/msg00001.html
> http://sources.redhat.com/ml/crossgcc/2001-08/msg00016.html
> And again one month later:
> http://sources.redhat.com/ml/crossgcc/2001-09/msg00107.html
> http://sources.redhat.com/ml/crossgcc/2001-09/msg00124.html
> And again last month:
> http://sources.redhat.com/ml/crossgcc/2002-03/msg00020.html
and also
http://gcc.gnu.org/ml/gcc-bugs/2001-09/msg00719.html

Sorry, I missed the --with-newlib in your config line last time.
You did everything right, at least according to Bill's FAQ, I think.

I now suspect this is a build gotcha in gcc3.  See
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=3641
The suggestion there is to do 'make install_headers' in glibc
before building the bootstrap compiler, I think.  (I didn't look at
it very hard, though, so I might be confused.)
- Dan

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]