charmplusplus / charm4py

Parallel Programming with Python and Charm++
https://charm4py.readthedocs.io
Apache License 2.0
289 stars 21 forks source link

Failure to install on macOS Catalina #219

Open marcpaterno opened 2 years ago

marcpaterno commented 2 years ago

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

ZwFink commented 2 years ago

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.

marcpaterno commented 2 years ago

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.