<br><div>Hello,</div><div><br></div><div>I am completely new to CP2K. <br></div><div><br></div><div>In order to compile it, I am following the instruction to use toolchain.</div><div><br></div><div>My system is Ubuntu 21.04, 64 bits, Intel compilers, MPI and MKL. Also has GPU 1050Ti.</div><div><br></div><div>The command I am using is:</div><div><br></div><div><i>./install_cp2k_toolchain.sh -j 4 --gpu-ver=P100</i></div><div><br></div><div>which is returning me an error when compiling FFTW:</div><div><br></div><div><span style="color: red;"><i>ERROR: (./scripts/stage3/install_fftw.sh, line 58) Non-zero exit code detected.</i></span></div><div><br></div><div>Looking for make.log, I found: <br></div><div><i><br></i></div><div><i>tensor.c(31): error: identifier "__INT_MAX__" is undefined<br>       if (FINITE_RNK(rnk) && rnk > 1)<br>           ^<br><br>tensor.c(67): error: identifier "__INT_MAX__" is undefined<br>       if (!FINITE_RNK(sz->rnk))<br>            ^<br><br>tensor.c(79): error: identifier "__INT_MAX__" is undefined<br>       if (FINITE_RNK(t->rnk)) {<br>           ^<br><br>tensor.c(108): error: identifier "__INT_MAX__" is undefined<br>       if (FINITE_RNK(x->rnk)) {<br>           ^<br><br>compilation aborted for tensor.c (code 2)<br>make[2]: *** [Makefile:463: tensor.lo] Error 1</i><br></div><div><br></div><div>Searching the web, I found that this error is related to use Intel to compile FFTW: <a href="https://community.intel.com/t5/Intel-C-Compiler/icc-and-fftw-and-INT-MAX/m-p/1221838#M37735">link</a>.</div><div><br></div><div>But I don't know how to implement this.</div><div><br></div><div>Also, I installed CP2K from the Ubuntu repos, but I am getting this error:</div><div><br></div><div><span style="color: red;"><i>cp2k: symbol lookup error: cp2k: undefined symbol: __elpa_MOD_elpa_allocate</i></span></div><div><br></div><div>I have installed the ELPA libraries (also from repos).</div><div><br></div><div>Any help is welcome!<br></div><div><br></div>