<div dir="ltr">Thank you! I appreciate the help. I believe you are right. The static darshan libs were in the same folder as libdarshan.so. Moving libdarshan.so to a different directory allowed for static compilation to complete successfully. <br></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr">Thanks, Adnan Haider</div><div dir="ltr"><div>B.S Candidate, Computer Science</div><div>Illinois Institute of Technology </div><div><a href="http://www.adnanhaider.com" target="_blank">www.adnanhaider.com</a><br></div></div></div></div></div></div>
<br><div class="gmail_quote">On Mon, Oct 23, 2017 at 6:42 PM, Adnan Haider <span dir="ltr"><<a href="mailto:ahaider3@hawk.iit.edu" target="_blank">ahaider3@hawk.iit.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">Any update on this?</p><div class="HOEnZb"><div class="h5">
<div class="gmail_quote">On Oct 18, 2017 6:10 PM, "Adnan Haider" <<a href="mailto:ahaider3@hawk.iit.edu" target="_blank">ahaider3@hawk.iit.edu</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div><div>I have been trying the mpicxx -profile=/path/to/mpicxx-cxx.c<wbr>onf option since I have gotten further with this method, but here is the output for both:<br><br></div>when using mpicxx.darshan method:<br><br></div>g++ -o binary *.o darshan/simple.cc -I/home/adhaider/apps/mpich_in<wbr>stall/include -L/home/adhaider/apps/mpich_in<wbr>stall/lib -lmpicxx -Wl,-rpath -Wl,/home/adhaider/apps/mpich_<wbr>install/lib -Wl, --enable-new-dtags -lmpi<br><br></div>* notice the above doesn't even have the darshan libs.<br><br></div>Now when using mpicxx -profile=/path/to/conf<br><br></div>g++ -o binary *.o darshan/simple.cc -I/home/adhaider/apps/mpich_in<wbr>stall/include -L/home/adhaider/apps/mpich_in<wbr>stall/lib -lmpicxx -lmpicxx -L/home/adhaider/apps/darshan_<wbr>install/lib -ldarshan -lz -Wl,@/home/adhaider/apps/darsh<wbr>an_install/share/ld-opts/darsh<wbr>an-base-ld-opts -Wl,-rpath -Wl,/home/adhaider/apps/mpich_<wbr>install/lib -Wl,--enable-new-dtags -lmpi -L/home/adhaider/apps/darshan_<wbr>install/lib -Wl,--start-group -ldarshan -ldarshan-stubs -Wl,--end-group -lz -lrt -lpthread<br><br></div>Thanks in advance! <br></div><div class="gmail_extra"><br clear="all"><div><div class="m_2056614779338101740m_-5375914850301009220gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr">Thanks, Adnan Haider</div><div dir="ltr"><div>B.S Candidate, Computer Science</div><div>Illinois Institute of Technology </div><div><a href="http://www.adnanhaider.com" target="_blank">www.adnanhaider.com</a><br></div></div></div></div></div></div>
<br><div class="gmail_quote">On Wed, Oct 18, 2017 at 6:19 PM, Harms, Kevin <span dir="ltr"><<a href="mailto:harms@alcf.anl.gov" target="_blank">harms@alcf.anl.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Can you provide the output of the linking stage with the generated mpicc. So if you named your mpicc, mpicc.darshan:<br>
<br>
mpicc.darshan -show -o binary *.o<br>
<br>
The previous post you mentioned has some type of error in the generated script where one of the compiler arguments was not being added properly.<br>
<br>
kevin<br>
______________________________<wbr>__________<br>
From: Darshan-users <<a href="mailto:darshan-users-bounces@lists.mcs.anl.gov" target="_blank">darshan-users-bounces@lists.m<wbr>cs.anl.gov</a>> on behalf of Adnan Haider <<a href="mailto:ahaider3@hawk.iit.edu" target="_blank">ahaider3@hawk.iit.edu</a>><br>
Sent: Wednesday, October 18, 2017 4:28:23 PM<br>
To: <a href="mailto:darshan-users@lists.mcs.anl.gov" target="_blank">darshan-users@lists.mcs.anl.go<wbr>v</a><br>
Subject: [Darshan-users] Darshan undefined compilation error<br>
<div class="m_2056614779338101740m_-5375914850301009220HOEnZb"><div class="m_2056614779338101740m_-5375914850301009220h5"><br>
Hi,<br>
<br>
I am trying to statically instrument my application with darshan. I am using mpich 3.2 and darshan 3.1.4. I have also tried 3.1.3 and 3.0.0 all which give the same errors as this post: <a href="https://lists.mcs.anl.gov/mailman/htdig/darshan-users/2017-July/000448.html" rel="noreferrer" target="_blank">https://lists.mcs.anl.gov/mail<wbr>man/htdig/darshan-users/2017-J<wbr>uly/000448.html</a><br>
<br>
Maybe I am not compiling mpich with the correct flags? ( I am not changing the defaults).<br>
<br>
I get these errors for the example IO_simple.c as well as a very simple piece of MPI code.<br>
<br>
Also nm libdarshan.a does show the functions that are coming up as undefined, same as the post I linked to.<br>
<br>
Any help would be greatly appreciated.<br>
<br>
</div></div></blockquote></div><br></div>
</blockquote></div>
</div></div></blockquote></div><br></div>