I'm very new to the Abinit (7.0.5), and trying to compile it on my os-x using macports.
After looking in forums i came up with the following config:
Code: Select all
./configure --prefix=/opt/abinit/7.0.5 --enable-mpi --enable-64bit-flags --with-mpi-prefix=/opt/local --with-linalg-flavor="atlas" --with-linalg-libs="-L/opt/local/lib -llapack -lcblas -lf77blas -latlas" --enable-optim="yes" CFLAGS_OPTIM="-O2" FCFLAGS_OPTIM="-O2" --enable-fc-wrapper CC=mpicc FC=mpif90 CXX=mpicxx --enable-gui CPP=/opt/local/bin/cpp-mp-4.7 FCCCP=mpicc
after running config, i make
TRUE_CPP = /opt/local/bin/cpp-mp-4.7 -P -std=c99
in /fallbacks/config.mk
Problems i have are related to utility_cpp.f90:
Code: Select all
mpif90 -m64 utility_cpp.f90 -DHAVE_CONFIG_H -ffree-form -m64 -g -ffree-line-length-none -O2 -g -O2 -c -o utility.o -I. -I.. -I/Users/davydden/Desktop/work/C++/abinit/abinit-7.0.5/fallbacks/exports/include -I/Users/davydden/Desktop/work/C++/abinit/abinit-7.0.5/fallbacks/exports/include
utility_cpp.f90:196.29:
if(pos<=0) call io_error('utility_string_to_coord: Problem reading string i
1
Error: Missing ')' in statement at or before (1)
utility_cpp.f90:206.85:
o_error('utility_string_to_coord: Problem reading string into real number '
1
Error: Syntax error in argument list at (1)
utility_cpp.f90:198.25:
read(ctemp2,*,err=100,end=100) outvec(1)
1
Error: ERR tag label 100 at (1) not defined
utility_cpp.f90:202.25:
read(ctemp2,*,err=100,end=100) outvec(2)
1
Error: ERR tag label 100 at (1) not defined
utility_cpp.f90:204.24:
read(ctemp,*,err=100,end=100) outvec(3)
1
Error: ERR tag label 100 at (1) not defined
ABINIT WRAPPER END (exit code 1)
make[6]: *** [utility.lo] Error 1
make[5]: *** [all-recursive] Error 1
make[4]: *** [all] Error 2
make[3]: *** [stamps/wannier90-build-stamp] Error 2
make[2]: [all-local] Error 2 (ignored)
Checking build of wannier90 fallback
test -e stamps/wannier90-install-stamp
make[2]: *** [all-local] Error 1
make[1]: *** [multi] Error 2
make: *** [mj4] Error 2
if I remove "--enable-fc-wrapper " I got the following error:
Code: Select all
Making all in 01_interfaces_ext
mpif90 -m64 -DHAVE_CONFIG_H -I. -I../.. -I../../src/incs -I../../src/incs -I/Users/davydden/Desktop/work/C++/abinit/abinit-7.0.5/fallbacks/exports/include -I/Users/davydden/Desktop/work/C++/abinit/abinit-7.0.5/fallbacks/exports/include -ffree-form -J/Users/davydden/Desktop/work/C++/abinit/abinit-7.0.5/src/mods -O2 -m64 -g -ffree-line-length-none -c -o m_iso_c_bindings.o m_iso_c_bindings.F90
In file included from m_iso_c_bindings.F90:28:0:
../../config.h:642:2: error: #error "HAVE_MPI1 and HAVE_MPI2 are both undefined"
make[5]: *** [m_iso_c_bindings.o] Error 1
make[4]: *** [all-recursive] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all] Error 2
make[1]: *** [multi] Error 2
make: *** [mj4] Error 2
openmpi lib are in opt/loc/lib (installed by macports), thus "export DYLD_LIBRARY_PATH=/opt/local/lib:$DYLD_LIBRARY_PATH" does not help.
Thank you in advance for your help
Regards,
Denis.