# Fail to build PBS Pro 18.1.2 with hwloc 2.0.2

**URL:** <https://community.openpbs.org/t/fail-to-build-pbs-pro-18-1-2-with-hwloc-2-0-2/1262>\
**Category:** Developers\
**Created:** [October 31, 2018, 11:16am UTC](https://community.openpbs.org/t/fail-to-build-pbs-pro-18-1-2-with-hwloc-2-0-2/1262 "2018-10-31T11:16:56Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![taras](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.openpbs.org/taras/32/47_2.png) [@taras](https://community.openpbs.org/u/taras)\
**Post date:** [October 31, 2018, 11:16am UTC](https://community.openpbs.org/t/fail-to-build-pbs-pro-18-1-2-with-hwloc-2-0-2/1262/1 "2018-10-31T11:16:56Z")

</div>

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)  
HWLOC\_TOPOLOGY\_FLAG\_WHOLE\_SYSTEM | HWLOC\_TOPOLOGY\_FLAG\_IO\_DEVICES)  
^  
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?

---

<div class="post-metadata">

**Author:** ![mkaro](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.openpbs.org/mkaro/32/85_2.png) [@mkaro](https://community.openpbs.org/u/mkaro)\
**Post date:** [October 31, 2018, 3:43pm UTC](https://community.openpbs.org/t/fail-to-build-pbs-pro-18-1-2-with-hwloc-2-0-2/1262/2 "2018-10-31T15:43:43Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![taras](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.openpbs.org/taras/32/47_2.png) [@taras](https://community.openpbs.org/u/taras)\
**Post date:** [October 31, 2018, 4:01pm UTC](https://community.openpbs.org/t/fail-to-build-pbs-pro-18-1-2-with-hwloc-2-0-2/1262/3 "2018-10-31T16:01:27Z")

</div>

I used SLES12sp3 and hwloc we build from sources.

---

<div class="post-metadata">

**Author:** ![mkaro](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.openpbs.org/mkaro/32/85_2.png) [@mkaro](https://community.openpbs.org/u/mkaro)\
**Post date:** [October 31, 2018, 4:44pm UTC](https://community.openpbs.org/t/fail-to-build-pbs-pro-18-1-2-with-hwloc-2-0-2/1262/4 "2018-10-31T16:44:30Z")

</div>

I have filed a ticket to address the problem you are seeing: [https://pbspro.atlassian.net/browse/PP-1314](https://pbspro.atlassian.net/browse/PP-1314)

---

<div class="post-metadata">

**Author:** ![taras](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.openpbs.org/taras/32/47_2.png) [@taras](https://community.openpbs.org/u/taras)\
**Post date:** [September 21, 2020, 1:55pm UTC](https://community.openpbs.org/t/fail-to-build-pbs-pro-18-1-2-with-hwloc-2-0-2/1262/5 "2020-09-21T13:55:32Z")

</div>

Any update on this issue? Can we build any version of OpenPBS with hwloc 2 nowadays?

---

<div class="post-metadata">

**Author:** ![hirenvadalia](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.openpbs.org/hirenvadalia/32/19_2.png) [@hirenvadalia](https://community.openpbs.org/u/hirenvadalia)\
**Post date:** [September 21, 2020, 2:07pm UTC](https://community.openpbs.org/t/fail-to-build-pbs-pro-18-1-2-with-hwloc-2-0-2/1262/6 "2020-09-21T14:07:14Z")

</div>

@taras I think OpenPBS v20 onward supports hwloc v2 (see [https://github.com/openpbs/openpbs/commit/8db8658cd1e7ac453a16df7c593dc94f8c9a76c9](https://github.com/openpbs/openpbs/commit/8db8658cd1e7ac453a16df7c593dc94f8c9a76c9)).  
Can you please try with OpenPBS v20.0.1 or master branch?
