<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: Times New Roman; font-size: 12pt; color: #000000'>hello,<br>The issue I had yesterday seems to be resolved by configuring mpi 1.4.1 with "enable-lib-depend". For more info, please see below.<br>Thanks,<br>Iulian<br><br><hr id="zwchr"><blockquote id="DWT514" style="border-left:2px solid rgb(16, 16, 255);margin-left:5px;padding-left:5px;"><br><br>Message: 4<br>Date: Mon, 4 Jun 2012 23:18:35 -0500<br>From: Dave Goodell <goodell@mcs.anl.gov><br>To: mpich <mpich-discuss@mcs.anl.gov><br>Subject: Re: [mpich-discuss] linking error in moab<br>Message-ID: <BC2BCF6C-FEBB-4279-956A-50600DA51002@mcs.anl.gov><br>Content-Type: text/plain; charset=us-ascii<br><br>On Jun 4, 2012, at 7:49 PM CDT, Iulian Grindeanu wrote:<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>That's a pretty simple test program in which I can't see anything obviously wrong.<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>[snip]<br>> `MPL_trDebugLevel'<br><br>This Debian bug seems related: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=653616<br></blockquote>Yes, and I do have other issues with shared library (chained, or inter-library?) dependencies, on my laptop. I need to understand better these gold-linker issues.<br><br><blockquote id="DWT515" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><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><br>I'd rather debug this build, since it has a much simpler configuration than the earlier one you posted. I don't see anything odd here.<br><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>Same here, nothing obviously out of place. What output do you get from "ldd $HOME/3rdparty/lib/mpich2/lib/*.so"?<br></blockquote>iulian@T520-iuli:~/tmp$ ldd $HOME/3rdparty/lib/mpich2/lib/*.so<br>/home/iulian/3rdparty/lib/mpich2/lib/libfmpich.so:<br> linux-vdso.so.1 => (0x00007fff831c9000)<br> libmpich.so.3 => /home/iulian/3rdparty/lib/mpich2/lib/libmpich.so.3 (0x00007f313a908000)<br> libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f313a52a000)<br> librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f313a322000)<br> libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f313a105000)<br> /lib64/ld-linux-x86-64.so.2 (0x00007f313af10000)<br>/home/iulian/3rdparty/lib/mpich2/lib/libmpichcxx.so:<br> linux-vdso.so.1 => (0x00007fff2bdff000)<br> libmpich.so.3 => /home/iulian/3rdparty/lib/mpich2/lib/libmpich.so.3 (0x00007f157dc66000)<br> libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f157da2f000)<br> libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f157d672000)<br> librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f157d46a000)<br> libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f157d24c000)<br> /lib64/ld-linux-x86-64.so.2 (0x00007f157e26e000)<br>/home/iulian/3rdparty/lib/mpich2/lib/libmpichf90.so:<br> linux-vdso.so.1 => (0x00007fff00d40000)<br> libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f3d1f4dd000)<br> /lib64/ld-linux-x86-64.so.2 (0x00007f3d1fabf000)<br>/home/iulian/3rdparty/lib/mpich2/lib/libmpich.so:<br> linux-vdso.so.1 => (0x00007fff971ff000)<br> librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f02e5f94000)<br> libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f02e5d76000)<br> libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f02e59b9000)<br> /lib64/ld-linux-x86-64.so.2 (0x00007f02e65a3000)<br>/home/iulian/3rdparty/lib/mpich2/lib/libmpl.so:<br> linux-vdso.so.1 => (0x00007fff48cbb000)<br> libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f20e4de6000)<br> /lib64/ld-linux-x86-64.so.2 (0x00007f20e53cb000)<br>/home/iulian/3rdparty/lib/mpich2/lib/libopa.so:<br> linux-vdso.so.1 => (0x00007ffff35ff000)<br> libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fa521790000)<br> libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fa5213d2000)<br> /lib64/ld-linux-x86-64.so.2 (0x00007fa521bd1000)<br>iulian@T520-iuli:~/tmp$ <br><br><blockquote id="DWT516" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>Does reconfiguring mpich2 with "--enable-lib-depend" fix the problem? I think this option was removed in 1.5a1 and later, but should still be present in 1.4.1p1.<br><br></blockquote>YES!!!!!!!! thank you very much .<br><blockquote id="DWT517" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;">What output do you get from "mpicxx -Wl,--version"? I have no idea which distributions may have started using the gold linker by default, or possibly you've chosen to install it instead. A non-GNU-ld linker might be the reason that I can't reproduce this on my end.<br><br>What does "env | grep '^LD'" give you?<br></blockquote>So when I am testing my mpich2 build, I am setting also LD_LIBRARY_PATH<br>~/source/MOABpv$ env | grep '^LD'<br>LD_LIBRARY_PATH=/home/iulian/3rdparty/lib/OCC652/lib:/home/iulian/lib/camal.5.1.0-Linux64/lib/Linux64:/home/iulian/3rdparty/hdf5-1.8.8-par-gcc:/home/iulian/lib/parallel/moab/lib:/home/iulian/lib/parallel/cgmcubit/lib:/home/iulian/lib/parallel/Lasso/lib:/home/iulian/3rdparty/Cubit-12.2/bin:/home/iulian/3rdparty/lib/mpich2/lib<br><br>when I am using the mpich installed from deb file, the LD path is<br>env | grep '^LD'<br>LD_LIBRARY_PATH=/home/iulian/3rdparty/Cubit-12.2/bin:/home/iulian/lib/camal.5.1.0-Linux64/lib/Linux64:/home/iulian/3rdparty/hdf5-1.8.8-ser-gcc/lib:/usr/lib/x86_64-linux-gnu:/usr/lib<br><br>Best Regards,<br>Iulian<br><br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>-Dave<br><br><br><br>------------------------------<br><br>_______________________________________________<br>mpich-discuss mailing list<br>mpich-discuss@mcs.anl.gov<br>https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss<br><br><br>End of mpich-discuss Digest, Vol 45, Issue 8<br>********************************************<br></blockquote><br></div></body></html>