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]

Cannont build cross-gcc for sh4


Hello!

I am trying to build crossgcc 3.0.3 on the win32/cygwin host for the Hitachi 
sh4 target.

1.  I am using binutils 2.11.2 and gcc-core/g++ 3.0.3

2.  Binutils built fine.

3.  $GCC_SRC/gcc/gcc-3.0.3/configure --target=sh-elf \
      --prefix=/tools \
      --exec-prefix=/tools/H-i686-pc-cygwin \
      --with-gnu-as --with-gnu-ld --with-newlib \
      -v 2>&1 | tee configure.out

4. tried to build gcc with

make -w all-gcc install-gcc \
      LANGUAGES="c c++" 2>&1 | tee make.out

also tried
make all install LANGUAGES="c c++"  (although there should not be any 
difference)

In either case build fails apparently when xgcc tries to build libgcc.
The errors are:

----------------------make.out-------------------------------------

tmp/build/gcc/gcc/xgcc -B/tmp/build/gcc/gcc/ 
-B/tools/H-i686-pc-cygwin/sh-elf/bin/ -B/tools/H-i686-pc-cygwin/sh-elf/lib/ 
-isystem /tools/H-i686-pc-cygwin/sh-elf/include -O2  -DCROSS_COMPILE 
-DIN_GCC    -W -Wall -Wwrite-strings -Wstrict-prototypes 
-Wmissing-prototypes -isystem ./include   -g1  -DIN_LIBGCC2 
-D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I. -I. 
-I/cygdrive/d/tmp/gcc_srcdir/gcc-3.0.3/gcc 
-I/cygdrive/d/tmp/gcc_srcdir/gcc-3.0.3/gcc/. 
-I/cygdrive/d/tmp/gcc_srcdir/gcc-3.0.3/gcc/config 
-I/cygdrive/d/tmp/gcc_srcdir/gcc-3.0.3/gcc/../include -DL_set_fpscr 
-xassembler-with-cpp -c 
/cygdrive/d/tmp/gcc_srcdir/gcc-3.0.3/gcc/config/sh/lib1funcs.asm -o 
libgcc/./_set_fpscr.o
/tmp/build/gcc/gcc/xgcc -B/tmp/build/gcc/gcc/ 
-B/tools/H-i686-pc-cygwin/sh-elf/bin/ -B/tools/H-i686-pc-cygwin/sh-elf/lib/ 
-isystem /tools/H-i686-pc-cygwin/sh-elf/include -O2  -DCROSS_COMPILE 
-DIN_GCC    -W -Wall -Wwrite-strings -Wstrict-prototypes 
-Wmissing-prototypes -isystem ./include   -g1  -DIN_LIBGCC2 
-D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I. -I. 
-I/cygdrive/d/tmp/gcc_srcdir/gcc-3.0.3/gcc 
-I/cygdrive/d/tmp/gcc_srcdir/gcc-3.0.3/gcc/. 
-I/cygdrive/d/tmp/gcc_srcdir/gcc-3.0.3/gcc/config 
-I/cygdrive/d/tmp/gcc_srcdir/gcc-3.0.3/gcc/../include  -DL_muldi3 -c 
/cygdrive/d/tmp/gcc_srcdir/gcc-3.0.3/gcc/libgcc2.c -o libgcc/./_muldi3.o
In file included from 
/cygdrive/d/tmp/gcc_srcdir/gcc-3.0.3/gcc/config/elfos.h:36,
                 from 
/cygdrive/d/tmp/gcc_srcdir/gcc-3.0.3/gcc/config/svr4.h:46,
                 from 
/cygdrive/d/tmp/gcc_srcdir/gcc-3.0.3/gcc/config/sh/elf.h:48,
                 from tm.h:4,
                 from 
/cygdrive/d/tmp/gcc_srcdir/gcc-3.0.3/gcc/config/sh/xm-sh.h:34,
                 from tconfig.h:3,
                 from 
/cygdrive/d/tmp/gcc_srcdir/gcc-3.0.3/gcc/config/elfos.h:36,
                 from 
/cygdrive/d/tmp/gcc_srcdir/gcc-3.0.3/gcc/config/svr4.h:46,
                 from 
/cygdrive/d/tmp/gcc_srcdir/gcc-3.0.3/gcc/config/sh/elf.h:48,
                 from tm.h:4,



the last few lines repeat over and over sometimes being interrupted by


                 from 
/cygdrive/d/tmp/gcc_srcdir/gcc-3.0.3/gcc/config/sh/xm-sh.h:34,
                 from tconfig.h:3,
                 from /cygdrive/d/tmp/gcc_srcdir/gcc-3.0.3/gcc/libgcc2.c:36:
tconfig.h:2:24: #include nested too deeply


The only problem I can think of is that I am not specifying the right header 
files at some point.  I've tried spcifying target-specific headers by 
putting a proper link in the /tools/sh-elf directory (/tools is my prefix so 
that's the proper place).


Any suggestions?

                     Thanks.



_________________________________________________________________
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


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