Page 1 of 1
Build error of abinit-7.4.3 on Mac OS X Snow Leopard
Posted: Wed Nov 06, 2013 3:34 pm
by Norio Saito
Hi,
I have some troubles to build abinit-7.4.3 on Mac OS X 10.7.5 Snow Leopard.
The build options are here.
Code: Select all
>> ./configure --prefix=/opt/local/abinit --with-mpi-prefix=/opt/openmpi64i CC=/opt/local/bin/gcc FC=/opt/local/bin/gfortran CFLAGS=-m64 CXXFLAGS=-m64
Open MPI and gfortran (gcc) have been already installed and the version is 1.6.5, 4.9.0 respectively.
After the configuration, I tried to run make. However, an error occurs like following.
Code: Select all
odamix.F90:544.13:
rhoijtmp(klmn-1:klmn+1,ispden)=pawrhoij(iatom)%rhoijp(jrhoij:jrhoi
1
Error: Different shape for array assignment at (1) on dimension 1 (3 and 2)
make[3]: *** [odamix.o] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
It seems to be the same problem as
http://forum.abinit.org/viewtopic.php?f=2&t=2154.
Could you guys please suggest the way to fix this problem?
Thank you.
Norio Saito
Re: Build error of abinit-7.4.3 on Mac OS X Snow Leopard
Posted: Wed Nov 06, 2013 8:24 pm
by admin
Hi,
the status of gcc4.9.0 version is yet "Development" : please use 4.8.2
concerning the configure, for MPI support, it's enough to specify --with-mpi-prefix=/opt/openmpi64i ( if the subfolder tree is "standard" bin,lib,include…)
you can try first to build a serial version : ./configure --prefix=/opt/local/abinit CC=/opt/local/bin/gcc FC=/opt/local/bin/gfortran
jmb
Re: Build error of abinit-7.4.3 on Mac OS X Snow Leopard
Posted: Thu Nov 07, 2013 5:24 pm
by Norio Saito
jmb, thanks very much for your reply.
Referring the advice, I changed gcc version to stable one and rebuilt openmpi.
In configuring the abinit, I used only CC and FC options.
However, an error has been still remained in compiling, the messages were here.
Code: Select all
make all-recursive
Making all in fallbacks
make fox
The build of fox has been disabled
Checking build of fox fallback
test -e stamps/fox-install-stamp
make libxc
The build of libxc has been disabled
Checking build of libxc fallback
test -e stamps/libxc-install-stamp
make linalg
The build of linalg has been disabled
Checking build of linalg fallback
test -e stamps/linalg-install-stamp
make netcdf
The build of netcdf has been disabled
Checking build of netcdf fallback
test -e stamps/netcdf-install-stamp
make atompaw
The build of atompaw has been disabled
Checking build of atompaw fallback
test -e stamps/atompaw-install-stamp
make etsf_io
The build of etsf_io has been disabled
Checking build of etsf_io fallback
test -e stamps/etsf_io-install-stamp
make wannier90
The build of wannier90 has been disabled
Checking build of wannier90 fallback
test -e stamps/wannier90-install-stamp
make bigdft
The build of bigdft has been disabled
Checking build of bigdft fallback
test -e stamps/bigdft-install-stamp
Making all in src
Making all in incs
There is no buildable file here
Making all in mods
There is no buildable file here
Making all in 01_interfaces_ext
make[3]: Nothing to be done for `all'.
Making all in 01_linalg_ext
make[3]: Nothing to be done for `all'.
Making all in 01_macroavnew_ext
make[3]: Nothing to be done for `all'.
Making all in 10_defs
make[3]: Nothing to be done for `all'.
Making all in 11_memory_mpi
make[3]: Nothing to be done for `all'.
Making all in 11_qespresso_ext
make[3]: Nothing to be done for `all'.
Making all in 12_hide_mpi
make[3]: Nothing to be done for `all'.
Making all in 14_hidewrite
make[3]: Nothing to be done for `all'.
Making all in 16_hideleave
/Users/noriosaito/Develop/abinit/archive/abinit-7.4.3/config/wrappers/wrap-mpiLFC -DHAVE_CONFIG_H -I. -I../.. -I../../src/incs -I../../src/incs -I/Users/noriosaito/Develop/abinit/archive/abinit-7.4.3/fallbacks/exports/include -ffree-form -J/Users/noriosaito/Develop/abinit/archive/abinit-7.4.3/src/mods -O2 -mtune=native -march=native -g -ffree-line-length-none -c -o m_build_info.o m_build_info.F90
m_build_info.F90:24.14:
use defs_basis
1
Fatal Error: File 'defs_basis.mod' opened at (1) is not a GFORTRAN module file
make[3]: *** [m_build_info.o] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
I wonder it is required to add a configuration option to tell the information of required module.
If anyone knows more detail, please tell me how to proceed.
Norio Saito
Re: Build error of abinit-7.4.3 on Mac OS X Snow Leopard
Posted: Thu Nov 07, 2013 7:52 pm
by jbeuken
Hi,
did you make cleaning before the compilation ?
Code: Select all
export LD_LIBRARY_PATH=/opt/local/lib64:/opt/local/lib:$LD_LIBRARY_PATH
make clean
./configure --prefix=/opt/local/abinit CC=/opt/local/bin/gcc FC=/opt/local/bin/gfortran
jmb
Re: Build error of abinit-7.4.3 on Mac OS X Snow Leopard [SOLVED]
Posted: Fri Nov 08, 2013 3:02 pm
by Norio Saito
thanks jbeuken,
I simply forgot "make clean".
Finally, I have succeeded the compilation thanks to the advice.
Norio Saito.