I am trying to install pyslurm on an HPC cluster running under Red Hat Enterprise Linux 8.2 with SLURM version 20.02.3. Here the outputs of the command python setup.py build:
INFO:
INFO: Building PySlurm (20.02.0.0)
INFO: ------------------------------
INFO:
INFO: Cython version 0.29.23 installed
INFO:
INFO: Clean - checking for objects to clean
INFO: Clean - removing build/
INFO: Clean - removing pyslurm/bluegene.pxi
INFO: Clean - removing pyslurm/pyslurm.c
INFO: Clean - completed
INFO: Build - Found Slurm header in /usr/include
INFO: Build - Detected Slurm version - 0x140203 (20.02.03)
INFO: Build - Found Slurm shared library in /usr/lib64
INFO: Build - Generating pyslurm/bluegene.pxi file
/home/user/pyslurm/python-local/lib64/python3.6/site-packages/setuptools/dist.py:398: UserWarning: Normalizing '20.02.0.0' to '20.2.0.0'
normalized_version,
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.6
creating build/lib.linux-x86_64-3.6/pyslurm
copying pyslurm/__init__.py -> build/lib.linux-x86_64-3.6/pyslurm
copying pyslurm/__version__.py -> build/lib.linux-x86_64-3.6/pyslurm
running build_ext
cythoning pyslurm/pyslurm.pyx to pyslurm/pyslurm.c
building 'pyslurm.pyslurm' extension
creating build/temp.linux-x86_64-3.6
creating build/temp.linux-x86_64-3.6/pyslurm
gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_AS
SERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE
-fPIC -fwrapv -fPIC -I/usr/include -I. -I/home/user/pyslurm/python-local/include -I/usr/include/python3.6m -c pyslurm/pyslurm.c -o build/temp.linux-x86_64-3.6/pyslurm/pysl
urm.o
pyslurm/pyslurm.c: In function '__pyx_pymod_exec_pyslurm':
pyslurm/pyslurm.c:86376:36: error: 'ESLURM_ACTIVE_FEATURE_NOT_SUBSET' undeclared (first use in this function)
86376 | __pyx_t_7 = __Pyx_PyInt_From_int(ESLURM_ACTIVE_FEATURE_NOT_SUBSET); if (unlikely(!__pyx_t_7)) __PYX_ERR(7, 50, __pyx_L1_error)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
pyslurm/pyslurm.c:86376:36: note: each undeclared identifier is reported only once for each function it appears in
pyslurm/pyslurm.c:88449:41: error: 'NO_CONSUME_VAL64' undeclared (first use in this function)
88449 | __pyx_t_7 = __Pyx_PyInt_From_uint64_t(NO_CONSUME_VAL64); if (unlikely(!__pyx_t_7)) __PYX_ERR(8, 15, __pyx_L1_error)
| ^~~~~~~~~~~~~~~~
error: command 'gcc' failed with exit status 1