Cross-Compile Help for C Program

I'm trying for the first time to cross-compile a program written in C on my Ubuntu 12.04 box so I can run it on the Yun. The output below is from when I tried to use the openwrt source toolchain, I've tried both the Yun linino image and the openwrt image with the outcome both the same.

The tutorials I followed to get the source are: http://wiki.openwrt.org/doc/howto/buildroot.exigence http://playground.arduino.cc/Hardware/Yun#.UwLrYH-9KSM http://wiki.openwrt.org/doc/devel/crosscompile

I have set up my PATH environment:

PATH=$PATH:~/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.6-linaro_uClibc-0.9.33.2/bin
export PATH
STAGING_DIR=:~/openwrt/staging_dir
export STAGING_DIR
./configure --build=x86_64-ubuntu-linux --host=mips-openwrt-linux-uclibc
checking for mips-openwrt-linux-uclibc-gcc... no
checking for gcc... gcc
configure: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@gnu.org.
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... yes
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether to enable assertions... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking for mips-openwrt-linux-uclibc-strip... no
checking for strip... strip
checking dependency style of gcc... gcc3
checking for mips-openwrt-linux-uclibc-ar... no
checking for ar... no
checking for mips-openwrt-linux-uclibc-ranlib... no
checking for ranlib... no
checking for mips-openwrt-linux-uclibc-strip... no
checking for strip... no
checking for mips-openwrt-linux-uclibc-nm... no
checking for nm... no
checking for flex... flex
checking lex output file root... lex.yy
checking lex library... -lfl
checking whether yytext is a pointer... yes
checking for bison... no
checking for byacc... no
checking build system type... x86_64-ubuntu-linux-gnu
checking host system type... mips-openwrt-linux-uclibc
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... nm
checking whether ln -s works... yes
checking how to recognize dependent libraries... pass_all
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for mips-openwrt-linux-uclibc-g++... no
checking for mips-openwrt-linux-uclibc-c++... no
checking for mips-openwrt-linux-uclibc-gpp... no
checking for mips-openwrt-linux-uclibc-aCC... no
checking for mips-openwrt-linux-uclibc-CC... no
checking for mips-openwrt-linux-uclibc-cxx... no
checking for mips-openwrt-linux-uclibc-cc++... no
checking for mips-openwrt-linux-uclibc-cl.exe... no
checking for mips-openwrt-linux-uclibc-FCC... no
checking for mips-openwrt-linux-uclibc-KCC... no
checking for mips-openwrt-linux-uclibc-RCC... no
checking for mips-openwrt-linux-uclibc-xlC_r... no
checking for mips-openwrt-linux-uclibc-xlC... no
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for mips-openwrt-linux-uclibc-g77... no
checking for mips-openwrt-linux-uclibc-xlf... no
checking for mips-openwrt-linux-uclibc-f77... no
checking for mips-openwrt-linux-uclibc-frt... no
checking for mips-openwrt-linux-uclibc-pgf77... no
checking for mips-openwrt-linux-uclibc-cf77... no
checking for mips-openwrt-linux-uclibc-fort77... no
checking for mips-openwrt-linux-uclibc-fl32... no
checking for mips-openwrt-linux-uclibc-af77... no
checking for mips-openwrt-linux-uclibc-xlf90... no
checking for mips-openwrt-linux-uclibc-f90... no
checking for mips-openwrt-linux-uclibc-pgf90... no
checking for mips-openwrt-linux-uclibc-pghpf... no
checking for mips-openwrt-linux-uclibc-epcf90... no
checking for mips-openwrt-linux-uclibc-gfortran... no
checking for mips-openwrt-linux-uclibc-g95... no
checking for mips-openwrt-linux-uclibc-xlf95... no
checking for mips-openwrt-linux-uclibc-f95... no
checking for mips-openwrt-linux-uclibc-fort... no
checking for mips-openwrt-linux-uclibc-ifort... no
checking for mips-openwrt-linux-uclibc-ifc... no
checking for mips-openwrt-linux-uclibc-efc... no
checking for mips-openwrt-linux-uclibc-pgf95... no
checking for mips-openwrt-linux-uclibc-lf95... no
checking for mips-openwrt-linux-uclibc-ftn... no
checking for g77... no
checking for xlf... no
checking for f77... no
checking for frt... no
checking for pgf77... no
checking for cf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for xlf90... no
checking for f90... no
checking for pgf90... no
checking for pghpf... no
checking for epcf90... no
checking for gfortran... no
checking for g95... no
checking for xlf95... no
checking for f95... no
checking for fort... no
checking for ifort... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for ftn... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether  accepts -g... no
checking the maximum length of command line arguments... 1572864
checking command to parse nm output from gcc object... ok
checking for objdir... .libs
checking for mips-openwrt-linux-uclibc-ar... no
checking for ar... ar
checking for mips-openwrt-linux-uclibc-ranlib... no
checking for ranlib... ranlib
checking for mips-openwrt-linux-uclibc-strip... no
checking for strip... (cached) strip
checking for correct ltmain.sh version... yes
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
(cached) (cached) checking how to hardcode library paths into programs... immediate
appending configuration tag "F77" to libtool
checking whether gcc and cc understand -c and -o together... yes
checking whether ln -s works... yes
configure: checking the Linux installation
configure: Using 3.11.0-15-generic as the uname -r value
configure: Using x86_64 as the uname -m value
checking for rpm... no
checking for Linux build in /lib/modules/3.11.0-15-generic/build... yes
checking for separate Linux source and build directory... no
checking /lib/modules/3.11.0-15-generic/build/.config... yes
checking Pre-FC2 Red Hat/Fedora kernel... not found
checking Linux config option CONFIG_M386... no
checking Linux config option CONFIG_M586... no
checking Linux config option CONFIG_M686... no
checking Linux config option CONFIG_MPENTIUMIII... no
checking Linux config option CONFIG_MK7... no
checking Linux config option CONFIG_SMP... yes
checking Linux config option CONFIG_HIGHMEM64G... no
configure: Putting kernel modules under /lib/modules/3.11.0-15-generic
configure: Putting kernel module development files under /lib/modules/3.11.0-15-generic/build
checking Linux major/minor version... 3.11
configure: error: Unknown Linux major.minor 3.11