If you are receiving this error message:
external/oprofile/libpp/format_output.h:94:22: error: reference ‘counts’ cannot be declared ‘mutable’ [-fpermissive]
Edit external/oprofile/libpp/format_output.h and replace:
mutable counts_t & counts;
by
counts_t & counts;