Fail to build PBS Pro 18.1.2 with hwloc 2.0.2


When build PBS Pro with 1.11.x, then it works, but with the new version it says:

mom_main.c: In function ‘mom_topology’:
mom_main.c:10790:39: error: ‘HWLOC_TOPOLOGY_FLAG_IO_DEVICES’ undeclared (first use in this function)
mom_main.c:10790:39: note: each undeclared identifier is reported only once for each function it appears in
mom_main.c:10792:4: error: too few arguments to function ‘hwloc_topology_export_xmlbuffer’
|| (hwloc_topology_export_xmlbuffer(topology, &xmlbuf, &xmllen)
In file included from /cm/shared/apps/hwloc/current/include/hwloc.h:2255:0,
from mom_main.c:114:
/cm/shared/apps/hwloc/current/include/hwloc/export.h:102:20: note: declared here
HWLOC_DECLSPEC int hwloc_topology_export_xmlbuffer(hwloc_topology_t topology, char **xmlbuffer, int *buflen, unsigned long flags);

Does this mean PBS Pro does not support hwloc2 yet or I am missing something?


AFAIK you are the first to attempt to compile PBS Pro with hwloc2. Could you please let us know which Linux distro you are using? I’m assuming you are using the hwloc-devel package that your distro provides.


I used SLES12sp3 and hwloc we build from sources.


I have filed a ticket to address the problem you are seeing: