I am installing cosmomc on a cluster, after succesfull installation of cfitsio, building WMAP data and Planck data (following the steps of 1409.1354v3) I came to the final part of the compilation: building CosmoMC:

I have built CosmoMC in three different computers: two macs and one linux (ubuntu) machine, this error had never appeared before, i'm thinking it might have something to do with trying to do it in a cluster.