VASP 6.4.1 installation issues with HDF5

Questions regarding the compilation of VASP on various platforms: hardware, compilers and libraries, etc.


Moderators: Global Moderator, Moderator

Post Reply
Message
Author
michael_walkup
Newbie
Newbie
Posts: 10
Joined: Tue Jun 18, 2024 8:25 pm

VASP 6.4.1 installation issues with HDF5

#1 Post by michael_walkup » Fri Jul 05, 2024 7:57 pm

I’m trying to install VASP 6.4.1 with HDF5. In Ubuntu 24.04, I use:

Code: Select all

module purge
module load intel/2018a
./configure --prefix=/home/username/hdf5/hdf5-1.14.4-2 --with-zlib=/home/username/hdf5/zlib-1.3.1 CC=mpiicc FC=mpiifort CCX=mpiicpc --enable-fortran --enable-shared --build=x86_64 --enable-parallel
make
make install
and then in my VASP directory:

Code: Select all

make all
and I receive hundreds of lines of undefined references:

Code: Select all

ld: warning: libhdf5.so.8, needed by /lib/../lib64/libhdf5_fortran.so, may conflict with libhdf5.so.311
vhdf5_base.o: In function `vhdf5_base_mp_get_dimensions_':
vhdf5_base.f90:(.text+0x105): undefined reference to `h5d_mp_h5dopen_f_'
vhdf5_base.f90:(.text+0x127): undefined reference to `h5d_mp_h5dget_space_f_'
vhdf5_base.f90:(.text+0x149): undefined reference to `h5s_mp_h5sget_simple_extent_dims_f_'
vhdf5_base.f90:(.text+0x23b): undefined reference to `h5l_mp_h5lexists_f_'
vhdf5_base.f90:(.text+0x599): undefined reference to `h5l_mp_h5lexists_f_'
...
What am I configuring wrong that makes HDF5 unable to supply VASP with libhdf5.so.8?

alexey.tal
Global Moderator
Global Moderator
Posts: 314
Joined: Mon Sep 13, 2021 12:45 pm

Re: VASP 6.4.1 installation issues with HDF5

#2 Post by alexey.tal » Mon Jul 08, 2024 9:21 am

Dear Michael,

We have a comprehensive guide on how to install VASP in Ubuntu here.

michael_walkup
Newbie
Newbie
Posts: 10
Joined: Tue Jun 18, 2024 8:25 pm

Re: VASP 6.4.1 installation issues with HDF5

#3 Post by michael_walkup » Mon Jul 08, 2024 6:17 pm

Thank you for the guide. I used 22.04 and followed the appropriate instructions, but upon installation using "make DEPS=1 -j", I ran into an error.

Code: Select all

bash: mpif90: command not found
I am using ssh to log into and install the software into the supercomputer here, so I wonder if the default instructions don't apply.

alexey.tal
Global Moderator
Global Moderator
Posts: 314
Joined: Mon Sep 13, 2021 12:45 pm

Re: VASP 6.4.1 installation issues with HDF5

#4 Post by alexey.tal » Mon Jul 08, 2024 6:30 pm

This error means that mpif90 is not found in your environment. You should make sure that you have openmpi installed.

michael_walkup
Newbie
Newbie
Posts: 10
Joined: Tue Jun 18, 2024 8:25 pm

Re: VASP 6.4.1 installation issues with HDF5

#5 Post by michael_walkup » Mon Jul 08, 2024 6:50 pm

I've checked and there are OpenMPI installations from version 1.4.5 up to 4.1.5. Is there some way I need to specify a version or location when compiling VASP?

michael_walkup
Newbie
Newbie
Posts: 10
Joined: Tue Jun 18, 2024 8:25 pm

Re: VASP 6.4.1 installation issues with HDF5

#6 Post by michael_walkup » Mon Jul 08, 2024 8:36 pm

I have located the directory containing mpif90 and modified the INCS option under HDF5-support in the makefile.include. I then ran into an error:

Code: Select all

ml_ff_string.F:384.12:

        use ieee_arithmetic, only: ieee_is_normal
            1
Fatal Error: Can't open module file 'ieee_arithmetic.mod' for reading at (1): No such file or directory
so I updated makefile.include by adding an INCS line to have the directory containing the module files. Now I'm getting an error:

Code: Select all

ml_ff_c2f_interface.F:2.8:

    use iso_c_binding
        1
Fatal Error: File 'iso_c_binding.mod' opened at (1) is not a GNU Fortran module file
and I am completely stumped. Attached is the makefile.
You do not have the required permissions to view the files attached to this post.

alexey.tal
Global Moderator
Global Moderator
Posts: 314
Joined: Mon Sep 13, 2021 12:45 pm

Re: VASP 6.4.1 installation issues with HDF5

#7 Post by alexey.tal » Tue Jul 09, 2024 12:15 pm

This error has been discussed on the forum previously. Please see here.

Post Reply