Installation error GMX+CP2K on CRAY

GROMACS version:
GROMACS modification: Yes/No
Here post your question

Dear Gromacs community

I tried to install GROMACS 2022.2 in combination with CP2K.2022.1 on our CRAY supercomputer.
From what I understand in a previous post (link reported at the end of this post) the
-DCP2K_LINKER_FLAGS is not needed anymore starting from cp2k.9.1

I successfully install cp2k.2022.1 and I tried to install gromacs

I got some mpi warning:

warning: use of old-style cast [-Wold-style-cast]
MPI_Comm libraryWorldCommunicator_ = MPI_COMM_NULL;

and at the end this error at the end:

[100%] Building CXX object src/gromacs/CMakeFiles/libgromacs.dir/selection/sm_simple.cpp.o
[100%] Building CXX object src/gromacs/CMakeFiles/libgromacs.dir/selection/symrec.cpp.o
3 warnings generated.
7 warnings generated.
18 warnings generated.
[100%] Linking CXX static library …/…/lib/libgromacs_mpi_d.a
[100%] Built target libgromacs
[100%] Linking CXX executable …/…/bin/gmx_mpi_d
ld.lld: error: unable to find library -lsymspg
ld.lld: error: unable to find library -lplumed
ld.lld: error: unable to find library -lgsl
ld.lld: error: unable to find library -lxsmmf
ld.lld: error: unable to find library -lxsmm
ld.lld: error: unable to find library -lxcf03
ld.lld: error: unable to find library -lxc
ld.lld: error: unable to find library -lint2
ld.lld: error: unable to find library -lfftw3_mpi
ld.lld: error: unable to find library -lfftw3
ld.lld: error: unable to find library -lfftw3_omp
ld.lld: error: unable to find library -lvori
ld.lld: error: unable to find library -lsymspg
ld.lld: error: unable to find library -lplumed
ld.lld: error: unable to find library -lgsl
ld.lld: error: unable to find library -lxsmmf
ld.lld: error: unable to find library -lxsmm
ld.lld: error: unable to find library -lxcf03
ld.lld: error: unable to find library -lxc
ld.lld: error: unable to find library -lint2
ld.lld: error: too many errors emitted, stopping now (use -error-limit=0 to see all errors)
clang-11: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [src/programs/CMakeFiles/gmx.dir/build.make:97: bin/gmx_mpi_d] Error 1
make[1]: *** [CMakeFiles/Makefile2:6163: src/programs/CMakeFiles/gmx.dir/all] Error 2
make: *** [Makefile:166: all] Error 2

Here my cmake file

#!/bin/bash
export DIR_LIB=/lustre/igladich/opt/cp2k-2022.1/tools/toolchain/install/
source ${DIR_LIB}/setup
export DIR_CP2K=/lustre/igladich/opt/cp2k-2022.1/
export DIR_GMX=/lustre/igladich/opt/gromacs-2022.2_wCP2K/

${DIR_LIB}/cmake-3.22.1/bin/cmake … -DGMX_MPI=ON
-DCMAKE_INSTALL_PREFIX=${DIR_GMX}/opt/ -DGMX_DOUBLE=ON
-DBUILD_SHARED_LIBS=OFF -DGMXAPI=OFF -DGMX_INSTALL_NBLIB_API=OFF
-DGMX_FFT_LIBRARY=fftw3
-DCMAKE_PREFIX_PATH=${DIR_LIB}/fftw-3.3.10
-DCP2K_DIR=${DIR_CP2K}/lib/local/psmp -DGMX_CP2K=ON

Please, let me know if you have any suggestions
Thank you very much for your help

Best

Ivan

PS: