Skip to content

Instantly share code, notes, and snippets.

@shantenujha
Created October 18, 2015 03:11
Show Gist options
  • Save shantenujha/c6b736dec9f6cfaf4f87 to your computer and use it in GitHub Desktop.
Save shantenujha/c6b736dec9f6cfaf4f87 to your computer and use it in GitHub Desktop.
mpi4py error (on RandomDisorder aka laptop)
Downloading/unpacking mpi4py
Running setup.py (path:/Users/shantenu/repex-test/build/mpi4py/setup.py) egg_info for package mpi4py
Installing collected packages: mpi4py
Running setup.py install for mpi4py
MPI configuration: [mpi] from 'mpi.cfg'
checking for library 'pthread' ...
/usr/bin/gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -c _configtest.c -o _configtest.o
unable to execute /usr/bin/gcc-4.2: No such file or directory
failure.
removing: _configtest.c _configtest.o
checking for library 'mpe' ...
/usr/bin/gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -c _configtest.c -o _configtest.o
unable to execute /usr/bin/gcc-4.2: No such file or directory
failure.
removing: _configtest.c _configtest.o
checking for library 'lmpe' ...
/usr/bin/gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -c _configtest.c -o _configtest.o
unable to execute /usr/bin/gcc-4.2: No such file or directory
failure.
removing: _configtest.c _configtest.o
building 'mpe' dylib library
/usr/bin/gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -c src/pmpi-mpe.c -o build/temp.macosx-10.6-x86_64-2.7/src/pmpi-mpe.o
unable to execute /usr/bin/gcc-4.2: No such file or directory
warning: build_clib: building library "mpe" failed
warning: build_clib: command '/usr/bin/gcc-4.2' failed with exit status 1
checking for library 'vt-mpi' ...
/usr/bin/gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -c _configtest.c -o _configtest.o
unable to execute /usr/bin/gcc-4.2: No such file or directory
failure.
removing: _configtest.c _configtest.o
checking for library 'vt.mpi' ...
/usr/bin/gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -c _configtest.c -o _configtest.o
unable to execute /usr/bin/gcc-4.2: No such file or directory
failure.
removing: _configtest.c _configtest.o
building 'vt' dylib library
/usr/bin/gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -c src/pmpi-vt.c -o build/temp.macosx-10.6-x86_64-2.7/src/pmpi-vt.o
unable to execute /usr/bin/gcc-4.2: No such file or directory
warning: build_clib: building library "vt" failed
warning: build_clib: command '/usr/bin/gcc-4.2' failed with exit status 1
checking for library 'vt-mpi' ...
/usr/bin/gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -c _configtest.c -o _configtest.o
unable to execute /usr/bin/gcc-4.2: No such file or directory
failure.
removing: _configtest.c _configtest.o
building 'vt-mpi' dylib library
/usr/bin/gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -c src/pmpi-vt-mpi.c -o build/temp.macosx-10.6-x86_64-2.7/src/pmpi-vt-mpi.o
unable to execute /usr/bin/gcc-4.2: No such file or directory
warning: build_clib: building library "vt-mpi" failed
warning: build_clib: command '/usr/bin/gcc-4.2' failed with exit status 1
checking for library 'vt-hyb' ...
/usr/bin/gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -c _configtest.c -o _configtest.o
unable to execute /usr/bin/gcc-4.2: No such file or directory
failure.
removing: _configtest.c _configtest.o
building 'vt-hyb' dylib library
/usr/bin/gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -c src/pmpi-vt-hyb.c -o build/temp.macosx-10.6-x86_64-2.7/src/pmpi-vt-hyb.o
unable to execute /usr/bin/gcc-4.2: No such file or directory
warning: build_clib: building library "vt-hyb" failed
warning: build_clib: command '/usr/bin/gcc-4.2' failed with exit status 1
MPI configuration: [mpi] from 'mpi.cfg'
checking for MPI compile and link ...
checking for header 'mpi.h' ...
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c _configtest.c -o _configtest.o
_configtest.c:2:10: fatal error: 'mpi.h' file not found
#include <mpi.h>
^
1 error generated.
failure.
removing: _configtest.c _configtest.o
failure.
error: Cannot find 'mpi.h' header. Check your configuration!!!
Complete output from command /Users/shantenu/repex-test/bin/python -c "import setuptools, tokenize;__file__='/Users/shantenu/repex-test/build/mpi4py/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/dg/3h29j37d3ls3473531cs2ftc0000gq/T/pip-lqR3kh-record/install-record.txt --single-version-externally-managed --compile --install-headers /Users/shantenu/repex-test/bin/../include/site/python2.7:
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/__init__.py -> build/lib.macosx-10.6-x86_64-2.7/mpi4py
copying src/rc.py -> 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/include/mpi4py/mpi4py.h -> build/lib.macosx-10.6-x86_64-2.7/mpi4py/include/mpi4py
copying src/include/mpi4py/mpi4py.MPI.h -> build/lib.macosx-10.6-x86_64-2.7/mpi4py/include/mpi4py
copying src/include/mpi4py/mpi4py.MPI_api.h -> build/lib.macosx-10.6-x86_64-2.7/mpi4py/include/mpi4py
copying src/include/mpi4py/__init__.pxd -> build/lib.macosx-10.6-x86_64-2.7/mpi4py/include/mpi4py
copying src/include/mpi4py/MPI.pxd -> build/lib.macosx-10.6-x86_64-2.7/mpi4py/include/mpi4py
copying src/include/mpi4py/mpi_c.pxd -> build/lib.macosx-10.6-x86_64-2.7/mpi4py/include/mpi4py
copying src/include/mpi4py/__init__.pyx -> build/lib.macosx-10.6-x86_64-2.7/mpi4py/include/mpi4py
copying src/include/mpi4py/mpi.pxi -> build/lib.macosx-10.6-x86_64-2.7/mpi4py/include/mpi4py
copying src/include/mpi4py/mpi4py.i -> build/lib.macosx-10.6-x86_64-2.7/mpi4py/include/mpi4py
copying src/MPI.pxd -> build/lib.macosx-10.6-x86_64-2.7/mpi4py
copying src/mpi_c.pxd -> build/lib.macosx-10.6-x86_64-2.7/mpi4py
running build_clib
MPI configuration: [mpi] from 'mpi.cfg'
checking for library 'pthread' ...
/usr/bin/gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -c _configtest.c -o _configtest.o
unable to execute /usr/bin/gcc-4.2: No such file or directory
failure.
removing: _configtest.c _configtest.o
checking for library 'mpe' ...
/usr/bin/gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -c _configtest.c -o _configtest.o
unable to execute /usr/bin/gcc-4.2: No such file or directory
failure.
removing: _configtest.c _configtest.o
checking for library 'lmpe' ...
/usr/bin/gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -c _configtest.c -o _configtest.o
unable to execute /usr/bin/gcc-4.2: No such file or directory
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
/usr/bin/gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -c src/pmpi-mpe.c -o build/temp.macosx-10.6-x86_64-2.7/src/pmpi-mpe.o
unable to execute /usr/bin/gcc-4.2: No such file or directory
warning: build_clib: building library "mpe" failed
warning: build_clib: command '/usr/bin/gcc-4.2' failed with exit status 1
checking for library 'vt-mpi' ...
/usr/bin/gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -c _configtest.c -o _configtest.o
unable to execute /usr/bin/gcc-4.2: No such file or directory
failure.
removing: _configtest.c _configtest.o
checking for library 'vt.mpi' ...
/usr/bin/gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -c _configtest.c -o _configtest.o
unable to execute /usr/bin/gcc-4.2: No such file or directory
failure.
removing: _configtest.c _configtest.o
building 'vt' dylib library
/usr/bin/gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -c src/pmpi-vt.c -o build/temp.macosx-10.6-x86_64-2.7/src/pmpi-vt.o
unable to execute /usr/bin/gcc-4.2: No such file or directory
warning: build_clib: building library "vt" failed
warning: build_clib: command '/usr/bin/gcc-4.2' failed with exit status 1
checking for library 'vt-mpi' ...
/usr/bin/gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -c _configtest.c -o _configtest.o
unable to execute /usr/bin/gcc-4.2: No such file or directory
failure.
removing: _configtest.c _configtest.o
building 'vt-mpi' dylib library
/usr/bin/gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -c src/pmpi-vt-mpi.c -o build/temp.macosx-10.6-x86_64-2.7/src/pmpi-vt-mpi.o
unable to execute /usr/bin/gcc-4.2: No such file or directory
warning: build_clib: building library "vt-mpi" failed
warning: build_clib: command '/usr/bin/gcc-4.2' failed with exit status 1
checking for library 'vt-hyb' ...
/usr/bin/gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -c _configtest.c -o _configtest.o
unable to execute /usr/bin/gcc-4.2: No such file or directory
failure.
removing: _configtest.c _configtest.o
building 'vt-hyb' dylib library
/usr/bin/gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -c src/pmpi-vt-hyb.c -o build/temp.macosx-10.6-x86_64-2.7/src/pmpi-vt-hyb.o
unable to execute /usr/bin/gcc-4.2: No such file or directory
warning: build_clib: building library "vt-hyb" failed
warning: build_clib: command '/usr/bin/gcc-4.2' failed with exit status 1
running build_ext
MPI configuration: [mpi] from 'mpi.cfg'
checking for MPI compile and link ...
checking for header 'mpi.h' ...
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c _configtest.c -o _configtest.o
_configtest.c:2:10: fatal error: 'mpi.h' file not found
#include <mpi.h>
^
1 error generated.
failure.
removing: _configtest.c _configtest.o
failure.
error: Cannot find 'mpi.h' header. Check your configuration!!!
----------------------------------------
Cleaning up...
Command /Users/shantenu/repex-test/bin/python -c "import setuptools, tokenize;__file__='/Users/shantenu/repex-test/build/mpi4py/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/dg/3h29j37d3ls3473531cs2ftc0000gq/T/pip-lqR3kh-record/install-record.txt --single-version-externally-managed --compile --install-headers /Users/shantenu/repex-test/bin/../include/site/python2.7 failed with error code 1 in /Users/shantenu/repex-test/build/mpi4py
Storing debug log for failure in /Users/shantenu/.pip/pip.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment