Any update on this?
On Oct 18, 2017 6:10 PM, "Adnan Haider" <ahaider3@hawk.iit.edu> wrote:Thanks in advance!g++ -o binary *.o darshan/simple.cc -I/home/adhaider/apps/mpich_inNow when using mpicxx -profile=/path/to/conf* notice the above doesn't even have the darshan libs.g++ -o binary *.o darshan/simple.cc -I/home/adhaider/apps/mpich_inI have been trying the mpicxx -profile=/path/to/mpicxx-cxx.cwhen using mpicxx.darshan method:onf option since I have gotten further with this method, but here is the output for both: stall/include -L/home/adhaider/apps/mpich_in stall/lib -lmpicxx -Wl,-rpath -Wl,/home/adhaider/apps/mpich_ install/lib -Wl, --enable-new-dtags -lmpi stall/include -L/home/adhaider/apps/mpich_in stall/lib -lmpicxx -lmpicxx -L/home/adhaider/apps/darshan_ install/lib -ldarshan -lz -Wl,@/home/adhaider/apps/darsh an_install/share/ld-opts/darsh an-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, Adnan HaiderOn Wed, Oct 18, 2017 at 6:19 PM, Harms, Kevin <harms@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@lists.mcs.anl.gov > on behalf of Adnan Haider <ahaider3@hawk.iit.edu>
Sent: Wednesday, October 18, 2017 4:28:23 PM
To: darshan-users@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-J uly/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.