# Gromacs 2021.3 installation error

**URL:** <https://gromacs.bioexcel.eu/t/gromacs-2021-3-installation-error/2762>\
**Category:** User discussions\
**Tags:** installation-error\
**Created:** [September 4, 2021, 5:08am UTC](https://gromacs.bioexcel.eu/t/gromacs-2021-3-installation-error/2762 "2021-09-04T05:08:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ABMMKI](https://avatars.discourse-cdn.com/v4/letter/a/ecae2f/32.png) [@ABMMKI](https://gromacs.bioexcel.eu/u/ABMMKI)\
**Post date:** [September 4, 2021, 5:08am UTC](https://gromacs.bioexcel.eu/t/gromacs-2021-3-installation-error/2762/1 "2021-09-04T05:08:53Z")

</div>

GROMACS version: 2021.3  
GROMACS modification: No  
Here post your question

# I was trying to install gromacs new version 2021.3 (also same for 2021.2 same error) in cluster with CENTOS 7.

Version of other tools:  
CMAKE = 3.2  
GCC = 11.2  
Python = 3.9

cmake .. -DGMX\_BUILD\_OWN\_FFTW=ON -DREGRESSIONTEST\_DOWNLOAD=ON -DCMAKE\_INSTALL\_PREFIX=/home/khademul/bin/gromacs -DCMAKE\_C\_COMPILER=/home/khademul/bin/gcc11/bin/gcc -DCMAKE\_CXX\_COMPILER=/home/khademul/bin/gcc11/bin/g++

# make

…  
…  
…

[100%] Built target nblib  
[100%] Building CXX object api/nblib/samples/CMakeFiles/argon-forces-integration.dir/argon-forces-integration.cpp.o  
[100%] Linking CXX executable ../../../bin/argon-forces-integration  
/home/khademul/bin/gromacs-2021.2/build/lib/libgromacs.so.6: undefined reference to `GOMP_loop_nonmonotonic_dynamic_next@GOMP_4.5' /home/khademul/bin/gromacs-2021.2/build/lib/libgromacs.so.6: undefined reference to `GOMP\_loop\_nonmonotonic\_dynamic\_start@GOMP\_4.5’  
collect2: error: ld returned 1 exit status  
make[2]: \*\*\* [bin/argon-forces-integration] Error 1  
make[1]: \*\*\* [api/nblib/samples/CMakeFiles/argon-forces-integration.dir/all] Error 2  
make: \*\*\* [all] Error 2

# Can anyone help how to fix

---

<div class="post-metadata">

**Author:** ![hess](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/hess/32/416_2.png) [@hess](https://gromacs.bioexcel.eu/u/hess)\
**Post date:** [September 7, 2021, 7:39am UTC](https://gromacs.bioexcel.eu/t/gromacs-2021-3-installation-error/2762/2 "2021-09-07T07:39:33Z")

</div>

This looks like you are using an incompatible linker.  
What is CMAKE\_LINKER set to? You can check in CMakeCache.txt.  
Try setting that to, I guess, /home/khademul/bin/gcc11/bin/ld

---

<div class="post-metadata">

**Author:** ![ABMMKI](https://avatars.discourse-cdn.com/v4/letter/a/ecae2f/32.png) [@ABMMKI](https://gromacs.bioexcel.eu/u/ABMMKI)\
**Post date:** [September 10, 2021, 2:40pm UTC](https://gromacs.bioexcel.eu/t/gromacs-2021-3-installation-error/2762/3 "2021-09-10T14:40:45Z")

</div>

Hi,

Many thanks for your response.

# CMAKE\_LINKER was

CMAKE\_LINKER:FILEPATH= **/usr/bin/ld**

# Then I have changed it to, as you suggested (though here is no ld file)

CMAKE\_LINKER:FILEPATH= **/home/khademul/bin/gcc11/bin/ld**  
//ADVANCED property for variable: CMAKE\_LINKER  
CMAKE\_LINKER-ADVANCED:INTERNAL=1

# However the problem persists and remains the same.

cmake .. -DGMX\_BUILD\_OWN\_FFTW=ON -DREGRESSIONTEST\_DOWNLOAD=ON -DMPI\_C\_COMPILER=mpicc -DGMX\_MPI=on -DCMAKE\_INSTALL\_PREFIX=/home/khademul/bin/gromacs -DCMAKE\_C\_COMPILER=/home/khademul/bin/gcc11/bin/gcc -DCMAKE\_CXX\_COMPILER=/home/khademul/bin/gcc11/bin/g++ **-DCMAKE\_LINKER** =/home/khademul/bin/gcc11/bin/ld

…  
…

make

…  
…

[98%] Built target nblib  
[98%] Building CXX object api/nblib/samples/CMakeFiles/argon-forces-integration.dir/argon-forces-integration.cpp.o  
[100%] Linking CXX executable ../../../bin/argon-forces-integration  
/home/khademul/bin/gromacs-2021.3/build/lib/libgromacs\_mpi.so.6: undefined reference to `GOMP_loop_nonmonotonic_dynamic_next@GOMP_4.5' /home/khademul/bin/gromacs-2021.3/build/lib/libgromacs_mpi.so.6: undefined reference to `GOMP\_loop\_nonmonotonic\_dynamic\_start@GOMP\_4.5’  
collect2: error: ld returned 1 exit status  
make[2]: \*\*\* [bin/argon-forces-integration] Error 1  
make[1]: \*\*\* [api/nblib/samples/CMakeFiles/argon-forces-integration.dir/all] Error 2  
make: \*\*\* [all] Error 2

## I do not have root permission and CMAKE, GCC etc installed locally. (default things are tool old version)

module load openmpi-1.8-x86\_64  
module load tools/openBLAS-0.2.18  
module load lib/OpenBLAS-0.3.9  
module load compilers/python-3.6.2-gcc

# cmake version 3.20.0-rc4

# gcc version 11.2.0

thanks, # any more suggestions?

---

<div class="post-metadata">

**Author:** ![bgrokm](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/bgrokm/32/1027_2.png) [@bgrokm](https://gromacs.bioexcel.eu/u/bgrokm)\
**Post date:** [September 10, 2021, 2:59pm UTC](https://gromacs.bioexcel.eu/t/gromacs-2021-3-installation-error/2762/4 "2021-09-10T14:59:07Z")

</div>

Perhaps try without MPI and if that works, build MPI with the same gcc  
compiler you are using.
