wannier90 icon indicating copy to clipboard operation
wannier90 copied to clipboard

Development branch compilation error Cannot rename module file ‘w90_constants.mod0’ to ‘w90_constants.mod’: No such file or directory

Open deKeijzer opened this issue 6 months ago • 0 comments

Issue #496 led me to attempt to compile Wannier90 from the development branch. When doing so I get the following error

f951: Fatal Error: Cannot rename module file ‘w90_constants.mod0’ to ‘w90_constants.mod’: No such file or directory

when running the compilation on an AMD bases system with

#!/bin/bash

# ---------------------------------------- VARIABLES ------------------------------------  
W90_REPO="[email protected]:wannier-developers/wannier90.git"

W90SNELLIUS_DIR="${HOME}/QESnellius"
W90_COMPILE_NAME="wannier90_cpu"

# Remove any existing compiled code directory
rm -rf ${W90SNELLIUS_DIR}/compiled_codes/${W90_COMPILE_NAME}/*
rm -rf ${W90SNELLIUS_DIR}/setup/wannier90-*
rm -rf ${W90SNELLIUS_DIR}/setup/${W90_COMPILE_NAME}

# Load required modules
module purge
module load 2023
module load GCC/12.3.0              # Load GCC compiler
module load OpenMPI/4.1.5-GCC-12.3.0  # Load MPI library
module load OpenBLAS/0.3.23-GCC-12.3.0 # Load BLAS/LAPACK
module load Python/3.11.3-GCCcore-12.3.0 

echo "-------------------------------------------------------------------------------- Compiling Wannier90 -----"
# Clone Wannier90 repository
rm -rf ${W90_COMPILE_NAME}
git clone ${W90_REPO} ${W90_COMPILE_NAME}
cd ${W90_COMPILE_NAME}

# Create the make.inc file with the specified configuration
cat > make.inc << EOF
F90 = gfortran

COMMS  = mpi
MPIF90 = mpif90

FCOPTS = -O3
LDOPTS =

LIBDIR = \$(EBROOTOPENBLAS)/lib
LIBS = -L\$(LIBDIR) -lopenblas
EOF

make -j 64 default

Is this a bug in the development branch, or is it from my end? Which version is recommended to be used since #496 is still present in the latest stable release?

deKeijzer avatar Aug 21 '24 10:08 deKeijzer