Dear all,

Recently i want to compile siesta-3.0-rc1 with openmpi 1.3.3, but at the
end of the compilation, there is an error.
First I use the ifort 9.1 to compile the lapack-3.2.1 to get the blas
and lapack and also the scalapack-1.8.0 to get the libscalapack.a. But
when i compile the siesta, there is an error, "ld: cannot find
-lmpi_f90". It seems that the program can not find the libmpi_f90.a.
Attachment is my arch.make.
Thanks in advance.

Best wishes

Weyl
2010-06-23

-- 
======================================================= 
wei FANG
Graduate student in Chemical Engineering
State Key Laboratory of Materials-oriented Chemical Engineering
College of Chemistry and Chemical Engineering
Nanjing University of Technology, 210009, Nanjing, Jiangsu, China
*******************************************************
Email: [email protected]
Office: Room A705, Technical Innovation Building, Xinmofan Road 5#, Nanjing, 
Jiangsu, China 
*********************************************************************

# 
# This file is part of the SIESTA package.
#
# Copyright (c) Fundacion General Universidad Autonoma de Madrid:
# E.Artacho, J.Gale, A.Garcia, J.Junquera, P.Ordejon, D.Sanchez-Portal
# and J.M.Soler, 1996- .
# 
# Use of this software constitutes agreement with the full conditions
# given in the SIESTA license, as signed by all legitimate users.
#
.SUFFIXES:
.SUFFIXES: .f .F .o .a .f90 .F90

SIESTA_ARCH=x86_64-unknown-linux-gnu--Intel

FPP=
FPP_OUTPUT= 
FC=mpif90
RANLIB=ranlib

SYS=nag

SP_KIND=4
DP_KIND=8
KINDS=$(SP_KIND) $(DP_KIND)

FFLAGS= -w -O3
FPPFLAGS= -DMPI -DFC_HAVE_FLUSH -DFC_HAVE_ABORT
LDFLAGS= -Vaxlib -static

ARFLAGS_EXTRA=

FCFLAGS_fixed_f=
FCFLAGS_free_f90=
FPPFLAGS_fixed_F=
FPPFLAGS_free_F90=
FFLAGS_DEBUG= -g

HOME_LIB=/home/fangwei/lib
BLAS_LIBS=$(HOME_LIB)/blas_LINUX.a
LAPACK_LIBS=$(HOME_LIB)/lapack_LINUX.a
BLACS_LIBS=$(HOME_LIB)/blacsCinit_MPI-LINUX-0.a 
$(HOME_LIB)/blacsF77init_MPI-LINUX-0.a $(HOME_LIB)/blacs_MPI-LINUX-0.a
SCALAPACK_LIBS=$(HOME_LIB)/libscalapack.a

COMP_LIBS=

NETCDF_LIBS=
NETCDF_INTERFACE=

LIBS=$(SCALAPACK_LIBS) $(BLACS_LIBS) $(LAPACK_LIBS) $(BLAS_LIBS) $(NETCDF_LIBS)

#SIESTA needs an F90 interface to MPI
#This will give you SIESTA's own implementation
#If your compiler vendor offers an alternative, you may change
#to it here.
MPI_HOME=/home/fangwei/openmpi
MPI_INTERFACE=libmpi_f90.a
MPI_INCLUDE=$(MPI_HOME)/include
MPI_LIB=$(MPI_HOME)/lib
DEFS_MPI=-DMPI

#Dependency rules are created by autoconf according to whether
#discrete preprocessing is necessary or not.
.F.o:
        $(FC) -c $(FFLAGS) $(INCFLAGS) $(FPPFLAGS) $(FPPFLAGS_fixed_F)  $< 
.F90.o:
        $(FC) -c $(FFLAGS) $(INCFLAGS) $(FPPFLAGS) $(FPPFLAGS_free_F90) $< 
.f.o:
        $(FC) -c $(FFLAGS) $(INCFLAGS) $(FCFLAGS_fixed_f)  $<
.f90.o:
        $(FC) -c $(FFLAGS) $(INCFLAGS) $(FCFLAGS_free_f90)  $<

Responder a