[mvapich-discuss] MVAPICH2 1.5.1 shared library issue

Eoin McHugh eoin.mchugh at ichec.ie
Wed Sep 15 12:19:25 EDT 2010


Hi,

I'm currently building MVAPICH2 1.5.1 on a SLES11 SP1 system with GCC 
4.3.4 and am experiencing a compile time issue when I attempt to build 
shared libraries for it.

My configure options are as follows:

    ./configure --prefix=/path/to/install --enable-f77 --enable-f90 --enable-cxx --enable-romio --enable-debuginfo --with-mpe --enable-sharedlibs=gcc

After the build only the libmpichcxx.so and libmpichf90.so shared libs 
are installed. Neither libfmpich.so nor libmpich.so are present.

I've taken an extract from the build information at the very end where it
attempts to link the shared libs and attached it.

I built a copy of MVAPICH 1.5 with the same configure options without any 
issue.

Regards,

-- 
Eoin McHugh
ICHEC Systems Team
-------------- next part --------------
make lib/libmpich.so
make[1]: Entering directory `/dev/shm/mvapich2-1.5.1-gnu-so'
(cd lib && /dev/shm/mvapich2-1.5.1-gnu-so/src/util/createshlib --mode=link -version-info "1:2" -o libmpich.la  -rpath /ichec/packages/mvapich/1.5.1-gnu-so/lib  -lpthread -lrdmacm -libverbs 
-libumad -ldl    -lrt     -ldflags "" -lpthread -lrdmacm -libverbs -libumad -ldl    -lrt   )
/usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/ld: .tmp/bind.o: relocation R_X86_64_32 against `.text' can not be used when making a shared object; recompile with -f
PIC
.tmp/bind.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
if [ -n "" -a \
                "mpich" != "pmpich" ] ; then \
        (cd lib && /dev/shm/mvapich2-1.5.1-gnu-so/src/util/createshlib --mode=link -version-info "1:2" -o libpmpich.la  -rpath /ichec/packages/mvapich/1.5.1-gnu-so/lib  -lpthread -lrdmacm -
libverbs -libumad -ldl    -lrt   );\
        fi
make[1]: Leaving directory `/dev/shm/mvapich2-1.5.1-gnu-so'
make lib/libfmpich.so
make[1]: Entering directory `/dev/shm/mvapich2-1.5.1-gnu-so'
(cd lib && /dev/shm/mvapich2-1.5.1-gnu-so/src/util/createshlib --mode=link -version-info "1:2" -o libfmpich.la  -rpath /ichec/packages/mvapich/1.5.1-gnu-so/lib  -L. -lmpich -lpthread -lrdma
cm -libverbs -libumad -ldl    -lrt    -ldflags "" -lpthread -lrdmacm -libverbs -libumad -ldl    -lrt   )
/usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/ld: ./libmpich.a(mvapich_malloc.o): relocation R_X86_64_32 against `.bss' can not be used when making a shared object;
 recompile with -fPIC
./libmpich.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[1]: Leaving directory `/dev/shm/mvapich2-1.5.1-gnu-so'
make lib/libmpichf90.so
make[1]: Entering directory `/dev/shm/mvapich2-1.5.1-gnu-so'
(cd lib && /dev/shm/mvapich2-1.5.1-gnu-so/src/util/createshlib --mode=link -version-info "1:2" -o libmpichf90.la  -rpath /ichec/packages/mvapich/1.5.1-gnu-so/lib  -ldflags "" -lpthread -lrd
macm -libverbs -libumad -ldl    -lrt   )
make[1]: Leaving directory `/dev/shm/mvapich2-1.5.1-gnu-so'
make lib/libmpichcxx.so
make[1]: Entering directory `/dev/shm/mvapich2-1.5.1-gnu-so'
(cd lib && /dev/shm/mvapich2-1.5.1-gnu-so/src/util/createshlib --mode=link -version-info "1:2" -o libmpichcxx.la  -rpath /ichec/packages/mvapich/1.5.1-gnu-so/lib  -lpthread -lrdmacm -libver
bs -libumad -ldl    -lrt    -ldflags "" -lpthread -lrdmacm -libverbs -libumad -ldl    -lrt   )
make[1]: Leaving directory `/dev/shm/mvapich2-1.5.1-gnu-so'
make all-postamble
make[1]: Entering directory `/dev/shm/mvapich2-1.5.1-gnu-so'
make[2]: Entering directory `/dev/shm/mvapich2-1.5.1-gnu-so/src/mpi/debugger'
make[2]: `libtvmpich2.so' is up to date.
make[2]: Leaving directory `/dev/shm/mvapich2-1.5.1-gnu-so/src/mpi/debugger'
Make completed
make[1]: Leaving directory `/dev/shm/mvapich2-1.5.1-gnu-so'


More information about the mvapich-discuss mailing list