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

Build fails due to CMake 3.28 identifying Cray PE as 'CrayClang' #3842

Open
cdm-work opened this issue Oct 3, 2024 · 0 comments
Open

Build fails due to CMake 3.28 identifying Cray PE as 'CrayClang' #3842

cdm-work opened this issue Oct 3, 2024 · 0 comments

Comments

@cdm-work
Copy link

cdm-work commented Oct 3, 2024

Attempting to build Charm on a system with CMake version 3.28.3, with the Cray programming environment, the cmake .. command fails to configure the environment. It reports this in the output:

...
-- Found OpenMP_C: -openmp (found version "5.1") 
-- Found OpenMP_CXX: -openmp (found version "5.1") 
-- Found OpenMP: TRUE (found version "5.1")  
CMake Error at CMakeLists.txt:62 (message):
   Unknown compiler CrayClang

-- Configuring incomplete, errors occurred!

Reviewing the CMake documentation, it would appear that this new detection was added with CMake 3.28. And it's pretty clear in the CMakeLists.txt that it does not expect this value for CMAKE_CXX_COMPILER_ID.

The attached patch file seems to resolve the issue.
patch-CMakeLists.txt

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

1 participant