I don’t think there is a compiler on the board. You have to use cross compiler on your PC.

http://wiki.openwrt.org/about/toolchain
http://wiki.openwrt.org/doc/devel/crosscompile

You can use OpenWrt or Mips tool chain.