Hi, Am 05.11.2012 um 04:41 schrieb Jed Brown:
> Jeff, we are averaging a half dozen support threads per week on PETSc > lists/email caused by lack of RPATH in Open MPI for non-standard install > locations. Can you either make the necessary environment modification more > visible for novice users or implement the RPATH option? I have another question here. It could be fixed by specifying before the compilation with `mpicc`: export OMPI_LDFLAGS="-Wl,-rpath,/home/reuti/local/openmpi-1.6.3_shared_gcc/lib" But this doesn't work, as the original included -L argument is removed in the call to the linker then. Instead both need to be included: export OMPI_LDFLAGS="-L/home/reuti/local/openmpi-1.6.3_shared_gcc/lib -Wl,-rpath,/home/reuti/local/openmpi-1.6.3_shared_gcc/lib" Then it works again and the RPATH is included. Why is the necessary -L argument removed by the wrapper during compilation if OMPI_LDFLAGS for additonal flags is used? -- Reuti > > On Wed, Sep 12, 2012 at 1:52 PM, Jed Brown <j...@59a2.org> wrote: > On Wed, Sep 12, 2012 at 10:20 AM, Jeff Squyres <jsquy...@cisco.com> wrote: > We have a long-standing philosophy that OMPI should add the bare minimum > number of preprocessor/compiler/linker flags to its wrapper compilers, and > let the user/administrator customize from there. > > In general, I agree with that philosophy. > > > That being said, a looong time ago, I started a patch to add a --with-rpath > option to configure, but never finished it. :-\ I can try to get it back on > my to-do list. > > That would be perfect. > > > For the moment, you might want to try the configure > --enable-mpirun-prefix-by-default option, too. > > The downside is that we tend not to bother with the mpirun for configure and > it's a little annoying to "mpirun ldd" when hunting for other problems (e.g. > a missing shared lib unrelated to Open MPI). > > _______________________________________________ > users mailing list > us...@open-mpi.org > http://www.open-mpi.org/mailman/listinfo.cgi/users