Installation issue with ICC on mac

Issue #84 resolved
kliegeois created an issue

Hello,

I would like to use mpi4py on macOS High Sierra using the Intel compiler icc (ICC) 18.0.1 20171018, and the Intel Python distribution Python 2.7.13 |Intel Corporation| (default, Apr 27 2017, 16:57:48).

I am currently trying to install mpi4py on my mac. Previously, I achieved to install it in a standard way by brewing openmpi and install mpi4py with:

$ pip install --user mpi4py

However, this installation was not enough for me as the mpicc and mpic++ was based on clang and not on the Intel compiler. Therefore, I restarted by building openMPI 3.0.0 with the configuration

$ ./configure --prefix="/Users/kliegeois/local/openMPI" CC=icc CXX=icpc F77=ifort FC=ifort

After

$ make
$ make install

(and modifying my .profile), I was able to build and run both .c and .cpp codes that use MPI. It seems that openMPI was correctly installed as:

$ which mpicc
/Users/kliegeois/local/openMPI/bin//mpicc
$ which mpic++
/Users/kliegeois/local/openMPI/bin//mpic++
$ mpicc --version
icc (ICC) 18.0.1 20171018
$ which mpirun
/Users/kliegeois/local/openMPI/bin//mpirun

$ mpicc helloworld.c
$ mpirun -np 4 ./a.out
Hello world from processor MacBook-Pro-de-Kim.local, rank 3 out of 4 processors
Hello world from processor MacBook-Pro-de-Kim.local, rank 1 out of 4 processors
Hello world from processor MacBook-Pro-de-Kim.local, rank 2 out of 4 processors
Hello world from processor MacBook-Pro-de-Kim.local, rank 0 out of 4 processors

However, when I have tried to install mpi4py, I had the following output

$ pip install --user mpi4py
Collecting mpi4py
  Using cached mpi4py-3.0.0.tar.gz
