NetCDF Fortran is not WORKING in 9.0.4

option, parallelism,...

Moderators: jbeuken, Jordan, pouillon

Forum rules
Please have a look at ~abinit/doc/config/build-config.ac in the source package for detailed and up-to-date information about the configuration of Abinit 8 builds.
For a video explanation on how to build Abinit 7.x for Linux, please go to: http://www.youtube.com/watch?v=DppLQ-KQA68.
IMPORTANT: when an answer solves your problem, please check the little green V-like button on its upper-right corner to accept it.
Post Reply
kila
Posts: 1
Joined: Wed May 27, 2020 5:49 pm

NetCDF Fortran is not WORKING in 9.0.4

Post by kila » Wed May 27, 2020 6:07 pm

My netCDF Fortran is built by build-abinit-fallbacks.sh and I set it's dir by:

Code: Select all

./configure --with-libxc=/home/kila/abinit-9.0.4/fallbacks/install_fb/gnu/9.3/libxc/4.2.3 --with-hdf5=/home/kila/abinit-9.0.4/fallbacks/install_fb/gnu/9.3/hdf5/1.10.6 --with-netcdf=/home/kila/abinit-9.0.4/fallbacks/install_fb/gnu/9.3/netcdf4/4.6.3 --with-netcdf-fortran=/home/kila/abinit-9.0.4/fallbacks/install_fb/gnu/9.3/netcdf4_fortran/4.5.2 --with-linalg=/home/kila/abinit-9.0.4/fallbacks/install_fb/gnu/9.3/linalg/abinit_6.10
One can see that --with-netcdf-fortran is set to fallbacks directory. And libnetcdff.a, libnetcdff.la are indeed seen in that dir.

By when I use ./configure there is an error:

Code: Select all

WARNING : NetCDF Fortran is not WORKING !
Please point the config to a working NetCDFF installation

User avatar
jbeuken
Posts: 346
Joined: Tue Aug 18, 2009 9:24 pm
Contact:

Re: NetCDF Fortran is not WORKING in 9.0.4

Post by jbeuken » Sun May 31, 2020 4:10 pm

Hi,
need infos like config.log...
but, perhaps, a problem of depencies ( missing libs )

job
------
Jean-Michel Beuken
Computer Scientist

Beta_Wong
Posts: 1
Joined: Thu Aug 20, 2020 3:35 am

Re: NetCDF Fortran is not WORKING in 9.0.4

Post by Beta_Wong » Thu Aug 20, 2020 4:31 am

jbeuken wrote:
Sun May 31, 2020 4:10 pm
Hi,
need infos like config.log...
but, perhaps, a problem of depencies ( missing libs )

job
I have the same erro with kila's,this is how I ./configure:

Code: Select all

../configure --with-mpi=/public1/soft/mpich/3.1.4 --with-linalg=/public1/soft/intel/2018/compilers_and_libraries_2018.2.199/linux/mkl --with-hdf5=/public1/home/sc30842/tarballs/hdf5-install --with-libxc=/public1/soft/libxc/4.0.5-icc18 --with-netcdf=/public1/home/sc30842/tarballs/netcdf-install --with-netcdf-fortran=/public1/home/sc30842/tarballs/netcdf-install --prefix=/public1/home/sc30842/abinit-install CC=mpiicc CXX=mpiicpc FC=mpiifort F77=mpiifort
the attachment is my config.log. Any help on this would be appreciated.
Attachments
config.log
(186.79 KiB) Downloaded 7 times

User avatar
jbeuken
Posts: 346
Joined: Tue Aug 18, 2009 9:24 pm
Contact:

Re: NetCDF Fortran is not WORKING in 9.0.4

Post by jbeuken » Thu Aug 20, 2020 3:51 pm

Hi,

your configure command reformatted for readability ;-)

Code: Select all

CC=mpiicc CXX=mpiicpc FC=mpiifort F77=mpiifort \
../configure \
--with-mpi=/public1/soft/mpich/3.1.4 \
--with-linalg=/public1/soft/intel/2018/compilers_and_libraries_2018.2.199/linux/mkl \
--with-hdf5=/public1/home/sc30842/tarballs/hdf5-install \
--with-libxc=/public1/soft/libxc/4.0.5-icc18 \
--with-netcdf=/public1/home/sc30842/tarballs/netcdf-install \
--with-netcdf-fortran=/public1/home/sc30842/tarballs/netcdf-install \
--prefix=/public1/home/sc30842/abinit-install
I don't understand why you initialize "--with-mpi" with MPICH 3.1.4
when you manifestly have the "Intel® MPI Library" ( FC=mpiifort ) ?

To be sure, pls, the outputs of these cmds :

Code: Select all

mpifort --version
mpifort -show
mpiifort -V
mpiifort -show
concerning netcdf-fortran, can you show the outputs of these cmds :

Code: Select all

nc-config --all
nf-config --all
ls /public1/home/sc30842/tarballs/netcdf-install/lib

can you try with this config.ac file

Code: Select all

FC="mpiifort"
CC="mpiicc"
CXX="mpiicpc"

with_mpi="yes"
enable_mpi_io="yes"

with_linalg_flavor="mkl"
LINALG_CPPFLAGS="-I${MKLROOT}/include"
LINALG_FCFLAGS="-I${MKLROOT}/include"
LINALG_LIBS="-L${MKLROOT}/lib/intel64 -Wl,--start-group  -lmkl_intel_lp64 -lmkl_sequential -lmkl_core -Wl,--end-group"

with_fft_flavor="dfti"

with_libxc="/public1/soft/libxc/4.0.5-icc18"
with_hdf5="/public1/home/sc30842/tarballs/hdf5-install "
with_netcdf="/public1/home/sc30842/tarballs/netcdf-install"
with_netcdf_fortran="/public1/home/sc30842/tarballs/netcdf-install"
and execute this command ?

Code: Select all

./configure --with-config-file="./config.ac"
------
Jean-Michel Beuken
Computer Scientist

Post Reply