Welcome to the forums. Please post in English or French.

You are not logged in.

#1 2016-08-23 14:16:42

From: Poland, Cracow
Registered: 2016-07-11
Posts: 73

Problem with MUMPS: Cannot find -lmpi_f77 _f90


When I try install MUMPS-4.10.0, by "make all" command (according with tutorial https://sites.google.com/site/codeaster … 4-english).  I meet the error:

Error wrote:

make ARITH=s mumps_lib
make[1]: Entering directory '/opt/mumps-4.10.0_mpi'
(cd src ; make s)
make[2]: Entering directory '/opt/mumps-4.10.0_mpi/src'
make ARITH=s mumps_lib
make[3]: Entering directory '/opt/mumps-4.10.0_mpi/src'
make[3]: Nothing to be done for 'mumps_lib'.
make[3]: Leaving directory '/opt/mumps-4.10.0_mpi/src'
make[2]: Leaving directory '/opt/mumps-4.10.0_mpi/src'
make[1]: Leaving directory '/opt/mumps-4.10.0_mpi'
(cd examples ; make s)
make[1]: Entering directory '/opt/mumps-4.10.0_mpi/examples'
mpif90 -o ssimpletest -O -fopenmp ssimpletest.o  ../lib/libsmumps.a ../lib/libmumps_common.a -L/opt/aster/public/metis-4.0.3/lib -lmetis -L../PORD/lib/ -lpord -L/opt/aster/public/scotch-5.1.11_esmumps/lib -lesmumps -lscotch -lscotcherr /opt/scalapack/lib/libscalapack.a /opt/OpenBLAS/lib/libopenblas.a  -L/usr/lib -lmpi -lmpi_f77 -lmpi_f90 -L/opt/OpenBLAS/lib/ -lopenblas -lpthread
/usr/bin/ld: cannot find -lmpi_f77
/usr/bin/ld: cannot find -lmpi_f90
collect2: error: ld returned 1 exit status
Makefile:28: recipe for target 'ssimpletest' failed
make[1]: *** [ssimpletest] Error 1
make[1]: Leaving directory '/opt/mumps-4.10.0_mpi/examples'
Makefile:42: recipe for target 'sexamples' failed
make: *** [sexamples] Error 2

Please help me dear Code_aster community: )
Best regards


#2 2016-08-24 09:29:58

Registered: 2011-06-10
Posts: 72

Re: Problem with MUMPS: Cannot find -lmpi_f77 _f90

Well, to me it looks like your system has the libraries libmpi.a , libmpi_f77.a , libmpi_f90.a at a different location than /usr/lib
(your Makefile.inc should have a line like the following)

LIBPAR = $(SCALAP)  -L/usr/lib -lmpi -lmpi_f77 -lmpi_f90

So I suggest that you
[1] find where these libraries are parked in your filesystem (most probably somewhere under /usr)

find /usr -name libmpi.a
find /usr -name libmpi_f77.a
find /usr -name libmpi_f90.a

[2] alter the expression


which makes part of the LIBPAR variable in your Makefile.inc at the mumps-base-directory to adjust it to the real location of the missing libraries in your system.



#3 2016-08-26 07:07:08

From: Poland, Cracow
Registered: 2016-07-11
Posts: 73

Re: Problem with MUMPS: Cannot find -lmpi_f77 _f90

Thank You! Indeed, the cause was lack of libs. The error disappeared after installing "libopenblas-dev".


#4 2018-02-13 16:24:03

Registered: 2018-01-12
Posts: 17

Re: Problem with MUMPS: Cannot find -lmpi_f77 _f90

Hi! I'm also trying to install parallel aster with the tutorial you posted above, and had the same problem of missing libraries (-lmpi_f77 _790) but installing libopenblas-dev did not work. Did you try anything else? any advice?

Thanks you a lot! any help will be appreciated (I have been almost 2 weeks trying to compile parallel aster).