<div dir="ltr">Hello,<div><br></div><div>I encountered the similar problem. It's "undefined mkl_lapack..." and "undefined mkl_blas...". Do you know how to solve the problem now?</div><div><br></div><div>Sincerely</div><div>Hongxia<br><br>On Thursday, January 10, 2019 at 9:56:18 AM UTC-8, Geng Sun wrote:<blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;"><div dir="ltr"><div>Hello,</div><div><br></div><div>I am compiling cp2k with toolchain tools and try to include elpa library. <br></div><div><br></div><div>I am using gcc/7.2.0 and openmpi/3.1.3 and the math library is from intel/18.0.3 mkl. I've tested both cp2k-6.1 and most recent master branch and the compiling has the similar errors.<br></div><div><br></div><div>The command looks like this:</div><div><div style="background-color:rgb(250,250,250);border-color:rgb(187,187,187);border-style:solid;border-width:1px"><code><div><span style="color:#660">./</span><span style="color:#000">install_cp2k_toolchain</span><span style="color:#660">.</span><span style="color:#000">sh </span><span style="color:#660">--</span><span style="color:#000">mpi</span><span style="color:#660">-</span><span style="color:#000">mode</span><span style="color:#660">=</span><span style="color:#000">openmpi </span><span style="color:#660">--</span><span style="color:#000">math</span><span style="color:#660">-</span><span style="color:#000">mode</span><span style="color:#660">=</span><span style="color:#000">mkl </span><span style="color:#660">--</span><span style="color:#008">with</span><span style="color:#660">-</span><span style="color:#000">gcc</span><span style="color:#660">=</span><span style="color:#000">system </span><span style="color:#660">--</span><span style="color:#008">with</span><span style="color:#660">-</span><span style="color:#000">openmpi</span><span style="color:#660">=</span><span style="color:#000">system </span><span style="color:#660">--</span><span style="color:#008">with</span><span style="color:#660">-</span><span style="color:#000">libxc</span><span style="color:#660">=</span><span style="color:#000">install </span><span style="color:#660">--</span><span style="color:#008">with</span><span style="color:#660">-</span><span style="color:#000">fftw</span><span style="color:#660">=</span><span style="color:#000">install </span><span style="color:#660">--</span><span style="color:#008">with</span><span style="color:#660">-</span><span style="color:#000">libint</span><span style="color:#660">=</span><span style="color:#000">install </span><span style="color:#660">--</span><span style="color:#008">with</span><span style="color:#660">-</span><span style="color:#000">reflapack</span><span style="color:#660">=</span><span style="color:#008">no</span><span style="color:#000"> </span><span style="color:#660">--</span><span style="color:#008">with</span><span style="color:#660">-</span><span style="color:#000">acml</span><span style="color:#660">=</span><span style="color:#008">no</span><span style="color:#000"> </span><span style="color:#660">--</span><span style="color:#008">with</span><span style="color:#660">-</span><span style="color:#000">mkl</span><span style="color:#660">=</span><span style="color:#000">system </span><span style="color:#660">--</span><span style="color:#008">with</span><span style="color:#660">-</span><span style="color:#000">openblas</span><span style="color:#660">=</span><span style="color:#008">no</span><span style="color:#000"> </span><span style="color:#660">--</span><span style="color:#008">with</span><span style="color:#660">-</span><span style="color:#000">libxsmm</span><span style="color:#660">=</span><span style="color:#008">no</span><span style="color:#000">  </span><span style="color:#660">--</span><span style="color:#008">with</span><span style="color:#660">-</span><span style="color:#000">elpa</span><span style="color:#660">=</span><span style="color:#000">install </span><span style="color:#660">--</span><span style="color:#008">with</span><span style="color:#660">-</span><span style="color:#000">sirius</span><span style="color:#660">=</span><span style="color:#008">no</span></div></code></div><br><br></div><div>While the toolchain always fails at the compiling elpa library. <br></div><div></div><div><br></div><div>The configure.log and make.log are attached.  There are many errors like this for example:</div><div><div style="background-color:rgb(250,250,250);border-color:rgb(187,187,187);border-style:solid;border-width:1px"><code><div><span style="color:#660">):</span><span style="color:#000"> </span><span style="color:#606">In</span><span style="color:#000"> </span><span style="color:#008">function</span><span style="color:#000"> </span><span style="color:#080">`blacs_gridmap__':<br>blacs_gridmap_.c:(.text+0x1fb)<wbr>: undefined reference to `</span><span style="color:#000">mkl_serv_get_mpi_wrappers</span><span style="color:#080">'<br>blacs_gridmap_.c:(.text+0x20a)<wbr>: undefined reference to `mkl_serv_get_mpi_wrappers'</span><span style="color:#000"><br>blacs_gridmap_</span><span style="color:#660">.</span><span style="color:#000">c</span><span style="color:#660">:(.</span><span style="color:#000">text</span><span style="color:#660">+</span><span style="color:#066">0x22c</span><span style="color:#660">)<wbr>:</span><span style="color:#000"> </span><span style="color:#008">undefined</span><span style="color:#000"> reference to </span><span style="color:#080">`mkl_serv_get_mpi_wrappers'<br>blacs_gridmap_.c:(.text+0x244)<wbr>: undefined reference to `</span><span style="color:#000">mkl_serv_get_mpi_wrappers</span><span style="color:#080">'<br>blacs_gridmap_.c:(.text+0x584)<wbr>: undefined reference to `mkl_serv_get_mpi_wrappers'</span><span style="color:#000"><br><br></span></div></code></div></div><div><br></div><div><br></div><div>Does any one know how to fix this error? Thank you very much.</div><div><br>Best Wishes,</div><div><br>Geng<br></div><div> <br></div></div></blockquote></div></div>