On Wed, 08 Feb 2017 14:25:12 +0100 =?ISO-8859-1?Q?S=E9bastien?= Villemot <sebast...@debian.org> wrote: > > I don't know what's the proper solution to this issue. The circularity > can easily be dealt with (using patchelf for closing the loop in > DT_NEEDED entries). > > The problem is rather that the Cblacs_pinfo symbol is provided by two > alternative (and mutually exclusive) libraries. Input from the > maintainer would be helpful here.
There is some discussion upstream at http://www.netlib.org/blacs/mpiblacs_issues.ps They say the alternative libraries are needed for invoking MPI_INIT. Since blacs doesn't know which language you'll be accessing it with, it can only be determined at link time by linking against either blacsCinit* or blacsF77init*. They're saying it's a constraint of the MPI standard. That document is from 1997 though. The MPI standard has moved through 2 major versions since then. But blacs remains unchanged. Drew