linux-mips
[Top] [All Lists]

cross compiling gcc for mips

To: linux-mips@linux-mips.org
Subject: cross compiling gcc for mips
From: "qi tao" <demon19840308@hotmail.com>
Date: Tue, 18 Jul 2006 15:12:29 +0800
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
hello:
I am building a toolchain for mips platform. I am using

binutils-2.17
gcc-4.1.1
glibc-2.4
linux-2.6.17.4
linux-headers-2.6.17.4

First I built binutils and now I was setting up the bootstrap compiler.
However when I do "make all-gcc" I get the following errors:
 -c ../../gcc-4.1.1/gcc/crtstuff.c -DCRT_BEGIN \
 -o crtbegin.o
In file included from ../../gcc-4.1.1/gcc/crtstuff.c:68:
.../../gcc-4.1.1/gcc/tsystem.h:90:19: error: stdio.h: 没有那个文件或目录
.../../gcc-4.1.1/gcc/tsystem.h:93:23: error: sys/types.h: 没有那个文件或目录
.../../gcc-4.1.1/gcc/tsystem.h:96:19: error: errno.h: 没有那个文件或目录
.../../gcc-4.1.1/gcc/tsystem.h:103:20: error: string.h: 没有那个文件或目录
.../../gcc-4.1.1/gcc/tsystem.h:104:20: error: stdlib.h: 没有那个文件或目录
.../../gcc-4.1.1/gcc/tsystem.h:105:20: error: unistd.h: 没有那个文件或目录
In file included from /opt/cross_src4.1.1/gcc-build/./gcc/include/syslimits.h:7, from /opt/cross_src4.1.1/gcc-build/./gcc/include/limits.h:11,
                from ../../gcc-4.1.1/gcc/tsystem.h:108,
                from ../../gcc-4.1.1/gcc/crtstuff.c:68:
/opt/cross_src4.1.1/gcc-build/./gcc/include/limits.h:122:61: error: limits.h: 没 有那个文件或目录
In file included from ../../gcc-4.1.1/gcc/crtstuff.c:68:
.../../gcc-4.1.1/gcc/tsystem.h:111:18: error: time.h: 没有那个文件或目录
make[1]: *** [crtbegin.o] 错误 1
make[1]: Leaving directory `/opt/cross_src4.1.1/gcc-build/gcc'
make: *** [all-gcc] 错误 2

what should i do??  thanks for your help ! thank you

_________________________________________________________________
享用世界上最大的电子邮件系统― MSN Hotmail。 http://www.hotmail.com

<Prev in Thread] Current Thread [Next in Thread>