Make Error during Gromacs and cp2k build

GROMACS version:
GROMACS modification: Yes/No
Hii i am trying to build Gromacs 2023.5 with cp2k 2023.2 QM/MM support.
while building the gromacs i am facing the error “creating DT_TEXTREL in a PIE” at the make stage :
here is my cmake flags :
cmake … -DGMX_CP2K=ON -DCP2K_DIR=“/home/tharun/Downloads/cp2k-2023.2/lib/local/psmp” -DCP2K_LINKER_FLAGS=“-L/home/tharun/Downloads/cp2k-2023.2/lib/local/psmp -L/home/tharun/Downloads/cp2k-2023.2/lib/local/psmp/exts/dbcsr -L/opt/intel/oneapi/mkl/2025.0/lib -L/usr/lib/x86_64-linux-gnu/ -lcp2k -ldbcsr -lmkl_rt -lstdc++ -lm -ldl -lpthread” -DBUILD_SHARED_LIBS=OFF -DGMXAPI=OFF -DGMX_INSTALL_NBLIB_API=OFF -DGMX_DOUBLE=ON -DGMX_FFT_LIBRARY=fftw3 -DFFTWF_LIBRARY=“/home/tharun/Downloads/cp2k-2023.2/tools/toolchain/install/fftw-3.3.10/lib/libfftw3f.a” -DFFTWF_INCLUDE_DIR=“/home/tharun/Downloads/cp2k-2023.2/tools/toolchain/install/fftw-3.3.10/include” -DGMX_BLAS_USER=“/usr/local/OpenBLAS/lib/libopenblas.a” -DGMX_LAPACK_USER=“/usr/local/OpenBLAS/lib/libopenblas.a” -DGMX_MKL=“ON”
and the error after make :/usr/bin/ld: warning: creating DT_TEXTREL in a PIE
collect2: error: ld returned 1 exit status
make[2]: *** [src/programs/CMakeFiles/gmx.dir/build.make:128: bin/gmx_mpi_d] Error 1
make[2]: Leaving directory ‘/home/tharun/Downloads/gromacs-2023.5/build’
make[1]: *** [CMakeFiles/Makefile2:6982: src/programs/CMakeFiles/gmx.dir/all] Error 2
make[1]: Leaving directory ‘/home/tharun/Downloads/gromacs-2023.5/build’
make: *** [Makefile:169: all] Error 2
/usr/bin/ld: warning: creating DT_TEXTREL in a PIE
collect2: error: ld returned 1 exit status
make[2]: *** [src/programs/CMakeFiles/gmx.dir/build.make:128: bin/gmx_mpi_d] Error 1
make[2]: Leaving directory ‘/home/tharun/Downloads/gromacs-2023.5/build’
make[1]: *** [CMakeFiles/Makefile2:6982: src/programs/CMakeFiles/gmx.dir/all] Error 2
make[1]: Leaving directory ‘/home/tharun/Downloads/gromacs-2023.5/build’
make: *** [Makefile:169: all] Error 2

can any one help me to solve this ?
Thanks you in advance