Abinit 7.10.2 in Homebrew (OS-X) : libxc and netcdf issues
Posted: Sat Jan 24, 2015 1:20 pm
Dear all,
I would like to add Abinit to Homebrew (a package manager similar to MacPorts).
The current attempt is in this pull request: https://github.com/Homebrew/homebrew-science/pull/1757
The file is human readable so if there are any suggestions/advices regarding the way Abinit is built, please, let me know.
The configure for which no fast test fail is:
While configuring / compiling / running tests, I faced two issues :
1) Abinit does not want to pick up Libxc 2.2.0. Configure complains that 2.0 is requested. Is it done deliberately, or shall it also be ok to use 2.2.0?
2) If I build with NetCDF 4.3.2 by adding
to the configure script above, all fast tests fail because the number of lines is different, i.e.
when I compare the two, the "blessed" output has "chkinp: Checking input parameters for consistency." whereas
current output does not have this. It seems to have everything to do with NetCDF...
p.s. Here is the result of otool for the case without netcdf
so at least it did not link against osx blas/lapack
I would like to add Abinit to Homebrew (a package manager similar to MacPorts).
The current attempt is in this pull request: https://github.com/Homebrew/homebrew-science/pull/1757
The file is human readable so if there are any suggestions/advices regarding the way Abinit is built, please, let me know.
The configure for which no fast test fail is:
Code: Select all
./configure
CC=/usr/local/bin/mpicc
CXX=/usr/local/bin/mpicxx
F77=/usr/local/bin/mpif77
FC=/usr/local/bin/mpif90
--prefix=/usr/local/Cellar/abinit/7.10.2
--enable-mpi=yes
--with-mpi-prefix=/usr/local/opt/open-mpi
--enable-optim=safe
--enable-openmp=no
--enable-gw-dpc
--with-linalg-flavor=custom
--with-linalg-libs=-L/usr/local/opt/veclibfort/lib -lveclibfort
--with-math-flavor=gsl
--with-math-incs=-I/usr/local/opt/gsl/include
--with-math-libs=-L/usr/local/opt/gsl/lib -lgsl
--with-fft-flavor=fftw3
--with-fft-incs=-I/usr/local/opt/fftw/include
--with-fft-libs=-L/usr/local/opt/fftw/lib -lfftw3 -lfftw3f -lfftw3_mpi -lfftw3f_mpi
While configuring / compiling / running tests, I faced two issues :
1) Abinit does not want to pick up Libxc 2.2.0. Configure complains that 2.0 is requested. Is it done deliberately, or shall it also be ok to use 2.2.0?
2) If I build with NetCDF 4.3.2 by adding
Code: Select all
--with-trio-flavor=netcdf
--with-netcdf-incs=-I/usr/local/opt/netcdf/include
--with-netcdf-libs=-L/usr/local/opt/netcdf/lib -lnetcdff -lnetcdf
to the configure script above, all fast tests fail because the number of lines is different, i.e.
Code: Select all
returned exit_code: 14
[fast][t00][np=1]: fldiff.pl fatal error:
The diff analysis cannot be done: the number of lines to be analysed differ.
File /Users/davydden/Downloads/abinit-7.10.2/tests/fast/Refs/t00.out: 110 lines, 35 ignored
File /Users/davydden/Downloads/abinit-7.10.2/tests/Test_suite/fast_t00/t00.out: 109 lines, 35 ignored
[fast][t00][np=1]Test was not expected to fail but subrocesses returned 14
#0 0x1115bf4f2
#1 0x10ccc3663
#2 0x10c786035
#3 0x10bea4a8a
#4 0x10cd06e4e
when I compare the two, the "blessed" output has "chkinp: Checking input parameters for consistency." whereas
current output does not have this. It seems to have everything to do with NetCDF...
p.s. Here is the result of otool for the case without netcdf
Code: Select all
otool -L /usr/local/Cellar/abinit/7.10.2/bin/abinit
/usr/local/Cellar/abinit/7.10.2/bin/abinit:
/usr/local/lib/libfftw3.3.dylib (compatibility version 8.0.0, current version 8.4.0)
/usr/local/lib/libfftw3f.3.dylib (compatibility version 8.0.0, current version 8.4.0)
/usr/local/lib/libfftw3_mpi.3.dylib (compatibility version 8.0.0, current version 8.4.0)
/usr/local/lib/libfftw3f_mpi.3.dylib (compatibility version 8.0.0, current version 8.4.0)
/usr/local/lib/libgsl.0.dylib (compatibility version 18.0.0, current version 18.0.0)
/usr/local/lib/libvecLibFort.dylib (compatibility version 0.0.0, current version 0.0.0)
/usr/local/lib/libmpi_usempif08.0.dylib (compatibility version 7.0.0, current version 7.0.0)
/usr/local/lib/libmpi_mpifh.2.dylib (compatibility version 8.0.0, current version 8.0.0)
/usr/local/lib/libmpi.1.dylib (compatibility version 8.0.0, current version 8.0.0)
/usr/local/lib/gcc/4.9/libgfortran.3.dylib (compatibility version 4.0.0, current version 4.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1213.0.0)
/usr/local/lib/gcc/4.9/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)
/usr/local/lib/gcc/4.9/libquadmath.0.dylib (compatibility version 1.0.0, current version 1.0.0)
so at least it did not link against osx blas/lapack