Building wheels for collected packages: mpi4py
  Running setup.py bdist_wheel for mpi4py ... error
  Complete output from command /opt/intel/intelpython2/bin/python -u -c "import setuptools, tokenize;__file__='/private/var/folders/21/m08kk4sd0m9_kkvws8bx83wc0000gn/T/pip-build-5wiNC1/mpi4py/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /var/folders/21/m08kk4sd0m9_kkvws8bx83wc0000gn/T/tmpMT1ilzpip-wheel- --python-tag cp27:
  running bdist_wheel
  running build
  running build_src
  running build_py
  creating build
  creating build/lib.macosx-10.6-x86_64-2.7
  creating build/lib.macosx-10.6-x86_64-2.7/mpi4py
  copying src/mpi4py/run.py -> build/lib.macosx-10.6-x86_64-2.7/mpi4py
  copying src/mpi4py/__init__.py -> build/lib.macosx-10.6-x86_64-2.7/mpi4py
  copying src/mpi4py/bench.py -> build/lib.macosx-10.6-x86_64-2.7/mpi4py
  copying src/mpi4py/__main__.py -> build/lib.macosx-10.6-x86_64-2.7/mpi4py
  creating build/lib.macosx-10.6-x86_64-2.7/mpi4py/futures
  copying src/mpi4py/futures/_base.py -> build/lib.macosx-10.6-x86_64-2.7/mpi4py/futures
  copying src/mpi4py/futures/server.py -> build/lib.macosx-10.6-x86_64-2.7/mpi4py/futures
  copying src/mpi4py/futures/__init__.py -> build/lib.macosx-10.6-x86_64-2.7/mpi4py/futures
  copying src/mpi4py/futures/pool.py -> build/lib.macosx-10.6-x86_64-2.7/mpi4py/futures
  copying src/mpi4py/futures/aplus.py -> build/lib.macosx-10.6-x86_64-2.7/mpi4py/futures
  copying src/mpi4py/futures/__main__.py -> build/lib.macosx-10.6-x86_64-2.7/mpi4py/futures
  copying src/mpi4py/futures/_lib.py -> build/lib.macosx-10.6-x86_64-2.7/mpi4py/futures
  copying src/mpi4py/__init__.pxd -> build/lib.macosx-10.6-x86_64-2.7/mpi4py
  copying src/mpi4py/libmpi.pxd -> build/lib.macosx-10.6-x86_64-2.7/mpi4py
  copying src/mpi4py/MPI.pxd -> build/lib.macosx-10.6-x86_64-2.7/mpi4py
  creating build/lib.macosx-10.6-x86_64-2.7/mpi4py/include
  creating build/lib.macosx-10.6-x86_64-2.7/mpi4py/include/mpi4py
  copying src/mpi4py/include/mpi4py/mpi4py.MPI.h -> build/lib.macosx-10.6-x86_64-2.7/mpi4py/include/mpi4py
  copying src/mpi4py/include/mpi4py/mpi4py.MPI_api.h -> build/lib.macosx-10.6-x86_64-2.7/mpi4py/include/mpi4py
  copying src/mpi4py/include/mpi4py/mpi4py.h -> build/lib.macosx-10.6-x86_64-2.7/mpi4py/include/mpi4py
  copying src/mpi4py/include/mpi4py/mpi4py.i -> build/lib.macosx-10.6-x86_64-2.7/mpi4py/include/mpi4py
  copying src/mpi4py/include/mpi4py/mpi.pxi -> build/lib.macosx-10.6-x86_64-2.7/mpi4py/include/mpi4py
  running build_clib
  MPI configuration: [mpi] from 'mpi.cfg'
  MPI C compiler:    /Users/kliegeois/local/openMPI/bin/mpicc
  MPI C++ compiler:  /Users/kliegeois/local/openMPI/bin/mpicxx
  MPI F compiler:    /Users/kliegeois/local/openMPI/bin/mpifort
  MPI F90 compiler:  /Users/kliegeois/local/openMPI/bin/mpif90
  MPI F77 compiler:  /Users/kliegeois/local/openMPI/bin/mpif77
  checking for library 'lmpe' ...
  /Users/kliegeois/local/openMPI/bin/mpicc -fno-strict-aliasing -I/opt/intel/intelpython2/include -arch x86_64 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -c _configtest.c -o _configtest.o
  /Users/kliegeois/local/openMPI/bin/mpicc -flat_namespace -undefined suppress -arch x86_64 _configtest.o -llmpe -o _configtest
  ld: library not found for -llmpe
  failure.
  removing: _configtest.c _configtest.o
  building 'mpe' dylib library
  creating build/temp.macosx-10.6-x86_64-2.7
  creating build/temp.macosx-10.6-x86_64-2.7/src
  creating build/temp.macosx-10.6-x86_64-2.7/src/lib-pmpi
  /Users/kliegeois/local/openMPI/bin/mpicc -fno-strict-aliasing -I/opt/intel/intelpython2/include -arch x86_64 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -c src/lib-pmpi/mpe.c -o build/temp.macosx-10.6-x86_64-2.7/src/lib-pmpi/mpe.o
  creating build/lib.macosx-10.6-x86_64-2.7/mpi4py/lib-pmpi
  /Users/kliegeois/local/openMPI/bin/mpicc -shared -undefined dynamic_lookup -L/opt/intel/intelpython2/lib -arch x86_64 -arch x86_64 -install_name libmpe.dylib build/temp.macosx-10.6-x86_64-2.7/src/lib-pmpi/mpe.o -o build/lib.macosx-10.6-x86_64-2.7/mpi4py/lib-pmpi/libmpe.dylib
  checking for library 'vt-mpi' ...
  /Users/kliegeois/local/openMPI/bin/mpicc -fno-strict-aliasing -I/opt/intel/intelpython2/include -arch x86_64 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -c _configtest.c -o _configtest.o
  /Users/kliegeois/local/openMPI/bin/mpicc -flat_namespace -undefined suppress -arch x86_64 _configtest.o -lvt-mpi -o _configtest
  ld: library not found for -lvt-mpi
  failure.
  removing: _configtest.c _configtest.o
  checking for library 'vt.mpi' ...
  /Users/kliegeois/local/openMPI/bin/mpicc -fno-strict-aliasing -I/opt/intel/intelpython2/include -arch x86_64 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -c _configtest.c -o _configtest.o
  /Users/kliegeois/local/openMPI/bin/mpicc -flat_namespace -undefined suppress -arch x86_64 _configtest.o -lvt.mpi -o _configtest
  ld: library not found for -lvt.mpi
  failure.
  removing: _configtest.c _configtest.o
  building 'vt' dylib library
  /Users/kliegeois/local/openMPI/bin/mpicc -fno-strict-aliasing -I/opt/intel/intelpython2/include -arch x86_64 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -c src/lib-pmpi/vt.c -o build/temp.macosx-10.6-x86_64-2.7/src/lib-pmpi/vt.o
  /Users/kliegeois/local/openMPI/bin/mpicc -shared -undefined dynamic_lookup -L/opt/intel/intelpython2/lib -arch x86_64 -arch x86_64 -install_name libvt.dylib build/temp.macosx-10.6-x86_64-2.7/src/lib-pmpi/vt.o -o build/lib.macosx-10.6-x86_64-2.7/mpi4py/lib-pmpi/libvt.dylib
  checking for library 'vt-mpi' ...
  /Users/kliegeois/local/openMPI/bin/mpicc -fno-strict-aliasing -I/opt/intel/intelpython2/include -arch x86_64 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -c _configtest.c -o _configtest.o
  /Users/kliegeois/local/openMPI/bin/mpicc -flat_namespace -undefined suppress -arch x86_64 _configtest.o -lvt-mpi -o _configtest
  ld: library not found for -lvt-mpi
  failure.
  removing: _configtest.c _configtest.o
  checking for library 'vt.mpi' ...
  /Users/kliegeois/local/openMPI/bin/mpicc -fno-strict-aliasing -I/opt/intel/intelpython2/include -arch x86_64 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -c _configtest.c -o _configtest.o
  /Users/kliegeois/local/openMPI/bin/mpicc -flat_namespace -undefined suppress -arch x86_64 _configtest.o -lvt.mpi -o _configtest
  ld: library not found for -lvt.mpi
  failure.
  removing: _configtest.c _configtest.o
  building 'vt-mpi' dylib library
  /Users/kliegeois/local/openMPI/bin/mpicc -fno-strict-aliasing -I/opt/intel/intelpython2/include -arch x86_64 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -c src/lib-pmpi/vt-mpi.c -o build/temp.macosx-10.6-x86_64-2.7/src/lib-pmpi/vt-mpi.o
  /Users/kliegeois/local/openMPI/bin/mpicc -shared -undefined dynamic_lookup -L/opt/intel/intelpython2/lib -arch x86_64 -arch x86_64 -install_name libvt-mpi.dylib build/temp.macosx-10.6-x86_64-2.7/src/lib-pmpi/vt-mpi.o -o build/lib.macosx-10.6-x86_64-2.7/mpi4py/lib-pmpi/libvt-mpi.dylib
  checking for library 'vt-hyb' ...
  /Users/kliegeois/local/openMPI/bin/mpicc -fno-strict-aliasing -I/opt/intel/intelpython2/include -arch x86_64 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -c _configtest.c -o _configtest.o
  /Users/kliegeois/local/openMPI/bin/mpicc -flat_namespace -undefined suppress -arch x86_64 _configtest.o -lvt-hyb -o _configtest
  ld: library not found for -lvt-hyb
  failure.
  removing: _configtest.c _configtest.o
  checking for library 'vt.ompi' ...
  /Users/kliegeois/local/openMPI/bin/mpicc -fno-strict-aliasing -I/opt/intel/intelpython2/include -arch x86_64 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -c _configtest.c -o _configtest.o
  /Users/kliegeois/local/openMPI/bin/mpicc -flat_namespace -undefined suppress -arch x86_64 _configtest.o -lvt.ompi -o _configtest
  ld: library not found for -lvt.ompi
  failure.
  removing: _configtest.c _configtest.o
  building 'vt-hyb' dylib library
  /Users/kliegeois/local/openMPI/bin/mpicc -fno-strict-aliasing -I/opt/intel/intelpython2/include -arch x86_64 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -c src/lib-pmpi/vt-hyb.c -o build/temp.macosx-10.6-x86_64-2.7/src/lib-pmpi/vt-hyb.o
  /Users/kliegeois/local/openMPI/bin/mpicc -shared -undefined dynamic_lookup -L/opt/intel/intelpython2/lib -arch x86_64 -arch x86_64 -install_name libvt-hyb.dylib build/temp.macosx-10.6-x86_64-2.7/src/lib-pmpi/vt-hyb.o -o build/lib.macosx-10.6-x86_64-2.7/mpi4py/lib-pmpi/libvt-hyb.dylib
  running build_ext
  MPI configuration: [mpi] from 'mpi.cfg'
  MPI C compiler:    /Users/kliegeois/local/openMPI/bin/mpicc
  MPI C++ compiler:  /Users/kliegeois/local/openMPI/bin/mpicxx
  MPI F compiler:    /Users/kliegeois/local/openMPI/bin/mpifort
  MPI F90 compiler:  /Users/kliegeois/local/openMPI/bin/mpif90
  MPI F77 compiler:  /Users/kliegeois/local/openMPI/bin/mpif77
  checking for dlopen() availability ...
  checking for header 'dlfcn.h' ...
  gcc -fno-strict-aliasing -I/opt/intel/intelpython2/include -arch x86_64 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/opt/intel/intelpython2/include/python2.7 -c _configtest.c -o _configtest.o
  success!
  removing: _configtest.c _configtest.o
  success!
  checking for library 'dl' ...
  gcc -fno-strict-aliasing -I/opt/intel/intelpython2/include -arch x86_64 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/opt/intel/intelpython2/include/python2.7 -c _configtest.c -o _configtest.o
  gcc -flat_namespace -undefined suppress -arch x86_64 _configtest.o -L/opt/intel/intelpython2/lib -Lbuild/temp.macosx-10.6-x86_64-2.7 -ldl -o _configtest
  success!
  removing: _configtest.c _configtest.o _configtest
  checking for function 'dlopen' ...
  gcc -fno-strict-aliasing -I/opt/intel/intelpython2/include -arch x86_64 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/opt/intel/intelpython2/include/python2.7 -c _configtest.c -o _configtest.o
  gcc -arch x86_64 _configtest.o -L/opt/intel/intelpython2/lib -Lbuild/temp.macosx-10.6-x86_64-2.7 -ldl -o _configtest
  success!
  removing: _configtest.c _configtest.o _configtest
  building 'mpi4py.dl' extension
  gcc -fno-strict-aliasing -I/opt/intel/intelpython2/include -arch x86_64 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_DLFCN_H=1 -DHAVE_DLOPEN=1 -I/opt/intel/intelpython2/include/python2.7 -c src/dynload.c -o build/temp.macosx-10.6-x86_64-2.7/src/dynload.o
  gcc -bundle -undefined dynamic_lookup -L/opt/intel/intelpython2/lib -arch x86_64 -arch x86_64 build/temp.macosx-10.6-x86_64-2.7/src/dynload.o -L/opt/intel/intelpython2/lib -Lbuild/temp.macosx-10.6-x86_64-2.7 -ldl -o build/lib.macosx-10.6-x86_64-2.7/mpi4py/dl.so
  checking for MPI compile and link ...
  /Users/kliegeois/local/openMPI/bin/mpicc -fno-strict-aliasing -I/opt/intel/intelpython2/include -arch x86_64 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/opt/intel/intelpython2/include/python2.7 -c _configtest.c -o _configtest.o
  In file included from _configtest.c(2):
  /Users/kliegeois/local/openMPI/include/mpi.h(382): error: invalid argument to attribute "__deprecated__"
            __mpi_interface_deprecated__("MPI_Comm_errhandler_fn was deprecated in MPI-2.2; use MPI_Comm_errhandler_function instead");
            ^

  In file included from _configtest.c(2):
  /Users/kliegeois/local/openMPI/include/mpi.h(391): error: invalid argument to attribute "__deprecated__"
            __mpi_interface_deprecated__("MPI_File_errhandler_fn was deprecated in MPI-2.2; use MPI_File_errhandler_function instead");
            ^

  In file included from _configtest.c(2):
  /Users/kliegeois/local/openMPI/include/mpi.h(399): error: invalid argument to attribute "__deprecated__"
            __mpi_interface_deprecated__("MPI_Win_errhandler_fn was deprecated in MPI-2.2; use MPI_Win_errhandler_function instead");
            ^

  In file included from _configtest.c(2):
  /Users/kliegeois/local/openMPI/include/mpi.h(860): error: invalid argument to attribute "__deprecated__"
                                                 __mpi_interface_deprecated__("MPI_NULL_DELETE_FN is deprecated in MPI-2.0");
                                                 ^

  In file included from _configtest.c(2):
  /Users/kliegeois/local/openMPI/include/mpi.h(866): error: invalid argument to attribute "__deprecated__"
                                               __mpi_interface_deprecated__("MPI_NULL_COPY_FN is deprecated in MPI-2.0");
                                               ^

  In file included from _configtest.c(2):
  /Users/kliegeois/local/openMPI/include/mpi.h(872): error: invalid argument to attribute "__deprecated__"
                                         __mpi_interface_deprecated__("MPI_DUP_FN is deprecated in MPI-2.0");
                                         ^

  In file included from _configtest.c(2):
  /Users/kliegeois/local/openMPI/include/mpi.h(927): error: invalid argument to attribute "__deprecated__"
    OMPI_DECLSPEC extern struct ompi_predefined_datatype_t ompi_mpi_lb __mpi_interface_deprecated__("MPI_LB is deprecated in MPI-2.0");
                                                                       ^

  In file included from _configtest.c(2):
  /Users/kliegeois/local/openMPI/include/mpi.h(928): error: invalid argument to attribute "__deprecated__"
    OMPI_DECLSPEC extern struct ompi_predefined_datatype_t ompi_mpi_ub __mpi_interface_deprecated__("MPI_UB is deprecated in MPI-2.0");
                                                                       ^

  In file included from _configtest.c(2):
  /Users/kliegeois/local/openMPI/include/mpi.h(1202): error: invalid argument to attribute "__deprecated__"
                                   __mpi_interface_deprecated__("MPI_Address is superseded by MPI_Get_address in MPI-2.0");
                                   ^

  In file included from _configtest.c(2):
  /Users/kliegeois/local/openMPI/include/mpi.h(1240): error: invalid argument to attribute "__deprecated__"
                                       __mpi_interface_deprecated__("MPI_Attr_delete is superseded by MPI_Comm_delete_attr in MPI-2.0");
                                       ^

  In file included from _configtest.c(2):
  /Users/kliegeois/local/openMPI/include/mpi.h(1242): error: invalid argument to attribute "__deprecated__"
                                    __mpi_interface_deprecated__("MPI_Attr_get is superseded by MPI_Comm_get_attr in MPI-2.0");
                                    ^

  In file included from _configtest.c(2):
  /Users/kliegeois/local/openMPI/include/mpi.h(1244): error: invalid argument to attribute "__deprecated__"
                                    __mpi_interface_deprecated__("MPI_Attr_put is superseded by MPI_Comm_set_attr in MPI-2.0");
                                    ^

  In file included from _configtest.c(2):
  /Users/kliegeois/local/openMPI/include/mpi.h(1348): error: invalid argument to attribute "__deprecated__"
                                             __mpi_interface_deprecated__("MPI_Errhandler_create is superseded by MPI_Comm_create_errhandler in MPI-2.0");
                                             ^

  In file included from _configtest.c(2):
  /Users/kliegeois/local/openMPI/include/mpi.h(1352): error: invalid argument to attribute "__deprecated__"
                                          __mpi_interface_deprecated__("MPI_Errhandler_get is superseded by MPI_Comm_get_errhandler in MPI-2.0");
                                          ^

  In file included from _configtest.c(2):
  /Users/kliegeois/local/openMPI/include/mpi.h(1354): error: invalid argument to attribute "__deprecated__"
                                          __mpi_interface_deprecated__("MPI_Errhandler_set is superseded by MPI_Comm_set_errhandler in MPI-2.0");
                                          ^

  In file included from _configtest.c(2):
  /Users/kliegeois/local/openMPI/include/mpi.h(1571): error: invalid argument to attribute "__deprecated__"
                                         __mpi_interface_deprecated__("MPI_Keyval_create is superseded by MPI_Comm_create_keyval in MPI-2.0");
                                         ^

  In file included from _configtest.c(2):
  /Users/kliegeois/local/openMPI/include/mpi.h(1573): error: invalid argument to attribute "__deprecated__"
                                       __mpi_interface_deprecated__("MPI_Keyval_free is superseded by MPI_Comm_free_keyval in MPI-2.0");
                                       ^

  In file included from _configtest.c(2):
  /Users/kliegeois/local/openMPI/include/mpi.h(1776): error: invalid argument to attribute "__deprecated__"
                                       __mpi_interface_deprecated__("MPI_Type_extent is superseded by MPI_Type_get_extent in MPI-2.0");
                                       ^

  In file included from _configtest.c(2):
  /Users/kliegeois/local/openMPI/include/mpi.h(1803): error: invalid argument to attribute "__deprecated__"
                                         __mpi_interface_deprecated__("MPI_Type_hindexed is superseded by MPI_Type_create_hindexed in MPI-2.0");
                                         ^

  In file included from _configtest.c(2):
  /Users/kliegeois/local/openMPI/include/mpi.h(1806): error: invalid argument to attribute "__deprecated__"
                                        __mpi_interface_deprecated__("MPI_Type_hvector is superseded by MPI_Type_create_hvector in MPI-2.0");
                                        ^

  In file included from _configtest.c(2):
  /Users/kliegeois/local/openMPI/include/mpi.h(1811): error: invalid argument to attribute "__deprecated__"
                                   __mpi_interface_deprecated__("MPI_Type_lb is deprecated, use MPI_Type_get_extent in MPI-2.0");
                                   ^

  In file included from _configtest.c(2):
  /Users/kliegeois/local/openMPI/include/mpi.h(1822): error: invalid argument to attribute "__deprecated__"
                                       __mpi_interface_deprecated__("MPI_Type_struct is superseded by MPI_Type_create_struct in MPI-2.0");
                                       ^

  In file included from _configtest.c(2):
  /Users/kliegeois/local/openMPI/include/mpi.h(1824): error: invalid argument to attribute "__deprecated__"
                                   __mpi_interface_deprecated__("MPI_Type_ub is deprecated, use MPI_Type_get_extent in MPI-2.0");
                                   ^

  In file included from _configtest.c(2):
  /Users/kliegeois/local/openMPI/include/mpi.h(1902): error: invalid argument to attribute "__deprecated__"
                                    __mpi_interface_deprecated__("MPI_Address is superseded by MPI_Get_address in MPI-2.0");
                                    ^

  In file included from _configtest.c(2):
  /Users/kliegeois/local/openMPI/include/mpi.h(1940): error: invalid argument to attribute "__deprecated__"
                                        __mpi_interface_deprecated__("MPI_Attr_delete is superseded by MPI_Comm_delete_attr in MPI-2.0");
                                        ^

  In file included from _configtest.c(2):
  /Users/kliegeois/local/openMPI/include/mpi.h(1942): error: invalid argument to attribute "__deprecated__"
                                     __mpi_interface_deprecated__("MPI_Attr_get is superseded by MPI_Comm_get_attr in MPI-2.0");
                                     ^

  In file included from _configtest.c(2):
  /Users/kliegeois/local/openMPI/include/mpi.h(1965): error: invalid argument to attribute "__deprecated__"
                                     __mpi_interface_deprecated__("MPI_Attr_put is superseded by MPI_Comm_set_attr in MPI-2.0");
                                     ^

  In file included from _configtest.c(2):
  /Users/kliegeois/local/openMPI/include/mpi.h(2048): error: invalid argument to attribute "__deprecated__"
                                              __mpi_interface_deprecated__("MPI_Errhandler_create is superseded by MPI_Comm_create_errhandler in MPI-2.0");
                                              ^

  In file included from _configtest.c(2):
  /Users/kliegeois/local/openMPI/include/mpi.h(2052): error: invalid argument to attribute "__deprecated__"
                                           __mpi_interface_deprecated__("MPI_Errhandler_get is superseded by MPI_Comm_get_errhandler in MPI-2.0");
                                           ^

  In file included from _configtest.c(2):
  /Users/kliegeois/local/openMPI/include/mpi.h(2054): error: invalid argument to attribute "__deprecated__"
                                           __mpi_interface_deprecated__("MPI_Errhandler_set is superseded by MPI_Comm_set_errhandler in MPI-2.0");
                                           ^

  In file included from _configtest.c(2):
  /Users/kliegeois/local/openMPI/include/mpi.h(2273): error: invalid argument to attribute "__deprecated__"
                                          __mpi_interface_deprecated__("MPI_Keyval_create is superseded by MPI_Comm_create_keyval in MPI-2.0");
                                          ^

  In file included from _configtest.c(2):
  /Users/kliegeois/local/openMPI/include/mpi.h(2275): error: invalid argument to attribute "__deprecated__"
                                        __mpi_interface_deprecated__("MPI_Keyval_free is superseded by MPI_Comm_free_keyval in MPI-2.0");
                                        ^

  In file included from _configtest.c(2):
  /Users/kliegeois/local/openMPI/include/mpi.h(2477): error: invalid argument to attribute "__deprecated__"
                                        __mpi_interface_deprecated__("MPI_Type_extent is superseded by MPI_Type_get_extent in MPI-2.0");
                                        ^

  In file included from _configtest.c(2):
  /Users/kliegeois/local/openMPI/include/mpi.h(2504): error: invalid argument to attribute "__deprecated__"
                                          __mpi_interface_deprecated__("MPI_Type_hindexed is superseded by MPI_Type_create_hindexed in MPI-2.0");
                                          ^

  In file included from _configtest.c(2):
  /Users/kliegeois/local/openMPI/include/mpi.h(2507): error: invalid argument to attribute "__deprecated__"
                                         __mpi_interface_deprecated__("MPI_Type_hvector is superseded by MPI_Type_create_hvector in MPI-2.0");
                                         ^

  In file included from _configtest.c(2):
  /Users/kliegeois/local/openMPI/include/mpi.h(2512): error: invalid argument to attribute "__deprecated__"
                                    __mpi_interface_deprecated__("MPI_Type_lb is deprecated, use MPI_Type_get_extent in MPI-2.0");
                                    ^

  In file included from _configtest.c(2):
  /Users/kliegeois/local/openMPI/include/mpi.h(2523): error: invalid argument to attribute "__deprecated__"
                                        __mpi_interface_deprecated__("MPI_Type_struct is superseded by MPI_Type_create_struct in MPI-2.0");
                                        ^

  In file included from _configtest.c(2):
  /Users/kliegeois/local/openMPI/include/mpi.h(2525): error: invalid argument to attribute "__deprecated__"
                                    __mpi_interface_deprecated__("MPI_Type_ub is deprecated, use MPI_Type_get_extent in MPI-2.0");
                                    ^

  compilation aborted for _configtest.c (code 2)
  failure.
  removing: _configtest.c _configtest.o
  error: Cannot compile MPI programs. Check your configuration!!!

  ----------------------------------------
  Failed building wheel for mpi4py
  Running setup.py clean for mpi4py
