-
Notifications
You must be signed in to change notification settings - Fork 900
Disable rpathing on build #13252
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Are you asking about Open MPI's build process or the wrapper compilers? If you're asking about the wrapper compilers, you should be able to specify If you're asking about Open MPI's build process, can you double check that Open MPI is adding More specifically: IIRC, Libtool is who adds the |
This is about OpenMPIs build process. And it might indeed be libtool adding that.
I'd like to verify that. Do you have any further information on that like docs and what is considered "default library search paths"? |
You can run I did a quick build myself on an Alma 9 VM:
Looking in Worst case, if Open MPI and/or libfabric's build processes put in rpath entries that aren't workable for you, you might try using |
Yes I see it in the output. It looks like What might be relevant: I have a |
That may very well be what's doing it. A There's not a lot we can do from the Open MPI side. Some options for you:
Taking a step back: the real problem may be that you have both old and new versions of library X in multiple different directories. If you have other shared libraries that you're using in this process in the same directory as the old version of library X, then the linker may still end up finding the old version of library X regardless of rpath (based on other factors that you can't control, or would take a bunch of effort for you to control). Remember: the linker in incredibly complicated. Every time I think I understand the linker, I ultimately discover that I apparently don't know jack about the linker... |
@Flamefire Is there a |
@ggouaillardet No there is no such flag. But there is
|
Did you try the other things I recomended? |
@Flamefire Open MPI is supposed to filter out I suggest you follow @jsquyres recommendation. |
Not exactly sure where that filtering needs to happen. This might be a libtool issue though. I opened an issue with them: autotools-mirror/libtool#10 I cannot remove that file as I have no root permissions on that system. So the only workaround I found is passing |
It seems that OpenMPIs build process adds rpath entries for all libraries linked.
This leads to problems when custom libraries from different locations are used.
See ofiwg/libfabric#11021 for details of the same issue
Are there any options to disable rpathing the libraries or at least exclude specific paths? E.g. for us it would be enough to exclude /usr/lib64
The text was updated successfully, but these errors were encountered: