Closed csimpi-kutya closed 4 years ago
Hi @csimpi-kutya,
From the output of python -c "from mpi4py import MPI"
it looks like mpi4py isn't working yet. This is probably because it was built with OpenMPI before you installed MPICH.
Could you try uninstalling all amuse packages and mpi4py, clearing your pip cache (located in ~/Library/Caches/pip on macOS or ~/.cache/pip on Linux) and then reinstalling mpi4py and amuse?
Cheers, Steven
Thank you for your answer.
I followed your instructions, but now the installation of mpi4py fails with the following long error message:
Building wheel for mpi4py (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /Users/j3sakavaka/amuse/Amuse-env/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/vs/0f8lgdcj6pg0v81zn8288vhm0000gn/T/pip-install-juHk2R/mpi4py/setup.py'"'"'; __file__='"'"'/private/var/folders/vs/0f8lgdcj6pg0v81zn8288vhm0000gn/T/pip-install-juHk2R/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 /private/var/folders/vs/0f8lgdcj6pg0v81zn8288vhm0000gn/T/pip-wheel-Bs7tGF --python-tag cp27
cwd: /private/var/folders/vs/0f8lgdcj6pg0v81zn8288vhm0000gn/T/pip-install-juHk2R/mpi4py/
Complete output (162 lines):
running bdist_wheel
running build
running build_src
running build_py
creating build
creating build/lib.macosx-10.13-x86_64-2.7
creating build/lib.macosx-10.13-x86_64-2.7/mpi4py
copying src/mpi4py/run.py -> build/lib.macosx-10.13-x86_64-2.7/mpi4py
copying src/mpi4py/__init__.py -> build/lib.macosx-10.13-x86_64-2.7/mpi4py
copying src/mpi4py/bench.py -> build/lib.macosx-10.13-x86_64-2.7/mpi4py
copying src/mpi4py/__main__.py -> build/lib.macosx-10.13-x86_64-2.7/mpi4py
creating build/lib.macosx-10.13-x86_64-2.7/mpi4py/futures
copying src/mpi4py/futures/_base.py -> build/lib.macosx-10.13-x86_64-2.7/mpi4py/futures
copying src/mpi4py/futures/server.py -> build/lib.macosx-10.13-x86_64-2.7/mpi4py/futures
copying src/mpi4py/futures/__init__.py -> build/lib.macosx-10.13-x86_64-2.7/mpi4py/futures
copying src/mpi4py/futures/pool.py -> build/lib.macosx-10.13-x86_64-2.7/mpi4py/futures
copying src/mpi4py/futures/aplus.py -> build/lib.macosx-10.13-x86_64-2.7/mpi4py/futures
copying src/mpi4py/futures/__main__.py -> build/lib.macosx-10.13-x86_64-2.7/mpi4py/futures
copying src/mpi4py/futures/_lib.py -> build/lib.macosx-10.13-x86_64-2.7/mpi4py/futures
copying src/mpi4py/__init__.pxd -> build/lib.macosx-10.13-x86_64-2.7/mpi4py
copying src/mpi4py/libmpi.pxd -> build/lib.macosx-10.13-x86_64-2.7/mpi4py
copying src/mpi4py/MPI.pxd -> build/lib.macosx-10.13-x86_64-2.7/mpi4py
creating build/lib.macosx-10.13-x86_64-2.7/mpi4py/include
creating build/lib.macosx-10.13-x86_64-2.7/mpi4py/include/mpi4py
copying src/mpi4py/include/mpi4py/mpi4py.MPI.h -> build/lib.macosx-10.13-x86_64-2.7/mpi4py/include/mpi4py
copying src/mpi4py/include/mpi4py/mpi4py.MPI_api.h -> build/lib.macosx-10.13-x86_64-2.7/mpi4py/include/mpi4py
copying src/mpi4py/include/mpi4py/mpi4py.h -> build/lib.macosx-10.13-x86_64-2.7/mpi4py/include/mpi4py
copying src/mpi4py/include/mpi4py/mpi4py.i -> build/lib.macosx-10.13-x86_64-2.7/mpi4py/include/mpi4py
copying src/mpi4py/include/mpi4py/mpi.pxi -> build/lib.macosx-10.13-x86_64-2.7/mpi4py/include/mpi4py
running build_clib
MPI configuration: [mpi] from 'mpi.cfg'
MPI C compiler: /opt/local/bin/mpicc
MPI C++ compiler: /opt/local/bin/mpicxx
MPI F compiler: /opt/local/bin/mpifort
MPI F90 compiler: /opt/local/bin/mpif90
MPI F77 compiler: /opt/local/bin/mpif77
checking for library 'lmpe' ...
/opt/local/bin/mpicc -fno-strict-aliasing -fno-common -dynamic -pipe -Os -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -c _configtest.c -o _configtest.o
/opt/local/bin/mpicc -flat_namespace -undefined suppress _configtest.o -llmpe -o _configtest
ld: library not found for -llmpe
collect2: error: ld returned 1 exit status
failure.
removing: _configtest.c _configtest.o
building 'mpe' dylib library
creating build/temp.macosx-10.13-x86_64-2.7
creating build/temp.macosx-10.13-x86_64-2.7/src
creating build/temp.macosx-10.13-x86_64-2.7/src/lib-pmpi
/opt/local/bin/mpicc -fno-strict-aliasing -fno-common -dynamic -pipe -Os -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -c src/lib-pmpi/mpe.c -o build/temp.macosx-10.13-x86_64-2.7/src/lib-pmpi/mpe.o
creating build/lib.macosx-10.13-x86_64-2.7/mpi4py/lib-pmpi
/opt/local/bin/mpicc -shared -undefined dynamic_lookup -L/opt/local/lib -Wl,-headerpad_max_install_names -L/opt/local/lib/db48 -install_name libmpe.dylib build/temp.macosx-10.13-x86_64-2.7/src/lib-pmpi/mpe.o -o build/lib.macosx-10.13-x86_64-2.7/mpi4py/lib-pmpi/libmpe.dylib
ld: in '/System/Library/Frameworks//OpenCL.framework/Versions/A/OpenCL.tbd', unexpected token: !tapi-tbd-v3 for architecture x86_64
collect2: error: ld returned 1 exit status
warning: build_clib: command '/opt/local/bin/mpicc' failed with exit status 1
warning: build_clib: building optional library "mpe" failed
checking for library 'vt-mpi' ...
/opt/local/bin/mpicc -fno-strict-aliasing -fno-common -dynamic -pipe -Os -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -c _configtest.c -o _configtest.o
/opt/local/bin/mpicc -flat_namespace -undefined suppress _configtest.o -L/Users/j3sakavaka/miniconda2/lib -lvt-mpi -o _configtest
ld: in '/System/Library/Frameworks//OpenCL.framework/Versions/A/OpenCL.tbd', unexpected token: !tapi-tbd-v3 for architecture x86_64
collect2: error: ld returned 1 exit status
failure.
removing: _configtest.c _configtest.o
checking for library 'vt.mpi' ...
/opt/local/bin/mpicc -fno-strict-aliasing -fno-common -dynamic -pipe -Os -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -c _configtest.c -o _configtest.o
/opt/local/bin/mpicc -flat_namespace -undefined suppress _configtest.o -L/Users/j3sakavaka/miniconda2/lib -lvt.mpi -o _configtest
ld: library not found for -lvt.mpi
collect2: error: ld returned 1 exit status
failure.
removing: _configtest.c _configtest.o
building 'vt' dylib library
/opt/local/bin/mpicc -fno-strict-aliasing -fno-common -dynamic -pipe -Os -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -c src/lib-pmpi/vt.c -o build/temp.macosx-10.13-x86_64-2.7/src/lib-pmpi/vt.o
/opt/local/bin/mpicc -shared -undefined dynamic_lookup -L/opt/local/lib -Wl,-headerpad_max_install_names -L/opt/local/lib/db48 -install_name libvt.dylib build/temp.macosx-10.13-x86_64-2.7/src/lib-pmpi/vt.o -L/Users/j3sakavaka/miniconda2/lib -L/Users/j3sakavaka/miniconda2/lib -o build/lib.macosx-10.13-x86_64-2.7/mpi4py/lib-pmpi/libvt.dylib
ld: in '/System/Library/Frameworks//OpenCL.framework/Versions/A/OpenCL.tbd', unexpected token: !tapi-tbd-v3 for architecture x86_64
collect2: error: ld returned 1 exit status
warning: build_clib: command '/opt/local/bin/mpicc' failed with exit status 1
warning: build_clib: building optional library "vt" failed
checking for library 'vt-mpi' ...
/opt/local/bin/mpicc -fno-strict-aliasing -fno-common -dynamic -pipe -Os -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -c _configtest.c -o _configtest.o
/opt/local/bin/mpicc -flat_namespace -undefined suppress _configtest.o -L/Users/j3sakavaka/miniconda2/lib -lvt-mpi -o _configtest
ld: in '/System/Library/Frameworks//OpenCL.framework/Versions/A/OpenCL.tbd', unexpected token: !tapi-tbd-v3 for architecture x86_64
collect2: error: ld returned 1 exit status
failure.
removing: _configtest.c _configtest.o
checking for library 'vt.mpi' ...
/opt/local/bin/mpicc -fno-strict-aliasing -fno-common -dynamic -pipe -Os -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -c _configtest.c -o _configtest.o
/opt/local/bin/mpicc -flat_namespace -undefined suppress _configtest.o -L/Users/j3sakavaka/miniconda2/lib -lvt.mpi -o _configtest
ld: library not found for -lvt.mpi
collect2: error: ld returned 1 exit status
failure.
removing: _configtest.c _configtest.o
building 'vt-mpi' dylib library
/opt/local/bin/mpicc -fno-strict-aliasing -fno-common -dynamic -pipe -Os -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -c src/lib-pmpi/vt-mpi.c -o build/temp.macosx-10.13-x86_64-2.7/src/lib-pmpi/vt-mpi.o
/opt/local/bin/mpicc -shared -undefined dynamic_lookup -L/opt/local/lib -Wl,-headerpad_max_install_names -L/opt/local/lib/db48 -install_name libvt-mpi.dylib build/temp.macosx-10.13-x86_64-2.7/src/lib-pmpi/vt-mpi.o -L/Users/j3sakavaka/miniconda2/lib -L/Users/j3sakavaka/miniconda2/lib -o build/lib.macosx-10.13-x86_64-2.7/mpi4py/lib-pmpi/libvt-mpi.dylib
ld: in '/System/Library/Frameworks//OpenCL.framework/Versions/A/OpenCL.tbd', unexpected token: !tapi-tbd-v3 for architecture x86_64
collect2: error: ld returned 1 exit status
warning: build_clib: command '/opt/local/bin/mpicc' failed with exit status 1
warning: build_clib: building optional library "vt-mpi" failed
checking for library 'vt-hyb' ...
/opt/local/bin/mpicc -fno-strict-aliasing -fno-common -dynamic -pipe -Os -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -c _configtest.c -o _configtest.o
/opt/local/bin/mpicc -flat_namespace -undefined suppress _configtest.o -L/Users/j3sakavaka/miniconda2/lib -lvt-hyb -o _configtest
ld: in '/System/Library/Frameworks//OpenCL.framework/Versions/A/OpenCL.tbd', unexpected token: !tapi-tbd-v3 for architecture x86_64
collect2: error: ld returned 1 exit status
failure.
removing: _configtest.c _configtest.o
checking for library 'vt.ompi' ...
/opt/local/bin/mpicc -fno-strict-aliasing -fno-common -dynamic -pipe -Os -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -c _configtest.c -o _configtest.o
/opt/local/bin/mpicc -flat_namespace -undefined suppress _configtest.o -L/Users/j3sakavaka/miniconda2/lib -lvt.ompi -o _configtest
ld: library not found for -lvt.ompi
collect2: error: ld returned 1 exit status
failure.
removing: _configtest.c _configtest.o
building 'vt-hyb' dylib library
/opt/local/bin/mpicc -fno-strict-aliasing -fno-common -dynamic -pipe -Os -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -c src/lib-pmpi/vt-hyb.c -o build/temp.macosx-10.13-x86_64-2.7/src/lib-pmpi/vt-hyb.o
/opt/local/bin/mpicc -shared -undefined dynamic_lookup -L/opt/local/lib -Wl,-headerpad_max_install_names -L/opt/local/lib/db48 -install_name libvt-hyb.dylib build/temp.macosx-10.13-x86_64-2.7/src/lib-pmpi/vt-hyb.o -L/Users/j3sakavaka/miniconda2/lib -L/Users/j3sakavaka/miniconda2/lib -o build/lib.macosx-10.13-x86_64-2.7/mpi4py/lib-pmpi/libvt-hyb.dylib
ld: in '/System/Library/Frameworks//OpenCL.framework/Versions/A/OpenCL.tbd', unexpected token: !tapi-tbd-v3 for architecture x86_64
collect2: error: ld returned 1 exit status
warning: build_clib: command '/opt/local/bin/mpicc' failed with exit status 1
warning: build_clib: building optional library "vt-hyb" failed
running build_ext
MPI configuration: [mpi] from 'mpi.cfg'
MPI C compiler: /opt/local/bin/mpicc
MPI C++ compiler: /opt/local/bin/mpicxx
MPI F compiler: /opt/local/bin/mpifort
MPI F90 compiler: /opt/local/bin/mpif90
MPI F77 compiler: /opt/local/bin/mpif77
checking for dlopen() availability ...
checking for header 'dlfcn.h' ...
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -pipe -Os -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/opt/local/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c _configtest.c -o _configtest.o
success!
removing: _configtest.c _configtest.o
success!
checking for library 'dl' ...
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -pipe -Os -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/opt/local/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c _configtest.c -o _configtest.o
/usr/bin/clang -flat_namespace -undefined suppress _configtest.o -Lbuild/temp.macosx-10.13-x86_64-2.7 -ldl -o _configtest
success!
removing: _configtest.c _configtest.o _configtest
checking for function 'dlopen' ...
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -pipe -Os -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/opt/local/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c _configtest.c -o _configtest.o
/usr/bin/clang _configtest.o -Lbuild/temp.macosx-10.13-x86_64-2.7 -ldl -o _configtest
success!
removing: _configtest.c _configtest.o _configtest
building 'mpi4py.dl' extension
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -pipe -Os -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_DLFCN_H=1 -DHAVE_DLOPEN=1 -I/opt/local/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c src/dynload.c -o build/temp.macosx-10.13-x86_64-2.7/src/dynload.o
/usr/bin/clang -bundle -undefined dynamic_lookup -L/opt/local/lib -Wl,-headerpad_max_install_names -L/opt/local/lib/db48 build/temp.macosx-10.13-x86_64-2.7/src/dynload.o -Lbuild/temp.macosx-10.13-x86_64-2.7 -ldl -o build/lib.macosx-10.13-x86_64-2.7/mpi4py/dl.so
checking for MPI compile and link ...
/opt/local/bin/mpicc -fno-strict-aliasing -fno-common -dynamic -pipe -Os -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/opt/local/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c _configtest.c -o _configtest.o
success!
removing: _configtest.c _configtest.o
/opt/local/bin/mpicc -fno-strict-aliasing -fno-common -dynamic -pipe -Os -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/opt/local/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c _configtest.c -o _configtest.o
/opt/local/bin/mpicc _configtest.o -Lbuild/temp.macosx-10.13-x86_64-2.7 -o _configtest
ld: in '/System/Library/Frameworks//OpenCL.framework/Versions/A/OpenCL.tbd', unexpected token: !tapi-tbd-v3 for architecture x86_64
collect2: error: ld returned 1 exit status
failure.
removing: _configtest.c _configtest.o
error: Cannot link MPI programs. Check your configuration!!!
----------------------------------------
ERROR: Failed building wheel for mpi4py
Running setup.py clean for mpi4py
Failed to build mpi4py
Installing collected packages: numpy, nose, docutils, mpi4py, six, h5py
Running setup.py install for mpi4py ... error
ERROR: Command errored out with exit status 1:
command: /Users/j3sakavaka/amuse/Amuse-env/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/vs/0f8lgdcj6pg0v81zn8288vhm0000gn/T/pip-install-juHk2R/mpi4py/setup.py'"'"'; __file__='"'"'/private/var/folders/vs/0f8lgdcj6pg0v81zn8288vhm0000gn/T/pip-install-juHk2R/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 /private/var/folders/vs/0f8lgdcj6pg0v81zn8288vhm0000gn/T/pip-record-B9Jj39/install-record.txt --single-version-externally-managed --compile --install-headers /Users/j3sakavaka/amuse/Amuse-env/bin/../include/site/python2.7/mpi4py
cwd: /private/var/folders/vs/0f8lgdcj6pg0v81zn8288vhm0000gn/T/pip-install-juHk2R/mpi4py/
Complete output (162 lines):
running install
running build
running build_src
running build_py
creating build
creating build/lib.macosx-10.13-x86_64-2.7
creating build/lib.macosx-10.13-x86_64-2.7/mpi4py
copying src/mpi4py/run.py -> build/lib.macosx-10.13-x86_64-2.7/mpi4py
copying src/mpi4py/__init__.py -> build/lib.macosx-10.13-x86_64-2.7/mpi4py
copying src/mpi4py/bench.py -> build/lib.macosx-10.13-x86_64-2.7/mpi4py
copying src/mpi4py/__main__.py -> build/lib.macosx-10.13-x86_64-2.7/mpi4py
creating build/lib.macosx-10.13-x86_64-2.7/mpi4py/futures
copying src/mpi4py/futures/_base.py -> build/lib.macosx-10.13-x86_64-2.7/mpi4py/futures
copying src/mpi4py/futures/server.py -> build/lib.macosx-10.13-x86_64-2.7/mpi4py/futures
copying src/mpi4py/futures/__init__.py -> build/lib.macosx-10.13-x86_64-2.7/mpi4py/futures
copying src/mpi4py/futures/pool.py -> build/lib.macosx-10.13-x86_64-2.7/mpi4py/futures
copying src/mpi4py/futures/aplus.py -> build/lib.macosx-10.13-x86_64-2.7/mpi4py/futures
copying src/mpi4py/futures/__main__.py -> build/lib.macosx-10.13-x86_64-2.7/mpi4py/futures
copying src/mpi4py/futures/_lib.py -> build/lib.macosx-10.13-x86_64-2.7/mpi4py/futures
copying src/mpi4py/__init__.pxd -> build/lib.macosx-10.13-x86_64-2.7/mpi4py
copying src/mpi4py/libmpi.pxd -> build/lib.macosx-10.13-x86_64-2.7/mpi4py
copying src/mpi4py/MPI.pxd -> build/lib.macosx-10.13-x86_64-2.7/mpi4py
creating build/lib.macosx-10.13-x86_64-2.7/mpi4py/include
creating build/lib.macosx-10.13-x86_64-2.7/mpi4py/include/mpi4py
copying src/mpi4py/include/mpi4py/mpi4py.MPI.h -> build/lib.macosx-10.13-x86_64-2.7/mpi4py/include/mpi4py
copying src/mpi4py/include/mpi4py/mpi4py.MPI_api.h -> build/lib.macosx-10.13-x86_64-2.7/mpi4py/include/mpi4py
copying src/mpi4py/include/mpi4py/mpi4py.h -> build/lib.macosx-10.13-x86_64-2.7/mpi4py/include/mpi4py
copying src/mpi4py/include/mpi4py/mpi4py.i -> build/lib.macosx-10.13-x86_64-2.7/mpi4py/include/mpi4py
copying src/mpi4py/include/mpi4py/mpi.pxi -> build/lib.macosx-10.13-x86_64-2.7/mpi4py/include/mpi4py
running build_clib
MPI configuration: [mpi] from 'mpi.cfg'
MPI C compiler: /opt/local/bin/mpicc
MPI C++ compiler: /opt/local/bin/mpicxx
MPI F compiler: /opt/local/bin/mpifort
MPI F90 compiler: /opt/local/bin/mpif90
MPI F77 compiler: /opt/local/bin/mpif77
checking for library 'lmpe' ...
/opt/local/bin/mpicc -fno-strict-aliasing -fno-common -dynamic -pipe -Os -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -c _configtest.c -o _configtest.o
/opt/local/bin/mpicc -flat_namespace -undefined suppress _configtest.o -llmpe -o _configtest
ld: library not found for -llmpe
collect2: error: ld returned 1 exit status
failure.
removing: _configtest.c _configtest.o
building 'mpe' dylib library
creating build/temp.macosx-10.13-x86_64-2.7
creating build/temp.macosx-10.13-x86_64-2.7/src
creating build/temp.macosx-10.13-x86_64-2.7/src/lib-pmpi
/opt/local/bin/mpicc -fno-strict-aliasing -fno-common -dynamic -pipe -Os -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -c src/lib-pmpi/mpe.c -o build/temp.macosx-10.13-x86_64-2.7/src/lib-pmpi/mpe.o
creating build/lib.macosx-10.13-x86_64-2.7/mpi4py/lib-pmpi
/opt/local/bin/mpicc -shared -undefined dynamic_lookup -L/opt/local/lib -Wl,-headerpad_max_install_names -L/opt/local/lib/db48 -install_name libmpe.dylib build/temp.macosx-10.13-x86_64-2.7/src/lib-pmpi/mpe.o -o build/lib.macosx-10.13-x86_64-2.7/mpi4py/lib-pmpi/libmpe.dylib
ld: in '/System/Library/Frameworks//OpenCL.framework/Versions/A/OpenCL.tbd', unexpected token: !tapi-tbd-v3 for architecture x86_64
collect2: error: ld returned 1 exit status
warning: build_clib: command '/opt/local/bin/mpicc' failed with exit status 1
warning: build_clib: building optional library "mpe" failed
checking for library 'vt-mpi' ...
/opt/local/bin/mpicc -fno-strict-aliasing -fno-common -dynamic -pipe -Os -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -c _configtest.c -o _configtest.o
/opt/local/bin/mpicc -flat_namespace -undefined suppress _configtest.o -L/Users/j3sakavaka/miniconda2/lib -lvt-mpi -o _configtest
ld: in '/System/Library/Frameworks//OpenCL.framework/Versions/A/OpenCL.tbd', unexpected token: !tapi-tbd-v3 for architecture x86_64
collect2: error: ld returned 1 exit status
failure.
removing: _configtest.c _configtest.o
checking for library 'vt.mpi' ...
/opt/local/bin/mpicc -fno-strict-aliasing -fno-common -dynamic -pipe -Os -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -c _configtest.c -o _configtest.o
/opt/local/bin/mpicc -flat_namespace -undefined suppress _configtest.o -L/Users/j3sakavaka/miniconda2/lib -lvt.mpi -o _configtest
ld: library not found for -lvt.mpi
collect2: error: ld returned 1 exit status
failure.
removing: _configtest.c _configtest.o
building 'vt' dylib library
/opt/local/bin/mpicc -fno-strict-aliasing -fno-common -dynamic -pipe -Os -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -c src/lib-pmpi/vt.c -o build/temp.macosx-10.13-x86_64-2.7/src/lib-pmpi/vt.o
/opt/local/bin/mpicc -shared -undefined dynamic_lookup -L/opt/local/lib -Wl,-headerpad_max_install_names -L/opt/local/lib/db48 -install_name libvt.dylib build/temp.macosx-10.13-x86_64-2.7/src/lib-pmpi/vt.o -L/Users/j3sakavaka/miniconda2/lib -L/Users/j3sakavaka/miniconda2/lib -o build/lib.macosx-10.13-x86_64-2.7/mpi4py/lib-pmpi/libvt.dylib
ld: in '/System/Library/Frameworks//OpenCL.framework/Versions/A/OpenCL.tbd', unexpected token: !tapi-tbd-v3 for architecture x86_64
collect2: error: ld returned 1 exit status
warning: build_clib: command '/opt/local/bin/mpicc' failed with exit status 1
warning: build_clib: building optional library "vt" failed
checking for library 'vt-mpi' ...
/opt/local/bin/mpicc -fno-strict-aliasing -fno-common -dynamic -pipe -Os -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -c _configtest.c -o _configtest.o
/opt/local/bin/mpicc -flat_namespace -undefined suppress _configtest.o -L/Users/j3sakavaka/miniconda2/lib -lvt-mpi -o _configtest
ld: in '/System/Library/Frameworks//OpenCL.framework/Versions/A/OpenCL.tbd', unexpected token: !tapi-tbd-v3 for architecture x86_64
collect2: error: ld returned 1 exit status
failure.
removing: _configtest.c _configtest.o
checking for library 'vt.mpi' ...
/opt/local/bin/mpicc -fno-strict-aliasing -fno-common -dynamic -pipe -Os -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -c _configtest.c -o _configtest.o
/opt/local/bin/mpicc -flat_namespace -undefined suppress _configtest.o -L/Users/j3sakavaka/miniconda2/lib -lvt.mpi -o _configtest
ld: library not found for -lvt.mpi
collect2: error: ld returned 1 exit status
failure.
removing: _configtest.c _configtest.o
building 'vt-mpi' dylib library
/opt/local/bin/mpicc -fno-strict-aliasing -fno-common -dynamic -pipe -Os -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -c src/lib-pmpi/vt-mpi.c -o build/temp.macosx-10.13-x86_64-2.7/src/lib-pmpi/vt-mpi.o
/opt/local/bin/mpicc -shared -undefined dynamic_lookup -L/opt/local/lib -Wl,-headerpad_max_install_names -L/opt/local/lib/db48 -install_name libvt-mpi.dylib build/temp.macosx-10.13-x86_64-2.7/src/lib-pmpi/vt-mpi.o -L/Users/j3sakavaka/miniconda2/lib -L/Users/j3sakavaka/miniconda2/lib -o build/lib.macosx-10.13-x86_64-2.7/mpi4py/lib-pmpi/libvt-mpi.dylib
ld: in '/System/Library/Frameworks//OpenCL.framework/Versions/A/OpenCL.tbd', unexpected token: !tapi-tbd-v3 for architecture x86_64
collect2: error: ld returned 1 exit status
warning: build_clib: command '/opt/local/bin/mpicc' failed with exit status 1
warning: build_clib: building optional library "vt-mpi" failed
checking for library 'vt-hyb' ...
/opt/local/bin/mpicc -fno-strict-aliasing -fno-common -dynamic -pipe -Os -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -c _configtest.c -o _configtest.o
/opt/local/bin/mpicc -flat_namespace -undefined suppress _configtest.o -L/Users/j3sakavaka/miniconda2/lib -lvt-hyb -o _configtest
ld: in '/System/Library/Frameworks//OpenCL.framework/Versions/A/OpenCL.tbd', unexpected token: !tapi-tbd-v3 for architecture x86_64
collect2: error: ld returned 1 exit status
failure.
removing: _configtest.c _configtest.o
checking for library 'vt.ompi' ...
/opt/local/bin/mpicc -fno-strict-aliasing -fno-common -dynamic -pipe -Os -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -c _configtest.c -o _configtest.o
/opt/local/bin/mpicc -flat_namespace -undefined suppress _configtest.o -L/Users/j3sakavaka/miniconda2/lib -lvt.ompi -o _configtest
ld: library not found for -lvt.ompi
collect2: error: ld returned 1 exit status
failure.
removing: _configtest.c _configtest.o
building 'vt-hyb' dylib library
/opt/local/bin/mpicc -fno-strict-aliasing -fno-common -dynamic -pipe -Os -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -c src/lib-pmpi/vt-hyb.c -o build/temp.macosx-10.13-x86_64-2.7/src/lib-pmpi/vt-hyb.o
/opt/local/bin/mpicc -shared -undefined dynamic_lookup -L/opt/local/lib -Wl,-headerpad_max_install_names -L/opt/local/lib/db48 -install_name libvt-hyb.dylib build/temp.macosx-10.13-x86_64-2.7/src/lib-pmpi/vt-hyb.o -L/Users/j3sakavaka/miniconda2/lib -L/Users/j3sakavaka/miniconda2/lib -o build/lib.macosx-10.13-x86_64-2.7/mpi4py/lib-pmpi/libvt-hyb.dylib
ld: in '/System/Library/Frameworks//OpenCL.framework/Versions/A/OpenCL.tbd', unexpected token: !tapi-tbd-v3 for architecture x86_64
collect2: error: ld returned 1 exit status
warning: build_clib: command '/opt/local/bin/mpicc' failed with exit status 1
warning: build_clib: building optional library "vt-hyb" failed
running build_ext
MPI configuration: [mpi] from 'mpi.cfg'
MPI C compiler: /opt/local/bin/mpicc
MPI C++ compiler: /opt/local/bin/mpicxx
MPI F compiler: /opt/local/bin/mpifort
MPI F90 compiler: /opt/local/bin/mpif90
MPI F77 compiler: /opt/local/bin/mpif77
checking for dlopen() availability ...
checking for header 'dlfcn.h' ...
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -pipe -Os -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/opt/local/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c _configtest.c -o _configtest.o
success!
removing: _configtest.c _configtest.o
success!
checking for library 'dl' ...
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -pipe -Os -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/opt/local/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c _configtest.c -o _configtest.o
/usr/bin/clang -flat_namespace -undefined suppress _configtest.o -Lbuild/temp.macosx-10.13-x86_64-2.7 -ldl -o _configtest
success!
removing: _configtest.c _configtest.o _configtest
checking for function 'dlopen' ...
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -pipe -Os -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/opt/local/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c _configtest.c -o _configtest.o
/usr/bin/clang _configtest.o -Lbuild/temp.macosx-10.13-x86_64-2.7 -ldl -o _configtest
success!
removing: _configtest.c _configtest.o _configtest
building 'mpi4py.dl' extension
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -pipe -Os -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_DLFCN_H=1 -DHAVE_DLOPEN=1 -I/opt/local/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c src/dynload.c -o build/temp.macosx-10.13-x86_64-2.7/src/dynload.o
/usr/bin/clang -bundle -undefined dynamic_lookup -L/opt/local/lib -Wl,-headerpad_max_install_names -L/opt/local/lib/db48 build/temp.macosx-10.13-x86_64-2.7/src/dynload.o -Lbuild/temp.macosx-10.13-x86_64-2.7 -ldl -o build/lib.macosx-10.13-x86_64-2.7/mpi4py/dl.so
checking for MPI compile and link ...
/opt/local/bin/mpicc -fno-strict-aliasing -fno-common -dynamic -pipe -Os -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/opt/local/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c _configtest.c -o _configtest.o
success!
removing: _configtest.c _configtest.o
/opt/local/bin/mpicc -fno-strict-aliasing -fno-common -dynamic -pipe -Os -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/opt/local/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c _configtest.c -o _configtest.o
/opt/local/bin/mpicc _configtest.o -Lbuild/temp.macosx-10.13-x86_64-2.7 -o _configtest
ld: in '/System/Library/Frameworks//OpenCL.framework/Versions/A/OpenCL.tbd', unexpected token: !tapi-tbd-v3 for architecture x86_64
collect2: error: ld returned 1 exit status
failure.
removing: _configtest.c _configtest.o
error: Cannot link MPI programs. Check your configuration!!!
----------------------------------------
ERROR: Command errored out with exit status 1: /Users/j3sakavaka/amuse/Amuse-env/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/vs/0f8lgdcj6pg0v81zn8288vhm0000gn/T/pip-install-juHk2R/mpi4py/setup.py'"'"'; __file__='"'"'/private/var/folders/vs/0f8lgdcj6pg0v81zn8288vhm0000gn/T/pip-install-juHk2R/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 /private/var/folders/vs/0f8lgdcj6pg0v81zn8288vhm0000gn/T/pip-record-B9Jj39/install-record.txt --single-version-externally-managed --compile --install-headers /Users/j3sakavaka/amuse/Amuse-env/bin/../include/site/python2.7/mpi4py Check the logs for full command output.
Sorry for the delay... It looks like you may have a problem with your MPI installation. Could you try compiling and running a simple MPI programme, see e.g. https://mpitutorial.com/tutorials/mpi-hello-world/?
Thank you for your answer!
As it turned out, there was indeed some problem with the MPI installation. I don't know why, but it didn't run properly when i installed it using macports. After installing mpich manually, Amuse seems to run without any problems.
Thank you for your help again!
Great to hear it's working now! Please let us know if you run into any more issues.
Hi Everyone!
I'm new to amuse, so apologies if my question is too obvious to figure out, but i searched for an answer everywhere and couldn't find anything, so i decided to write here.
I have macOS high sierra, I've installed the amuse exactly as it is described here: https://amusecode.github.io/installation. The installation of galaxia failed, but apart from that everything went seemingly fine.
First, I tried to install it using openmpi, but then i got exactly the same problem as reported here: https://github.com/amusecode/amuse/issues/456 Therefore, i decided to go with mpich.
Then when i try to run the example programmes that can be found here: https://amusecode.github.io/getting-started, I run into issues.
So i run:
then i receive:
After failing with openmpi, i uninstalled it, and i reinstalled mpi4py.
I also ran the following commands:
1)
python -c "from mpi4py import MPI"
gives:
2) ls -l
which mpiexec
gives
lrwxr-xr-x 1 root wheel 33 20 okt 18:58 /opt/local/bin/mpiexec -> /opt/local/bin/mpiexec-mpich-gcc7
3)
port installed
gives
4)
port select --summary
gives
5)
mpirun -n 2 hostname
gives
(this last one also produced two pop up windows but they closed down so fast, that i couldn't read them)
If any of you could help me with this, I'd really appreciate that! Thank you!