Failed to build mpi4py
Installing collected packages: mpi4py
  Running setup.py install for mpi4py ... error
    Complete output from command /opt/intel/intelpython2/bin/python -u -c "import setuptools, tokenize;__file__='/private/var/folders/21/m08kk4sd0m9_kkvws8bx83wc0000gn/T/pip-build-5wiNC1/mpi4py/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /var/folders/21/m08kk4sd0m9_kkvws8bx83wc0000gn/T/pip-qyvbl1-record/install-record.txt --single-version-externally-managed --compile --user --prefix=:
    running install
    running build
    running build_src
    running build_py
    creating build
    creating build/lib.macosx-10.6-x86_64-2.7
    creating build/lib.macosx-10.6-x86_64-2.7/mpi4py
    copying src/mpi4py/run.py -> build/lib.macosx-10.6-x86_64-2.7/mpi4py
    copying src/mpi4py/__init__.py -> build/lib.macosx-10.6-x86_64-2.7/mpi4py
    copying src/mpi4py/bench.py -> build/lib.macosx-10.6-x86_64-2.7/mpi4py
    copying src/mpi4py/__main__.py -> build/lib.macosx-10.6-x86_64-2.7/mpi4py
    creating build/lib.macosx-10.6-x86_64-2.7/mpi4py/futures
    copying src/mpi4py/futures/_base.py -> build/lib.macosx-10.6-x86_64-2.7/mpi4py/futures
    copying src/mpi4py/futures/server.py -> build/lib.macosx-10.6-x86_64-2.7/mpi4py/futures
    copying src/mpi4py/futures/__init__.py -> build/lib.macosx-10.6-x86_64-2.7/mpi4py/futures
    copying src/mpi4py/futures/pool.py -> build/lib.macosx-10.6-x86_64-2.7/mpi4py/futures
    copying src/mpi4py/futures/aplus.py -> build/lib.macosx-10.6-x86_64-2.7/mpi4py/futures
    copying src/mpi4py/futures/__main__.py -> build/lib.macosx-10.6-x86_64-2.7/mpi4py/futures
    copying src/mpi4py/futures/_lib.py -> build/lib.macosx-10.6-x86_64-2.7/mpi4py/futures
    copying src/mpi4py/__init__.pxd -> build/lib.macosx-10.6-x86_64-2.7/mpi4py
    copying src/mpi4py/libmpi.pxd -> build/lib.macosx-10.6-x86_64-2.7/mpi4py
    copying src/mpi4py/MPI.pxd -> build/lib.macosx-10.6-x86_64-2.7/mpi4py
    creating build/lib.macosx-10.6-x86_64-2.7/mpi4py/include
    creating build/lib.macosx-10.6-x86_64-2.7/mpi4py/include/mpi4py
    copying src/mpi4py/include/mpi4py/mpi4py.MPI.h -> build/lib.macosx-10.6-x86_64-2.7/mpi4py/include/mpi4py
    copying src/mpi4py/include/mpi4py/mpi4py.MPI_api.h -> build/lib.macosx-10.6-x86_64-2.7/mpi4py/include/mpi4py
    copying src/mpi4py/include/mpi4py/mpi4py.h -> build/lib.macosx-10.6-x86_64-2.7/mpi4py/include/mpi4py
    copying src/mpi4py/include/mpi4py/mpi4py.i -> build/lib.macosx-10.6-x86_64-2.7/mpi4py/include/mpi4py
    copying src/mpi4py/include/mpi4py/mpi.pxi -> build/lib.macosx-10.6-x86_64-2.7/mpi4py/include/mpi4py
    running build_clib
    MPI configuration: [mpi] from 'mpi.cfg'
    MPI C compiler:    /Users/kliegeois/local/openMPI/bin/mpicc
    MPI C++ compiler:  /Users/kliegeois/local/openMPI/bin/mpicxx
    MPI F compiler:    /Users/kliegeois/local/openMPI/bin/mpifort
    MPI F90 compiler:  /Users/kliegeois/local/openMPI/bin/mpif90
    MPI F77 compiler:  /Users/kliegeois/local/openMPI/bin/mpif77
    checking for library 'lmpe' ...
    /Users/kliegeois/local/openMPI/bin/mpicc -fno-strict-aliasing -I/opt/intel/intelpython2/include -arch x86_64 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -c _configtest.c -o _configtest.o
    /Users/kliegeois/local/openMPI/bin/mpicc -flat_namespace -undefined suppress -arch x86_64 _configtest.o -llmpe -o _configtest
    ld: library not found for -llmpe
    failure.
    removing: _configtest.c _configtest.o
    building 'mpe' dylib library
    creating build/temp.macosx-10.6-x86_64-2.7
    creating build/temp.macosx-10.6-x86_64-2.7/src
    creating build/temp.macosx-10.6-x86_64-2.7/src/lib-pmpi
    /Users/kliegeois/local/openMPI/bin/mpicc -fno-strict-aliasing -I/opt/intel/intelpython2/include -arch x86_64 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -c src/lib-pmpi/mpe.c -o build/temp.macosx-10.6-x86_64-2.7/src/lib-pmpi/mpe.o
    creating build/lib.macosx-10.6-x86_64-2.7/mpi4py/lib-pmpi
    /Users/kliegeois/local/openMPI/bin/mpicc -shared -undefined dynamic_lookup -L/opt/intel/intelpython2/lib -arch x86_64 -arch x86_64 -install_name libmpe.dylib build/temp.macosx-10.6-x86_64-2.7/src/lib-pmpi/mpe.o -o build/lib.macosx-10.6-x86_64-2.7/mpi4py/lib-pmpi/libmpe.dylib
    checking for library 'vt-mpi' ...
    /Users/kliegeois/local/openMPI/bin/mpicc -fno-strict-aliasing -I/opt/intel/intelpython2/include -arch x86_64 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -c _configtest.c -o _configtest.o
    /Users/kliegeois/local/openMPI/bin/mpicc -flat_namespace -undefined suppress -arch x86_64 _configtest.o -lvt-mpi -o _configtest
    ld: library not found for -lvt-mpi
    failure.
    removing: _configtest.c _configtest.o
    checking for library 'vt.mpi' ...
    /Users/kliegeois/local/openMPI/bin/mpicc -fno-strict-aliasing -I/opt/intel/intelpython2/include -arch x86_64 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -c _configtest.c -o _configtest.o
    /Users/kliegeois/local/openMPI/bin/mpicc -flat_namespace -undefined suppress -arch x86_64 _configtest.o -lvt.mpi -o _configtest
    ld: library not found for -lvt.mpi
    failure.
    removing: _configtest.c _configtest.o
    building 'vt' dylib library
    /Users/kliegeois/local/openMPI/bin/mpicc -fno-strict-aliasing -I/opt/intel/intelpython2/include -arch x86_64 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -c src/lib-pmpi/vt.c -o build/temp.macosx-10.6-x86_64-2.7/src/lib-pmpi/vt.o
    /Users/kliegeois/local/openMPI/bin/mpicc -shared -undefined dynamic_lookup -L/opt/intel/intelpython2/lib -arch x86_64 -arch x86_64 -install_name libvt.dylib build/temp.macosx-10.6-x86_64-2.7/src/lib-pmpi/vt.o -o build/lib.macosx-10.6-x86_64-2.7/mpi4py/lib-pmpi/libvt.dylib
    checking for library 'vt-mpi' ...
    /Users/kliegeois/local/openMPI/bin/mpicc -fno-strict-aliasing -I/opt/intel/intelpython2/include -arch x86_64 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -c _configtest.c -o _configtest.o
    /Users/kliegeois/local/openMPI/bin/mpicc -flat_namespace -undefined suppress -arch x86_64 _configtest.o -lvt-mpi -o _configtest
    ld: library not found for -lvt-mpi
    failure.
    removing: _configtest.c _configtest.o
    checking for library 'vt.mpi' ...
    /Users/kliegeois/local/openMPI/bin/mpicc -fno-strict-aliasing -I/opt/intel/intelpython2/include -arch x86_64 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -c _configtest.c -o _configtest.o
    /Users/kliegeois/local/openMPI/bin/mpicc -flat_namespace -undefined suppress -arch x86_64 _configtest.o -lvt.mpi -o _configtest
    ld: library not found for -lvt.mpi
    failure.
    removing: _configtest.c _configtest.o
    building 'vt-mpi' dylib library
    /Users/kliegeois/local/openMPI/bin/mpicc -fno-strict-aliasing -I/opt/intel/intelpython2/include -arch x86_64 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -c src/lib-pmpi/vt-mpi.c -o build/temp.macosx-10.6-x86_64-2.7/src/lib-pmpi/vt-mpi.o
    /Users/kliegeois/local/openMPI/bin/mpicc -shared -undefined dynamic_lookup -L/opt/intel/intelpython2/lib -arch x86_64 -arch x86_64 -install_name libvt-mpi.dylib build/temp.macosx-10.6-x86_64-2.7/src/lib-pmpi/vt-mpi.o -o build/lib.macosx-10.6-x86_64-2.7/mpi4py/lib-pmpi/libvt-mpi.dylib
    checking for library 'vt-hyb' ...
    /Users/kliegeois/local/openMPI/bin/mpicc -fno-strict-aliasing -I/opt/intel/intelpython2/include -arch x86_64 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -c _configtest.c -o _configtest.o
    /Users/kliegeois/local/openMPI/bin/mpicc -flat_namespace -undefined suppress -arch x86_64 _configtest.o -lvt-hyb -o _configtest
    ld: library not found for -lvt-hyb
    failure.
    removing: _configtest.c _configtest.o
    checking for library 'vt.ompi' ...
    /Users/kliegeois/local/openMPI/bin/mpicc -fno-strict-aliasing -I/opt/intel/intelpython2/include -arch x86_64 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -c _configtest.c -o _configtest.o
    /Users/kliegeois/local/openMPI/bin/mpicc -flat_namespace -undefined suppress -arch x86_64 _configtest.o -lvt.ompi -o _configtest
    ld: library not found for -lvt.ompi
    failure.
    removing: _configtest.c _configtest.o
    building 'vt-hyb' dylib library
    /Users/kliegeois/local/openMPI/bin/mpicc -fno-strict-aliasing -I/opt/intel/intelpython2/include -arch x86_64 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -c src/lib-pmpi/vt-hyb.c -o build/temp.macosx-10.6-x86_64-2.7/src/lib-pmpi/vt-hyb.o
    /Users/kliegeois/local/openMPI/bin/mpicc -shared -undefined dynamic_lookup -L/opt/intel/intelpython2/lib -arch x86_64 -arch x86_64 -install_name libvt-hyb.dylib build/temp.macosx-10.6-x86_64-2.7/src/lib-pmpi/vt-hyb.o -o build/lib.macosx-10.6-x86_64-2.7/mpi4py/lib-pmpi/libvt-hyb.dylib
    running build_ext
    MPI configuration: [mpi] from 'mpi.cfg'
    MPI C compiler:    /Users/kliegeois/local/openMPI/bin/mpicc
    MPI C++ compiler:  /Users/kliegeois/local/openMPI/bin/mpicxx
    MPI F compiler:    /Users/kliegeois/local/openMPI/bin/mpifort
    MPI F90 compiler:  /Users/kliegeois/local/openMPI/bin/mpif90
    MPI F77 compiler:  /Users/kliegeois/local/openMPI/bin/mpif77
    checking for dlopen() availability ...
    checking for header 'dlfcn.h' ...
    gcc -fno-strict-aliasing -I/opt/intel/intelpython2/include -arch x86_64 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/opt/intel/intelpython2/include/python2.7 -c _configtest.c -o _configtest.o
    success!
    removing: _configtest.c _configtest.o
    success!
    checking for library 'dl' ...
    gcc -fno-strict-aliasing -I/opt/intel/intelpython2/include -arch x86_64 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/opt/intel/intelpython2/include/python2.7 -c _configtest.c -o _configtest.o
    gcc -flat_namespace -undefined suppress -arch x86_64 _configtest.o -L/opt/intel/intelpython2/lib -Lbuild/temp.macosx-10.6-x86_64-2.7 -ldl -o _configtest
    success!
    removing: _configtest.c _configtest.o _configtest
    checking for function 'dlopen' ...
    gcc -fno-strict-aliasing -I/opt/intel/intelpython2/include -arch x86_64 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/opt/intel/intelpython2/include/python2.7 -c _configtest.c -o _configtest.o
    gcc -arch x86_64 _configtest.o -L/opt/intel/intelpython2/lib -Lbuild/temp.macosx-10.6-x86_64-2.7 -ldl -o _configtest
    success!
    removing: _configtest.c _configtest.o _configtest
    building 'mpi4py.dl' extension
    gcc -fno-strict-aliasing -I/opt/intel/intelpython2/include -arch x86_64 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_DLFCN_H=1 -DHAVE_DLOPEN=1 -I/opt/intel/intelpython2/include/python2.7 -c src/dynload.c -o build/temp.macosx-10.6-x86_64-2.7/src/dynload.o
    gcc -bundle -undefined dynamic_lookup -L/opt/intel/intelpython2/lib -arch x86_64 -arch x86_64 build/temp.macosx-10.6-x86_64-2.7/src/dynload.o -L/opt/intel/intelpython2/lib -Lbuild/temp.macosx-10.6-x86_64-2.7 -ldl -o build/lib.macosx-10.6-x86_64-2.7/mpi4py/dl.so
    checking for MPI compile and link ...
    /Users/kliegeois/local/openMPI/bin/mpicc -fno-strict-aliasing -I/opt/intel/intelpython2/include -arch x86_64 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/opt/intel/intelpython2/include/python2.7 -c _configtest.c -o _configtest.o
    In file included from _configtest.c(2):
    /Users/kliegeois/local/openMPI/include/mpi.h(382): error: invalid argument to attribute "__deprecated__"
              __mpi_interface_deprecated__("MPI_Comm_errhandler_fn was deprecated in MPI-2.2; use MPI_Comm_errhandler_function instead");
              ^

    In file included from _configtest.c(2):
    /Users/kliegeois/local/openMPI/include/mpi.h(391): error: invalid argument to attribute "__deprecated__"
              __mpi_interface_deprecated__("MPI_File_errhandler_fn was deprecated in MPI-2.2; use MPI_File_errhandler_function instead");
              ^

    In file included from _configtest.c(2):
    /Users/kliegeois/local/openMPI/include/mpi.h(399): error: invalid argument to attribute "__deprecated__"
              __mpi_interface_deprecated__("MPI_Win_errhandler_fn was deprecated in MPI-2.2; use MPI_Win_errhandler_function instead");
              ^

    In file included from _configtest.c(2):
    /Users/kliegeois/local/openMPI/include/mpi.h(860): error: invalid argument to attribute "__deprecated__"
                                                   __mpi_interface_deprecated__("MPI_NULL_DELETE_FN is deprecated in MPI-2.0");
                                                   ^

    In file included from _configtest.c(2):
    /Users/kliegeois/local/openMPI/include/mpi.h(866): error: invalid argument to attribute "__deprecated__"
                                                 __mpi_interface_deprecated__("MPI_NULL_COPY_FN is deprecated in MPI-2.0");
                                                 ^

    In file included from _configtest.c(2):
    /Users/kliegeois/local/openMPI/include/mpi.h(872): error: invalid argument to attribute "__deprecated__"
                                           __mpi_interface_deprecated__("MPI_DUP_FN is deprecated in MPI-2.0");
                                           ^

    In file included from _configtest.c(2):
    /Users/kliegeois/local/openMPI/include/mpi.h(927): error: invalid argument to attribute "__deprecated__"
      OMPI_DECLSPEC extern struct ompi_predefined_datatype_t ompi_mpi_lb __mpi_interface_deprecated__("MPI_LB is deprecated in MPI-2.0");
                                                                         ^

    In file included from _configtest.c(2):
    /Users/kliegeois/local/openMPI/include/mpi.h(928): error: invalid argument to attribute "__deprecated__"
      OMPI_DECLSPEC extern struct ompi_predefined_datatype_t ompi_mpi_ub __mpi_interface_deprecated__("MPI_UB is deprecated in MPI-2.0");
                                                                         ^

    In file included from _configtest.c(2):
    /Users/kliegeois/local/openMPI/include/mpi.h(1202): error: invalid argument to attribute "__deprecated__"
                                     __mpi_interface_deprecated__("MPI_Address is superseded by MPI_Get_address in MPI-2.0");
                                     ^

    In file included from _configtest.c(2):
    /Users/kliegeois/local/openMPI/include/mpi.h(1240): error: invalid argument to attribute "__deprecated__"
                                         __mpi_interface_deprecated__("MPI_Attr_delete is superseded by MPI_Comm_delete_attr in MPI-2.0");
                                         ^

    In file included from _configtest.c(2):
    /Users/kliegeois/local/openMPI/include/mpi.h(1242): error: invalid argument to attribute "__deprecated__"
                                      __mpi_interface_deprecated__("MPI_Attr_get is superseded by MPI_Comm_get_attr in MPI-2.0");
                                      ^

    In file included from _configtest.c(2):
    /Users/kliegeois/local/openMPI/include/mpi.h(1244): error: invalid argument to attribute "__deprecated__"
                                      __mpi_interface_deprecated__("MPI_Attr_put is superseded by MPI_Comm_set_attr in MPI-2.0");
                                      ^

    In file included from _configtest.c(2):
    /Users/kliegeois/local/openMPI/include/mpi.h(1348): error: invalid argument to attribute "__deprecated__"
                                               __mpi_interface_deprecated__("MPI_Errhandler_create is superseded by MPI_Comm_create_errhandler in MPI-2.0");
                                               ^

    In file included from _configtest.c(2):
    /Users/kliegeois/local/openMPI/include/mpi.h(1352): error: invalid argument to attribute "__deprecated__"
                                            __mpi_interface_deprecated__("MPI_Errhandler_get is superseded by MPI_Comm_get_errhandler in MPI-2.0");
                                            ^

    In file included from _configtest.c(2):
    /Users/kliegeois/local/openMPI/include/mpi.h(1354): error: invalid argument to attribute "__deprecated__"
                                            __mpi_interface_deprecated__("MPI_Errhandler_set is superseded by MPI_Comm_set_errhandler in MPI-2.0");
                                            ^

    In file included from _configtest.c(2):
    /Users/kliegeois/local/openMPI/include/mpi.h(1571): error: invalid argument to attribute "__deprecated__"
                                           __mpi_interface_deprecated__("MPI_Keyval_create is superseded by MPI_Comm_create_keyval in MPI-2.0");
                                           ^

    In file included from _configtest.c(2):
    /Users/kliegeois/local/openMPI/include/mpi.h(1573): error: invalid argument to attribute "__deprecated__"
                                         __mpi_interface_deprecated__("MPI_Keyval_free is superseded by MPI_Comm_free_keyval in MPI-2.0");
                                         ^

    In file included from _configtest.c(2):
    /Users/kliegeois/local/openMPI/include/mpi.h(1776): error: invalid argument to attribute "__deprecated__"
                                         __mpi_interface_deprecated__("MPI_Type_extent is superseded by MPI_Type_get_extent in MPI-2.0");
                                         ^

    In file included from _configtest.c(2):
    /Users/kliegeois/local/openMPI/include/mpi.h(1803): error: invalid argument to attribute "__deprecated__"
                                           __mpi_interface_deprecated__("MPI_Type_hindexed is superseded by MPI_Type_create_hindexed in MPI-2.0");
                                           ^

    In file included from _configtest.c(2):
    /Users/kliegeois/local/openMPI/include/mpi.h(1806): error: invalid argument to attribute "__deprecated__"
                                          __mpi_interface_deprecated__("MPI_Type_hvector is superseded by MPI_Type_create_hvector in MPI-2.0");
                                          ^

    In file included from _configtest.c(2):
    /Users/kliegeois/local/openMPI/include/mpi.h(1811): error: invalid argument to attribute "__deprecated__"
                                     __mpi_interface_deprecated__("MPI_Type_lb is deprecated, use MPI_Type_get_extent in MPI-2.0");
                                     ^

    In file included from _configtest.c(2):
    /Users/kliegeois/local/openMPI/include/mpi.h(1822): error: invalid argument to attribute "__deprecated__"
                                         __mpi_interface_deprecated__("MPI_Type_struct is superseded by MPI_Type_create_struct in MPI-2.0");
                                         ^

    In file included from _configtest.c(2):
    /Users/kliegeois/local/openMPI/include/mpi.h(1824): error: invalid argument to attribute "__deprecated__"
                                     __mpi_interface_deprecated__("MPI_Type_ub is deprecated, use MPI_Type_get_extent in MPI-2.0");
                                     ^

    In file included from _configtest.c(2):
    /Users/kliegeois/local/openMPI/include/mpi.h(1902): error: invalid argument to attribute "__deprecated__"
                                      __mpi_interface_deprecated__("MPI_Address is superseded by MPI_Get_address in MPI-2.0");
                                      ^

    In file included from _configtest.c(2):
    /Users/kliegeois/local/openMPI/include/mpi.h(1940): error: invalid argument to attribute "__deprecated__"
                                          __mpi_interface_deprecated__("MPI_Attr_delete is superseded by MPI_Comm_delete_attr in MPI-2.0");
                                          ^

    In file included from _configtest.c(2):
    /Users/kliegeois/local/openMPI/include/mpi.h(1942): error: invalid argument to attribute "__deprecated__"
                                       __mpi_interface_deprecated__("MPI_Attr_get is superseded by MPI_Comm_get_attr in MPI-2.0");
                                       ^

    In file included from _configtest.c(2):
    /Users/kliegeois/local/openMPI/include/mpi.h(1965): error: invalid argument to attribute "__deprecated__"
                                       __mpi_interface_deprecated__("MPI_Attr_put is superseded by MPI_Comm_set_attr in MPI-2.0");
                                       ^

    In file included from _configtest.c(2):
    /Users/kliegeois/local/openMPI/include/mpi.h(2048): error: invalid argument to attribute "__deprecated__"
                                                __mpi_interface_deprecated__("MPI_Errhandler_create is superseded by MPI_Comm_create_errhandler in MPI-2.0");
                                                ^

    In file included from _configtest.c(2):
    /Users/kliegeois/local/openMPI/include/mpi.h(2052): error: invalid argument to attribute "__deprecated__"
                                             __mpi_interface_deprecated__("MPI_Errhandler_get is superseded by MPI_Comm_get_errhandler in MPI-2.0");
                                             ^

    In file included from _configtest.c(2):
    /Users/kliegeois/local/openMPI/include/mpi.h(2054): error: invalid argument to attribute "__deprecated__"
                                             __mpi_interface_deprecated__("MPI_Errhandler_set is superseded by MPI_Comm_set_errhandler in MPI-2.0");
                                             ^

    In file included from _configtest.c(2):
    /Users/kliegeois/local/openMPI/include/mpi.h(2273): error: invalid argument to attribute "__deprecated__"
                                            __mpi_interface_deprecated__("MPI_Keyval_create is superseded by MPI_Comm_create_keyval in MPI-2.0");
                                            ^

    In file included from _configtest.c(2):
    /Users/kliegeois/local/openMPI/include/mpi.h(2275): error: invalid argument to attribute "__deprecated__"
                                          __mpi_interface_deprecated__("MPI_Keyval_free is superseded by MPI_Comm_free_keyval in MPI-2.0");
                                          ^

    In file included from _configtest.c(2):
    /Users/kliegeois/local/openMPI/include/mpi.h(2477): error: invalid argument to attribute "__deprecated__"
                                          __mpi_interface_deprecated__("MPI_Type_extent is superseded by MPI_Type_get_extent in MPI-2.0");
                                          ^

    In file included from _configtest.c(2):
    /Users/kliegeois/local/openMPI/include/mpi.h(2504): error: invalid argument to attribute "__deprecated__"
                                            __mpi_interface_deprecated__("MPI_Type_hindexed is superseded by MPI_Type_create_hindexed in MPI-2.0");
                                            ^

    In file included from _configtest.c(2):
    /Users/kliegeois/local/openMPI/include/mpi.h(2507): error: invalid argument to attribute "__deprecated__"
                                           __mpi_interface_deprecated__("MPI_Type_hvector is superseded by MPI_Type_create_hvector in MPI-2.0");
                                           ^

    In file included from _configtest.c(2):
    /Users/kliegeois/local/openMPI/include/mpi.h(2512): error: invalid argument to attribute "__deprecated__"
                                      __mpi_interface_deprecated__("MPI_Type_lb is deprecated, use MPI_Type_get_extent in MPI-2.0");
                                      ^

    In file included from _configtest.c(2):
    /Users/kliegeois/local/openMPI/include/mpi.h(2523): error: invalid argument to attribute "__deprecated__"
                                          __mpi_interface_deprecated__("MPI_Type_struct is superseded by MPI_Type_create_struct in MPI-2.0");
                                          ^

    In file included from _configtest.c(2):
    /Users/kliegeois/local/openMPI/include/mpi.h(2525): error: invalid argument to attribute "__deprecated__"
                                      __mpi_interface_deprecated__("MPI_Type_ub is deprecated, use MPI_Type_get_extent in MPI-2.0");
                                      ^

    compilation aborted for _configtest.c (code 2)
    failure.
    removing: _configtest.c _configtest.o
    error: Cannot compile MPI programs. Check your configuration!!!

    ----------------------------------------
