<span style="font-family:courier new,monospace">I got it to compile using but not work: <br><br>$ mpif90 ex1.f95 -lmpl -lopa<br>$ LD_LIBRARY_PATH=/usr/lib/mpich2/lib/<br>$ mpiexec -n 4 ./a.out<br>./a.out: error while loading shared libraries: libmpich.so.3: cannot open shared object file: No such file or directory<br>
./a.out: error while loading shared libraries: libmpich.so.3: cannot open shared object file: No such file or directory<br>./a.out: error while loading shared libraries: libmpich.so.3: cannot open shared object file: No such file or directory<br>
./a.out: error while loading shared libraries: libmpich.so.3: cannot open shared object file: No such file or directory<br></span><br><br><br><br><div class="gmail_quote">On Fri, Sep 14, 2012 at 11:10 PM, John Chludzinski <span dir="ltr"><<a href="mailto:john.chludzinski@gmail.com" target="_blank">john.chludzinski@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span style="font-family:courier new,monospace">BTW, both libopa.so.1 and libmpl.so.1 are defined links within /usr/lib/mpich2/lib/. And both -rpath or -rpath-link are "unrecognized option" for gfortran.<br>
</span><div class="HOEnZb"><div class="h5"><br>
<br><div class="gmail_quote">On Fri, Sep 14, 2012 at 10:47 PM, John Chludzinski <span dir="ltr"><<a href="mailto:john.chludzinski@gmail.com" target="_blank">john.chludzinski@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<span style="font-family:courier new,monospace"><div><b>$ mpif90 -o ex1 ex1.f95</b><br></div>/usr/bin/ld: warning: libopa.so.1, needed by /usr/lib/mpich2/lib/libmpichf90.so, not found (try using -rpath or -rpath-link)<br>
/usr/bin/ld: warning: libmpl.so.1, needed by /usr/lib/mpich2/lib/libmpichf90.so, not found (try using -rpath or -rpath-link)<br>
/usr/lib/mpich2/lib/libmpich.so: undefined reference to `MPL_trfree'<br>/usr/lib/mpich2/lib/libmpich.so: undefined reference to `MPL_env2str'<br>/usr/lib/mpich2/lib/libmpich.so: undefined reference to `MPL_trlevel'<br>
/usr/lib/mpich2/lib/libmpich.so: undefined reference to `MPL_trvalid'<br>/usr/lib/mpich2/lib/libmpich.so: undefined reference to `MPL_trmalloc'<br>/usr/lib/mpich2/lib/libmpich.so: undefined reference to `MPL_trspace'<br>
/usr/lib/mpich2/lib/libmpich.so: undefined reference to `MPL_env2range'<br>/usr/lib/mpich2/lib/libmpich.so: undefined reference to `MPL_trcalloc'<br>/usr/lib/mpich2/lib/libmpich.so: undefined reference to `MPL_env2int'<br>
/usr/lib/mpich2/lib/libmpich.so: undefined reference to `MPL_trdump'<br>/usr/lib/mpich2/lib/libmpich.so: undefined reference to `MPL_env2bool'<br>/usr/lib/mpich2/lib/libmpich.so: undefined reference to `MPL_trstrdup'<br>
/usr/lib/mpich2/lib/libmpich.so: undefined reference to `MPL_trrealloc'<br>/usr/lib/mpich2/lib/libmpich.so: undefined reference to `MPL_TrSetMaxMem'<br>/usr/lib/mpich2/lib/libmpich.so: undefined reference to `MPL_trinit'<br>
/usr/lib/mpich2/lib/libmpich.so: undefined reference to `MPL_trDebugLevel'<br>/usr/lib/mpich2/lib/libmpich.so: undefined reference to `MPL_trid'<br></span><div><div><br><br><div class="gmail_quote">
On Fri, Sep 14, 2012 at 10:37 PM, John Chludzinski <span dir="ltr"><<a href="mailto:john.chludzinski@gmail.com" target="_blank">john.chludzinski@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span style="font-family:courier new,monospace">Just ran: yum install mpich2-devel<br><br># ls -l /usr/lib/mpich2/lib/<br>
total 7484<div><br>-rw-r--r--. 1 root root 25459 Jan 2 2012 clog2print.jar<br>-rw-r--r--. 1 root root 127339 Jan 2 2012 clog2TOdrawable.jar<br>
-rw-r--r--. 1 root root 183747 Jan 2 2012 clog2TOslog2.jar<br>-rw-r--r--. 1 root root 17400 Jan 2 2012 clogprint.jar<br>-rw-r--r--. 1 root root 108290 Jan 2 2012 clogTOdrawable.jar<br>-rw-r--r--. 1 root root 164701 Jan 2 2012 clogTOslog2.jar<br>
-rw-r--r--. 1 root root 2449314 Jan 2 2012 jumpshot.jar<br>-rw-r--r--. 1 root root 7140 Jan 2 2012 jumpshot_launcher.jar<br></div>-rw-r--r--. 1 root root 16278 Jan 2 2012 libampe.a<br>lrwxrwxrwx. 1 root root 16 Sep 14 22:33 libfmpich.so -> libfmpich.so.3.3<div>
<br>
lrwxrwxrwx. 1 root root 16 Sep 14 16:20 libfmpich.so.3 -> libfmpich.so.3.3<br>-rwxr-xr-x. 1 root root 121604 Jan 2 2012 libfmpich.so.3.3<br></div>-rw-r--r--. 1 root root 271832 Jan 2 2012 liblmpe.a<br>-rw-r--r--. 1 root root 237292 Jan 2 2012 libmpe.a<br>
-rw-r--r--. 1 root root 182660 Jan 2 2012 libmpe_collchk.a<br>-rw-r--r--. 1 root root 36448 Jan 2 2012 libmpe_f2cmpi.a<br>-rw-r--r--. 1 root root 219056 Jan 2 2012 libmpe_nompi.a<br>-rw-r--r--. 1 root root 20776 Jan 2 2012 libmpe_nompi_null.a<br>
-rw-r--r--. 1 root root 10356 Jan 2 2012 libmpe_null.a<br>lrwxrwxrwx. 1 root root 18 Sep 14 22:33 libmpichcxx.so -> libmpichcxx.so.3.3<div><br>lrwxrwxrwx. 1 root root 18 Sep 14 16:20 libmpichcxx.so.3 -> libmpichcxx.so.3.3<br>
-rwxr-xr-x. 1 root root 116756 Jan 2 2012 libmpichcxx.so.3.3<br></div>lrwxrwxrwx. 1 root root 18 Sep 14 22:33 libmpichf90.so -> libmpichf90.so.3.3<div><br>lrwxrwxrwx. 1 root root 18 Sep 14 16:20 libmpichf90.so.3 -> libmpichf90.so.3.3<br>
-rwxr-xr-x. 1 root root 5644 Jan 2 2012 libmpichf90.so.3.3<br></div>lrwxrwxrwx. 1 root root 15 Sep 14 22:33 libmpich.so -> libmpich.so.3.3<div><br>lrwxrwxrwx. 1 root root 15 Sep 14 16:20 libmpich.so.3 -> libmpich.so.3.3<br>
-rwxr-xr-x. 1 root root 1861652 Jan 2 2012 libmpich.so.3.3<br></div>lrwxrwxrwx. 1 root root 15 Sep 14 22:33 libmpl.so -> libmpl.so.1.1.0<div><br>lrwxrwxrwx. 1 root root 15 Sep 14 16:20 libmpl.so.1 -> libmpl.so.1.1.0<br>
-rwxr-xr-x. 1 root root 15612 Jan 2 2012 libmpl.so.1.1.0<br></div>lrwxrwxrwx. 1 root root 15 Sep 14 22:33 libopa.so -> libopa.so.1.0.0<div><br>lrwxrwxrwx. 1 root root 15 Sep 14 16:20 libopa.so.1 -> libopa.so.1.0.0<br>
-rwxr-xr-x. 1 root root 3940 Jan 2 2012 libopa.so.1.0.0<br></div>-rw-r--r--. 1 root root 86000 Jan 2 2012 libtmpe.a<div><br>-rw-r--r--. 1 root root 265485 Jan 2 2012 logconvertor.jar<br>-rw-r--r--. 1 root root 10760 Jan 2 2012 mpe_prof.o<br>
-rw-r--r--. 1 root root 173622 Jan 2 2012 slog2filter.jar<br>-rw-r--r--. 1 root root 136084 Jan 2 2012 slog2navigator.jar<br>-rw-r--r--. 1 root root 136091 Jan 2 2012 slog2printrecur.jar<br>-rw-r--r--. 1 root root 136086 Jan 2 2012 slog2printserial.jar<br>
-rw-r--r--. 1 root root 261610 Jan 2 2012 slog2update205to206.jar<br>-rw-r--r--. 1 root root 67742 Jan 2 2012 traceprint.jar<br></div>drwxr-xr-x. 2 root root 4096 Sep 14 22:33 trace_rlog<div><br>-rw-r--r--. 1 root root 124160 Jan 2 2012 traceTOslog2.jar<br>
</div></span><div><div><br><br><div class="gmail_quote">On Fri, Sep 14, 2012 at 8:08 PM, Jed Brown <span dir="ltr"><<a href="mailto:jedbrown@mcs.anl.gov" target="_blank">jedbrown@mcs.anl.gov</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
This package is missing the symlinks libmpich.so -> libmpich.so.3.3. Is there a separate mpich2-devel package?<div><div><div><br><div class="gmail_quote">On Fri, Sep 14, 2012 at 6:57 PM, John Chludzinski <span dir="ltr"><<a href="mailto:john.chludzinski@gmail.com" target="_blank">john.chludzinski@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span style="font-family:courier new,monospace">$ ls -l /usr/lib/mpich2/lib<br>total 6412<br>-rw-r--r--. 1 root root 25459 Jan 2 2012 clog2print.jar<br>
-rw-r--r--. 1 root root 127339 Jan 2 2012 clog2TOdrawable.jar<br>
-rw-r--r--. 1 root root 183747 Jan 2 2012 clog2TOslog2.jar<br>-rw-r--r--. 1 root root 17400 Jan 2 2012 clogprint.jar<br>-rw-r--r--. 1 root root 108290 Jan 2 2012 clogTOdrawable.jar<br>-rw-r--r--. 1 root root 164701 Jan 2 2012 clogTOslog2.jar<br>
-rw-r--r--. 1 root root 2449314 Jan 2 2012 jumpshot.jar<br>-rw-r--r--. 1 root root 7140 Jan 2 2012 jumpshot_launcher.jar<br>lrwxrwxrwx. 1 root root 16 Sep 14 16:20 libfmpich.so.3 -> libfmpich.so.3.3<br>-rwxr-xr-x. 1 root root 121604 Jan 2 2012 libfmpich.so.3.3<br>
lrwxrwxrwx. 1 root root 18 Sep 14 16:20 libmpichcxx.so.3 -> libmpichcxx.so.3.3<br>-rwxr-xr-x. 1 root root 116756 Jan 2 2012 libmpichcxx.so.3.3<br>lrwxrwxrwx. 1 root root 18 Sep 14 16:20 libmpichf90.so.3 -> libmpichf90.so.3.3<br>
-rwxr-xr-x. 1 root root 5644 Jan 2 2012 libmpichf90.so.3.3<br>lrwxrwxrwx. 1 root root 15 Sep 14 16:20 libmpich.so.3 -> libmpich.so.3.3<br>-rwxr-xr-x. 1 root root 1861652 Jan 2 2012 libmpich.so.3.3<br>lrwxrwxrwx. 1 root root 15 Sep 14 16:20 libmpl.so.1 -> libmpl.so.1.1.0<br>
-rwxr-xr-x. 1 root root 15612 Jan 2 2012 libmpl.so.1.1.0<br>lrwxrwxrwx. 1 root root 15 Sep 14 16:20 libopa.so.1 -> libopa.so.1.0.0<br>-rwxr-xr-x. 1 root root 3940 Jan 2 2012 libopa.so.1.0.0<br>-rw-r--r--. 1 root root 265485 Jan 2 2012 logconvertor.jar<br>
-rw-r--r--. 1 root root 10760 Jan 2 2012 mpe_prof.o<br>-rw-r--r--. 1 root root 173622 Jan 2 2012 slog2filter.jar<br>-rw-r--r--. 1 root root 136084 Jan 2 2012 slog2navigator.jar<br>-rw-r--r--. 1 root root 136091 Jan 2 2012 slog2printrecur.jar<br>
-rw-r--r--. 1 root root 136086 Jan 2 2012 slog2printserial.jar<br>-rw-r--r--. 1 root root 261610 Jan 2 2012 slog2update205to206.jar<br>-rw-r--r--. 1 root root 67742 Jan 2 2012 traceprint.jar<br>-rw-r--r--. 1 root root 124160 Jan 2 2012 traceTOslog2.jar<br>
<br><br>$ mpif90 -show<br>gfortran -m32 -O2 -fPIC -Wl,-z,noexecstack -I/usr/include/mpich2-i386 -I/usr/include/mpich2-i386 -L/usr/lib/mpich2/lib -lmpichf90 -lmpichf90 -lmpich<br></span><div><div>
<br><div class="gmail_quote">On Fri, Sep 14, 2012 at 7:54 PM, Jed Brown <span dir="ltr"><<a href="mailto:jedbrown@mcs.anl.gov" target="_blank">jedbrown@mcs.anl.gov</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="gmail_quote"><div>On Fri, Sep 14, 2012 at 6:41 PM, John Chludzinski <span dir="ltr"><<a href="mailto:john.chludzinski@gmail.com" target="_blank">john.chludzinski@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
MPICH2 Version: 1.4.1p1<br>MPICH2 Release date: Thu Sep 1 13:53:02 CDT 2011<br>MPICH2 Device: ch3:nemesis<br>MPICH2 configure: --build=i386-redhat-linux-gnu --host=i386-redhat-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --enable-sharedlibs=gcc --enable-shared --enable-lib-depend --disable-rpath</blockquote>
<div><br></div></div><div>Because of this option, you will need LD_LIBRARY_PATH=/usr/lib/mpich2/lib to run executables.</div><div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
--enable-fc --with-device=ch3:nemesis --with-pm=hydra:gforker --sysconfdir=/etc/mpich2-i386 --includedir=/usr/include/mpich2-i386 --bindir=/usr/lib/mpich2/bin --libdir=/usr/lib/mpich2/lib</blockquote><div><br></div></div>
<div>
According to the output you showed above, this option was either missed or the distribution packaged it differently on install. What system is this on? What is the output of<br><br>$ ls -l /usr/lib/mpich2/lib<br><br>$ mpif90 -show</div>
<div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> --datadir=/usr/share/mpich2 --mandir=/usr/share/man/mpich2 --docdir=/usr/share/mpich2/doc --htmldir=/usr/share/mpich2/doc --with-hwloc-prefix=system --with-java=/etc/alternatives/java_sdk FC=gfortran F77=gfortran CFLAGS=-m32 -O2 -fPIC CXXFLAGS=-m32 -O2 -fPIC FCFLAGS=-m32 -O2 -fPIC FFLAGS=-m32 -O2 -fPIC LDFLAGS=-Wl,-z,noexecstack MPICH2LIB_CFLAGS=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables MPICH2LIB_CXXFLAGS=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables MPICH2LIB_FCFLAGS=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables MPICH2LIB_FFLAGS=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables<br>
MPICH2 CC: gcc -m32 -O2 -fPIC -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables -O2<br>MPICH2 CXX: c++ -m32 -O2 -fPIC -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables -O2<br>
MPICH2 F77: gfortran -m32 -O2 -fPIC -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables -O2<br>MPICH2 FC: gfortran -m32 -O2 -fPIC -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables -O2<br>
<br><br><div class="gmail_quote"><div><div>On Fri, Sep 14, 2012 at 7:31 PM, Jed Brown <span dir="ltr"><<a href="mailto:jedbrown@mcs.anl.gov" target="_blank">jedbrown@mcs.anl.gov</a>></span> wrote:<br></div>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>
<div class="gmail_quote"><div>On Fri, Sep 14, 2012 at 6:23 PM, John Chludzinski <span dir="ltr"><<a href="mailto:john.chludzinski@gmail.com" target="_blank">john.chludzinski@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>Why is this installation of MPICH2 ("compiler wrapper") trying to statically link against "mpichf90" and "mpich" ? Versus dynamically link against the shared object files in the lib directory.<br>
</div></blockquote><div><br></div></div><div>It's not trying to "statically link", it's just trying to link. The correct path is not being specified, but we'd have to see output of mpich2version to say for sure. It's a waste of time to speculate.</div>
<div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>
<br>How do I get the compiler wrapper to recognize this ? <br><br>I assume I need to define: <span>LD_LIBRARY_PATH=</span>/usr/lib/mpich2/lib/ ?<br></div></blockquote></div></div><br><div>This problem comes sooner.</div>
<br></div></div><div>_______________________________________________<br>
mpich-discuss mailing list <a href="mailto:mpich-discuss@mcs.anl.gov" target="_blank">mpich-discuss@mcs.anl.gov</a><br>
To manage subscription options or unsubscribe:<br>
<a href="https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss" target="_blank">https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss</a><br>
<br></div></blockquote></div><br>
<br>_______________________________________________<br>
mpich-discuss mailing list <a href="mailto:mpich-discuss@mcs.anl.gov" target="_blank">mpich-discuss@mcs.anl.gov</a><br>
To manage subscription options or unsubscribe:<br>
<a href="https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss" target="_blank">https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss</a><br>
<br></blockquote></div></div><br>
<br>_______________________________________________<br>
mpich-discuss mailing list <a href="mailto:mpich-discuss@mcs.anl.gov" target="_blank">mpich-discuss@mcs.anl.gov</a><br>
To manage subscription options or unsubscribe:<br>
<a href="https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss" target="_blank">https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss</a><br>
<br></blockquote></div><br>
</div></div><br>_______________________________________________<br>
mpich-discuss mailing list <a href="mailto:mpich-discuss@mcs.anl.gov" target="_blank">mpich-discuss@mcs.anl.gov</a><br>
To manage subscription options or unsubscribe:<br>
<a href="https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss" target="_blank">https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss</a><br>
<br></blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
mpich-discuss mailing list <a href="mailto:mpich-discuss@mcs.anl.gov" target="_blank">mpich-discuss@mcs.anl.gov</a><br>
To manage subscription options or unsubscribe:<br>
<a href="https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss" target="_blank">https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss</a><br>
<br></blockquote></div><br>
</div></div></blockquote></div><br>
</div></div></blockquote></div><br>
</div></div></blockquote></div><br>