[mpich-discuss] Cannot link mpich programs

Pavan Balaji balaji at mcs.anl.gov
Tue Feb 28 09:56:06 CST 2012


These symbols are from MPL.  Are you able to link with mpicxx?

  -- Pavan

On 02/28/2012 09:29 AM, Alexander Beck-Ratzka wrote:
> 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
>
> _______________________________________________
> mpich-discuss mailing list     mpich-discuss at mcs.anl.gov
> To manage subscription options or unsubscribe:
> https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss

-- 
Pavan Balaji
http://www.mcs.anl.gov/~balaji


More information about the mpich-discuss mailing list