The issue here is that your Python is built with GCC and some of the
flags being used for building Python extension modules are
GCC-specific. But your Open MPI is built with Portland Group
compilers, and this compiler does not accept these GCC-specific
switches like -fno-strict-aliasing.
You should ask mpicc compiler wrapper to use another compiler, I mean,
GCC. For the case of Open MPI, you have instructions on your mpicc(1)
manpage (read online here
http://linux.die.net/man/1/mpicc, or do "man
mpicc" on your console). In short, you have to do this:
$ export OMPI_CC=gcc
now if you do
$ mpicc -showme
you should see something like:
gcc -I/usr/local/openmpi/1.3.3/include -pthread
-L/usr/local/openmpi/1.3.3/lib -lmpi -lopen-rte -lopen-pal -ldl
-Wl,--export-dynamic -lnsl -lutil -lm -ldl
I mean, you should see "gcc" the very beginning.
Now try to build mpi4py as before.
If this does not work, come back; we will need to use a more low level
hackery (i.e. adjusting stuff in the file mpi.cfg)
--
Lisandro Dalcín
---------------
Centro Internacional de Métodos Computacionales en Ingeniería (CIMEC)
Instituto de Desarrollo Tecnológico para la Industria Química (INTEC)
Consejo Nacional de Investigaciones Científicas y Técnicas (CONICET)
PTLC - Güemes 3450, (3000) Santa Fe, Argentina
Tel/Fax:
+54-(0)342-451.1594