<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi Jose,<div class=""><br class=""></div><div class="">so here is what happens. The issue appears when SLEPC_DIR is set to a symlink (the one with “stage below) of a build folder (the one with “private” below). </div><div class="">During configure there is a warning that SLEPC_DIR is not the same as current dir (string comparison),</div><div class="">but one is symlink of another, so all but install_name_tool work. The latter leads to the following values of variables:</div><div class=""><br class=""></div><div class=""><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">oldname    =/private/var/folders/5k/sqpp24tx3ylds4fgm13pfht00000gn/T/davydden/spack-stage/spack-stage-MziaMV/slepc-3.7.1/installed-arch-darwin-c-opt/lib/libslepc.3.7.dylib</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><br class=""></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">installName=/private/var/folders/5k/sqpp24tx3ylds4fgm13pfht00000gn/T/davydden/spack-stage/spack-stage-MziaMV/slepc-3.7.1/installed-arch-darwin-c-opt/lib/libslepc.3.7.dylib</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><br class=""></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">archDir    =/Users/davydden/spack/var/spack/stage/slepc-3.7.1-gimrzhb4mozeus3i2hdmrtjp3tha5pgr/slepc-3.7.1/installed-arch-darwin-c-opt</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><br class=""></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">installDir =/Users/davydden/spack/opt/spack/darwin-elcapitan-x86_64/clang-7.3.0-apple/slepc-3.7.1-gimrzhb4mozeus3i2hdmrtjp3tha5pgr</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><br class=""></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">dst        =/Users/davydden/spack/opt/spack/darwin-elcapitan-x86_64/clang-7.3.0-apple/slepc-3.7.1-gimrzhb4mozeus3i2hdmrtjp3tha5pgr/lib/libslepc.3.7.1.dylib</div></div><div class=""><br class=""></div><div class="">As you see, installName wasn’t changed from oldname.</div><div class=""><br class=""></div><div class="">Since the python code rely on SLEPC_DIR be pwd(), i would suggest to through an error instead of the warning to make</div><div class="">sure that users won’t get in the situation above. Alternative is to make this part of the code more robust.</div><div class=""><br class=""></div><div class="">When SLEPC_DIR==pwd() the patch you referred works.</div><div class=""><br class=""><div class="">
<div class="">Kind regards,</div><div class="">Denis </div>

</div>
<br class=""><div><blockquote type="cite" class=""><div class="">On 11 Jul 2016, at 00:29, Denis Davydov <<a href="mailto:davydden@gmail.com" class="">davydden@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">Hi Jose,<br class=""><br class="">Please, disregard my last email. The order of arguments is correct.<br class="">I still have an issue, though. I will debug it further and try to find what’s the cause...<br class=""><br class="">Kind regards,<br class="">Denis <br class=""><br class=""><blockquote type="cite" class="">On 10 Jul 2016, at 22:26, Denis Davydov <<a href="mailto:davydden@gmail.com" class="">davydden@gmail.com</a>> wrote:<br class=""><br class="">I debuged a bit your code,  install_name should be used as follows:<br class=""><br class="">install_name_tool -id <new_name> <library_file_to_change><br class=""><br class="">That is, you need to change around “installName” variable and “dst” and then it works as expected.<br class=""><br class="">Kind regards,<br class="">Denis <br class=""><br class=""><blockquote type="cite" class="">On 10 Jul 2016, at 18:56, Denis Davydov <<a href="mailto:davydden@gmail.com" class="">davydden@gmail.com</a>> wrote:<br class=""><br class="">Hi Jose,<br class=""><br class="">the patch you mentioned does not solve the problem (i tried it):<br class=""><br class="">$ otool -D libslepc.dylib<br class="">libslepc.dylib:<br class="">/private/var/folders/5k/sqpp24tx3ylds4fgm13pfht00000gn/T/davydden/spack-stage/spack-stage-jqcVVv/slepc-3.7.1/installed-arch-darwin-c-opt/lib/libslepc.3.7.dylib<br class=""><br class="">Kind regards,<br class="">Denis <br class=""><br class=""><blockquote type="cite" class="">On 10 Jul 2016, at 18:47, Jose E. Roman <<a href="mailto:jroman@dsic.upv.es" class="">jroman@dsic.upv.es</a>> wrote:<br class=""><br class="">I think this is already fixed in this commit:<br class=""><a href="https://bitbucket.org/slepc/slepc/commits/7489a3f3d569e2fbf5513ac9dcd769017d9f7eb7" class="">https://bitbucket.org/slepc/slepc/commits/7489a3f3d569e2fbf5513ac9dcd769017d9f7eb7</a><br class="">Version 7.3.2 containing this patch will be released in a week or so.<br class="">Thanks for reporting this.<br class="">Jose<br class=""><br class=""><br class=""><blockquote type="cite" class="">El 10 jul 2016, a las 18:36, Denis Davydov <davydden@gmail.com> escribió:<br class=""><br class="">Dear developers,<br class=""><br class="">Slepc 3.6.3 used to produce the following result of install names:<br class=""><br class="">$ otool -lv libslepc.dylib | grep slepc<br class="">libslepc.dylib:<br class="">    name /Users/davydden/spack/opt/spack/darwin-elcapitan-x86_64/clang-7.3.0-apple/slepc-3.6.3-b35zhzknp4lrt5r2iksagql2jkya2vfl/lib/libslepc.3.6.3.dylib (offset 24)<br class="">    path /Users/davydden/spack/opt/spack/darwin-elcapitan-x86_64/clang-7.3.0-apple/slepc-3.6.3-b35zhzknp4lrt5r2iksagql2jkya2vfl/lib (offset 12)<br class="">    path /Users/davydden/spack/opt/spack/darwin-elcapitan-x86_64/clang-7.3.0-apple/slepc-3.6.3-b35zhzknp4lrt5r2iksagql2jkya2vfl/lib64 (offset 12)<br class=""><br class="">same for libslepc.3.6.dylib and libslepc.3.6.3.dylib<br class=""><br class=""><br class="">Since [3.7.1] the installed libraries have<br class=""><br class="">$ otool -lv libslepc.dylib | grep slepc<br class="">libslepc.dylib:<br class="">    name /private/var/folders/5k/sqpp24tx3ylds4fgm13pfht00000gn/T/davydden/spack-stage/spack-stage-JwBNAx/slepc-3.7.1/installed-arch-darwin-c-opt/lib/libslepc.3.7.dylib (offset 24)<br class="">    path /Users/davydden/spack/opt/spack/darwin-elcapitan-x86_64/clang-7.3.0-apple/slepc-3.7.1-gimrzhb4mozeus3i2hdmrtjp3tha5pgr/lib (offset 12)<br class="">    path /Users/davydden/spack/opt/spack/darwin-elcapitan-x86_64/clang-7.3.0-apple/slepc-3.7.1-gimrzhb4mozeus3i2hdmrtjp3tha5pgr/lib64 (offset 12)<br class=""><br class=""><br class="">That is, the “name” is wrong as it corresponds to the path in the temporary build folder.<br class=""><br class="">Kind regards,<br class="">Denis <br class=""><br class=""></blockquote><br class=""></blockquote><br class=""></blockquote><br class=""></blockquote><br class=""></div></div></blockquote></div><br class=""></div></body></html>