[Ipopt] missing -lmpi pkg-config with mumps
Ashutosh Mahajan
asm4 at lehigh.edu
Sun Feb 26 14:24:14 EST 2012
On Sat, Feb 25, 2012 at 10:39:37PM +0100, Stefan Vigerske wrote:
> Hi,
>
> >I compiled ipopt release version 3.10.2 on linux (ubuntu) with MUMPS. MUMPS
> >was downloaded using get.mumps in ThirdParty directory. It compiles well, but
> >pkg-config for libcoinmumps doesn't show -lmpi, even though it was compiled
> >with it.
> >
> >[mahajan at mahajan-desktop lib]$ nm libcoinmumps.a | grep -i mpi_init
> > U mpi_initialized_
> >0000000000000110 T mpi_init_
> >0000000000000120 T mpi_initialized_
> >0000000000000000 T MPI_Init
> >
> >
> >but pkg-config doesn't show -lmpi,
>
> The Mumps that is build in ThirdParty/Mumps does not depend on mpi.
> It only builds a serial version. To do so, one still need to resolve
> some mpi symbols (e.g., mpi_initialized), but these are defined in
> libcoinmumps (from the source in MUMPS/libseq).
> The output of nm tells you, that these symbols are defined in
> libcoinmumps.a, but are not unresolved.
> Thus, no need to link against the mpi library (actually, it wouldn't
> work due to now duplicate symbols).
>
Sorry, my bad, I didn't read nm output correctly. There was some other library
that needed mpi. Thanks for the prompt clarification.
cheers.
--
regards
Ashutosh Mahajan
http://coral.ie.lehigh.edu/~asm4
More information about the Ipopt
mailing list