I am using Python 2.7.5 and have installed openmpi-1.8.4.

However when i try and build mpi4py-1.3.1 using *'$ python setup.py build'* in
terminal as outlined in the file*'docs/source/usrman/install.rst'*, i get
the error pasted in the text document attached. See below for the final few
lines for convenience:


*[...    ld: warning: ignoring file _configtest.o, file was built for i386
which is not the architecture being linked (x86_64): _configtest.o*

*   Undefined symbols for architecture x86_64:*

*      "_main", referenced from:*

*         implicit entry/start for main executable*

*    ld: symbol(s) not found 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!!! ]*


>From my google searches i believe it has something to do with using a 64
bit computer or potentially needing to specify that I'm using openmpi
rather than MPICH, etc.

Any advice would be greatly appreciated,

thanks in advance,

Gabriel Gassem

-- 
You received this message because you are subscribed to the Google Groups "PyFR 
Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send an email to [email protected].
Visit this group at http://groups.google.com/group/pyfrmailinglist.
For more options, visit https://groups.google.com/d/optout.
localhost:mpi4py-1.3.1 ggassem$ python setup.py build
running build
running build_src
running build_py
running build_clib
MPI configuration: [mpi] from 'mpi.cfg'
MPI C compiler:    /usr/local/bin/mpicc
MPI C++ compiler:  /usr/local/bin/mpicxx
MPI F77 compiler:  /usr/local/bin/mpif77
MPI F90 compiler:  /usr/local/bin/mpif90
running build_ext
MPI configuration: [mpi] from 'mpi.cfg'
MPI C compiler:    /usr/local/bin/mpicc
MPI C++ compiler:  /usr/local/bin/mpicxx
MPI F77 compiler:  /usr/local/bin/mpif77
MPI F90 compiler:  /usr/local/bin/mpif90
checking for MPI compile and link ...
checking for header 'mpi.h' ...
/usr/local/bin/mpicc -arch x86_64 -arch i386 -pipe -fno-strict-aliasing 
-fno-common -dynamic -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes 
-I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c 
_configtest.c -o _configtest.o
success!
removing: _configtest.c _configtest.o
success!
/usr/local/bin/mpicc -arch x86_64 -arch i386 -pipe -fno-strict-aliasing 
-fno-common -dynamic -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes 
-I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c 
_configtest.c -o _configtest.o
success!
removing: _configtest.c _configtest.o
/usr/local/bin/mpicc -arch x86_64 -arch i386 -pipe -fno-strict-aliasing 
-fno-common -dynamic -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes 
-I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c 
_configtest.c -o _configtest.o
/usr/local/bin/mpicc _configtest.o -Lbuild/temp.macosx-10.9-intel-2.7 -o 
_configtest
ld: warning: ignoring file _configtest.o, file was built for i386 which is not 
the architecture being linked (x86_64): _configtest.o
Undefined symbols for architecture x86_64:
  "_main", referenced from:
     implicit entry/start for main executable
ld: symbol(s) not found 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!!!

Reply via email to