For building VASP version 6, please review building VASP 6 on Caviness/DARWIN documentation. Please see VASP: Dynamic MPI_BLOCK patch: a patch to VASP to make MPI_BLOCK configurable via an environment variable.