charm4py icon indicating copy to clipboard operation
charm4py copied to clipboard

Failure to install on macOS Catalina

Open marcpaterno opened this issue 4 years ago • 2 comments

I am encountering an installation failure on macOS Catalina. I have the most recent version of Apple’s compiler suite, as well as OpenMPI 4.1.1_2 (installed through Homebrew). I have Python 3.9.8 (also installed through Homebrew). I did the pip installation in a newly-created virtual environment, into which I had already install numpy (1.21.4), cython (0.29.24), greenlet (1.1.2) and wheel (0.37.0).

The complaint at the end of the installation (full log is appended to this submission) says “Cannot link C++ programs with mlicxx”. I have verified that mpicxx can, in fact, compile and link a simple MPI program. charm4py-install.log

marcpaterno avatar Nov 16 '21 19:11 marcpaterno

Hi Marc, As a debug step, can you attempt to install Charm4Py without the MPI backend enabled? It would help confirm a suspicion I have regarding the build system.

ZwFink avatar Nov 19 '21 15:11 ZwFink

I have tried again, on the same machine with the same setup. This time my installation command was:

python3 -m pip install charm4py --no-binary charm4py

The installation now makes it further, but still fails while compiling charm4py/charmlib/charmlib_cython.c. I have attached the complete log to this messag charm4py-install.log e.

marcpaterno avatar Nov 19 '21 17:11 marcpaterno