# Error of compiling gromacs after patching plumed

**URL:** <https://gromacs.bioexcel.eu/t/error-of-compiling-gromacs-after-patching-plumed/3037>\
**Category:** User discussions\
**Tags:** installation-error\
**Created:** [October 27, 2021, 3:06am UTC](https://gromacs.bioexcel.eu/t/error-of-compiling-gromacs-after-patching-plumed/3037 "2021-10-27T03:06:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![margot](https://avatars.discourse-cdn.com/v4/letter/m/91b2a8/32.png) [@margot](https://gromacs.bioexcel.eu/u/margot)\
**Post date:** [October 27, 2021, 3:06am UTC](https://gromacs.bioexcel.eu/t/error-of-compiling-gromacs-after-patching-plumed/3037/1 "2021-10-27T03:06:21Z")

</div>

GROMACS version: 2020.5

Dear all:

I am a beginner using PLUMED and gromacs and I have some errors when compiling gromacs after patching plumed. I have installed plumed and patched plumed. I used the code in the following to install gromacs:

tar xfz gromacs-2020.5.tar.gz

cd gromacs-2020.5

mkdir build

cd build

cmake … -DGMX\_BUILD\_OWN\_FFTW=ON -DREGRESSIONTEST\_DOWNLOAD=ON

make

And the error occurs:

[1%] Built target fftwBuild

[5%] Built target thread\_mpi

[5%] Built target scanner

[7%] **Generating release version information**

– The source code for this GROMACS installation is different from the officially released version.

[7%] Built target release-version-info

[8%] Built target tng\_io\_obj

[10%] Built target tng\_io\_zlib

[10%] Built target lmfit\_objlib

[10%] Built target linearalgebra

[11%] Built target modularsimulator

[11%] Built target vmddlopen

[11%] **Generating baseversion-gen.cpp**

**Consolidate compiler generated dependencies of target libgromacs**

[11%] Building CXX object src/gromacs/CMakeFiles/libgromacs.dir/mdlib/force.cpp.o

**/Users/jiaxinyuan/Downloads/gromacs-2020.5/src/gromacs/mdlib/force.cpp:383:5:**  **error:**

**expected unqualified-id**

if(plumedswitch){

**^**

1 error generated.

make[2]: \*\*\* [src/gromacs/CMakeFiles/libgromacs.dir/mdlib/force.cpp.o] Error 1

make[1]: \*\*\* [src/gromacs/CMakeFiles/libgromacs.dir/all] Error 2

make: \*\*\* [all] Error 2

---

<div class="post-metadata">

**Author:** ![pszilard](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/pszilard/32/21_2.png) [@pszilard](https://gromacs.bioexcel.eu/u/pszilard)\
**Post date:** [November 5, 2021, 3:48pm UTC](https://gromacs.bioexcel.eu/t/error-of-compiling-gromacs-after-patching-plumed/3037/2 "2021-11-05T15:48:58Z")

</div>

Unfortunately, this looks like an issue in the PLUMED patching process not in GROMACS, so will probably have a better chance to get help on the PLUMED mailing list/forum.

Cheers,  
Szilard
