[mvapich-discuss] MPI4PY with mvapich2

Jonathan Perkins perkinjo at cse.ohio-state.edu
Mon Apr 8 19:57:19 EDT 2013


On Mon, Apr 08, 2013 at 04:58:55PM -0500, Xing Wang wrote:
> Hi All,
> 
> Thanks for reading the email.
> We have been using mvapich2-1.8.1 since last Oct. and it's working very well. Recently we need to install MPI4PY but met with following error messages. 
> 
> ------------------------------------------------------------------------------------------------------------
> ld: /usr/local/mvapich2/intel/1.8.1/lib/liblmpe.a(log_mpi_util.o): relocation R_X86_64_32 against `.rodata.str1.4' can not be used when making a shared object; recompile with -fPIC
> /usr/local/mvapich2/intel/1.8.1/lib/liblmpe.a(log_mpi_util.o): could not read symbols: Bad value
> warning: build_clib: building library "mpe" failed
> 
> warning: build_clib: command '/usr/local/mvapich2/intel/1.8.1/bin/mpicc' failed with exit status 1
> ------------------------------------------------------------------------------------------------------------
> 
> Did anyone have a similar error before? Any help/hint is really appreciated!

Hi there.  I believe that you're facing this problem because MPI4PY
requires a build against shared libraries but your MVAPICH2 installation
is most likely static.

Can you confirm this by sending the output of `mpiname -a'.  If this is
the case you should be able to rebuild MVAPICH2 by adding
--enable-shared to the configure step.

-- 
Jonathan Perkins
http://www.cse.ohio-state.edu/~perkinjo



More information about the mvapich-discuss mailing list