cross compiling gcc for mips

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux