[mpich-discuss] linking error in moab

Iulian Grindeanu iulian at mcs.anl.gov
Mon Jun 4 19:49:17 CDT 2012


----- Original Message -----
| [Resending from the address that is subscribed to this list.]
| On Mon, Jun 4, 2012 at 7:02 PM, Jed Brown < jed at 59a2.org > wrote:
| | Please send output of mpich2version and mpicxx -show.
| | Does this occur with simpler programs or only with the example
| | below?
Hi Jed, 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) 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. iulian at T520-iuli:~/tmp$ mpich2version MPICH2 Version: 1.4.1 MPICH2 Release date: Wed Aug 24 14:40:04 CDT 2011 MPICH2 Device: ch3:nemesis 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 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 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 MPICH2 F77: gfortran -g -O2 -O2 MPICH2 FC: gfortran -O2 iulian at T520-iuli:~/tmp$ mpicxx -show c++ -Wl,-Bsymbolic-functions -Wl,-z,relro -I/usr/include/mpich2 -L/usr/lib -lmpichcxx -lmpich -lopa -lmpl -lrt -lcr -lpthread p3.cpp iulian at T520-iuli:~/tmp$ more p3.cpp #include <mpi.h> int main (int argc, char * argv[] ) { MPI::Init(argc, argv); MPI::Finalize(); return 0; } iulian at T520-iuli:~/tmp$ 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) mpicxx p3.cpp /home/iulian/3rdparty/lib/mpich2/lib/libmpich.so: undefined reference to `MPL_trfree' /home/iulian/3rdparty/lib/mpich2/lib/libmpich.so: undefined reference to `MPL_env2str' /home/iulian/3rdparty/lib/mpich2/lib/libmpich.so: undefined reference to `MPL_trlevel' /home/iulian/3rdparty/lib/mpich2/lib/libmpich.so: undefined reference to `MPL_trvalid' /home/iulian/3rdparty/lib/mpich2/lib/libmpich.so: undefined reference to `MPL_trmalloc' /home/iulian/3rdparty/lib/mpich2/lib/libmpich.so: undefined reference to `MPL_trspace' /home/iulian/3rdparty/lib/mpich2/lib/libmpich.so: undefined reference to `MPL_env2range' /home/iulian/3rdparty/lib/mpich2/lib/libmpich.so: undefined reference to `MPL_trcalloc' /home/iulian/3rdparty/lib/mpich2/lib/libmpich.so: undefined reference to `MPL_env2int' /home/iulian/3rdparty/lib/mpich2/lib/libmpich.so: undefined reference to `MPL_trdump' /home/iulian/3rdparty/lib/mpich2/lib/libmpich.so: undefined reference to `MPL_env2bool' /home/iulian/3rdparty/lib/mpich2/lib/libmpich.so: undefined reference to `MPL_trstrdup' /home/iulian/3rdparty/lib/mpich2/lib/libmpich.so: undefined reference to `MPL_trrealloc' /home/iulian/3rdparty/lib/mpich2/lib/libmpich.so: undefined reference to `MPL_TrSetMaxMem' /home/iulian/3rdparty/lib/mpich2/lib/libmpich.so: undefined reference to `MPL_trinit' /home/iulian/3rdparty/lib/mpich2/lib/libmpich.so: undefined reference to `MPL_trDebugLevel' /home/iulian/3rdparty/lib/mpich2/lib/libmpich.so: undefined reference to `MPL_trid' collect2: ld returned 1 exit status iulian at T520-iuli:~/tmp$ mpich2version MPICH2 Version: 1.4.1p1 MPICH2 Release date: Thu Sep 1 13:53:02 CDT 2011 MPICH2 Device: ch3:nemesis 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 MPICH2 CC: gcc -O2 MPICH2 CXX: g++ -O2 MPICH2 F77: gfortran -O2 MPICH2 FC: f95 -O2 iulian at T520-iuli:~/tmp$ mpicxx -show 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/mpich-discuss/attachments/20120604/0a157e85/attachment.html>


More information about the mpich-discuss mailing list