<div><span style="font-weight: 400; font-style: normal;">Hello dear CP2K users,</span></div><div><span style="font-weight: 400; font-style: normal;"> im trying to compile gromacs 2022 with CP2K support. <br></span></div><div><span style="font-weight: 400; font-style: normal;"><br></span></div><div><span style="font-weight: 400; font-style: normal;">I already compiled the cp2k library with `</span><span style="font-weight: 400; font-style: normal;">sudo ./install_cp2k_toolchain.sh --with-openblas --with-openmpi --with-fftw --with-scalapack<span style="font-weight: 400; font-style: normal;">`</span>

</span><span style="font-weight: 400; font-style: normal;"> and <br></span></div><div>
<span style="font-weight: 400; font-style: normal;">`</span>

<span style="font-weight: 400; font-style: normal;">make -j 16 ARCH=local VERSION="ssmp sdbg psmp pdbg" libcp2k<span style="font-weight: 400; font-style: normal;">`</span>

</span><span style="font-weight: 400; font-style: normal;">, then i entered the  cmake command below : <br></span></div><div>
<span style="font-weight: 400; font-style: normal;">`</span>

<span style="font-weight: 400; font-style: normal;">cmake .. \
-DGMX_MPI=on \
-DCMAKE_INSTALL_PREFIX=/home/moser/software/gromacs/  \
-DCMAKE_C_COMPILER=/usr/bin/gcc  -DCMAKE_CXX_COMPILER=/usr/bin/g++  \
-DBUILD_SHARED_LIBS=OFF  -DGMXAPI=OFF  -DGMX_INSTALL_NBLIB_API=OFF  \
-DGMX_DOUBLE=OFF  \
-DGMX_FFT_LIBRARY=fftw3  \
-DFFTWF_LIBRARY=/home/moser/cp2k-9.1/tools/toolchain/install/fftw-3.3.10/lib/libfftw3f.a  \
-DFFTWF_INCLUDE_DIR=/home/moser/cp2k-9.1/tools/toolchain/install/fftw-3.3.10/include \
-DGMX_EXTERNAL_BLAS=ON -DGMX_EXTERNAL_LAPACK=ON \
-DCMAKE_PREFIX_PATH=/home/moser/cp2k-9.1/tools/toolchain/install/openblas-0.3.19 \
-DCP2K_DIR=/home/moser/cp2k-9.1/lib/local/psmp \
-DCP2K_LINKER_FLAGS="-lgfortran"</span><span style="font-weight: 400; font-style: normal;">
<span style="font-weight: 400; font-style: normal;">`</span> <br></span></div><div><span style="font-weight: 400; font-style: normal;"><br></span></div><div><span style="font-weight: 400; font-style: normal;">

and i got this error message after typing 
<span style="font-weight: 400; font-style: normal;">`</span></span><span style="font-weight: 400; font-style: normal;">make<span style="font-weight: 400; font-style: normal;">`</span>

</span><span style="font-weight: 400; font-style: normal;"> :</span></div><div><span style="font-weight: 400; font-style: normal;"> <span style="font-weight: 400; font-style: normal;">`</span>

</span><span style="font-weight: 400; font-style: normal;">/usr/bin/ld : /home/moser/cp2k-9.1/tools/toolchain/install/openblas-0.3.19/lib/libopenblas.a(sormql.o):/home/moser/cp2k-9.1/tools/toolchain/build/OpenBLAS-0.3.19/lapack-netlib/SRC/sormql.f:277 : encore plus de références indéfinies suivent vers « _gfortran_concat_string »
collect2: error: ld returned 1 exit status
make[2]:  [src/programs/CMakeFiles/gmx.dir/build.make:102 : bin/gmx_mpi] Erreur 1
make[1]:  [CMakeFiles/Makefile2:6200 : src/programs/CMakeFiles/gmx.dir/all] Erreur 2
make: *** [Makefile:166 : all] Erreur 2<span style="font-weight: 400; font-style: normal;">`</span>

  <br></span></div><div><br></div><div><span style="font-weight: 400; font-style: normal;">

Im also not sure what flags to put in :</span><span style="font-weight: 400; font-style: normal;">-DCP2K_LINKER_FLAGS</span><span style="font-weight: 400; font-style: normal;"> in the cmake command. <br></span></div><div><span style="font-weight: 400; font-style: normal;"><br></span></div><div><span style="font-weight: 400; font-style: normal;">Im looking forward for your help and advices. <br></span></div><div><span style="font-weight: 400; font-style: normal;"><br></span></div><div><span style="font-weight: 400; font-style: normal;">Best regards. <br></span></div><div><span style="font-weight: 400; font-style: normal;"><br></span></div><div><span style="font-weight: 400; font-style: normal;">Mario <br></span></div>

<p></p>

-- <br />
You received this message because you are subscribed to the Google Groups "cp2k" group.<br />
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="mailto:cp2k+unsubscribe@googlegroups.com">cp2k+unsubscribe@googlegroups.com</a>.<br />
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/cp2k/f0088cc1-4a2d-4da0-9c60-f97e8ff46fb4n%40googlegroups.com?utm_medium=email&utm_source=footer">https://groups.google.com/d/msgid/cp2k/f0088cc1-4a2d-4da0-9c60-f97e8ff46fb4n%40googlegroups.com</a>.<br />