Experienced this issue (build never completes, endless loop); resolved on Ubuntu 12.04 LTS by changing default shell to bash, use 'sudo dpkg-reconfigure dash' and select bash -- For unsubscribe information see http://sourceware.org/lists.html#faq