Seems your linker does not search

   /usr/lib64/openmpi/lib

for libraries. So, yes, try -L/usr/lib64/openmpi/lib  in the LDFLAGS

R.

On 07/05/2016 12:31 PM, Mahmood Naderan wrote:
I searched a lot about the parallel compilation of siesta and saw some
question on the list. However, they don't report any success!

Regarding the sckalapack, I may get related errors later! but let me
explain step by step.
I installed netcdf-devel.x86_64 (4.1.2) from the yum repository. Files
actually exists as below

/usr/include/netcdfcpp.h
/usr/include/netcdf.mod
/usr/include/netcdf.inc
/usr/include/netcdf.h
/usr/include/netcdf.hh


So, I expect that the lines in your arch.make should work.

# Tricky business ...
NETCDF_INCFLAGS= -I/usr/include
NETCDF_LIBS= -lnetcdf -lnetcdff
#NETCDF_INTERFACE=libnetcdf_f90.a


And it does! So, the next error is scalapack. Again, I installed
scalapack-openmpi-devel.x86_64 (2.0.2) from yum repository and files are
there as below

# find /usr/ -name *scalapack*
/usr/lib64/openmpi/lib/libscalapack.so.2
/usr/lib64/openmpi/lib/libscalapack.so
/usr/lib64/openmpi/lib/libscalapack.so.2.0.0
/usr/share/doc/scalapack-common-2.0.2

# ls -l /usr/lib64/openmpi/lib/libscalapack.so*
lrwxrwxrwx 1 root root      21 Jul  5 19:56
/usr/lib64/openmpi/lib/libscalapack.so -> libscalapack.so.2.0.0
lrwxrwxrwx 1 root root      21 Jul  5 19:56
/usr/lib64/openmpi/lib/libscalapack.so.2 -> libscalapack.so.2.0.0
-rwxr-xr-x 1 root root 5922720 Jan 19 21:17
/usr/lib64/openmpi/lib/libscalapack.so.2.0.0


So, I expect that the line in arch.make should work
SCALAPACK_LIBS=-lscalapack


However, I get this error

/usr/bin/ld: cannot find -lscalapack
collect2: ld returned 1 exit status
make: *** [siesta] Error 1


It seems that I have to include a search path! Do you have any idea?


Regards,
Mahmood


Responder a