<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hi Teng,<br>
<br>
Thanks for reporting this. This is a really strange issue, but I can
actually reproduce it, too. I'm going to keep digging and see if I
can find the problem. Will keep you updated.<br>
<br>
The strange thing is that I was able to use version 3.1.4
successfully right before making the release available (i.e., the
log @ darshan-test/example-output/mpi-io-test-x86_64-3.1.4.darshan
was generated using version 3.1.4 with static linking). Also strange
is that our nightly testing is not catching this issue...<br>
<br>
FYI, version 3.1.3 and earlier work fine for me if you really need a
quick resolution -- version 3.1.4 just fixed a couple of
non-critical bugs in some darshan log parsing utilities, so there
shouldn't be much functionally different between the versions.<br>
<br>
--Shane<br>
<br>
<div class="moz-cite-prefix">On 07/20/2017 12:43 PM, Teng Wang
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CACSGo+pbhKa84atzT3y0hHfpmenkdgVJUR=4nwut85r7TOUDdg@mail.gmail.com">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<div dir="ltr">
<p
style="margin:0px;font-size:12px;line-height:normal;font-family:'Helvetica
Neue';color:rgb(69,69,69)">Hi,</p>
<p
style="margin:0px;font-size:12px;line-height:normal;font-family:'Helvetica
Neue';color:rgb(69,69,69);min-height:14px"><br>
</p>
<p
style="margin:0px;font-size:12px;line-height:normal;font-family:'Helvetica
Neue';color:rgb(69,69,69)">I'm having trouble when trying to
statically link </p>
<p
style="margin:0px;font-size:12px;line-height:normal;font-family:'Helvetica
Neue';color:rgb(69,69,69)">Darshan with mpich3.3 applications
following the instructions </p>
<p
style="margin:0px;font-size:12px;line-height:normal;font-family:'Helvetica
Neue';color:rgb(69,69,69)">here. Could you give me any
suggestion on how to fix it? </p>
<p
style="margin:0px;font-size:12px;line-height:normal;font-family:'Helvetica
Neue';color:rgb(69,69,69);min-height:14px"><br>
</p>
<p
style="margin:0px;font-size:12px;line-height:normal;font-family:'Helvetica
Neue';color:rgb(228,175,10)"><span
style="text-decoration:underline"><a
href="http://www.mcs.anl.gov/research/projects/darshan/docs/darshan-runtime.html"
moz-do-not-send="true">http://www.mcs.anl.gov/research/projects/darshan/docs/darshan-runtime.html</a></span></p>
<p
style="margin:0px;font-size:12px;line-height:normal;font-family:'Helvetica
Neue';color:rgb(69,69,69);min-height:14px"><br>
</p>
<p
style="margin:0px;font-size:12px;line-height:normal;font-family:'Helvetica
Neue';color:rgb(69,69,69)">Here is my steps:</p>
<p
style="margin:0px;font-size:12px;line-height:normal;font-family:'Helvetica
Neue';color:rgb(69,69,69)">1. Compile and install darshan
3.1.4</p>
<p
style="margin:0px;font-size:12px;line-height:normal;font-family:'Helvetica
Neue';color:rgb(69,69,69)">tar -xvzf darshan-3.1.4.tar.gz</p>
<p
style="margin:0px;font-size:12px;line-height:normal;font-family:'Helvetica
Neue';color:rgb(69,69,69)">cd darshan-3.1.4/darshan-runtime</p>
<p
style="margin:0px;font-size:12px;line-height:normal;font-family:'Helvetica
Neue';color:rgb(69,69,69)">./configure --with-mem-align=8
--with-log-path=<log directory> --prefix=<install
directory> --with-jobid-env=PBS_JOBID --disable-cuserid
CC=mpicc</p>
<p
style="margin:0px;font-size:12px;line-height:normal;font-family:'Helvetica
Neue';color:rgb(69,69,69)">make</p>
<p
style="margin:0px;font-size:12px;line-height:normal;font-family:'Helvetica
Neue';color:rgb(69,69,69)">make install</p>
<p
style="margin:0px;font-size:12px;line-height:normal;font-family:'Helvetica
Neue';color:rgb(69,69,69);min-height:14px"><br>
</p>
<p
style="margin:0px;font-size:12px;line-height:normal;font-family:'Helvetica
Neue';color:rgb(69,69,69)">2. Create log directory, which
successfully create the directory </p>
<p
style="margin:0px;font-size:12px;line-height:normal;font-family:'Helvetica
Neue';color:rgb(228,175,10)"><span
style="text-decoration:underline"><a
href="http://darshan-mk-log-dirs.pl/"
moz-do-not-send="true">darshan-mk-log-dirs.pl</a></span></p>
<p
style="margin:0px;font-size:12px;line-height:normal;font-family:'Helvetica
Neue';color:rgb(69,69,69);min-height:14px"><br>
</p>
<p
style="margin:0px;font-size:12px;line-height:normal;font-family:'Helvetica
Neue';color:rgb(69,69,69)">3. Generate wrapper</p>
<p
style="margin:0px;font-size:12px;line-height:normal;font-family:'Helvetica
Neue';color:rgb(69,69,69)"><span
style="text-decoration:underline;color:rgb(228,175,10)"><a
href="http://darshan-gen-cc.pl/" moz-do-not-send="true">darshan-gen-cc.pl</a></span>
`which mpicc` --output mpicc.darshan</p>
<p
style="margin:0px;font-size:12px;line-height:normal;font-family:'Helvetica
Neue';color:rgb(69,69,69);min-height:14px"><br>
</p>
<p
style="margin:0px;font-size:12px;line-height:normal;font-family:'Helvetica
Neue';color:rgb(69,69,69)">4. Compile application
(mpi-io-test.c) using mpicc.darshan</p>
<p
style="margin:0px;font-size:12px;line-height:normal;font-family:'Helvetica
Neue';color:rgb(69,69,69)">mpicc.darshan mpi-io-test.c -o
mpi-io-test</p>
<p
style="margin:0px;font-size:12px;line-height:normal;font-family:'Helvetica
Neue';color:rgb(69,69,69);min-height:14px"><br>
</p>
<p
style="margin:0px;font-size:12px;line-height:normal;font-family:'Helvetica
Neue';color:rgb(69,69,69)">After step 4, the following issue
happened:</p>
<p
style="margin:0px;font-size:12px;line-height:normal;font-family:'Helvetica
Neue';color:rgb(69,69,69)">initthread.c:(.text+0xc59d):
undefined reference to `__wrap_fprintf'</p>
<p
style="margin:0px;font-size:12px;line-height:normal;font-family:'Helvetica
Neue';color:rgb(69,69,69)">initthread.c:(.text+0xc5bd):
undefined reference to `__wrap_fputs'</p>
<p
style="margin:0px;font-size:12px;line-height:normal;font-family:'Helvetica
Neue';color:rgb(69,69,69)">/global/homes/t/user/software_install/mpich3.3a-static/lib/libmpi.a(lib_libmpi_la-finalize.o):
In function `MPIR_Add_finalize':</p>
<p
style="margin:0px;font-size:12px;line-height:normal;font-family:'Helvetica
Neue';color:rgb(69,69,69)">finalize.c:(.text+0x226e):
undefined reference to `__wrap_fputs'</p>
<p
style="margin:0px;font-size:12px;line-height:normal;font-family:'Helvetica
Neue';color:rgb(69,69,69)">finalize.c:(.text+0x227a):
undefined reference to `__wrap_fflush'</p>
<p
style="margin:0px;font-size:12px;line-height:normal;font-family:'Helvetica
Neue';color:rgb(69,69,69)">finalize.c:(.text+0x2286):
undefined reference to `__wrap_fflush'</p>
<p
style="margin:0px;font-size:12px;line-height:normal;font-family:'Helvetica
Neue';color:rgb(69,69,69)">/global/homes/t/user/software_install/mpich3.3a-static/lib/libmpi.a(lib_libmpi_la-util.o):
In function `MPIDI_OFI_control_handler':</p>
<p
style="margin:0px;font-size:12px;line-height:normal;font-family:'Helvetica
Neue';color:rgb(69,69,69)">util.c:(.text+0x17bc4): undefined
reference to `__wrap_fprintf'</p>
<p
style="margin:0px;font-size:12px;line-height:normal;font-family:'Helvetica
Neue';color:rgb(69,69,69)">/global/homes/t/user/software_install/mpich3.3a-static/lib/libmpi.a(lib_libmpi_la-ch4_globals.o):
In function `MPID_Abort':</p>
<p
style="margin:0px;font-size:12px;line-height:normal;font-family:'Helvetica
Neue';color:rgb(69,69,69)">ch4_globals.c:(.text+0x38b):
undefined reference to `__wrap_fputs'</p>
<p
style="margin:0px;font-size:12px;line-height:normal;font-family:'Helvetica
Neue';color:rgb(69,69,69)">ch4_globals.c:(.text+0x397):
undefined reference to `__wrap_fflush'</p>
<p
style="margin:0px;font-size:12px;line-height:normal;font-family:'Helvetica
Neue';color:rgb(69,69,69)">ch4_globals.c:(.text+0x3a3):
undefined reference to `__wrap_fflush'</p>
<p
style="margin:0px;font-size:12px;line-height:normal;font-family:'Helvetica
Neue';color:rgb(69,69,69)">/tmp/ccyntLoA.o: In function
`main':</p>
<p
style="margin:0px;font-size:12px;line-height:normal;font-family:'Helvetica
Neue';color:rgb(69,69,69)">mpi-io-test.c:(.text+0x5ae):
undefined reference to `__wrap_printf'</p>
<p
style="margin:0px;font-size:12px;line-height:normal;font-family:'Helvetica
Neue';color:rgb(69,69,69)">mpi-io-test.c:(.text+0x819):
undefined reference to `__wrap_printf'</p>
<p
style="margin:0px;font-size:12px;line-height:normal;font-family:'Helvetica
Neue';color:rgb(69,69,69)">/global/homes/t/user/software_install/mpich3.3a-static/lib/libmpi.a(lib_libmpi_la-contextid.o):
In function `MPIR_Free_contextid':</p>
<p
style="margin:0px;font-size:12px;line-height:normal;font-family:'Helvetica
Neue';color:rgb(69,69,69)">contextid.c:(.text+0x1c3f):
undefined reference to `__wrap_fputs'</p>
<p
style="margin:0px;font-size:12px;line-height:normal;font-family:'Helvetica
Neue';color:rgb(69,69,69)">contextid.c:(.text+0x1c4b):
undefined reference to `__wrap_fflush'</p>
<p
style="margin:0px;font-size:12px;line-height:normal;font-family:'Helvetica
Neue';color:rgb(69,69,69)">contextid.c:(.text+0x1c57):
undefined reference to `__wrap_fflush'</p>
<p
style="margin:0px;font-size:12px;line-height:normal;font-family:'Helvetica
Neue';color:rgb(69,69,69);min-height:14px"><br>
</p>
<p
style="margin:0px;font-size:12px;line-height:normal;font-family:'Helvetica
Neue';color:rgb(69,69,69);min-height:14px"><br>
</p>
<p
style="margin:0px;font-size:12px;line-height:normal;font-family:'Helvetica
Neue';color:rgb(69,69,69)">mpicc.darshan -show mpi-io-test.c
-o mpi-io-test gave:</p>
<p
style="margin:0px;font-size:12px;line-height:normal;font-family:'Helvetica
Neue';color:rgb(69,69,69);min-height:14px"><br>
</p>
<p
style="margin:0px;font-size:12px;line-height:normal;font-family:'Helvetica
Neue';color:rgb(69,69,69)">gcc -L/usr/lib64/slurmpmi
-L/global/common/cori/software/libfabric/1.4.1/gnu/lib
mpi-io-test.c -o mpi-io-test
-L/global/homes/t/user/software_install/darshan/lib -ldarshan
-lz
-Wl,@/global/homes/t/user/software_install/darshan/share/ld-opts/darshan-base-ld-opts
-I/global/homes/t/user/software_install/mpich3.3a-static/include
-L/global/homes/t/user/software_install/mpich3.3a-static/lib
-lmpi -lpmi -lpmi -lpthread -lfabric -lrt -lpmi
-L/global/homes/t/user/software_install/darshan/lib
-Wl,--start-group -ldarshan -ldarshan-stubs -Wl,--end-group
-lz -lrt -lpthread</p>
<p
style="margin:0px;font-size:12px;line-height:normal;font-family:'Helvetica
Neue';color:rgb(69,69,69);min-height:14px"><br>
</p>
<p
style="margin:0px;font-size:12px;line-height:normal;font-family:'Helvetica
Neue';color:rgb(69,69,69)">The strange thing is when I do </p>
<p
style="margin:0px;font-size:12px;line-height:normal;font-family:'Helvetica
Neue';color:rgb(69,69,69)">nm libdarshan.a, it did show the
functions (e.g. __wrap_printf) were linked to </p>
<p
style="margin:0px;font-size:12px;line-height:normal;font-family:'Helvetica
Neue';color:rgb(69,69,69)">libdarshan.a. </p>
<p
style="margin:0px;font-size:12px;line-height:normal;font-family:'Helvetica
Neue';color:rgb(69,69,69);min-height:14px"><br>
</p>
<p style="margin:0px 0px
2px;font-size:14px;line-height:normal;font-family:'Helvetica
Neue';color:rgb(69,69,69)"><b>0000000000002bf0 T
__wrap__IO_getc</b></p>
<p style="margin:0px 0px
2px;font-size:14px;line-height:normal;font-family:'Helvetica
Neue';color:rgb(69,69,69)"><b>0000000000002d80 T
__wrap__IO_putc</b></p>
<p style="margin:0px 0px
2px;font-size:14px;line-height:normal;font-family:'Helvetica
Neue';color:rgb(69,69,69)"><b>00000000000030b0 T
__wrap___isoc99_fscanf</b></p>
<p style="margin:0px 0px
2px;font-size:14px;line-height:normal;font-family:'Helvetica
Neue';color:rgb(69,69,69)"><b>0000000000001990 T __wrap_fclose</b></p>
<p style="margin:0px 0px
2px;font-size:14px;line-height:normal;font-family:'Helvetica
Neue';color:rgb(69,69,69)"><b>00000000000011d0 T __wrap_fdopen</b></p>
<p style="margin:0px 0px
2px;font-size:14px;line-height:normal;font-family:'Helvetica
Neue';color:rgb(69,69,69)"><b>0000000000001810 T __wrap_fflush</b></p>
<p style="margin:0px 0px
2px;font-size:14px;line-height:normal;font-family:'Helvetica
Neue';color:rgb(69,69,69)"><b>0000000000002a60 T __wrap_fgetc</b></p>
<p style="margin:0px 0px
2px;font-size:14px;line-height:normal;font-family:'Helvetica
Neue';color:rgb(69,69,69)"><b>0000000000003690 T __wrap_fgets</b></p>
<p style="margin:0px 0px
2px;font-size:14px;line-height:normal;font-family:'Helvetica
Neue';color:rgb(69,69,69)"><b>0000000000000db0 T __wrap_fopen</b></p>
<p style="margin:0px 0px
2px;font-size:14px;line-height:normal;font-family:'Helvetica
Neue';color:rgb(69,69,69)"><b>0000000000000fc0 T
__wrap_fopen64</b></p>
<p style="margin:0px 0px
2px;font-size:14px;line-height:normal;font-family:'Helvetica
Neue';color:rgb(69,69,69)"><b>00000000000026b0 T
__wrap_fprintf</b></p>
<p style="margin:0px 0px
2px;font-size:14px;line-height:normal;font-family:'Helvetica
Neue';color:rgb(69,69,69)"><b>0000000000001c80 T __wrap_fputc</b></p>
<p style="margin:0px 0px
2px;font-size:14px;line-height:normal;font-family:'Helvetica
Neue';color:rgb(69,69,69)"><b>0000000000001fa0 T __wrap_fputs</b></p>
<p style="margin:0px 0px
2px;font-size:14px;line-height:normal;font-family:'Helvetica
Neue';color:rgb(69,69,69)"><b>00000000000028d0 T __wrap_fread</b></p>
<p style="margin:0px 0px
2px;font-size:14px;line-height:normal;font-family:'Helvetica
Neue';color:rgb(69,69,69)"><b>00000000000013d0 T
__wrap_freopen</b></p>
<p style="margin:0px 0px
2px;font-size:14px;line-height:normal;font-family:'Helvetica
Neue';color:rgb(69,69,69)"><b>00000000000015f0 T
__wrap_freopen64</b></p>
<p style="margin:0px 0px
2px;font-size:14px;line-height:normal;font-family:'Helvetica
Neue';color:rgb(69,69,69)"><b>00000000000032d0 T __wrap_fscanf</b></p>
<p style="margin:0px 0px
2px;font-size:14px;line-height:normal;font-family:'Helvetica
Neue';color:rgb(69,69,69)"><b>0000000000003920 T __wrap_fseek</b></p>
<p style="margin:0px 0px
2px;font-size:14px;line-height:normal;font-family:'Helvetica
Neue';color:rgb(69,69,69)"><b>0000000000003a30 T __wrap_fseeko</b></p>
<p style="margin:0px 0px
2px;font-size:14px;line-height:normal;font-family:'Helvetica
Neue';color:rgb(69,69,69)"><b>0000000000003b40 T
__wrap_fseeko64</b></p>
<p style="margin:0px 0px
2px;font-size:14px;line-height:normal;font-family:'Helvetica
Neue';color:rgb(69,69,69)"><b>0000000000003c50 T
__wrap_fsetpos</b></p>
<p
style="margin:0px;font-size:12px;line-height:normal;font-family:'Helvetica
Neue';color:rgb(69,69,69);min-height:14px"><br>
</p>
<p
style="margin:0px;font-size:12px;line-height:normal;font-family:'Helvetica
Neue';color:rgb(69,69,69)">Thanks,</p>
<p
style="margin:0px;font-size:12px;line-height:normal;font-family:'Helvetica
Neue';color:rgb(69,69,69)">Teng</p>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Darshan-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Darshan-users@lists.mcs.anl.gov">Darshan-users@lists.mcs.anl.gov</a>
<a class="moz-txt-link-freetext" href="https://lists.mcs.anl.gov/mailman/listinfo/darshan-users">https://lists.mcs.anl.gov/mailman/listinfo/darshan-users</a>
</pre>
</blockquote>
<br>
</body>
</html>