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 <[email protected]> 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 <[email protected]> on behalf of Adnan Haider <[email protected]> Sent: Wednesday, October 18, 2017 4:28:23 PM To: [email protected] 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.