If you can start from scratch and attach the full output of the configure script as a text file, then we can see what types and versions of compiler, openmm, etc. that you're using.
What compilers are you using and what are their versions?
What version of OpenMM are you using?
What version of CUDA are you using?
What version of CMake are you using?
I think this is the most relevant info.