[Darshan-users] Darshan undefined compilation error

Adnan Haider ahaider3 at hawk.iit.edu
Wed Oct 18 18:10:57 CDT 2017


I have been trying the mpicxx -profile=/path/to/mpicxx-cxx.conf option
since I have gotten further with this method, but here is the output for
both:

when using mpicxx.darshan method:

g++ -o binary *.o darshan/simple.cc
-I/home/adhaider/apps/mpich_install/include
-L/home/adhaider/apps/mpich_install/lib -lmpicxx -Wl,-rpath
-Wl,/home/adhaider/apps/mpich_install/lib -Wl, --enable-new-dtags -lmpi

* notice the above doesn't even have the darshan libs.

Now when using mpicxx -profile=/path/to/conf

g++ -o binary *.o darshan/simple.cc
-I/home/adhaider/apps/mpich_install/include
-L/home/adhaider/apps/mpich_install/lib -lmpicxx -lmpicxx
-L/home/adhaider/apps/darshan_install/lib -ldarshan -lz
-Wl,@/home/adhaider/apps/darshan_install/share/ld-opts/darshan-base-ld-opts
-Wl,-rpath -Wl,/home/adhaider/apps/mpich_install/lib -Wl,--enable-new-dtags
-lmpi -L/home/adhaider/apps/darshan_install/lib -Wl,--start-group -ldarshan
-ldarshan-stubs -Wl,--end-group -lz -lrt -lpthread

Thanks in advance!

Thanks, Adnan Haider
B.S Candidate, Computer Science
Illinois Institute of Technology
www.adnanhaider.com

On Wed, Oct 18, 2017 at 6:19 PM, Harms, Kevin <harms at alcf.anl.gov> wrote:

>
>   Can you provide the output of the linking stage with the generated
> mpicc. So if you named your mpicc, mpicc.darshan:
>
>   mpicc.darshan -show -o binary *.o
>
>   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.
>
> kevin
> ________________________________________
> From: Darshan-users <darshan-users-bounces at lists.mcs.anl.gov> on behalf
> of Adnan Haider <ahaider3 at hawk.iit.edu>
> Sent: Wednesday, October 18, 2017 4:28:23 PM
> To: darshan-users at lists.mcs.anl.gov
> Subject: [Darshan-users] Darshan undefined compilation error
>
> Hi,
>
> 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:  https://lists.mcs.anl.gov/
> mailman/htdig/darshan-users/2017-July/000448.html
>
> Maybe I am not compiling mpich with the correct flags? ( I am not changing
> the defaults).
>
> I get these errors for the example IO_simple.c as well as a very simple
> piece of MPI code.
>
> Also nm libdarshan.a does show the functions that are coming up as
> undefined, same as the post I linked to.
>
> Any help would be greatly appreciated.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/darshan-users/attachments/20171018/33630dd4/attachment.html>


More information about the Darshan-users mailing list