Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Open MPI User's mailing list

Subject: Re: [OMPI users] Open mpi 123 install error for BLACS
From: Rainer Keller (keller_at_[hidden])
Date: 2009-02-02 20:30:59

Hi Jack,
On Saturday 31 January 2009 02:03:23 pm Jack Bryan wrote:
> I am installing BLACS in order to install PCSDP - a parallell interior
> point solver for linear programming.
> I need to install it on Open MPI 1.2.3 platform.
> I ahve installed BLAS, LAPACK successfully.
> Now I need to install BLACS.
Actually, BLACS and PCSDP compile fine here (w/ Open MPI-1.2.8)

> I can run "make mpi" successfully.
> But, When I run "make tester".
> [BLACS]$ make tester
> ( cd TESTING ; make )
> make[1]: Entering directory `/home/PCSDP/BLACS/TESTING'
> mpif77 -o /home/PCSDP/BLACS/TESTING/EXE/xFbtest_MPI-LINUX-0 blacstest.o
> btprim_MPI.o tools.o /home/PCSDP/BLACS/LIB/blacsF77init_MPI-LINUX-0.a
> /home/PCSDP/BLACS/LIB/blacs_MPI-LINUX-0.a
> /home/PCSDP/BLACS/LIB/blacsF77init_MPI-LINUX-0.a
> /home/openmpi_123/lib/ /home/openmpi_123/lib/
> file not recognized: File format not recognized collect2: ld returned 1
> exit status
The libtool files (.la) will not help You in this case.
If You want to link against the Open MPI's C++ Interface, You'd just need to
   mpif77 .... -L/home/openmpi_123/lib -lmpi_cxx
The compiler-wrapper mpif77 actually includes the library-search path (-L):
Use mpif77 -showme:
 gfortran -I/opt/openmpi-1.2.8/include -L/opt/openmpi-1.2.8/lib -lmpi_f77 ...

> In "Bconfig.h", I have changed
> include "/home/openmpi_123/include/mpi.h"
> In OpenMPI 1.2.3, the lib directory does not include: "*.a" library.
> only "*.la" library.
These are the libtool '.la' files, which help when linking using libtool.
The lib-library however should contain the shard-library files (**), right?

So You can link against the shared libraries.

With best regards,

Rainer Keller, PhD                  Tel: (865) 241-6293
Oak Ridge National Lab          Fax: (865) 241-4811
PO Box 2008 MS 6164           Email: keller_at_[hidden]
Oak Ridge, TN 37831-2008    AIM/Skype: rusraink