I had this same problem. Turning on debug gave a lot of errors along the build process. My installation is several years old, so I decided to swap in a new sdcard with the latest raspbian image and everything worked fine after that.
tl;dr Try upgrading raspbian.