Hi there. We are in the process of migrating to RHEL9 and are working through how we plan to handle the software stack for our clusters. I have been experimenting with builds and running the compiled OpenMPi stack on CentOS 7 and RHEL9, as well as building mpi_hello_world.c with it, just to see what’s workable and what isn’t.
Where I'm getting jammed up with building one version that could work on both operating systems is libevent_core. It appears to be very specific about the location of those libraries, the specific name or version, or maybe both. For example, when using mpicc built on CentOS 7: [novosirj@perceval1 mpihello]$ mpicc -o mpi_hello_world.gcc-11.5-openmpi-4.1.6 mpi_hello_world.c mpicc: error while loading shared libraries: libevent_core-2.0.so.5: cannot open shared object file: No such file or directory I get the same thing if I build on RHEL9, just with a different library complaint (wants /usr/lib64/libevent_core-2.1.so.7 instead). Both operating system versions have the relevant libevent_core libraries installed, and both versions can compile and be used when remaining on their respective versions. Here’s my current build string, but I’ve tried pretty much all of the above as internal and external (this configure line also complains about GLIBCC when running on old but built on new, but leaving off “internal” for libevent and hwloc did not): ../openmpi-5.0.9/configure --prefix=/opt/sw/packages/gcc-11/openmpi/5.0.9 --with-pmix --with-ucx --with-libevent=internal --with-hwloc=internal Is what I'm trying to do entirely not possible, or just a terrible idea for some other reason that I'm not aware of, or is this a simple thing to tweak? From what I gather, this has something to do with -rpath, but it’s not entirely clear how to tweak the behavior, it’s just mentioned in the docs. -- #BlackLivesMatter ____ || \\UTGERS, |---------------------------*O*--------------------------- ||_// the State | Ryan Novosielski (he/him) - [email protected] || \\ University | Sr. Technologist - 973/972.0922 (2x0922) ~*~ RBHS Campus || \\ of NJ | Office of Advanced Research Computing - MSB A555B, Newark `' To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
