gccsdk compilation problems

Nick Burrett nick at dsvr.net
Mon Jan 22 02:40:11 PST 2001


James Bursa <james.bursa at oriel.oxford.ac.uk> writes:

> Nick Burrett writes:
> 
>  > James Bursa <james.bursa at oriel.oxford.ac.uk> writes:
>  > 
>  > > Hi Nick,
>  > > 
>  > > I've downloaded the gccsdk using cvs, but I'm having problems
>  > > compiling it. My system is a Linux PC, with current versions of gcc,
>  > > make, etc.
>  > > 
>  > > When I type make, the compilation gets through stage 1, but fails in
>  > > stage 2:
>  > > 
>  > > ---
>  > > jbursa at zames:~/Programming/gccsdk/gccsdk$ make build-stg2
>  > > make -C libiberty "STAGE=stage2" "TRG=apcs26/unixlib"
>  > > make[1]: Entering directory `/home/jbursa/Programming/gccsdk/gccsdk/libiberty'
>  > > mkdir -p /home/jbursa/Programming/gccsdk/gccsdk/arm-riscos-aof/libiberty/stage2
>  > > /home/jbursa/Programming/gccsdk/riscos/cross/bin//gcc -O2 -DTARGET_RISCOSAOF -DIN_GCC -DHAVE_CONFIG_H  -o /home/jbursa/Programming/gccsdk/gccsdk/arm-riscos-aof/libiberty/stage2/choose-temp.o -c choose-temp.c -I. -I../include
>  > > cpp: too many input files
>  > > gcc: Fatal compiler error: program cpp
>  > > make[1]: *** [/home/jbursa/Programming/gccsdk/gccsdk/arm-riscos-aof/libiberty/stage2/choose-temp.o] Error 1
>  > > make[1]: Leaving directory `/home/jbursa/Programming/gccsdk/gccsdk/libiberty'
>  > > make: *** [libiberty-stg2] Error 2
>  > > ---
>  > 
> 
> I've now got it working. In case anyone else has a similar problem,
> what I did was:
> 
> 1. configure and make stage 1
> 2. set PATH to include the cross compiler bin directory and the
> bin/arm-riscos-aof/2_95_2 subdirectory at the front
> 3. make stage 2

You shouldn't need to do this, since the gcc driver uses the full path
for the cpp command line. You should be able to see what's happening by
adding `-v' to gcc's command line.  The "too many input files" is caused
by cpp's command line processor, suggesting that you've passed two source
files.


Nick.



More information about the gcc mailing list