Trouble compiling cross gcc-2.96.

Kedar Patankar kedar@Centillium.com
Fri Oct 4 14:09:00 GMT 2002


Hi,

I am trying to get a working cross development setup. My host is NT/x86
under cygwin and target is mipsel-linux. I got binutils-2.12.90.0.7 and
gcc-2.96-2000731 from the native linux distro maintained by mips
(http://www.mips.com). I unpacked the src.rpm files applied the patches
included and then moved the tree back to my NT desktop and tried to compile
it under cygwin.

I am able to compile and install the binutils and they seem to work
correctly. But when I try to compile gcc, things go for a toss.

Here is the error I get:

if [ -f stmp-dirs ]; then true; else touch stmp-dirs; fi
/cygdrive/c/MyStuff/palladia/MIPS/toolchains/mips/mipsel-gcc/gcc/xgcc
-B/cygdriv
e/c/MyStuff/palladia/MIPS/toolchains/mips/mipsel-gcc/gcc/
-B/cygdrive/c/MyStuff/
palladia/MIPS/toolchains/mips/mipsel-gcc/mipsel-linux/newlib/ -isystem
/cygdrive
/c/MyStuff/palladia/MIPS/toolchains/mips/mipsel-gcc/mipsel-linux/newlib/targ
-inc
lude -isystem
/cygdrive/c/MyStuff/palladia/MIPS/toolchains/mips/gcc-2.96-2000073
1/newlib/libc/include -B/usr/local/mipstools/mipsel-linux/bin/
-B/usr/local/mips
tools/mipsel-linux/lib/ -isystem /usr/local/mipstools/mipsel-linux/include
-O2
-DCROSS_COMPILE -DIN_GCC    -g -O2 -isystem ./include  -fPIC -g1
-DIN_LIBGCC2 -
D__GCC_FLOAT_NOT_NEEDED  -I. -I../../gcc-2.96-20000731/gcc
-I../../gcc-2.96-2000
0731/gcc/config -I../../gcc-2.96-20000731/gcc/../include  -DL_muldi3 -c
../../gc
c-2.96-20000731/gcc/libgcc2.c -o libgcc/./_muldi3.o
In file included from ../../gcc-2.96-20000731/gcc/libgcc2.c:37:
../../gcc-2.96-20000731/gcc/tsystem.h:52:19: stdio.h: No such file or
directory
../../gcc-2.96-20000731/gcc/tsystem.h:55:23: sys/types.h: No such file or
direct
ory
../../gcc-2.96-20000731/gcc/tsystem.h:58:19: errno.h: No such file or
directory
../../gcc-2.96-20000731/gcc/tsystem.h:65:20: string.h: No such file or
directory

../../gcc-2.96-20000731/gcc/tsystem.h:69:20: stdlib.h: No such file or
directory

../../gcc-2.96-20000731/gcc/tsystem.h:70:20: unistd.h: No such file or
directory

In file included from ../../gcc-2.96-20000731/gcc/libgcc2.c:37:
../../gcc-2.96-20000731/gcc/tsystem.h:76:18: time.h: No such file or
directory
make[2]: *** [libgcc/./_muldi3.o] Error 1
make[2]: Leaving directory
`/cygdrive/c/MyStuff/palladia/MIPS/toolchains/mips/mi
psel-gcc/gcc'
make[1]: *** [libgcc.a] Error 2
make[1]: Leaving directory
`/cygdrive/c/MyStuff/palladia/MIPS/toolchains/mips/mi
psel-gcc/gcc'
make: *** [all-gcc] Error 2



I have read the gcc documentation about installing a cross compiler and have
followed it. Am I still missing something? Where do I get these headers
from?


Regards,
Kedar.
--------------------------------------------
Kedar N Patankar
Centillium Communications
47211 Lakeview Blvd.
Fremont, CA 94538
email: kedar@centillium.com
direct: (510) 771-3418
fax: (510) 771-3500
 
This message may contain confidential, proprietary or legally privileged
information. It is for the use of the named recipient only, and access by
anyone else is unauthorized. If you have received this message in error,
please reply to that effect and delete this message.



More information about the Gcc-help mailing list