[slurm-users] Building Slurm on Amazon Linux 2
Mike Robbert
mrobbert at mines.edu
Tue Jul 18 16:45:32 UTC 2023
Has anybody built a recent version of Slurm on the Amazon Linux 2 OS? I am attempting to do this, but it fails every time with the below error message. I it looks like dbus support was added to Slurm’s cgroup plugin, but the 'DBUS_MESSAGE_ITER_INIT_CLOSED' API was added in a version of Dbus that is newer than what Amazon Linux 2 provides. RHEL 7 has the same version of Dbus, but doesn’t hit this because these calls are in the cgroup v2 code and RHEL 7 doesn’t have cgroup v2. Can anybody confirm that this is a bug or dependency issue or might I have something else messed up on the instance where I’m attempting this build? Does anybody know how I can work around this for now? I have tried building with “—without-hwloc” which I thought would disable the cgroup plugin, but the build process is still trying to build it even after a make clean.
cgroup_dbus.c: In function '_set_scope_properties':
cgroup_dbus.c:118:28: error: 'DBUS_MESSAGE_ITER_INIT_CLOSED' undeclared (first use in this function); did you mean 'DBUS_MESSAGE_TYPE_INVALID'?
DBusMessageIter it[4] = { DBUS_MESSAGE_ITER_INIT_CLOSED };
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
DBUS_MESSAGE_TYPE_INVALID
cgroup_dbus.c:118:28: note: each undeclared identifier is reported only once for each function it appears in
cgroup_dbus.c:231:2: warning: implicit declaration of function 'dbus_message_iter_abandon_container_if_open'; did you mean 'dbus_message_iter_abandon_container'? [-Wimplicit-function-declaration]
dbus_message_iter_abandon_container_if_open(&it[2], &it[3]);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dbus_message_iter_abandon_container
cgroup_dbus.c: In function '_set_scope_aux':
cgroup_dbus.c:243:24: error: 'DBUS_MESSAGE_ITER_INIT_CLOSED' undeclared (first use in this function); did you mean 'DBUS_MESSAGE_TYPE_INVALID'?
DBusMessageIter it1 = DBUS_MESSAGE_ITER_INIT_CLOSED;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
DBUS_MESSAGE_TYPE_INVALID
cgroup_dbus.c: In function '_abandon_scope':
cgroup_dbus.c:280:29: error: 'DBUS_MESSAGE_ITER_INIT_CLOSED' undeclared (first use in this function); did you mean 'DBUS_MESSAGE_TYPE_INVALID'?
DBusMessageIter args_itr = DBUS_MESSAGE_ITER_INIT_CLOSED;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
DBUS_MESSAGE_TYPE_INVALID
cgroup_dbus.c: In function 'cgroup_dbus_attach_to_scope':
cgroup_dbus.c:350:29: error: 'DBUS_MESSAGE_ITER_INIT_CLOSED' undeclared (first use in this function); did you mean 'DBUS_MESSAGE_TYPE_INVALID'?
DBusMessageIter args_itr = DBUS_MESSAGE_ITER_INIT_CLOSED;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
DBUS_MESSAGE_TYPE_INVALID
make[5]: *** [cgroup_dbus.lo] Error 1
Mike Robbert
Cyberinfrastructure Specialist, Cyberinfrastructure and Advanced Research Computing
Information and Technology Solutions (ITS)
303-273-3786 | mrobbert at mines.edu <mailto:mrobbert at mines.edu>
Our values: Trust | Integrity | Respect | Responsibility
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.schedmd.com/pipermail/slurm-users/attachments/20230718/ba184749/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 8292 bytes
Desc: not available
URL: <http://lists.schedmd.com/pipermail/slurm-users/attachments/20230718/ba184749/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 9275 bytes
Desc: not available
URL: <http://lists.schedmd.com/pipermail/slurm-users/attachments/20230718/ba184749/attachment-0001.bin>
More information about the slurm-users
mailing list