[mpich-discuss] Cannot link mpich programs

Alexander Beck-Ratzka alexander.beck-ratzka at aei.mpg.de
Tue Feb 28 09:29:26 CST 2012


Hi Folks,

I hvae recently installed  mpich2-1.4.1p1. For the compilation (and linking) 
of a program I am using the following stettings:

-L/usr/local/mpich/lib -lmpich -lmpichcxx -lopa -lmpl

My LD_LIBRARY_PATH is pointing to /usr/local/mpich/lib

So everything should be fine. However, the link step of a program using mpich 
fails with

[snip]
/usr/local/mpich/lib/libmpich.so: undefined reference to `MPL_trid'
/usr/local/mpich/lib/libmpich.so: undefined reference to `MPL_trvalid'
/usr/local/mpich/lib/libmpich.so: undefined reference to `MPL_env2int'
/usr/local/mpich/lib/libmpich.so: undefined reference to `MPL_trrealloc'
/usr/local/mpich/lib/libmpich.so: undefined reference to `MPL_trspace'
/usr/local/mpich/lib/libmpich.so: undefined reference to `MPL_trDebugLevel'
/usr/local/mpich/lib/libmpich.so: undefined reference to `MPL_TrSetMaxMem'
/usr/local/mpich/lib/libmpich.so: undefined reference to `MPL_trlevel'
/usr/local/mpich/lib/libmpich.so: undefined reference to `MPL_trmalloc'
/usr/local/mpich/lib/libmpich.so: undefined reference to `MPL_env2bool'
/usr/local/mpich/lib/libmpich.so: undefined reference to `MPL_env2range'
/usr/local/mpich/lib/libmpich.so: undefined reference to `MPL_trcalloc'
/usr/local/mpich/lib/libmpich.so: undefined reference to `MPL_trfree'
/usr/local/mpich/lib/libmpich.so: undefined reference to `MPL_env2str'
/usr/local/mpich/lib/libmpich.so: undefined reference to `MPL_trstrdup'
/usr/local/mpich/lib/libmpich.so: undefined reference to `MPL_trdump'
/usr/local/mpich/lib/libmpich.so: undefined reference to `MPL_trinit'
collect2: ld returned 1 exit status
[snip]

Any ideas?

Best wishes

Alexander



More information about the mpich-discuss mailing list