Turned out to be something to do with the config file. Using the previous version of the config allowed compilation. Not sure which bit. But closing this question