[Darshan-users] compiling statically with intel toolchain
Harms, Kevin
harms at alcf.anl.gov
Tue May 17 18:40:21 CDT 2016
Rene,
are you using either the darshan generated compiler wrappers or trying to use the MPICH profiling hooks?
Can you add the '-show' option to you link command. Instead of linking it will display the full link command that the wrapper is executing.
kevin
>Hi,
>
>I am trying to compile darshan statically into my application using Intel’s fortran compiler and MPI library. When I do so I get this error message:
>
>
>-L/tstapps/asi/src/dds/lib/Linux/3.0/x86_64/Intel-16.0.1.150MPI5.1.2MKL11.3.1 -L/hpc/tstapps/SLES/3.0/x86_64/darshan/3.0.0/lib -ldds_r3 -lgio -lfhost -Wl,-Bstatic -ldarshan -ldarshan-stubs -lz -Wl,-Bdynamic
>
>
>/hpc/tstapps/SLES/3.0/x86_64/darshan/3.0.0/lib/libdarshan.a(darshan-posix.o): In function `__wrap_open':
>/hpc/tstapps/src/darshan/darshan-3.0.0/darshan-runtime/lib/darshan-posix.c:378: undefined reference to `__real_open'
>/hpc/tstapps/src/darshan/darshan-3.0.0/darshan-runtime/lib/darshan-posix.c:384: undefined reference to `__real_open'
>
>/hpc/tstapps/SLES/3.0/x86_64/darshan/3.0.0/lib/libdarshan.a(darshan-posix.o): In function `__wrap_open64':
>
>/hpc/tstapps/src/darshan/darshan-3.0.0/darshan-runtime/lib/darshan-posix.c:412: undefined reference to `__real_open64'
>
>/hpc/tstapps/src/darshan/darshan-3.0.0/darshan-runtime/lib/darshan-posix.c:418: undefined reference to `__real_open64'
>
>/hpc/tstapps/SLES/3.0/x86_64/darshan/3.0.0/lib/libdarshan.a(darshan-posix.o): In function `__wrap_creat':
>
>…
>
>
>the real_open routines seem to be in the libdarshan library:
>
>nm /hpc/tstapps/SLES/3.0/x86_64/darshan/3.0.0/lib/libdarshan.a |grep real_open
>
> U __real_open
> U __real_open64
>
>
>
>Any ideas?
>
>Thanks
>Rene
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4090 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/darshan-users/attachments/20160517/6ef619ff/attachment-0001.bin>
More information about the Darshan-users
mailing list