1. Good catch noticing that we lost mpi.cfg: This can be fixed by adding to python-mpi4py.install: ``` usr/lib/python2*/*-packages/*/*.cfg
``` An analogous fix is required in python3-mpi4py.install. See https://github.com/bfroehle/debian-mpi4py/commit/b6fae77320f2d64ba18d749251d7311d146c3c8d 2. It looks like -lffi is coming from the Python installation. Try running: $ python3.2 -c "from distutils.sysconfig import get_config_var; print(get_config_var('MODLIBS'))" -lssl -lcrypto -lssl -lcrypto -L/usr/lib -lz -lexpat In particular, on my Ubuntu 12.04 system, I'm not linking with ffi: building 'python3.2-mpi' executable /usr/bin/mpicc.openmpi -fPIC -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -D_FORTIFY_SOURCE=2 -g -O2 -fstack-prot ector --param=ssp-buffer-size=4 -Wformat -Wformat-security -I/usr/include/python3.2mu -c src/python.c -o build/temp.li nux-x86_64-3.2/src/python.o creating build/exe.linux-x86_64-3.2 /usr/bin/mpicc.openmpi -D_FORTIFY_SOURCE=2 -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-export-dynamic -Wl,-O1 -Wl,-Bsymbolic-functions build/temp.linux-x86_64-3.2/src/python.o -L/usr/lib/python3.2/config-3.2mu -lpython3.2 -o build/exe.linux-x86_64-3.2/python3.2-mpi -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-Bsymbolic-functions -Wl,-z,relro -lpthread -ldl -lutil -lssl -lcrypto -lssl -lcrypto -L/usr/lib -lz -lexpat -lm