You must use a compiler that supports the Xscale CPU. You can use the one we used to build the precompiled kernel provided below. Download arm-2.95.3.tar.gz , untar it in /usr/local/ and add it to your path.
cd /usr/local tar xzf arm-2.95.3.tar.gz PATH=/usr/local/pxa/bin:$PATH