Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
deKeijzer opened this issue Aug 21, 2024 · 1 comment · May be fixed by #527
Milestone

Comments

@deKeijzer
Copy link

deKeijzer commented Aug 21, 2024

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?

@mathunje
Copy link

mathunje commented Dec 4, 2024

If you run make single threaded everything should work fine.

@jryates jryates linked a pull request Jan 11, 2025 that will close this issue
@jryates jryates added this to the v4.0 milestone Jan 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants