Skip to content

Commit 033a0eb

Browse files
author
Ralph Castain
committed
Fix the --disable-dlopen --with-devel-headers case by not having libpmix link back to libopen-pal as the latter won't exist in time during this build case
Signed-off-by: Ralph Castain <[email protected]>
1 parent ec1a9a8 commit 033a0eb

File tree

2 files changed

+19
-8
lines changed

2 files changed

+19
-8
lines changed

opal/mca/pmix/pmix2x/configure.m4

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,9 @@ AC_DEFUN([MCA_opal_pmix_pmix2x_CONFIG],[
5656
[opal_pmix_pmix2x_args="--disable-debug $opal_pmix_pmix2x_args"
5757
CFLAGS="$OPAL_CFLAGS_BEFORE_PICKY $OPAL_VISIBILITY_CFLAGS"])
5858
AS_IF([test "$with_devel_headers" = "yes"],
59-
[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"])
59+
[AS_IF([test "$enable_dlopen" = "yes"],
60+
[opal_pmix_pmix2x_args="--with-pmix-extra-lib=$OPAL_TOP_BUILDDIR/opal/lib${OPAL_LIB_PREFIX}open-pal.la $opal_pmix_pmix2x_args"])
61+
opal_pmix_pmix2x_args="--with-devel-headers $opal_pmix_pmix2x_args"])
6062
CPPFLAGS="-I$OPAL_TOP_SRCDIR -I$OPAL_TOP_BUILDDIR -I$OPAL_TOP_SRCDIR/opal/include -I$OPAL_TOP_BUILDDIR/opal/include $CPPFLAGS"
6163

6264
OPAL_CONFIG_SUBDIR([$opal_pmix_pmix2x_basedir/pmix],

opal/mca/pmix/pmix2x/pmix/src/mca/gds/ds12/gds_dstore.c

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,8 @@ static pmix_status_t dstore_store(const pmix_proc_t *proc,
253253
pmix_kval_t *kv);
254254

255255
static pmix_status_t _dstore_fetch(const char *nspace,
256-
pmix_rank_t rank, const char *key, pmix_value_t **kvs);
256+
pmix_rank_t rank,
257+
const char *key, pmix_value_t **kvs);
257258

258259
static pmix_status_t dstore_fetch(const pmix_proc_t *proc,
259260
pmix_scope_t scope, bool copy,
@@ -1411,7 +1412,8 @@ static int set_rank_meta_info(ns_track_elem_t *ns_info, rank_meta_info *rinfo)
14111412
PMIX_OUTPUT_VERBOSE((2, pmix_gds_base_framework.framework_output,
14121413
"%s:%d:%s: nspace %s, add rank %lu offset %lu count %lu meta info",
14131414
__FILE__, __LINE__, __func__,
1414-
ns_info->ns_map.name, rinfo->rank, rinfo->offset, rinfo->count));
1415+
ns_info->ns_map.name, (unsigned long)rinfo->rank,
1416+
(unsigned long)rinfo->offset, (unsigned long)rinfo->count));
14151417

14161418
tmp = ns_info->meta_seg;
14171419
if (1 == _direct_mode) {
@@ -1577,7 +1579,7 @@ static size_t put_data_to_the_end(ns_track_elem_t *ns_info, seg_desc_t *dataseg,
15771579
* warn a user about it and fail. */
15781580
offset = 0; /* offset cannot be 0 in normal case, so we use this value to indicate a problem. */
15791581
pmix_output(0, "PLEASE set NS_DATA_SEG_SIZE to value which is larger when %lu.",
1580-
sizeof(size_t) + strlen(key) + 1 + sizeof(size_t) + size + EXT_SLOT_SIZE());
1582+
(unsigned long)(sizeof(size_t) + strlen(key) + 1 + sizeof(size_t) + size + EXT_SLOT_SIZE()));
15811583
return offset;
15821584
}
15831585

@@ -1618,7 +1620,11 @@ static size_t put_data_to_the_end(ns_track_elem_t *ns_info, seg_desc_t *dataseg,
16181620
memcpy(addr, &data_ended, sizeof(size_t));
16191621
PMIX_OUTPUT_VERBOSE((1, pmix_gds_base_framework.framework_output,
16201622
"%s:%d:%s: key %s, rel start offset %lu, rel end offset %lu, abs shift %lu size %lu",
1621-
__FILE__, __LINE__, __func__, key, offset, data_ended, id * _data_segment_size, size));
1623+
__FILE__, __LINE__, __func__,
1624+
key, (unsigned long)offset,
1625+
(unsigned long)data_ended,
1626+
(unsigned long)(id * _data_segment_size),
1627+
(unsigned long)size));
16221628
return global_offset;
16231629
}
16241630

@@ -1703,8 +1709,10 @@ static int pmix_sm_store(ns_track_elem_t *ns_info, pmix_rank_t rank, pmix_kval_t
17031709
memcpy(&offset, ESH_DATA_PTR(addr), sizeof(size_t));
17041710
if (0 < offset) {
17051711
PMIX_OUTPUT_VERBOSE((10, pmix_gds_base_framework.framework_output,
1706-
"%s:%d:%s: for rank %u, replace flag %d %s is filled with %lu value",
1707-
__FILE__, __LINE__, __func__, rank, data_exist, ESH_REGION_EXTENSION, offset));
1712+
"%s:%d:%s: for rank %lu, replace flag %d %s is filled with %lu value",
1713+
__FILE__, __LINE__, __func__,
1714+
(unsigned long)rank, data_exist,
1715+
ESH_REGION_EXTENSION, (unsigned long)offset));
17081716
/* go to next item, updating address */
17091717
addr = _get_data_region_by_offset(datadesc, offset);
17101718
if (NULL == addr) {
@@ -2260,7 +2268,8 @@ static pmix_status_t dstore_store(const pmix_proc_t *proc,
22602268
return rc;
22612269
}
22622270

2263-
inline pmix_status_t _dstore_fetch(const char *nspace, pmix_rank_t rank, const char *key, pmix_value_t **kvs)
2271+
static pmix_status_t _dstore_fetch(const char *nspace, pmix_rank_t rank,
2272+
const char *key, pmix_value_t **kvs)
22642273
{
22652274
ns_seg_info_t *ns_info = NULL;
22662275
pmix_status_t rc = PMIX_ERROR, lock_rc;

0 commit comments

Comments
 (0)