This is the mail archive of the mailing list for the crossgcc project.

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

Trouble building gcc 1.8.1 cross complier...


I have had no luck trying to build a m68k cross compiler hosted
either on a Sparc running Solaris 2.6 or my Intel box running Linux
Redhat 5.0 distribution.

The native compiler on both systems has been upgraded to version 1.8.1.

Here are the versions of what I plan on using:

    binutils 1.9.1
    gcc 1.8.1
    newlib 1.8.1
    rtems 3.6.0

I have followed the crossgcc-FAQ (version 0.8.1) and I have the following
directory structure:




I configured and built successfully binutils using the following commands
from the /homes/post/binutils/binmake directory:

 ../binutils-2.9.1/configure --target=m68k-coff --prefix=/homes/post/m68k -v
     make all install

After that completed successfully, I then attempted to build the cross gcc
compiler. When I build it using:

 ../binutils-2.9.1/configure --target=m68k-coff --prefix=/homes/post/m68k -v
     make all install

is get the following error:

touch objc-headers
./xgcc -B./ -dumpspecs > tmp-specs
mv tmp-specs specs
if [ -f libgcc2.ready ] ; then \
        true; \
else \
        touch libgcc2.ready; \
echo "" > tmp-runtime
echo "/* This file is automatically generated */" >objc/runtime-info.h
./cc1obj -print-objc-runtime-info tmp-runtime >>objc/runtime-info.h
rm -f tmp-runtime
./xgcc -B./ -DCROSS_COMPILE -DIN_GCC  -DSVR4  -g -I./include  -I. -I../gcc-2
.8.1 -I../gcc-2.8.1/config \
-c ../gcc-2.8.1/objc/hash.c -o objc/hash.o
In file included from ../gcc-2.8.1/objc/hash.c:31:
../gcc-2.8.1/objc/runtime.h:31: stdio.h: No such file or directory
../gcc-2.8.1/objc/runtime.h:32: ctype.h: No such file or directory
In file included from ../gcc-2.8.1/objc/runtime.h:38,
                 from ../gcc-2.8.1/objc/hash.c:31:
include/objc/objc-api.h:33: stdio.h: No such file or directory
make: *** [objc/hash.o] Error 1


If I build instead using:

 make LANGUAGES="c c++"

the build fails with:

make[1]: Leaving directory `/homes/post/gcc/makegcc'
touch stmp-multilib
CC="./xgcc -B./ -DCROSS_COMPILE -DIN_GCC  -DSVR4  -g -I./include     -I. -I.
./gcc-2.8.1 -Iinclude -I/homes/post/m68k/m68k-coff/include"; \
  export CC; \
  /bin/sh ../gcc-2.8.1/ "../gcc-2.8.1" >tmp-deduced.h
st-dummy.c:1: sys/types.h: No such file or directory
st-dummy.c:4: stdio.h: No such file or directory
st-dummy.c:5: time.h: No such file or directory
st-dummy.c:6: signal.h: No such file or directory
scan-types: could not invoke
./xgcc -B./ -DCROSS_COMPILE -DIN_GCC -DSVR4 -g -I./include -I. -I../gcc-2.8.
1 -Iinclude -I/homes/post/m68k/m68k-coff/include -E -I../gcc-2.8.1/ on
make: *** [deduced.h] Error 1

Any ideas what I could be doing wrong??