[mvapich-discuss] Errors on Fedora 13
Vladimir Florinski
vaf0001 at uah.edu
Wed Jul 28 15:18:10 EDT 2010
On Wed, 2010-07-28 at 11:04 -0400, Jonathan Perkins wrote:
> Vladmir:
> Pavan's information is correct. Regarding the build failure with
> mvapich2-1.5. Are you seeing the following error?
>
> AR cr libmpiexec.a cmnargs.o process.o ioloop.o pmiserv.o labelout.o
> env.o newsession.o rm.o pmiport.o dbgiface.o
> RANLIB libmpiexec.a
> make[4]: Leaving directory `/home/jonathan/mvapich2-1.5/src/pm/util'
> gcc -g -O2 -DNDEBUG -O2 -o mpiexec mpiexec.o \
> ../util/libmpiexec.a ../../../lib/libmpich.a -lpthread -lrdmacm
> -libverbs -libumad -lrt
> /usr/bin/ld: ../../../lib/libmpich.a(mem_hooks.o): undefined reference
> to symbol 'dlsym@@GLIBC_2.2.5'
> /usr/bin/ld: note: 'dlsym@@GLIBC_2.2.5' is defined in DSO
> /lib64/libdl.so.2 so try adding it to the linker command line
> /lib64/libdl.so.2: could not read symbols: Invalid operation
> collect2: ld returned 1 exit status
> make[3]: *** [mpiexec] Error 1
> make[3]: Leaving directory `/home/jonathan/mvapich2-1.5/src/pm/gforker'
> make[2]: *** [all-redirect] Error 1
> make[2]: Leaving directory `/home/jonathan/mvapich2-1.5/src/pm'
> make[1]: *** [all-redirect] Error 2
> make[1]: Leaving directory `/home/jonathan/mvapich2-1.5/src'
> make: *** [all-redirect] Error 2
>
> If so, it looks like this issue is that discussed in
> http://fedoraproject.org/wiki/UnderstandingDSOLinkChange. I found
> that specifying LDFLAGS='-ldl' can be used as a workaround for this
> issue.
>
> ex: ./configure --prefix=/path/to/install LDFLAGS='-ldl'
>
> I'd like to suggest trying this work around with mvapich2-1.5 or using
> mvapich2-1.4.1 which contains several bug fixes and other enhancements
> compared to mvapich2-1.4.
>
Thank you for your suggestions. It does appear that the errors are
harmless. We have already used -ldl in the RPM spec file because 1.4
would not build without it. But with 1.5, the errors are different:
../../../lib/libmpich.a(alltoall_osu.o): In function `PMPI_Alltoall':
/root/rpmbuild/BUILD/mvapich2-1.5/src/mpi/coll/alltoall_osu.c:697:
undefined reference to `pthread_getspecific'
I suppose adding -lpthread might fix this. Will give it a try.
--
Vladimir Florinski <vaf0001 at uah.edu>
More information about the mvapich-discuss
mailing list