Skip to content

[Compilation on macOS] Unidentified CXX compiler version #24

@alchem0x2A

Description

@alchem0x2A

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions