<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/para/openmpi/openmpi-2.0.1_gcc-5.3.0/lib64 -Wl,-rpath -Wl,/sw/build/openSUSE/13.1/para/openmpi/openmpi-2.0.1_gcc-5.3.0/lib64 -Wl,--enable-new-dtags -L/s</span>w/build/openSUSE/13.1/para/openmpi/openmpi-2.0.1_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><br><br>Il giorno giovedì 1 marzo 2018 13:20:09 UTC+1, Fernan Saiz ha scritto:<blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;"><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.<wbr>0/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.<wbr>0/lib/<a href="http://libmpi_usempif08.la" target="_blank" rel="nofollow" onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Flibmpi_usempif08.la\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHko9L13VHI3GZCd0rm96EOgEKk5g';return true;" onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Flibmpi_usempif08.la\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHko9L13VHI3GZCd0rm96EOgEKk5g';return true;">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" target="_blank" rel="nofollow" onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Flibmpi_usempif08.la\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHko9L13VHI3GZCd0rm96EOgEKk5g';return true;" onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Flibmpi_usempif08.la\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHko9L13VHI3GZCd0rm96EOgEKk5g';return true;">libmpi_usempif08.la</a>: file not recognized: File format not recognized<br><br></div>Thanks,<br><div><br></div></div><div><br clear="all"><div><div><div dir="ltr">- Fernan<br></div></div></div>
<br><div class="gmail_quote">On Thu, Mar 1, 2018 at 12:10 PM, Jerry Tanoury <span dir="ltr"><<a href="javascript:" target="_blank" gdf-obfuscated-mailto="NL7_PC5tBAAJ" rel="nofollow" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">jerr...@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">It seems you have commented out your LIB path $(MPI_LIB)/libmpi_<wbr>usempif08.so, so CP2K is not seeing the library path to libmpi_usempif08.so<div><br></div><div>Best,</div><div>Jerry</div></div><div><br><div class="gmail_quote"><span>On Thu, Mar 1, 2018 at 7:01 AM, Fernan Saiz <span dir="ltr"><<a href="javascript:" target="_blank" gdf-obfuscated-mailto="NL7_PC5tBAAJ" rel="nofollow" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">fsa...@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"><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." target="_blank" rel="nofollow" onmousedown="this.href='http://3.0.0.';return true;" onclick="this.href='http://3.0.0.';return true;">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><font color="#888888"><span><font color="#888888">

<p></p>

-- <br>
You received this message because you are subscribed to the Google Groups "cp2k" group.<br>
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="NL7_PC5tBAAJ" rel="nofollow" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">cp2k+uns...@googlegroups.<wbr>com</a>.</font></span><span><br>
To post to this group, send email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="NL7_PC5tBAAJ" rel="nofollow" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">cp...@googlegroups.com</a>.<br>
Visit this group at <a href="https://groups.google.com/group/cp2k" target="_blank" rel="nofollow" onmousedown="this.href='https://groups.google.com/group/cp2k';return true;" onclick="this.href='https://groups.google.com/group/cp2k';return true;">https://groups.google.com/<wbr>group/cp2k</a>.<br>
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href='https://groups.google.com/d/optout';return true;" onclick="this.href='https://groups.google.com/d/optout';return true;">https://groups.google.com/d/<wbr>optout</a>.<br>
</span></font></span></blockquote></div><br></div><div><div>

<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" rel="nofollow" onmousedown="this.href='https://groups.google.com/d/topic/cp2k/D_C3POiONyk/unsubscribe';return true;" onclick="this.href='https://groups.google.com/d/topic/cp2k/D_C3POiONyk/unsubscribe';return true;">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="javascript:" target="_blank" gdf-obfuscated-mailto="NL7_PC5tBAAJ" rel="nofollow" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">cp2k+uns...@googlegroups.<wbr>com</a>.<br>
To post to this group, send email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="NL7_PC5tBAAJ" rel="nofollow" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">cp...@googlegroups.com</a>.<br>
Visit this group at <a href="https://groups.google.com/group/cp2k" target="_blank" rel="nofollow" onmousedown="this.href='https://groups.google.com/group/cp2k';return true;" onclick="this.href='https://groups.google.com/group/cp2k';return true;">https://groups.google.com/<wbr>group/cp2k</a>.<br>
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href='https://groups.google.com/d/optout';return true;" onclick="this.href='https://groups.google.com/d/optout';return true;">https://groups.google.com/d/<wbr>optout</a>.<br>
</div></div></blockquote></div><br></div>
</blockquote></div></div>