Changing the cross compiler to gcc-arm-linux-gnueabi. This seems to work. Run "sudo apt-get install gcc-arm-linux-gnueabi" to install the required cross compiler