[CP2K-user] [CP2K:16808] CP2K with GROMACS 2022

Moser Mario mosermauer at gmail.com
Wed Apr 6 01:14:30 UTC 2022


 Hello dear CP2K users,
 im trying to compile gromacs 2022 with CP2K support. 

I already compiled the cp2k library with `sudo ./install_cp2k_toolchain.sh 
--with-openblas --with-openmpi --with-fftw --with-scalapack` and 
` make -j 16 ARCH=local VERSION="ssmp sdbg psmp pdbg" libcp2k` , then i 
entered the cmake command below : 
` 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" ` 

and i got this error message after typing `make` :
 ` /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`   

Im also not sure what flags to put in :-DCP2K_LINKER_FLAGS in the cmake 
command. 

Im looking forward for your help and advices. 

Best regards. 

Mario 

-- 
You received this message because you are subscribed to the Google Groups "cp2k" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cp2k+unsubscribe at googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cp2k/f0088cc1-4a2d-4da0-9c60-f97e8ff46fb4n%40googlegroups.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cp2k.org/archives/cp2k-user/attachments/20220405/671619b2/attachment-0001.htm>


More information about the CP2K-user mailing list