<div dir="ltr"><div><div><div>Hi Alfio,<br></div>Many thanks for your message. If type mpif90 --showme:link, the screen prompts:<br><br>-pthread -I/apps/openmpi/gcc/6.2.0/3.0.0/lib -Wl,-rpath -Wl,/apps/openmpi/gcc/6.2.0/3.0.0/lib -Wl,--enable-new-dtags -L/apps/openmpi/gcc/6.2.0/3.0.0/lib -lmpi_usempif08 -lmpi_usempi_ignore_tkr -lmpi_mpifh -lmpi<br><br></div>For completeness, I am showing also the distribution information of my Unix cluster:<br><br>Red Hat Enterprise Linux Server release 6.9 <br><br></div>Thanks again,<br><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">- Fernan<br></div></div></div>
<br><div class="gmail_quote">On Thu, Mar 1, 2018 at 12:38 PM, Alfio Lazzaro <span dir="ltr"><<a href="mailto:alfio....@gmail.com" target="_blank">alfio....@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello Fernan,<div>I'm not sure why the mpiwrapper cannot find the library...</div><div>What do you get from:</div><div><br></div><div><span style="font-family:monospace"><span style="color:rgb(0,0,0)">mpif90 --showme:link</span><br></span></div><div><br></div><div>? I assume that you should have the path to the MPI libraries and -lmpi_usempif08. For instance, my case I have:</div><div><br></div><div><span style="font-family:monospace"><span style="color:rgb(0,0,0)">-pthread -I/sw/build/openSUSE/13.1/<wbr>para/openmpi/openmpi-2.0.1_<wbr>gcc-5.3.0/lib64 -Wl,-rpath -Wl,/sw/build/openSUSE/13.1/<wbr>para/openmpi/openmpi-2.0.1_<wbr>gcc-5.3.0/lib64 -Wl,--enable-new-dtags -L/s</span>w/build/openSUSE/13.1/<wbr>para/openmpi/openmpi-2.0.1_<wbr>gcc-5.3.0/lib64 -lmpi_usempif08 -lmpi_usempi_ignore_tkr -lmpi_mpifh -lmpi<br></span></div><div><br></div><div>You cannot directly link the library since the MPI wrapper does that for you. I wonder if the problem is in the dynamic/static linking...</div><div><br></div><div>Alfio</div><div><span class=""><br><br>Il giorno giovedì 1 marzo 2018 13:20:09 UTC+1, Fernan Saiz ha scritto:</span><blockquote class="gmail_quote" style="margin:0;margin-left:0.8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><div dir="ltr"><div><div><div>Hi,<br></div>I did try to link it but I got the error:<br>/usr/bin/ld: attempted static link of dynamic object `/apps/openmpi/gcc/6.2.0/3.0.0<wbr>/lib/libmpi_usempif08.so'<br><br></div>I also tried to link the library <br>/usr/bin/ld: attempted static link of dynamic object `/apps/openmpi/gcc/6.2.0/3.0.0<wbr>/lib/<a href="http://libmpi_usempif08.la" rel="nofollow" target="_blank">libmpi_usempif08.la</a>'<br>but I got the following error:<br>/apps/openmpi/gcc/6.2.0/3.0.0/<wbr>lib/<a href="http://libmpi_usempif08.la" rel="nofollow" target="_blank">libmpi_usempif08.la</a>: file not recognized: File format not recognized<br><br></div>Thanks,<br><div><br></div></div></span><div><br clear="all"><div><div><div dir="ltr">- Fernan<br></div></div></div>
<br><div class="gmail_quote"><span class="">On Thu, Mar 1, 2018 at 12:10 PM, Jerry Tanoury <span dir="ltr"><<a rel="nofollow">jerr...@gmail.com</a>></span> wrote:<br></span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><div dir="ltr">It seems you have commented out your LIB path $(MPI_LIB)/libmpi_usempif<wbr>08.so, so CP2K is not seeing the library path to libmpi_usempif08.so<div><br></div><div>Best,</div><div>Jerry</div></div></span><div><br><div class="gmail_quote"><span class=""><span>On Thu, Mar 1, 2018 at 7:01 AM, Fernan Saiz <span dir="ltr"><<a rel="nofollow">fsa...@gmail.com</a>></span> wrote:<br></span></span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><div dir="ltr">Hi all,<br>I am trying to compile cp2k with gcc/6.2.0 and openmpi/gcc/6.2.0/<a href="http://3.0.0." rel="nofollow" target="_blank">3.0.0.</a> However, my compilation stops with error /usr/bin/ld: cannot find -lmpi_usempif08 as shown in the attached file log_compile.txt. I have load the modules gcc/6.2.0 and openmpi/gcc/6.2.0/3.0.0 and the library libmpi_usempif08.a shows in the path lib of the opempi compiler. I also attach my arch.make file. Any help is much appreciated. <br><span><br>Best regards,<br> - Fernan Saiz, PhD<br>Department of Chemistry<br>Imperial College London<span><font color="#888888"><br></font></span></span></div></span><span><font color="#888888"><span><font color="#888888"><span class="">
<p></p>
-- <br>
You received this message because you are subscribed to the Google Groups "cp2k" group.<br></span>
To unsubscribe from this group and stop receiving emails from it, send an email to <a rel="nofollow">cp2k+...@googlegroups.com</a>.</font></span><span><br>
To post to this group, send email to <a rel="nofollow">cp...@googlegroups.com</a>.<span class=""><br>
Visit this group at <a href="https://groups.google.com/group/cp2k" rel="nofollow" target="_blank">https://groups.google.com/grou<wbr>p/cp2k</a>.<br>
For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank">https://groups.google.com/d/op<wbr>tout</a>.<br>
</span></span></font></span></blockquote></div><br></div><div><div><span class="">
<p></p>
-- <br>
You received this message because you are subscribed to a topic in the Google Groups "cp2k" group.<br>
To unsubscribe from this topic, visit <a href="https://groups.google.com/d/topic/cp2k/D_C3POiONyk/unsubscribe" rel="nofollow" target="_blank">https://groups.google.com/d/to<wbr>pic/cp2k/D_C3POiONyk/unsubscri<wbr>be</a>.<br></span>
To unsubscribe from this group and all its topics, send an email to <a rel="nofollow">cp2k+...@googlegroups.com</a>.<br>
To post to this group, send email to <a rel="nofollow">cp...@googlegroups.com</a>.<span class=""><br>
Visit this group at <a href="https://groups.google.com/group/cp2k" rel="nofollow" target="_blank">https://groups.google.com/grou<wbr>p/cp2k</a>.<br>
For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank">https://groups.google.com/d/op<wbr>tout</a>.<br>
</span></div></div></blockquote></div><br></div>
</blockquote></div></div><div class="HOEnZb"><div class="h5">
<p></p>
-- <br>
You received this message because you are subscribed to a topic in the Google Groups "cp2k" group.<br>
To unsubscribe from this topic, visit <a href="https://groups.google.com/d/topic/cp2k/D_C3POiONyk/unsubscribe" target="_blank">https://groups.google.com/d/<wbr>topic/cp2k/D_C3POiONyk/<wbr>unsubscribe</a>.<br>
To unsubscribe from this group and all its topics, send an email to <a href="mailto:cp2k+uns...@googlegroups.com" target="_blank">cp2k+unsubscribe@googlegroups.<wbr>com</a>.<br>
To post to this group, send email to <a href="mailto:cp...@googlegroups.com" target="_blank">cp...@googlegroups.com</a>.<br>
Visit this group at <a href="https://groups.google.com/group/cp2k" target="_blank">https://groups.google.com/<wbr>group/cp2k</a>.<br>
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank">https://groups.google.com/d/<wbr>optout</a>.<br>
</div></div></blockquote></div><br></div></div>