On Tue, 2006-07-18 at 00:12, qi tao wrote: > First I built binutils and now I was setting up the bootstrap compiler. > In file included from ../../gcc-4.1.1/gcc/crtstuff.c:68: > .../../gcc-4.1.1/gcc/tsystem.h:90:19: error: stdio.h: 没有那个文件或目录 You can't build the gcc libraries unless you have a C library first. And, of course, you can't build a C library unless you have a compiler first. This circular dependency makes bootstrapping a bit tricky. The basic process here is that you have to do a glibc make install-headers first which gives you C library headers, and then a partial gcc build minus the libraries, then a full glibc build, then a full gcc build. This is simpler is you just follow instructions written up by someone else who already knows how to do it. The one I recommend is the crosstool scrips written by Dan Kegel. There is a pointer to them on the linux-mips.org wiki. http://www.linux-mips.org/wiki/Toolchains http://kegel.com/crosstool/ -- Jim Wilson, GNU Tools Support, http://www.specifix.com