[mvapich-discuss] MVAPICH2-1.4.1: shared library build error
Pavan Balaji
balaji at mcs.anl.gov
Tue Mar 23 19:19:53 EDT 2010
I think this is the same problem that was fixed in r5135 in MPICH2.
That's certainly after mpich2-1.0.8 was released, so MVAPICH2 probably
doesn't have this fix.
MVAPICH folks: you should just be able to apply this patch to your
current version. I haven't tested it, but I think it would work.
-- Pavan
On 03/23/2010 05:49 PM, Adam Moody wrote:
> Hello MVAPICH team,
> I was trying to build shared libraries for MVAPICH2-1.4.1 using the
> tarball downloaded from the MVAPICH webpage. I am using the following
> configure command:
>
> ./configure \
> --prefix=/usr/local/tools/mvapich2-intel-debug-1.4.1 \
> --enable-sharedlibs=gcc \
> --enable-f77 --enable-f90 --enable-cxx \
> --enable-fast=O0 --enable-g=dbg
> --enable-error-checking=runtime --enable-error-messages=all
> --enable-nmpi-as-mpi \
> --enable-debuginfo \
> --with-pmi=slurm --with-pm=no \
> --with-rdma=gen2 --with-ib-include=/usr/include
> --with-ib-lib=/usr/lib64 \
> --enable-registration-cache \
> --enable-romio --with-file-system=lustre+nfs+ufs \
> --disable-mpe --without-mpe && \
>
> The build seems to complete, but the shared objects are missing from the
> lib directory. When I trace back through the build output, I see the
> following error.
>
> make[2]: Entering directory
> `/tmp/dpkg-mkdeb.trTLU12767/src/build-mvapich-long-path-hack-enabled-ofa-intel-debug'
>
> (cd lib &&
> /tmp/dpkg-mkdeb.trTLU12767/src/build-mvapich-long-path-hack-enabled-ofa-intel-debug/src/util/createshlib
> --mode=link -version-info "1:1" -o libmpich.la -rpath
> /usr/local/tools/mvapich2-intel-debug-1.4.1/lib -lpmi -lpthread
> -lrdmacm -libverbs -libumad -lrt -ldflags "" -lpmi -lpthread
> -lrdmacm -libverbs -libumad -lrt )
> /usr/bin/ld: cannot find -ldflags
>
> It seems that createshlib should be stripping the -ldflags as an input
> parameter, but instead it must be passing it on to the linker, which
> then fails to build the shared object.
> -Adam
> _______________________________________________
> mvapich-discuss mailing list
> mvapich-discuss at cse.ohio-state.edu
> http://mail.cse.ohio-state.edu/mailman/listinfo/mvapich-discuss
--
Pavan Balaji
http://www.mcs.anl.gov/~balaji
More information about the mvapich-discuss
mailing list