Command "/opt/intel/intelpython2/bin/python -u -c "import setuptools, tokenize;__file__='/private/var/folders/21/m08kk4sd0m9_kkvws8bx83wc0000gn/T/pip-build-5wiNC1/mpi4py/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /var/folders/21/m08kk4sd0m9_kkvws8bx83wc0000gn/T/pip-qyvbl1-record/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /private/var/folders/21/m08kk4sd0m9_kkvws8bx83wc0000gn/T/pip-build-5wiNC1/mpi4py/

Do you know if this could come from a bad compatibility or is it my openMPI build which is not good ?

Comments (6)

  1. Lisandro Dalcin

    Could you try the following to just build with Intel MPI?:

    export MPICC=mpiicc
    pip install --user mpi4py
    

    The mpiicc compiler wrapper (note the double "i") should use Intel's icc compiler (you can double-check running mpiicc -show), then things should proceed smoothly.

  2. kliegeois reporter

    Thanks a lot for your very quick answer.

    I have just tried it and it threw the same error.

    After some googling, it seems that, as Intel do not provide Intel MPI for mac, you cannot have mpiicc installed.

    $which mpiicc
    -bash: mpiicc: command not found
    $ locate mpiicc
    $
    

    However, my mpicc seems OK since:

    $ mpicc -show
    icc -I/Users/kliegeois/local/openMPI/include -L/Users/kliegeois/local/openMPI/lib -lmpi
    
  3. Lisandro Dalcin

    Oh, I see... Didn't know that Intel MPI is not available on Mac, sorry about that.

    Could you try this one?

    export CPPFLAGS=-DOMPI_WANT_MPI_INTERFACE_WARNING=0
    pip install --user mpi4py
    

    Please note that this issue does not look to be mpi4py's fault but rather an Open MPI issue/miss-configuration when building on Mac with Intel compilers. If the tip above works, you should report this issue upstream to Open MPI folks.

  4. kliegeois reporter

    It works!

    export CPPFLAGS=-DOMPI_WANT_MPI_INTERFACE_WARNING=0
    export CC=icc
    pip install --user mpi4py
    

    You save me a lot of time.

    Thanks a lot!

    I will report this issue to them.

  5. Log in to comment