http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54504
--- Comment #7 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-09-07 06:38:59 UTC --- >I've tried to use sysroot option, but I compile the GCC failed. Because that is not the correct usage of sysroot. You want a full sysroot under the prefix directory: /repo/yuhuamei/mips-linux-eglibc-gnu/sysroot And install the libc inside that directory.