Skip to content

Conversation

@rhc54
Copy link
Contributor

@rhc54 rhc54 commented Aug 7, 2017

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)

@rhc54 rhc54 added the bug label Aug 7, 2017
@rhc54 rhc54 added this to the v3.0.0 milestone Aug 7, 2017
@rhc54 rhc54 self-assigned this Aug 7, 2017
@rhc54 rhc54 requested a review from jsquyres August 7, 2017 18:41
@rhc54
Copy link
Contributor Author

rhc54 commented Aug 15, 2017

@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.

Ralph Castain added 2 commits August 15, 2017 14:57
… 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)
@rhc54
Copy link
Contributor Author

rhc54 commented Aug 15, 2017

@jsquyres I think I have this correct now - please let me know what you think

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"],
Copy link
Member

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)
@rhc54
Copy link
Contributor Author

rhc54 commented Aug 16, 2017

@jsquyres Done, as requested

@rhc54
Copy link
Contributor Author

rhc54 commented Aug 17, 2017

cray test node failed to respond

bot:ompi:retest

@bwbarrett bwbarrett merged commit c38af8e into open-mpi:v3.0.x Aug 22, 2017
@rhc54 rhc54 deleted the cmr30/libpmix branch March 25, 2018 17:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants