<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: Times New Roman; font-size: 12pt; color: #000000'><br><br><hr id="zwchr"><blockquote style="border-left:2px solid rgb(16, 16, 255);margin-left:5px;padding-left:5px;">[Resending from the address that is subscribed to this list.]<br><br><div id="DWT487" class="gmail_quote">On Mon, Jun 4, 2012 at 7:02 PM, Jed Brown <span dir="ltr"><<a href="mailto:jed@59a2.org" target="_blank">jed@59a2.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Please send output of mpich2version and mpicxx -show.<div><br></div><div id="DWT486">Does this occur with simpler programs or only with the example below?<br></div></blockquote><br></div></blockquote>Hi Jed,<br><br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><div class="gmail_quote"></div></blockquote>The example is the one that you gave in 2010 (without comm). I have no problems on other test/executables, in moab, except that test (test_prog_opt)<br><br>I first saw this problem in make check in moab, and when I look for the error I found your example in the discussion list.<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><div class="gmail_quote"></div></blockquote>iulian@T520-iuli:~/tmp$ mpich2version<br>MPICH2 Version: 1.4.1<br>MPICH2 Release date: Wed Aug 24 14:40:04 CDT 2011<br>MPICH2 Device: ch3:nemesis<br>MPICH2 configure: --build=x86_64-linux-gnu --prefix=/usr --includedir=${prefix}/include --mandir=${prefix}/share/man --infodir=${prefix}/share/info --sysconfdir=/etc --localstatedir=/var --libexecdir=${prefix}/lib/mpich2 --srcdir=. --disable-maintainer-mode --disable-dependency-tracking --disable-silent-rules --enable-shared --prefix=/usr --enable-fc --disable-rpath --sysconfdir=/etc/mpich2 --includedir=/usr/include/mpich2 --docdir=/usr/share/doc/mpich2 --with-hwloc-prefix=system --enable-checkpointing --with-hydra-ckpointlib=blcr<br>MPICH2 CC: gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -Wall -O2<br>MPICH2 CXX: c++ -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -Wall -O2<br>MPICH2 F77: gfortran -g -O2 -O2<br>MPICH2 FC: gfortran -O2<br><br><br>iulian@T520-iuli:~/tmp$ mpicxx -show <br>c++ -Wl,-Bsymbolic-functions -Wl,-z,relro -I/usr/include/mpich2 -L/usr/lib -lmpichcxx -lmpich -lopa -lmpl -lrt -lcr -lpthread<br><br><br>p3.cpp<br>iulian@T520-iuli:~/tmp$ more p3.cpp <br>#include <mpi.h><br><br>int main (int argc, char * argv[] )<br>{<br> MPI::Init(argc, argv);<br> MPI::Finalize();<br> return 0;<br>}<br>iulian@T520-iuli:~/tmp$ <br><br><br>If I am using my built version of mpich2, I get the same linking error. Although, in MOAB, we are not using MPI:: style, only MPI_xxx (c style)<br>mpicxx p3.cpp <br>/home/iulian/3rdparty/lib/mpich2/lib/libmpich.so: undefined reference to `MPL_trfree'<br>/home/iulian/3rdparty/lib/mpich2/lib/libmpich.so: undefined reference to `MPL_env2str'<br>/home/iulian/3rdparty/lib/mpich2/lib/libmpich.so: undefined reference to `MPL_trlevel'<br>/home/iulian/3rdparty/lib/mpich2/lib/libmpich.so: undefined reference to `MPL_trvalid'<br>/home/iulian/3rdparty/lib/mpich2/lib/libmpich.so: undefined reference to `MPL_trmalloc'<br>/home/iulian/3rdparty/lib/mpich2/lib/libmpich.so: undefined reference to `MPL_trspace'<br>/home/iulian/3rdparty/lib/mpich2/lib/libmpich.so: undefined reference to `MPL_env2range'<br>/home/iulian/3rdparty/lib/mpich2/lib/libmpich.so: undefined reference to `MPL_trcalloc'<br>/home/iulian/3rdparty/lib/mpich2/lib/libmpich.so: undefined reference to `MPL_env2int'<br>/home/iulian/3rdparty/lib/mpich2/lib/libmpich.so: undefined reference to `MPL_trdump'<br>/home/iulian/3rdparty/lib/mpich2/lib/libmpich.so: undefined reference to `MPL_env2bool'<br>/home/iulian/3rdparty/lib/mpich2/lib/libmpich.so: undefined reference to `MPL_trstrdup'<br>/home/iulian/3rdparty/lib/mpich2/lib/libmpich.so: undefined reference to `MPL_trrealloc'<br>/home/iulian/3rdparty/lib/mpich2/lib/libmpich.so: undefined reference to `MPL_TrSetMaxMem'<br>/home/iulian/3rdparty/lib/mpich2/lib/libmpich.so: undefined reference to `MPL_trinit'<br>/home/iulian/3rdparty/lib/mpich2/lib/libmpich.so: undefined reference to `MPL_trDebugLevel'<br>/home/iulian/3rdparty/lib/mpich2/lib/libmpich.so: undefined reference to `MPL_trid'<br>collect2: ld returned 1 exit status<br>iulian@T520-iuli:~/tmp$ mpich2version<br>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: --enable-sharedlibs=gcc --enable-shared --with-pm=mpd:gforker --enable-totalview --enable-mpe --enable-fc --enable-f77 --enable-cxx --prefix=/home/iulian/3rdparty/lib/mpich2<br>MPICH2 CC: gcc -O2<br>MPICH2 CXX: g++ -O2<br>MPICH2 F77: gfortran -O2<br>MPICH2 FC: f95 -O2<br>iulian@T520-iuli:~/tmp$ mpicxx -show<br>g++ -I/home/iulian/3rdparty/lib/mpich2/include -L/home/iulian/3rdparty/lib/mpich2/lib -Wl,-rpath -Wl,/home/iulian/3rdparty/lib/mpich2/lib -lmpichcxx -lmpich -lopa -lmpl -lrt -lpthread<br><br><br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div></div></blockquote></div></blockquote></div></body></html>