compiling software in a 32bit chroot on a 64bit box which tries to loot out the arch with “uname” requires some guidance:

/usr/local/bin/uname

#!/bin/sh
/bin/uname "$@"|sed -e's/x86_64/i686/'