[mpich-discuss] linking error in moab

Iulian Grindeanu iulian at mcs.anl.gov
Mon Jun 4 18:55:43 CDT 2012


Hello, 
I am trying to compile moab on my laptop, ubuntu 12.04, and I am getting this error in make check 


link: mpicxx -O0 -g -Wall -pipe -pedantic -Wno-long-long -g -o test_prog_opt test_prog_opt-test_prog_opt.o -L/home/iulian/3rdparty/netcdf-par/lib -L/home/iulian/3rdparty/hdf5-1.8.8-par-gcc/lib -L/home/iulian/lib/parallel/cgmcubit/lib -L/home/iulian/3rdparty/Cubit-12.2/bin ../src/.libs/libMOAB.a /home/iulian/3rdparty/netcdf-par/lib/libnetcdf.so -L/home/iulian/3rdparty/zlib-1.2.4/gcc/lib -L/home/iulian/3rdparty/szip-2.1-gcc/lib /home/iulian/3rdparty/hdf5-1.8.8-par-gcc/lib/libhdf5_hl.so /home/iulian/3rdparty/hdf5-1.8.8-par-gcc/lib/libhdf5.so /home/iulian/3rdparty/szip-2.1-gcc/lib/libsz.so -lz /home/iulian/lib/parallel/cgmcubit/lib/libcgm.so -lcubiti19 /usr/lib/libcr.so -lm -Wl,-rpath -Wl,/home/iulian/3rdparty/netcdf-par/lib -Wl,-rpath -Wl,/home/iulian/3rdparty/hdf5-1.8.8-par-gcc/lib -Wl,-rpath -Wl,/home/iulian/3rdparty/szip-2.1-gcc/lib -Wl,-rpath -Wl,/home/iulian/lib/parallel/cgmcubit/lib -Wl,-rpath -Wl,/home/iulian/3rdparty/netcdf-par/lib -Wl,-rpath -Wl,/home/iulian/3rdparty/hdf5-1.8.8-par-gcc/lib -Wl,-rpath -Wl,/home/iulian/3rdparty/szip-2.1-gcc/lib -Wl,-rpath -Wl,/home/iulian/lib/parallel/cgmcubit/lib -Wl,-rpath -Wl,/home/iulian/3rdparty/Cubit-12.2/bin 
/usr/lib/libmpich.so: undefined reference to `MPL_trfree' 
/usr/lib/libmpich.so: undefined reference to `MPL_env2str' 
/usr/lib/libmpich.so: undefined reference to `MPL_trlevel' 
/usr/lib/libmpich.so: undefined reference to `MPL_trvalid' 
.... 

I found online this reference to a similar error . 
http://lists.mcs.anl.gov/pipermail/mpich-discuss/2010-November/008397.html 

http://lists.mcs.anl.gov/pipermail/mpich-discuss/2010-November/008456.html 

I installed mpich2 from the binary installation, using ubuntu software center.(from here, latest stable release: http://www.mcs.anl.gov/research/projects/mpich2/downloads/index.php?s=downloads) 

I also tried compiling myself mpich2 from source, but I get the same linking error. Also, that small example from Jed gives the same error, with both versions (one installed from binary, and one compiled by me) 

Any clues how to fix my installation, or what I did wrong? Where should I start looking? The configure.in change that seemed to fix the issues in 1.3.1 is already part of 1.4.1. 

Also, it seems that some symbols with those names are part of libmpl.a, on my laptop 
.. iulian at T520-iuli:/usr/lib$ nm -C libmpl.a | grep MPL_ 
0000000000000000 T MPL_strncpy 
0000000000000070 T MPL_strsep 
0000000000001120 T MPL_TrSetMaxMem 
U MPL_strncpy 
0000000000000d80 T MPL_trDebugLevel 
0000000000000000 t MPL_trIsort 
0000000000000d20 T MPL_trSummary 
0000000000000d90 T MPL_trcalloc 
0000000000000bf0 T MPL_trdump 
0000000000000fd0 T MPL_trdumpGrouped 
00000000000004f0 T MPL_trfree 
0000000000000d50 T MPL_trid 
0000000000000100 T MPL_trinit 
0000000000000d70 T MPL_trlevel 
0000000000000930 T MPL_trmalloc 
0000000000000de0 T MPL_trrealloc 
0000000000000bd0 T MPL_trspace 
0000000000000f60 T MPL_trstrdup 
00000000000002b0 T MPL_trvalid 
0000000000000260 T MPL_env2bool 
0000000000000130 T MPL_env2int 
0000000000000000 T MPL_env2range 
00000000000003d0 T MPL_env2str 
00000000000003f0 T MPL_putenv 

Thanks, 
Iulian 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/mpich-discuss/attachments/20120604/d0829459/attachment.html>


More information about the mpich-discuss mailing list