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

Bharath Ramesh bramesh at vt.edu
Thu Dec 10 12:46:16 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 tried adding -fPIC to the CFLAGS in make.mvapich.gen2. I still see the
same error.

Regards,

Bharath


More information about the mvapich-discuss mailing list