[mvapich-discuss] MVAPICH-1.1 with MPI-2 C++ binding build failure.

Bharath Ramesh bramesh at vt.edu
Thu Dec 10 12:29:03 EST 2009


On Thu, Dec 10, 2009 at 12:14:53PM -0500, Jonathan Perkins wrote:
> On Thu, Dec 03, 2009 at 04:40:37PM -0500, Bharath Ramesh wrote:
> > I am trying to build MVAPICH-1.1 using the latest daily build
> > 12-02-2009. I get the following error when building it, any help on this
> > is appreciated.
> > 
> > Making a shared library of libpmpich++.a
> > /usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/ld:
> > comm.o: relocation R_X86_64_32 against
> > `PMPI::Comm::NULL_DELETE_FN(PMPI::Comm&, int, void*, void*)' can not be used when making a shared object; recompile with -fPIC
> > comm.o: could not read symbols: Bad value
> > collect2: ld returned 1 exit status
> 
> I haven't been able to reproduce this yet but can you try adding -fPIC
> to the CFLAGS in make.mvapich.gen2?  Also, what modifications in
> particular did you make to the build scripts in order to try and build
> shared libs?
> 

I will try a rebuild by adding -fPIC to the CFLAGS of make.mvapich.gen2.

The modifications I have done to the make.mvapich.gen2 are as follows:

o Set the path for IBHOME, IBHOME_LIB, PREFIX
o I set the compilers I want to user
o Edited the configure line to the following:
    ./configure --enable-sharedlibs --enable-debug \
           --with-device=ch_gen2 --with-arch=LINUX -prefix=${PREFIX} \
           -lib="$LIBS" 2>&1 |tee config-mine.log

The LIBS, FFLAGS, CFLAGS, MPIRUN_CFLAGS get set as follows:

LIBS=-L/apps/packages/OFED-1.4.2/lib64 -Wl,-rpath=/apps/packages/OFED-1.4.2/lib64 -libverbs -libumad -lpthread
FFLAGS=-L/apps/packages/OFED-1.4.2/lib64
CFLAGS=-D_EM64T_   -DEARLY_SEND_COMPLETION -DMEMORY_SCALE -DVIADEV_RPUT_SUPPORT -D_SMP_ -D_SMP_RNDV_ -DXRC -DCH_GEN2 -D_GNU_SOURCE -I/apps/packages/OFED-1.4.2/include -O3
MPIRUN_CFLAGS=-D_EM64T_   -DEARLY_SEND_COMPLETION -DMEMORY_SCALE -DVIADEV_RPUT_SUPPORT -D_SMP_ -D_SMP_RNDV_ -DXRC -DCH_GEN2 -D_GNU_SOURCE -I/apps/packages/OFED-1.4.2/include -O3

Regards,

Bharath


More information about the mvapich-discuss mailing list