How are you? I was wondering if you were able to find a solution for this problem. I am experiencing the same error message when I try to compile ARWpost on a CRAY machine.
I tried your suggestion of commenting out the 'use module_driver_constants' line in module_machine.F, and was able to compile ARWpost. But, as you, I concerned if this is a safe move.
Did you manage to compile ARWpost without having to change module_machine.F?
I'll appreciate your reply.