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

Compilation fails on Archer2 UK system #749

Closed
ctc1822 opened this issue Jan 10, 2024 · 7 comments
Closed

Compilation fails on Archer2 UK system #749

ctc1822 opened this issue Jan 10, 2024 · 7 comments

Comments

@ctc1822
Copy link

ctc1822 commented Jan 10, 2024

I was trying to compile dbcsr-2.1.0 on Archer2, which uses the HPE cray environment.
When I followed the steps on installation https://cp2k.github.io/dbcsr/develop/page/2-user-guide/1-installation/index.html,
mkdir build
cd build
cmake ..
make

the compilation failed with the error
Error: Type mismatch between actual argument at (1) and actual argument at (2) (CHARACTER(*)/COMPLEX(4)).

I was hoping to fix it with the Fortran flag -fallow-argument-mismatch. But I am not sure where or how to add this flag. Where should I do this?

Many thanks for your help.

Best regards,
Christopher

@alazzaro
Copy link
Member

Why the 2.1 version? This problem was fixed in a more recent release...

@ctc1822
Copy link
Author

ctc1822 commented Jan 10, 2024

Thanks a lot for your reply.

Archer2's cmake version is 3.20.4, which is below the required 3.22 in the recent releases.

Are there fixes I can do so that I can install 2.1 with an older version of cmake?

@alazzaro
Copy link
Member

Well, frankly speaking, I don't remember, 2.1 is > 3 years old...
I would suggest to update cmake on your local directory, e.g.

CMAKE_VERSION=3.25.1
wget https://github.com/Kitware/CMake/releases/download/v${CMAKE_VERSION}/cmake-${CMAKE_VERSION}-Linux-x86_64.sh
mkdir -p cmake_install
sh cmake-${CMAKE_VERSION}-Linux-x86_64.sh --prefix=$PWD/cmake_install --skip-license
rm -f cmake-${CMAKE_VERSION}-Linux-x86_64.sh
export PATH=$PWD/cmake_install/bin:$PATH

@aproeme
Copy link

aproeme commented Jan 10, 2024

As member of the ARCHER2 support team, I might suggest that you could very reasonably request a more recent version of cmake be centrally installed on ARCHER2 by contacting the service desk (support@archer2.ac.uk) - cmake 3.21.3 is the most recent version available as a centrally installed module.

Meanwhile, you could use a (centrally unsupported) install of cmake 3.27.7 located at:

/home/z19/shared/cmake/3.27.7

@ctc1822
Copy link
Author

ctc1822 commented Jan 11, 2024

Thanks for the comments. I will try out cmake 3.27.

@ctc1822
Copy link
Author

ctc1822 commented Jan 11, 2024

I have installed the latest DBCSR using a local cmake-3.28. Thanks a lot!

@alazzaro
Copy link
Member

You are welcome!

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

No branches or pull requests

3 participants