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 on macOS] Unidentified CXX compiler version #24

Open
alchem0x2A opened this issue Apr 27, 2020 · 0 comments
Open

[Compilation on macOS] Unidentified CXX compiler version #24

alchem0x2A opened this issue Apr 27, 2020 · 0 comments

Comments

@alchem0x2A
Copy link

I would like to report some testings on macOS. Following the installation guides to install KMCLib via clang + MPI on macOS 10.15 throws unsupported compiler error.

Steps to reproduce

  • System: macOS 10.15, AppleClang 11.0 (Clang 3.9)
  • MPI version: open-mpi 4.0.3 based on clang-3.9 (distributed via Homebrew)
    -Running command under the c++/build directory:
CC=clang CXX="clang++ -stdlib=libc++" cmake -DMPI=mpicxx ..
  • Error message:
CMake Error at CMakeLists.txt:103 (message):
  Invalid CXX compiler.  Only g++, Intel and Clang supported

Possible causes

The newest version of open-mpi based on clang is recognized as System CXX compiler with MPI wrapping by CMake, which makes the rules in CMakeLists invalid.

Possible solutions

Update CMakeLists.txt so that when user puts CXX=mpicxx it can automatically recognise the MPI option.

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