<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Oct 6, 2016 at 6:17 AM, Antonio Trande <span dir="ltr"><<a href="mailto:anto.trande@gmail.com" target="_blank">anto.trande@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all.<br>
<br>
I'm compiling PETSc 3.7.3 on Fedora; the libraries are built in 4<br>
different stages, each stage starting from a *clean PETSc source* directory:<br>
<br>
petsc src<br>
       |<br>
       v<br>
     petsc src1 |--> serial libraries (link1)<br>
     petsc src2 |--> serial (64bit INTEGER) libraries (link2)<br>
     petsc src3 |--> OpenMPI libraries (link3)<br>
     petsc src4 |--> MPICH libraries (link4)<br>
<br>
link1:<br>
<a href="http://copr-dist-git.fedorainfracloud.org/cgit/sagitter/petsc/petsc.git/tree/petsc.spec?id=ea7abab121859c66de05f70863950b4a6c5f7035#n402" rel="noreferrer" target="_blank">http://copr-dist-git.<wbr>fedorainfracloud.org/cgit/<wbr>sagitter/petsc/petsc.git/tree/<wbr>petsc.spec?id=<wbr>ea7abab121859c66de05f70863950b<wbr>4a6c5f7035#n402</a><br>
<br>
link2:<br>
<a href="http://copr-dist-git.fedorainfracloud.org/cgit/sagitter/petsc/petsc.git/tree/petsc.spec?id=ea7abab121859c66de05f70863950b4a6c5f7035#n559" rel="noreferrer" target="_blank">http://copr-dist-git.<wbr>fedorainfracloud.org/cgit/<wbr>sagitter/petsc/petsc.git/tree/<wbr>petsc.spec?id=<wbr>ea7abab121859c66de05f70863950b<wbr>4a6c5f7035#n559</a><br>
<br>
link3:<br>
<a href="http://copr-dist-git.fedorainfracloud.org/cgit/sagitter/petsc/petsc.git/tree/petsc.spec?id=ea7abab121859c66de05f70863950b4a6c5f7035#n682" rel="noreferrer" target="_blank">http://copr-dist-git.<wbr>fedorainfracloud.org/cgit/<wbr>sagitter/petsc/petsc.git/tree/<wbr>petsc.spec?id=<wbr>ea7abab121859c66de05f70863950b<wbr>4a6c5f7035#n682</a><br>
<br>
link4:<br>
<a href="http://copr-dist-git.fedorainfracloud.org/cgit/sagitter/petsc/petsc.git/tree/petsc.spec?id=ea7abab121859c66de05f70863950b4a6c5f7035#n842" rel="noreferrer" target="_blank">http://copr-dist-git.<wbr>fedorainfracloud.org/cgit/<wbr>sagitter/petsc/petsc.git/tree/<wbr>petsc.spec?id=<wbr>ea7abab121859c66de05f70863950b<wbr>4a6c5f7035#n842</a><br>
<br>
The resulting libraries look contain 'unused (strange) direct shared<br>
library dependencies'. Like for serial libpetsc.so:<br>
<br>
$ ldd -u /usr/lib64/libpetsc.so.3.7.3<br>
Unused direct dependencies:<br>
        /lib64/libmetis.so.0<br>
        /lib64/libhwloc.so.5<br>
        /lib64/libhdf5.so.10<br>
        /lib64/libquadmath.so.0<br>
        /lib64/libstdc++.so.6<br>
        /lib64/libgomp.so.1<br>
<br>
libmetis.so is (correctly?) activated with *--with-metis=1* option but<br>
results unused.<br></blockquote><div><br></div><div>I am not sure ldd is smart enough to understand everything here. For example, we directly call</div><div>API functions from libparmetis.so only, but that means we need a libmetis.so, and do not rely</div><div>on libparmetis.so to have it correctly linked (which it often does not when users build it).</div><div><br></div><div>   Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
libhwloc.so.5, libhdf5.so.10 and libstdc++.so shouldn't be linked.<br>
<br>
Here you can find a full build log on Fedora 24 64bit:<br>
<a href="https://copr-be.cloud.fedoraproject.org/results/sagitter/petsc/fedora-24-x86_64/00461492-petsc/build.log.gz" rel="noreferrer" target="_blank">https://copr-be.cloud.<wbr>fedoraproject.org/results/<wbr>sagitter/petsc/fedora-24-x86_<wbr>64/00461492-petsc/build.log.gz</a><br>
<br>
RPMs built are:<br>
<a href="https://copr-be.cloud.fedoraproject.org/results/sagitter/petsc/fedora-24-x86_64/00461492-petsc/" rel="noreferrer" target="_blank">https://copr-be.cloud.<wbr>fedoraproject.org/results/<wbr>sagitter/petsc/fedora-24-x86_<wbr>64/00461492-petsc/</a><br>
<br>
Do you have idea why this happens?<br>
<br>
Regards.<br>
---<br>
Antonio Trande<br>
mailto: sagitter 'at' fedoraproject 'dot' org<br>
<a href="http://fedoraos.wordpress.com/" rel="noreferrer" target="_blank">http://fedoraos.wordpress.com/</a><br>
<a href="https://fedoraproject.org/wiki/User:Sagitter" rel="noreferrer" target="_blank">https://fedoraproject.org/<wbr>wiki/User:Sagitter</a><br>
GPG Key: 0x6CE6D08A<br>
Check on <a href="https://keys.fedoraproject.org/" rel="noreferrer" target="_blank">https://keys.fedoraproject.<wbr>org/</a><br>
<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener</div>
</div></div>