Closed Flowerfan closed 3 years ago
Hi, I'm trying to build the pyslurm and get the following error. Any help on this.
#######log INFO: INFO: Building PySlurm (20.02.0.0) INFO: ------------------------------ INFO: INFO: Cython version 0.19.2 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 /opt/slurm/include INFO: Build - Detected Slurm version - 0x140204 (20.02.04) INFO: Build - Found Slurm shared library in /opt/slurm/lib INFO: Build - Generating pyslurm/bluegene.pxi file 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/version.py -> build/lib.linux-x86_64-3.6/pyslurm copying pyslurm/init.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 -B /data/home/flowerfan/miniconda/envs/py36/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/opt/slurm/include -I. -I/data/home/flowerfan/miniconda/envs/py36/include/python3.6m -c pyslurm/pyslurm.c -o build/temp.linux-x86_64-3.6/pyslurm/pyslurm.o In file included from pyslurm/pyslurm.c:331:0: /opt/slurm/include/slurm/slurm.h:2032:2: warning: function declaration isn’t a prototype [-Wstrict-prototypes] void (acct_full)(); ^~~~ /opt/slurm/include/slurm/slurm.h:2033:2: warning: function declaration isn’t a prototype [-Wstrict-prototypes] void (dbd_fail)(); ^~~~ /opt/slurm/include/slurm/slurm.h:2034:2: warning: function declaration isn’t a prototype [-Wstrict-prototypes] void (dbd_resumed)(); ^~~~ /opt/slurm/include/slurm/slurm.h:2035:2: warning: function declaration isn’t a prototype [-Wstrict-prototypes] void (db_fail)(); ^~~~ /opt/slurm/include/slurm/slurm.h:2036:2: warning: function declaration isn’t a prototype [-Wstrict-prototypes] void (db_resumed)(); ^~~~ In file included from pyslurm/pyslurm.c:332:0: /opt/slurm/include/slurm/slurmdb.h:1548:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes] extern void slurmdb_connection_get(); ^~ pyslurm/pyslurm.c: In function ‘PyInit_pyslurm’: pyslurm/pyslurm.c:76248:42: error: ‘NO_CONSUME_VAL64’ undeclared (first use in this function); did you mean ‘NO_VAL64’? pyx_t_7 = Pyx_PyInt_to_py_uint64_t(NO_CONSUME_VAL64); if (unlikely(!pyx_t_7)) {pyx_filename = pyx_f[7]; __pyx_lineno = 15; pyx_clineno = LINE; goto __pyx_L1_error;} ^~~~ NO_VAL64 pyslurm/pyslurm.c:76248:42: note: each undeclared identifier is reported only once for each function it appears in /data/home/flowerfan/miniconda/envs/py36/lib/python3.6/site-packages/setuptools/dist.py:461: UserWarning: Normalizing '20.02.0.0' to '20.2.0.0' warnings.warn(tmpl.format(**locals())) error: command 'gcc' failed with exit status 1
I removed NO_CONSUME_VAL64 = slurm.NO_CONSUME_VAL64 (line 15) in slurm_defines.pxi and built successfully.
Details
Issue
Hi, I'm trying to build the pyslurm and get the following error. Any help on this.
#######log INFO: INFO: Building PySlurm (20.02.0.0) INFO: ------------------------------ INFO: INFO: Cython version 0.19.2 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 /opt/slurm/include INFO: Build - Detected Slurm version - 0x140204 (20.02.04) INFO: Build - Found Slurm shared library in /opt/slurm/lib INFO: Build - Generating pyslurm/bluegene.pxi file 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/version.py -> build/lib.linux-x86_64-3.6/pyslurm copying pyslurm/init.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 -B /data/home/flowerfan/miniconda/envs/py36/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/opt/slurm/include -I. -I/data/home/flowerfan/miniconda/envs/py36/include/python3.6m -c pyslurm/pyslurm.c -o build/temp.linux-x86_64-3.6/pyslurm/pyslurm.o In file included from pyslurm/pyslurm.c:331:0: /opt/slurm/include/slurm/slurm.h:2032:2: warning: function declaration isn’t a prototype [-Wstrict-prototypes] void (acct_full)(); ^~~~ /opt/slurm/include/slurm/slurm.h:2033:2: warning: function declaration isn’t a prototype [-Wstrict-prototypes] void (dbd_fail)(); ^~~~ /opt/slurm/include/slurm/slurm.h:2034:2: warning: function declaration isn’t a prototype [-Wstrict-prototypes] void (dbd_resumed)(); ^~~~ /opt/slurm/include/slurm/slurm.h:2035:2: warning: function declaration isn’t a prototype [-Wstrict-prototypes] void (db_fail)(); ^~~~ /opt/slurm/include/slurm/slurm.h:2036:2: warning: function declaration isn’t a prototype [-Wstrict-prototypes] void (db_resumed)(); ^~~~ In file included from pyslurm/pyslurm.c:332:0: /opt/slurm/include/slurm/slurmdb.h:1548:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes] extern void slurmdb_connection_get(); ^
~pyslurm/pyslurm.c: In function ‘PyInit_pyslurm’: pyslurm/pyslurm.c:76248:42: error: ‘NO_CONSUME_VAL64’ undeclared (first use in this function); did you mean ‘NO_VAL64’? pyx_t_7 = Pyx_PyInt_to_py_uint64_t(NO_CONSUME_VAL64); if (unlikely(!pyx_t_7)) {pyx_filename = pyx_f[7]; __pyx_lineno = 15; pyx_clineno = LINE; goto __pyx_L1_error;} ^~~~NO_VAL64 pyslurm/pyslurm.c:76248:42: note: each undeclared identifier is reported only once for each function it appears in /data/home/flowerfan/miniconda/envs/py36/lib/python3.6/site-packages/setuptools/dist.py:461: UserWarning: Normalizing '20.02.0.0' to '20.2.0.0' warnings.warn(tmpl.format(**locals())) error: command 'gcc' failed with exit status 1