Dear Community,
I am trying to compile the LAMMPS MD package with PLUMED using CMake, based on these articles:
Below, I provide an outline of my issue, with the attached file containing complete inputs and outputs.
I am using the latest stable version of LAMMPS (2Aug2023). I am able to compile this fine by itself, but not with PLUMED. The CMake command I use when trying to compile with PLUMED is "cmake -D PKG_PLUMED=yes -D DOWNLOAD_PLUMED=yes ../cmake". This command runs fine, returning the output in the attached file.
Then, when I run "cmake --build .", I get to "[100%] Linking CXX executable lmp", where I get a number of error messages. Specifically, these errors claim undefined references to a number of mpi-related objects (ompi_mpi_cxx_op_intercept, MPI::Comm::Comm(), MPI::Datatype::Free(), MPI::Win::Free()) in the plumed_build-prefix/lib/libplumed.a(kernel.o) file. See attached file for the complete message.
I spent a considerable time searching through various forums to try to overcome this error, but I could not find a case quite like mine. I would be very grateful for any advice.
Best wishes,
Ben Goldmann
University of Edinburgh