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


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 when
> the build reaches gcc-3.0.4/gcc/libgcc2.c:
> 
> /home2/dimator/3rdParty/crosstools/gcc-core-ppc405/gcc/xgcc
> -B/home2/dimator/3rdParty/crosstools/gcc-core-ppc405/gcc/
> -B/home2/dimator/opt//ppc405/powerpc-linux/bin/
> -B/home2/dimator/opt//ppc405/powerpc-linux/lib/ -isystem
> /home2/dimator/opt//ppc405/powerpc-linux/include -O2  -DCROSS_COMPILE
> -DIN_GCC    -W -Wall -Wwrite-strings -Wstrict-prototypes
> -Wmissing-prototypes -isystem ./include  -fPIC -g1  -DIN_LIBGCC2
> -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I. -I. -I../../gcc-3.0.4/gcc
> -I../../gcc-3.0.4/gcc/. -I../../gcc-3.0.4/gcc/config
> -I../../gcc-3.0.4/gcc/../include  -fPIC -mstrict-align -DL_muldi3 -c
> ../../gcc-3.0.4/gcc/libgcc2.c -o libgcc/./_muldi3.o
> 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

Could the answer be here?:
http://sources.redhat.com/ml/crossgcc/2001-09/msg00084.html

In other words, if all you're building is a bootstrap compiler,
perhaps you need --with-newlib instead of --without-headers?
I think Bill's example in
http://crossgcc.billgatliff.com/crossgccfaq/t1.html
gives both options when building the bootstrap compiler...

Maybe you should post your full build script (or a URL to it)
so we can see what you're doing.  (And sharpen those google skills :-)

- 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]