-
Notifications
You must be signed in to change notification settings - Fork 936
Fix linking of libpmix when emitted #4046
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
Conversation
|
@jsquyres I'm not sure this fix is correct - at least, it is breaking --disable-dlopen builds on master. I'm working on a variant of it for there. |
… However, that library was built against the OPAL libevent component, which means all the libevent functions are prefixed with OPAL names. So ensure that the emitted libpmix is linked back against libopen-pal so those symbols will be resolved. Signed-off-by: Ralph Castain <[email protected]> (cherry picked from commit d593e5a)
…mix link back to libopen-pal as the latter won't exist in time during this build case Signed-off-by: Ralph Castain <[email protected]> (cherry picked from commit 033a0eb) (cherry picked from commit 1af5e8a)
|
@jsquyres I think I have this correct now - please let me know what you think |
opal/mca/pmix/pmix2x/configure.m4
Outdated
| CFLAGS="$OPAL_CFLAGS_BEFORE_PICKY $OPAL_VISIBILITY_CFLAGS"]) | ||
| AS_IF([test "$with_devel_headers" = "yes"], | ||
| [opal_pmix_pmix2x_args="--with-devel-headers --with-pmix-extra-lib=$OPAL_TOP_BUILDDIR/opal/lib${OPAL_LIB_PREFIX}open-pal.la $opal_pmix_pmix2x_args"]) | ||
| [AS_IF([test "$enable_dlopen" = "yes"], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be "$enable_dlopen" != "no" to cover the case when $enable_dlopen is blank?
Signed-off-by: Ralph Castain <[email protected]> (cherry picked from commit c4d5dbf)
|
@jsquyres Done, as requested |
|
cray test node failed to respond bot:ompi:retest |
When we specify --with-devel-headers, we also emit a copy of libpmix. However, that library was built against the OPAL libevent component, which means all the libevent functions are prefixed with OPAL names. So ensure that the emitted libpmix is linked back against libopen-pal so those symbols will be resolved.
Fixes #4045
Signed-off-by: Ralph Castain [email protected]
(cherry picked from commit d593e5a)