# Regarding the error undefined reference to \`srot\_', \`strsm\_'

**URL:** <https://gromacs.bioexcel.eu/t/regarding-the-error-undefined-reference-to-srot-strsm/3910>\
**Category:** User discussions\
**Tags:** installation-error\
**Created:** [March 28, 2022, 10:50am UTC](https://gromacs.bioexcel.eu/t/regarding-the-error-undefined-reference-to-srot-strsm/3910 "2022-03-28T10:50:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Naba](https://avatars.discourse-cdn.com/v4/letter/n/ed8c4c/32.png) [@Naba](https://gromacs.bioexcel.eu/u/Naba)\
**Post date:** [March 28, 2022, 10:50am UTC](https://gromacs.bioexcel.eu/t/regarding-the-error-undefined-reference-to-srot-strsm/3910/1 "2022-03-28T10:50:05Z")

</div>

GROMACS version: 2022.0  
GROMACS modification: No

Dear Users and Developers,  
I have found a thread ([Gromacs 2020.2 install error](https://gromacs.bioexcel.eu/t/gromacs-2020-2-install-error/404)) regarding the error I have encountered during every installation of gromacs version higher than 2019.5. But I couldn’t find any fruitful solution for the error.cmake runs well without any error. Following is my cmake command and options  
cmake … -DGMX\_BUILD\_OWN\_FFTW=ON -DREGRESSIONTEST\_DOWNLOAD=ON -DGMX\_GPU=CUDA -DCUDA\_TOOLKIT\_ROOT\_DIR=/usr/local/cuda-11.6 -DGMX\_MPI=ON -DCMAKE\_INSTALL\_PREFIX=/mypath/gmx2021\_mpi\_install

But “make” gives the following error:  
…/…/lib/libgromacs\_mpi.so.7.0.0: undefined reference to `srot_' ../../lib/libgromacs_mpi.so.7.0.0: undefined reference to `strsm\_’  
collect2: error: ld returned 1 exit status  
make[2]: \*\*\* [src/programs/CMakeFiles/gmx.dir/build.make:95: bin/gmx\_mpi] Error 1  
make[1]: \*\*\* [CMakeFiles/Makefile2:6089: src/programs/CMakeFiles/gmx.dir/all] Error 2  
make[1]: \*\*\* Waiting for unfinished jobs…  
[98%] Linking CXX shared library …/…/lib/libgmxapi\_mpi.so  
[98%] Built target gmxapi  
[98%] Linking CXX shared library …/…/lib/libtestutils.so  
[98%] Built target testutils  
[98%] Linking CXX shared library …/…/lib/libnblib.so  
[98%] Built target nblib  
make: \*\*\* [Makefile:166: all] Error 2

Please help if anyone is there who has already resolved this problem.

Thanks in advance,  
Naba

---

<div class="post-metadata">

**Author:** ![Naba](https://avatars.discourse-cdn.com/v4/letter/n/ed8c4c/32.png) [@Naba](https://gromacs.bioexcel.eu/u/Naba)\
**Post date:** [March 28, 2022, 4:29pm UTC](https://gromacs.bioexcel.eu/t/regarding-the-error-undefined-reference-to-srot-strsm/3910/2 "2022-03-28T16:29:33Z")

</div>

I solved it by installing lapack-devel package.

```auto
dnf --enablerepo=powertools install lapack-devel

```

---

<div class="post-metadata">

**Author:** ![jim](https://avatars.discourse-cdn.com/v4/letter/j/ac91a4/32.png) [@jim](https://gromacs.bioexcel.eu/u/jim)\
**Post date:** [March 6, 2024, 2:02am UTC](https://gromacs.bioexcel.eu/t/regarding-the-error-undefined-reference-to-srot-strsm/3910/3 "2024-03-06T02:02:22Z")

</div>

Thanks.  
After installing lapack-devel package, I still have the problems mentioned above by you. I don’t know how to solve it.  
sincerely,  
jim
