I did the following:
1. I put all the previous tries in a separate folder and left just the tar/gz files to start again
2. tar -xvzf plumed-2.1.2.tgz
3. mv plumed-2.1.2 plumed-2.1.2-src
4. mkdir /lmb/home/jkrieger/bin/plumed-2.1.2_mpi
5. cd plumed-2.1.2-src
6.
./configure --prefix=/lmb/home/jkrieger/bin/plumed-2.1.2_mpi/
CC=/lmb/home/jkrieger/bin/mpich-3.1.4-build/bin/mpicc
CXX=/lmb/home/jkrieger/bin/mpich-3.1.4-build/bin/mpicxx
configure: WARNING: using internal molfile_plugins, which only support dcd and xtc/trr/trj
configure: WARNING: cannot enable __PLUMED_HAS_MATHEVAL
configure: WARNING: Doxygen version is <1.8. You might have problems in generating manuals
configure: PLUMED seems to be configured properly!
configure: **************************
configure: I will now check if C++ objects can be linked by C/Fortran compilers
configure: This is relevant if you want to use plumed patch --static on a non-C++ code
checking whether C can link a C++ object... no
checking whether C can link a C++ object with library -lstdc++... yes
checking whether FORTRAN can link a C++ object... yes
configure: **** PLUMED will be installed using prefix /lmb/home/jkrieger/bin/plumed-2.1.2_mpi
configure: **** You can change this later setting PLUMED_PREFIX environment variable before installing
configure: **** Executable will be named 'plumed'
configure: **** To add a suffix to this name, set PLUMED_LIBSUFFIX environment variable before installing
configure: **** PLUMED will be compiled using MPI
configure: creating ./config.status
config.status: creating Makefile.conf
config.status: creating sourceme.sh
7. add -fPIC to CFLAGS in Makefile.conf
8. setenv PLUMED_LIBSUFFIX mpi
make
lots of errors like the following:
/lmb/home/jkrieger/bin/mpich-3.1.4-build/include/mpi.h:549: warning: ISO C++ 1998 does not support 'long long'
Matrix.h:247: warning: comparison between signed and unsigned integer expressions
9. make install
cd
../../ ; tar cf - patches scripts src/*/*.h src/*/*.cpp src/*/*.o
src/config/compile_options.sh *-doc/*.png *-doc/html *-doc/regtests
*-doc/manual.pdf | tar xf - -C
/lmb/home/jkrieger/bin/plumed-2.1.2_mpi/lib/plumed-mpi//
tar: *-doc/html: Cannot stat: No such file or directory
tar: *-doc/regtests: Cannot stat: No such file or directory
tar: *-doc/manual.pdf: Cannot stat: No such file or directory
tar: Exiting with failure status due to previous errors
*** PLUMED has been installed ***
Install prefix : /lmb/home/jkrieger/bin/plumed-2.1.2_mpi
Full name : plumed-mpi
Setup your environment
- Ensure this is in your execution path : /lmb/home/jkrieger/bin/plumed-2.1.2_mpi/bin
- Ensure this is in your include path : /lmb/home/jkrieger/bin/plumed-2.1.2_mpi/include
- Ensure this is in your library path : /lmb/home/jkrieger/bin/plumed-2.1.2_mpi/lib
For runtime binding:
- Set this environment variable : PLUMED_KERNEL=/lmb/home/jkrieger/bin/plumed-2.1.2_mpi/lib/libplumed-mpiKernel.so
To create a tcl module that sets all the variables above, use this one as a starting point:
/lmb/home/jkrieger/bin/plumed-2.1.2_mpi/lib/plumed-mpi//src/lib/modulefile
To uninstall, remove the following files and directories:
/lmb/home/jkrieger/bin/plumed-2.1.2_mpi/lib/plumed-mpi/
/lmb/home/jkrieger/bin/plumed-2.1.2_mpi/include/plumed-mpi
/lmb/home/jkrieger/bin/plumed-2.1.2_mpi/bin/plumed-mpi
/lmb/home/jkrieger/bin/plumed-2.1.2_mpi/bin/plumed-mpi-mklib
/lmb/home/jkrieger/bin/plumed-2.1.2_mpi/bin/plumed-mpi-newcv
/lmb/home/jkrieger/bin/plumed-2.1.2_mpi/bin/plumed-mpi-patch
/lmb/home/jkrieger/bin/plumed-2.1.2_mpi/lib/libplumed-mpi.so
/lmb/home/jkrieger/bin/plumed-2.1.2_mpi/lib/libplumed-mpiKernel.so
10. cd ..
tar -xvzf gromacs-5.0.4.tar.gz
mv gromacs-5.0.4 gromacs-5.0.4-src
mkdir gromacs-plumed-mpi
cd gromacs-5.0.4-src/
plumed-mpi patch -p --runtime
PLUMED patching tool
1) amber14 3) gromacs-4.6.7 5) lammps-6Apr13 7) namd-2.9
2) gromacs-4.5.5 4) gromacs-5.0 6) namd-2.8 8) qespresso-5.0.2
Choose the best matching code/version:4
MD engine: gromacs-5.0
PLUMED location: /lmb/home/jkrieger/bin/plumed-2.1.2_mpi/lib/plumed-mpi/
diff file: /lmb/home/jkrieger/bin/plumed-2.1.2_mpi/lib/plumed-mpi//patches/gromacs-5.0.diff
sourcing config file: /lmb/home/jkrieger/bin/plumed-2.1.2_mpi/lib/plumed-mpi//patches/gromacs-5.0.config
Linking Plumed.h and Plumed.inc (runtime mode)
Patching with on-the-fly diff from stored originals
patching file ./src/gromacs/CMakeLists.txt
Hunk #2 succeeded at 189 (offset -4 lines).
patching file ./src/gromacs/mdlib/force.c
Hunk #2 succeeded at 743 (offset -1 lines).
patching file ./src/gromacs/mdlib/minimize.c
Hunk #2 succeeded at 447 (offset 1 line).
Hunk #3 succeeded at 779 (offset 3 lines).
patching file ./src/programs/mdrun/md.c
patching file ./src/programs/mdrun/mdrun.cpp
patching file ./src/programs/mdrun/repl_ex.c
11. cd ../gromacs-plumed-mpi
ccmake
-DGMX_MPI=ON ../gromacs-5.0.4-src/ -DGMX_BUILD_OWN_FFTW=ON
-DCMAKE_INSTALL_PREFIX=/lmb/home/jkrieger/bin/gromacs-plumed-mpi
-DCMAKE_C_COMPILER=/lmb/home/jkrieger/bin/mpich-3.1.4-build/bin/mpicc
-DCMAKE_CXX_COMPILER=/lmb/home/jkrieger/bin/mpich-3.1.4-build/bin/mpicxx
c for configure
Boost
>= 1.44 not found. Using minimal internal version. This may cause
trouble if you plan on compiling/linking other software that uses Boost
against Gromacs.
e for exit help
c
for configure and g for generate
12. make
/lmb/home/jkrieger/bin/gromacs-5.0.4-src/src/gromacs/gmxana/gmx_bar.c: In function 'read_barsim_edr.clone.0':
/lmb/home/jkrieger/bin/gromacs-5.0.4-src/src/gromacs/gmxana/gmx_bar.c:3217:
warning: 'start_lambda.index' may be used uninitialized in this
function
/lmb/home/jkrieger/bin/gromacs-5.0.4-src/src/gromacs/gmxana/gmx_bar.c:3217:
warning: 'start_lambda.val' may be used uninitialized in this function
At top level:
cc1: warning: unrecognized command line option "-Wno-maybe-uninitialized"
/lmb/home/jkrieger/bin/gromacs-5.0.4-src/src/gromacs/gmxlib/ewald_util.c: In function 'ewald_LRcorrection':
/lmb/home/jkrieger/bin/gromacs-5.0.4-src/src/gromacs/gmxlib/ewald_util.c:167:
warning: 'dxdf_lj' may be used uninitialized in this function
At top level:
cc1: warning: unrecognized command line option "-Wno-maybe-uninitialized"
/lmb/home/jkrieger/bin/plumed-2.1.2_mpi/lib/plumed-mpi///src/wrapper/Plumed.o: In function `plumed_dummy_create':
/lmb/home/jkrieger/bin/plumed-2.1.2-src/src/wrapper/Plumed.c:84: multiple definition of `plumed_dummy_create'
/lmb/home/jkrieger/bin/plumed-2.1.2_mpi/lib/plumed-mpi///src/wrapper/Plumed.o:/lmb/home/jkrieger/bin/plumed-2.1.2-src/src/wrapper/Plumed.c:84:
first defined here
and similar then finally