Emmanuel, By any chance, does libosmcomp.la contains a -rpath line ?
FWIW, you can simply make V=1 In order to see how libtool is invoked, and how it will invoke bcc Cheers, Gilles On Saturday, February 27, 2016, Emmanuel Thomé <emmanuel.th...@gmail.com> wrote: > Hi, > > Thanks for your answer. > > I have no LD_LIBRARY_PATH. I am not sure it should matter anyway, > though: the objdump command looks at what the object file requests, > not necessarily what happens at runtime as if we were using ldd. > > This seems to be related to the MOFED debian packages including a .la > file for the stuff they install (which is against debian practice, > although not exactly for the same reason: > https://wiki.debian.org/ReleaseGoals/LAFileRemoval ). > > Specifically, I have /usr/lib/libosmcomp.la. If I delete that file, > then no -L/usr/lib shows up in the relink command for libmpi; libtool > just emits -losmcomp alone, which is fine. Then the subsequent > -lopen-rte finds the one installed for the library being build, not > the /usr one. > > It still does not look good that the libmpi.la file has the following: > > dependency_libs=' -losmcomp -libverbs > /tmp/openmpi-1.10.2/orte/libopen-rte.la > /tmp/openmpi-1.10.2/opal/libopen-pal.la -lnuma -ldl -lrt -lm -lutil' > > (here on a machine without /usr/lib/libosmcomp.la ; when the .la file > exists, -loscomp is replaced by /usr/lib/libosmcomp.la). > > I have the impression that having -losmcomp -libverbs *after* the opal > and orte .la files would be better. I don't see how to achieve this, > though (just playing with ompi/Makefile.am at the moment, to no avail > so far). > > E. > > On Sat, Feb 27, 2016 at 5:58 AM, Ralph Castain <r...@open-mpi.org > <javascript:;>> wrote: > > Out of curiosity, do you have your version of OMPI at the _beginning_ of > your LD_LIBRARY_PATH? > > > >> On Feb 26, 2016, at 8:24 AM, Emmanuel Thomé <emmanuel.th...@gmail.com > <javascript:;>> wrote: > >> > >> On Fri, Feb 26, 2016 at 5:21 PM, Emmanuel Thomé > >> <emmanuel.th...@gmail.com <javascript:;>> wrote: > >>> happens to have an openmpi-1.6.5 installation in /usr, as well as . > >> > >> Sorry for copy-paste failure. 1.6.5 is only in /usr, of course. > >> > >> E. > >> _______________________________________________ > >> users mailing list > >> us...@open-mpi.org <javascript:;> > >> Subscription: http://www.open-mpi.org/mailman/listinfo.cgi/users > >> Link to this post: > http://www.open-mpi.org/community/lists/users/2016/02/28592.php > > > > _______________________________________________ > > users mailing list > > us...@open-mpi.org <javascript:;> > > Subscription: http://www.open-mpi.org/mailman/listinfo.cgi/users > > Link to this post: > http://www.open-mpi.org/community/lists/users/2016/02/28595.php > _______________________________________________ > users mailing list > us...@open-mpi.org <javascript:;> > Subscription: http://www.open-mpi.org/mailman/listinfo.cgi/users > Link to this post: > http://www.open-mpi.org/community/lists/users/2016/02/28596.php