scrapinghub / python-crfsuite

A python binding for crfsuite
MIT License
769 stars 223 forks source link

Install fails on Python 3.11 #150

Closed GrahamCampbell closed 1 year ago

GrahamCampbell commented 1 year ago
Running setup.py install for python-crfsuite did not run successfully.
  │ exit code: 1
  ╰─> [434 lines of output]
      running install
      /opt/hostedtoolcache/Python/3.11.0/x64/lib/python3.11/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
        warnings.warn(
      running build
      running build_py
      creating build
      creating build/lib.linux-x86_64-cpython-311
      creating build/lib.linux-x86_64-cpython-311/pycrfsuite
      copying pycrfsuite/_dumpparser.py -> build/lib.linux-x86_64-cpython-311/pycrfsuite
      copying pycrfsuite/_logparser.py -> build/lib.linux-x86_64-cpython-311/pycrfsuite
      copying pycrfsuite/__init__.py -> build/lib.linux-x86_64-cpython-311/pycrfsuite
      running build_ext
      building 'pycrfsuite._pycrfsuite' extension
      creating build/temp.linux-x86_64-cpython-311
      creating build/temp.linux-x86_64-cpython-311/crfsuite
      creating build/temp.linux-x86_64-cpython-311/crfsuite/lib
      creating build/temp.linux-x86_64-cpython-311/crfsuite/lib/cqdb
      creating build/temp.linux-x86_64-cpython-311/crfsuite/lib/cqdb/src
      creating build/temp.linux-x86_64-cpython-311/crfsuite/lib/crf
      creating build/temp.linux-x86_64-cpython-311/crfsuite/lib/crf/src
      creating build/temp.linux-x86_64-cpython-311/crfsuite/swig
      creating build/temp.linux-x86_64-cpython-311/liblbfgs
      creating build/temp.linux-x86_64-cpython-311/liblbfgs/lib
      creating build/temp.linux-x86_64-cpython-311/pycrfsuite
      gcc -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/opt/hostedtoolcache/Python/3.11.0/x64/include/python3.11 -c -std=c99 crfsuite/lib/cqdb/src/cqdb.c -o build/temp.linux-x86_64-cpython-311/crfsuite/lib/cqdb/src/cqdb.o
      crfsuite/lib/cqdb/src/cqdb.c: In function ‘cqdb_to_id’:
      crfsuite/lib/cqdb/src/cqdb.c:552:26: warning: variable ‘ksize’ set but not used [-Wunused-but-set-variable]
        552 |                 uint32_t ksize;
            |                          ^~~~~
      In file included from /usr/include/string.h:535,
                       from crfsuite/lib/cqdb/src/cqdb.c:37:
      In function ‘strncpy’,
          inlined from ‘cqdb_writer_close’ at crfsuite/lib/cqdb/src/cqdb.c:270:5:
      /usr/include/x86_64-linux-gnu/bits/string_fortified.h:95:10: warning: ‘__builtin_strncpy’ output truncated before terminating nul copying 4 bytes from a string of the same length [-Wstringop-truncation]
         95 |   return __builtin___strncpy_chk (__dest, __src, __len,
            |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         96 |                                   __glibc_objsize (__dest));
            |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~
      In function ‘strncpy’,
          inlined from ‘cqdb_reader’ at crfsuite/lib/cqdb/src/cqdb.c:469:9:
      /usr/include/x86_64-linux-gnu/bits/string_fortified.h:95:10: warning: ‘__builtin_strncpy’ specified bound 4 equals destination size [-Wstringop-truncation]
         95 |   return __builtin___strncpy_chk (__dest, __src, __len,
            |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         96 |                                   __glibc_objsize (__dest));
            |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~
      gcc -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/opt/hostedtoolcache/Python/3.11.0/x64/include/python3.11 -c -std=c99 crfsuite/lib/cqdb/src/lookup3.c -o build/temp.linux-x86_64-cpython-311/crfsuite/lib/cqdb/src/lookup3.o
      gcc -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/opt/hostedtoolcache/Python/3.11.0/x64/include/python3.11 -c -std=c99 crfsuite/lib/crf/src/crf1d_context.c -o build/temp.linux-x86_64-cpython-311/crfsuite/lib/crf/src/crf1d_context.o
      In file included from crfsuite/lib/crf/src/crf1d_context.c:47:
      crfsuite/lib/crf/src/vecmath.h: In function ‘_aligned_malloc’:
      crfsuite/lib/crf/src/vecmath.h:50:15: warning: implicit declaration of function ‘posix_memalign’ [-Wimplicit-function-declaration]
         50 |     int ret = posix_memalign(&p, alignment, size);
            |               ^~~~~~~~~~~~~~
      crfsuite/lib/crf/src/crf1d_context.c: In function ‘crf1dc_new’:
      crfsuite/lib/crf/src/crf1d_context.c:71:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
         71 |         if (ret = crf1dc_set_num_items(ctx, T)) {
            |             ^~~
      crfsuite/lib/crf/src/crf1d_context.c: In function ‘crf1dc_score’:
      crfsuite/lib/crf/src/crf1d_context.c:440:15: warning: unused variable ‘L’ [-Wunused-variable]
        440 |     const int L = ctx->num_labels;
            |               ^
      crfsuite/lib/crf/src/crf1d_context.c:438:38: warning: unused variable ‘cur’ [-Wunused-variable]
        438 |     const floatval_t *state = NULL, *cur = NULL, *trans = NULL;
            |                                      ^~~
      gcc -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/opt/hostedtoolcache/Python/3.11.0/x64/include/python3.11 -c -std=c99 crfsuite/lib/crf/src/crf1d_encode.c -o build/temp.linux-x86_64-cpython-311/crfsuite/lib/crf/src/crf1d_encode.o
      crfsuite/lib/crf/src/crf1d_encode.c: In function ‘crf1de_state_score’:
      crfsuite/lib/crf/src/crf1d_encode.c:136:15: warning: unused variable ‘L’ [-Wunused-variable]
        136 |     const int L = crf1de->num_labels;
            |               ^
      crfsuite/lib/crf/src/crf1d_encode.c: In function ‘crf1de_state_score_scaled’:
      crfsuite/lib/crf/src/crf1d_encode.c:172:15: warning: unused variable ‘L’ [-Wunused-variable]
        172 |     const int L = crf1de->num_labels;
            |               ^
      crfsuite/lib/crf/src/crf1d_encode.c: In function ‘crf1de_features_on_path’:
      crfsuite/lib/crf/src/crf1d_encode.c:268:15: warning: unused variable ‘L’ [-Wunused-variable]
        268 |     const int L = crf1de->num_labels;
            |               ^
      crfsuite/lib/crf/src/crf1d_encode.c:266:22: warning: unused variable ‘ctx’ [-Wunused-variable]
        266 |     crf1d_context_t* ctx = crf1de->ctx;
            |                      ^~~
      crfsuite/lib/crf/src/crf1d_encode.c: In function ‘crf1de_observation_expectation’:
      crfsuite/lib/crf/src/crf1d_encode.c:321:15: warning: unused variable ‘L’ [-Wunused-variable]
        321 |     const int L = crf1de->num_labels;
            |               ^
      crfsuite/lib/crf/src/crf1d_encode.c:319:22: warning: unused variable ‘ctx’ [-Wunused-variable]
        319 |     crf1d_context_t* ctx = crf1de->ctx;
            |                      ^~~
      crfsuite/lib/crf/src/crf1d_encode.c: In function ‘crf1de_model_expectation’:
      crfsuite/lib/crf/src/crf1d_encode.c:372:41: warning: unused variable ‘trans’ [-Wunused-variable]
        372 |     const feature_refs_t *attr = NULL, *trans = NULL;
            |                                         ^~~~~
      crfsuite/lib/crf/src/crf1d_encode.c: In function ‘crf1de_save_model’:
      crfsuite/lib/crf/src/crf1d_encode.c:551:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
        551 |     if (ret = crf1dmw_open_features(writer)) {
            |         ^~~
      crfsuite/lib/crf/src/crf1d_encode.c:585:17: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
        585 |             if (ret = crf1dmw_put_feature(writer, fmap[k], &feat)) {
            |                 ^~~
      crfsuite/lib/crf/src/crf1d_encode.c:592:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
        592 |     if (ret = crf1dmw_close_features(writer)) {
            |         ^~~
      crfsuite/lib/crf/src/crf1d_encode.c:602:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
        602 |     if (ret = crf1dmw_open_labels(writer, L)) {
            |         ^~~
      crfsuite/lib/crf/src/crf1d_encode.c:609:17: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
        609 |             if (ret = crf1dmw_put_label(writer, l, str)) {
            |                 ^~~
      crfsuite/lib/crf/src/crf1d_encode.c:615:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
        615 |     if (ret = crf1dmw_close_labels(writer)) {
            |         ^~~
      crfsuite/lib/crf/src/crf1d_encode.c:621:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
        621 |     if (ret = crf1dmw_open_attrs(writer, B)) {
            |         ^~~
      crfsuite/lib/crf/src/crf1d_encode.c:629:21: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
        629 |                 if (ret = crf1dmw_put_attr(writer, amap[a], str)) {
            |                     ^~~
      crfsuite/lib/crf/src/crf1d_encode.c:636:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
        636 |     if (ret = crf1dmw_close_attrs(writer)) {
            |         ^~~
      crfsuite/lib/crf/src/crf1d_encode.c:642:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
        642 |     if (ret = crf1dmw_open_labelrefs(writer, L+2)) {
            |         ^~~
      crfsuite/lib/crf/src/crf1d_encode.c:647:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
        647 |         if (ret = crf1dmw_put_labelref(writer, l, edge, fmap)) {
            |             ^~~
      crfsuite/lib/crf/src/crf1d_encode.c:651:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
        651 |     if (ret = crf1dmw_close_labelrefs(writer)) {
            |         ^~~
      crfsuite/lib/crf/src/crf1d_encode.c:657:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
        657 |     if (ret = crf1dmw_open_attrrefs(writer, B)) {
            |         ^~~
      crfsuite/lib/crf/src/crf1d_encode.c:663:17: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
        663 |             if (ret = crf1dmw_put_attrref(writer, amap[a], attr, fmap)) {
            |                 ^~~
      crfsuite/lib/crf/src/crf1d_encode.c:668:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
        668 |     if (ret = crf1dmw_close_attrrefs(writer)) {
            |         ^~~
      crfsuite/lib/crf/src/crf1d_encode.c:508:22: warning: unused variable ‘threshold’ [-Wunused-variable]
        508 |     const floatval_t threshold = 0.01;
            |                      ^~~~~~~~~
      In file included from crfsuite/lib/crf/src/crf1d_encode.c:47:
      crfsuite/lib/crf/src/crf1d_encode.c: In function ‘crf1de_exchange_options’:
      crfsuite/lib/crf/src/params.h:49:13: warning: variable ‘__ret’ set but not used [-Wunused-but-set-variable]
         49 |         int __ret = 0; \
            |             ^~~~~
      crfsuite/lib/crf/src/crf1d_encode.c:696:5: note: in expansion of macro ‘BEGIN_PARAM_MAP’
        696 |     BEGIN_PARAM_MAP(params, mode)
            |     ^~~~~~~~~~~~~~~
      crfsuite/lib/crf/src/crf1d_encode.c: In function ‘encoder_viterbi’:
      crfsuite/lib/crf/src/crf1d_encode.c:897:9: warning: unused variable ‘i’ [-Wunused-variable]
        897 |     int i;
            |         ^
      crfsuite/lib/crf/src/crf1d_encode.c: In function ‘encoder_save_model’:
      crfsuite/lib/crf/src/crf1d_encode.c:864:12: warning: ‘ret’ may be used uninitialized in this function [-Wmaybe-uninitialized]
        864 |     return crf1de_save_model(crf1de, filename, w, self->ds->data->attrs,  self->ds->data->labels, lg);
            |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      gcc -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/opt/hostedtoolcache/Python/3.11.0/x64/include/python3.11 -c -std=c99 crfsuite/lib/crf/src/crf1d_feature.c -o build/temp.linux-x86_64-cpython-311/crfsuite/lib/crf/src/crf1d_feature.o
      gcc -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/opt/hostedtoolcache/Python/3.11.0/x64/include/python3.11 -c -std=c99 crfsuite/lib/crf/src/crf1d_model.c -o build/temp.linux-x86_64-cpython-311/crfsuite/lib/crf/src/crf1d_model.o
      crfsuite/lib/crf/src/crf1d_model.c: In function ‘crf1dmw_put_labelref’:
      crfsuite/lib/crf/src/crf1d_model.c:487:21: warning: unused variable ‘offset’ [-Wunused-variable]
        487 |     uint32_t n = 0, offset = 0;
            |                     ^~~~~~
      crfsuite/lib/crf/src/crf1d_model.c: In function ‘crf1dmw_put_attrref’:
      crfsuite/lib/crf/src/crf1d_model.c:594:21: warning: unused variable ‘offset’ [-Wunused-variable]
        594 |     uint32_t n = 0, offset = 0;
            |                     ^~~~~~
      crfsuite/lib/crf/src/crf1d_model.c: In function ‘crf1dmw_put_feature’:
      crfsuite/lib/crf/src/crf1d_model.c:691:13: warning: comparison of integer expressions of different signedness: ‘int’ and ‘uint32_t’ {aka ‘unsigned int’} [-Wsign-compare]
        691 |     if (fid != hfeat->num) {
            |             ^~
      gcc -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/opt/hostedtoolcache/Python/3.11.0/x64/include/python3.11 -c -std=c99 crfsuite/lib/crf/src/crf1d_tag.c -o build/temp.linux-x86_64-cpython-311/crfsuite/lib/crf/src/crf1d_tag.o
      crfsuite/lib/crf/src/crf1d_tag.c: In function ‘crf1dt_state_score’:
      crfsuite/lib/crf/src/crf1d_tag.c:72:15: warning: unused variable ‘L’ [-Wunused-variable]
         72 |     const int L = crf1dt->num_labels;
            |               ^
      gcc -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/opt/hostedtoolcache/Python/3.11.0/x64/include/python3.11 -c -std=c99 crfsuite/lib/crf/src/crfsuite.c -o build/temp.linux-x86_64-cpython-311/crfsuite/lib/crf/src/crfsuite.o
      crfsuite/lib/crf/src/crfsuite.c:322:14: warning: ‘safe_strncpy’ defined but not used [-Wunused-function]
        322 | static char *safe_strncpy(char *dst, const char *src, size_t n)
            |              ^~~~~~~~~~~~
      gcc -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/opt/hostedtoolcache/Python/3.11.0/x64/include/python3.11 -c -std=c99 crfsuite/lib/crf/src/crfsuite_train.c -o build/temp.linux-x86_64-cpython-311/crfsuite/lib/crf/src/crfsuite_train.o
      crfsuite/lib/crf/src/crfsuite_train.c: In function ‘crfsuite_train_train’:
      crfsuite/lib/crf/src/crfsuite_train.c:135:11: warning: unused variable ‘algorithm’ [-Wunused-variable]
        135 |     char *algorithm = NULL;
            |           ^~~~~~~~~
      gcc -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/opt/hostedtoolcache/Python/3.11.0/x64/include/python3.11 -c -std=c99 crfsuite/lib/crf/src/dataset.c -o build/temp.linux-x86_64-cpython-311/crfsuite/lib/crf/src/dataset.o
      gcc -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/opt/hostedtoolcache/Python/3.11.0/x64/include/python3.11 -c -std=c99 crfsuite/lib/crf/src/dictionary.c -o build/temp.linux-x86_64-cpython-311/crfsuite/lib/crf/src/dictionary.o
      gcc -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/opt/hostedtoolcache/Python/3.11.0/x64/include/python3.11 -c -std=c99 crfsuite/lib/crf/src/holdout.c -o build/temp.linux-x86_64-cpython-311/crfsuite/lib/crf/src/holdout.o
      gcc -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/opt/hostedtoolcache/Python/3.11.0/x64/include/python3.11 -c -std=c99 crfsuite/lib/crf/src/logging.c -o build/temp.linux-x86_64-cpython-311/crfsuite/lib/crf/src/logging.o
      gcc -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/opt/hostedtoolcache/Python/3.11.0/x64/include/python3.11 -c -std=c99 crfsuite/lib/crf/src/params.c -o build/temp.linux-x86_64-cpython-311/crfsuite/lib/crf/src/params.o
      gcc -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/opt/hostedtoolcache/Python/3.11.0/x64/include/python3.11 -c -std=c99 crfsuite/lib/crf/src/quark.c -o build/temp.linux-x86_64-cpython-311/crfsuite/lib/crf/src/quark.o
      gcc -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/opt/hostedtoolcache/Python/3.11.0/x64/include/python3.11 -c -std=c99 crfsuite/lib/crf/src/rumavl.c -o build/temp.linux-x86_64-cpython-311/crfsuite/lib/crf/src/rumavl.o
      gcc -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/opt/hostedtoolcache/Python/3.11.0/x64/include/python3.11 -c -std=c99 crfsuite/lib/crf/src/train_arow.c -o build/temp.linux-x86_64-cpython-311/crfsuite/lib/crf/src/train_arow.o
      In file included from crfsuite/lib/crf/src/train_arow.c:47:
      crfsuite/lib/crf/src/vecmath.h: In function ‘_aligned_malloc’:
      crfsuite/lib/crf/src/vecmath.h:50:15: warning: implicit declaration of function ‘posix_memalign’ [-Wimplicit-function-declaration]
         50 |     int ret = posix_memalign(&p, alignment, size);
            |               ^~~~~~~~~~~~~~
      In file included from crfsuite/lib/crf/src/train_arow.c:46:
      crfsuite/lib/crf/src/train_arow.c: In function ‘exchange_options’:
      crfsuite/lib/crf/src/params.h:49:13: warning: variable ‘__ret’ set but not used [-Wunused-but-set-variable]
         49 |         int __ret = 0; \
            |             ^~~~~
      crfsuite/lib/crf/src/train_arow.c:207:5: note: in expansion of macro ‘BEGIN_PARAM_MAP’
        207 |     BEGIN_PARAM_MAP(params, mode)
            |     ^~~~~~~~~~~~~~~
      crfsuite/lib/crf/src/train_arow.c: In function ‘crfsuite_train_arow’:
      crfsuite/lib/crf/src/train_arow.c:288:20: warning: unused variable ‘norm’ [-Wunused-variable]
        288 |         floatval_t norm = 0., sum_loss = 0.;
            |                    ^~~~
      crfsuite/lib/crf/src/train_arow.c:245:16: warning: variable ‘beta’ set but not used [-Wunused-but-set-variable]
        245 |     floatval_t beta;
            |                ^~~~
      At top level:
      crfsuite/lib/crf/src/train_arow.c:200:19: warning: ‘tau2’ defined but not used [-Wunused-function]
        200 | static floatval_t tau2(floatval_t cost, floatval_t norm, floatval_t c)
            |                   ^~~~
      crfsuite/lib/crf/src/train_arow.c:195:19: warning: ‘tau1’ defined but not used [-Wunused-function]
        195 | static floatval_t tau1(floatval_t cost, floatval_t norm, floatval_t c)
            |                   ^~~~
      crfsuite/lib/crf/src/train_arow.c:190:19: warning: ‘tau0’ defined but not used [-Wunused-function]
        190 | static floatval_t tau0(floatval_t cost, floatval_t norm, floatval_t c)
            |                   ^~~~
      crfsuite/lib/crf/src/train_arow.c:185:19: warning: ‘cost_sensitive’ defined but not used [-Wunused-function]
        185 | static floatval_t cost_sensitive(floatval_t err, floatval_t d)
            |                   ^~~~~~~~~~~~~~
      crfsuite/lib/crf/src/train_arow.c:180:19: warning: ‘cost_insensitive’ defined but not used [-Wunused-function]
        180 | static floatval_t cost_insensitive(floatval_t err, floatval_t d)
            |                   ^~~~~~~~~~~~~~~~
      crfsuite/lib/crf/src/train_arow.c:157:13: warning: ‘delta_add’ defined but not used [-Wunused-function]
        157 | static void delta_add(delta_t *dc, floatval_t *w, floatval_t *ws, const floatval_t tau, const floatval_t u)
            |             ^~~~~~~~~
      crfsuite/lib/crf/src/train_arow.c:145:19: warning: ‘delta_norm2’ defined but not used [-Wunused-function]
        145 | static floatval_t delta_norm2(delta_t *dc)
            |                   ^~~~~~~~~~~
      gcc -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/opt/hostedtoolcache/Python/3.11.0/x64/include/python3.11 -c -std=c99 crfsuite/lib/crf/src/train_averaged_perceptron.c -o build/temp.linux-x86_64-cpython-311/crfsuite/lib/crf/src/train_averaged_perceptron.o
      In file included from crfsuite/lib/crf/src/train_averaged_perceptron.c:47:
      crfsuite/lib/crf/src/vecmath.h: In function ‘_aligned_malloc’:
      crfsuite/lib/crf/src/vecmath.h:50:15: warning: implicit declaration of function ‘posix_memalign’ [-Wimplicit-function-declaration]
         50 |     int ret = posix_memalign(&p, alignment, size);
            |               ^~~~~~~~~~~~~~
      In file included from crfsuite/lib/crf/src/train_averaged_perceptron.c:46:
      crfsuite/lib/crf/src/train_averaged_perceptron.c: In function ‘exchange_options’:
      crfsuite/lib/crf/src/params.h:49:13: warning: variable ‘__ret’ set but not used [-Wunused-but-set-variable]
         49 |         int __ret = 0; \
            |             ^~~~~
      crfsuite/lib/crf/src/train_averaged_perceptron.c:87:5: note: in expansion of macro ‘BEGIN_PARAM_MAP’
         87 |     BEGIN_PARAM_MAP(params, mode)
            |     ^~~~~~~~~~~~~~~
      crfsuite/lib/crf/src/train_averaged_perceptron.c: In function ‘crfsuite_train_averaged_perceptron’:
      crfsuite/lib/crf/src/train_averaged_perceptron.c:155:20: warning: unused variable ‘norm’ [-Wunused-variable]
        155 |         floatval_t norm = 0., loss = 0.;
            |                    ^~~~
      gcc -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/opt/hostedtoolcache/Python/3.11.0/x64/include/python3.11 -c -std=c99 crfsuite/lib/crf/src/train_l2sgd.c -o build/temp.linux-x86_64-cpython-311/crfsuite/lib/crf/src/train_l2sgd.o
      In file included from crfsuite/lib/crf/src/train_l2sgd.c:109:
      crfsuite/lib/crf/src/vecmath.h: In function ‘_aligned_malloc’:
      crfsuite/lib/crf/src/vecmath.h:50:15: warning: implicit declaration of function ‘posix_memalign’ [-Wimplicit-function-declaration]
         50 |     int ret = posix_memalign(&p, alignment, size);
            |               ^~~~~~~~~~~~~~
      crfsuite/lib/crf/src/train_l2sgd.c: In function ‘l2sgd’:
      crfsuite/lib/crf/src/train_l2sgd.c:152:23: warning: unused variable ‘clk_begin’ [-Wunused-variable]
        152 |     clock_t clk_prev, clk_begin = clock();
            |                       ^~~~~~~~~
      In file included from crfsuite/lib/crf/src/train_l2sgd.c:107:
      crfsuite/lib/crf/src/train_l2sgd.c: In function ‘exchange_options’:
      crfsuite/lib/crf/src/params.h:49:13: warning: variable ‘__ret’ set but not used [-Wunused-but-set-variable]
         49 |         int __ret = 0; \
            |             ^~~~~
      crfsuite/lib/crf/src/train_l2sgd.c:390:5: note: in expansion of macro ‘BEGIN_PARAM_MAP’
        390 |     BEGIN_PARAM_MAP(params, mode)
            |     ^~~~~~~~~~~~~~~
      crfsuite/lib/crf/src/train_l2sgd.c: In function ‘crfsuite_train_l2sgd’:
      crfsuite/lib/crf/src/train_l2sgd.c:454:15: warning: unused variable ‘T’ [-Wunused-variable]
        454 |     const int T = gm->cap_items;
            |               ^
      crfsuite/lib/crf/src/train_l2sgd.c:237:13: warning: ‘eta’ may be used uninitialized in this function [-Wmaybe-uninitialized]
        237 |             logging(lg, "Learning rate (eta): %f\n", eta);
            |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      crfsuite/lib/crf/src/train_l2sgd.c:147:16: note: ‘eta’ was declared here
        147 |     floatval_t eta, gain, decay = 1.;
            |                ^~~
      gcc -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/opt/hostedtoolcache/Python/3.11.0/x64/include/python3.11 -c -std=c99 crfsuite/lib/crf/src/train_lbfgs.c -o build/temp.linux-x86_64-cpython-311/crfsuite/lib/crf/src/train_lbfgs.o
      In file included from crfsuite/lib/crf/src/train_lbfgs.c:50:
      crfsuite/lib/crf/src/vecmath.h: In function ‘_aligned_malloc’:
      crfsuite/lib/crf/src/vecmath.h:50:15: warning: implicit declaration of function ‘posix_memalign’ [-Wimplicit-function-declaration]
         50 |     int ret = posix_memalign(&p, alignment, size);
            |               ^~~~~~~~~~~~~~
      In file included from crfsuite/lib/crf/src/train_lbfgs.c:49:
      crfsuite/lib/crf/src/train_lbfgs.c: In function ‘exchange_options’:
      crfsuite/lib/crf/src/params.h:49:13: warning: variable ‘__ret’ set but not used [-Wunused-but-set-variable]
         49 |         int __ret = 0; \
            |             ^~~~~
      crfsuite/lib/crf/src/train_lbfgs.c:163:5: note: in expansion of macro ‘BEGIN_PARAM_MAP’
        163 |     BEGIN_PARAM_MAP(params, mode)
            |     ^~~~~~~~~~~~~~~
      crfsuite/lib/crf/src/train_lbfgs.c: In function ‘crfsuite_train_lbfgs’:
      crfsuite/lib/crf/src/train_lbfgs.c:231:15: warning: unused variable ‘A’ [-Wunused-variable]
        231 |     const int A =  trainset->data->attrs->num(trainset->data->attrs);
            |               ^
      crfsuite/lib/crf/src/train_lbfgs.c:230:15: warning: unused variable ‘L’ [-Wunused-variable]
        230 |     const int L = trainset->data->labels->num(trainset->data->labels);
            |               ^
      crfsuite/lib/crf/src/train_lbfgs.c:229:15: warning: unused variable ‘N’ [-Wunused-variable]
        229 |     const int N = trainset->num_instances;
            |               ^
      gcc -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/opt/hostedtoolcache/Python/3.11.0/x64/include/python3.11 -c -std=c99 crfsuite/lib/crf/src/train_passive_aggressive.c -o build/temp.linux-x86_64-cpython-311/crfsuite/lib/crf/src/train_passive_aggressive.o
      In file included from crfsuite/lib/crf/src/train_passive_aggressive.c:47:
      crfsuite/lib/crf/src/vecmath.h: In function ‘_aligned_malloc’:
      crfsuite/lib/crf/src/vecmath.h:50:15: warning: implicit declaration of function ‘posix_memalign’ [-Wimplicit-function-declaration]
         50 |     int ret = posix_memalign(&p, alignment, size);
            |               ^~~~~~~~~~~~~~
      In file included from crfsuite/lib/crf/src/train_passive_aggressive.c:46:
      crfsuite/lib/crf/src/train_passive_aggressive.c: In function ‘exchange_options’:
      crfsuite/lib/crf/src/params.h:49:13: warning: variable ‘__ret’ set but not used [-Wunused-but-set-variable]
         49 |         int __ret = 0; \
            |             ^~~~~
      crfsuite/lib/crf/src/train_passive_aggressive.c:209:5: note: in expansion of macro ‘BEGIN_PARAM_MAP’
        209 |     BEGIN_PARAM_MAP(params, mode)
            |     ^~~~~~~~~~~~~~~
      crfsuite/lib/crf/src/train_passive_aggressive.c: In function ‘crfsuite_train_passive_aggressive’:
      crfsuite/lib/crf/src/train_passive_aggressive.c:318:20: warning: unused variable ‘norm’ [-Wunused-variable]
        318 |         floatval_t norm = 0., sum_loss = 0.;
            |                    ^~~~
      gcc -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/opt/hostedtoolcache/Python/3.11.0/x64/include/python3.11 -c crfsuite/swig/crfsuite.cpp -o build/temp.linux-x86_64-cpython-311/crfsuite/swig/crfsuite.o
      gcc -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/opt/hostedtoolcache/Python/3.11.0/x64/include/python3.11 -c -std=c99 liblbfgs/lib/lbfgs.c -o build/temp.linux-x86_64-cpython-311/liblbfgs/lib/lbfgs.o
      gcc -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/opt/hostedtoolcache/Python/3.11.0/x64/include/python3.11 -c pycrfsuite/_pycrfsuite.cpp -o build/temp.linux-x86_64-cpython-311/pycrfsuite/_pycrfsuite.o
      pycrfsuite/_pycrfsuite.cpp: In function ‘int __Pyx_PyBytes_Equals(PyObject*, PyObject*, int)’:
      pycrfsuite/_pycrfsuite.cpp:14824:43: warning: ‘PyBytesObject::ob_shash’ is deprecated [-Wdeprecated-declarations]
      14824 |             hash1 = ((PyBytesObject*)s1)->ob_shash;
            |                                           ^~~~~~~~
      In file included from /opt/hostedtoolcache/Python/3.11.0/x64/include/python3.11/bytesobject.h:62,
                       from /opt/hostedtoolcache/Python/3.11.0/x64/include/python3.11/Python.h:50,
                       from pycrfsuite/_pycrfsuite.cpp:6:
      /opt/hostedtoolcache/Python/3.11.0/x64/include/python3.11/cpython/bytesobject.h:7:35: note: declared here
          7 |     Py_DEPRECATED(3.11) Py_hash_t ob_shash;
            |                                   ^~~~~~~~
      pycrfsuite/_pycrfsuite.cpp:14824:43: warning: ‘PyBytesObject::ob_shash’ is deprecated [-Wdeprecated-declarations]
      14824 |             hash1 = ((PyBytesObject*)s1)->ob_shash;
            |                                           ^~~~~~~~
      In file included from /opt/hostedtoolcache/Python/3.11.0/x64/include/python3.11/bytesobject.h:62,
                       from /opt/hostedtoolcache/Python/3.11.0/x64/include/python3.11/Python.h:50,
                       from pycrfsuite/_pycrfsuite.cpp:6:
      /opt/hostedtoolcache/Python/3.11.0/x64/include/python3.11/cpython/bytesobject.h:7:35: note: declared here
          7 |     Py_DEPRECATED(3.11) Py_hash_t ob_shash;
            |                                   ^~~~~~~~
      pycrfsuite/_pycrfsuite.cpp:14824:43: warning: ‘PyBytesObject::ob_shash’ is deprecated [-Wdeprecated-declarations]
      14824 |             hash1 = ((PyBytesObject*)s1)->ob_shash;
            |                                           ^~~~~~~~
      In file included from /opt/hostedtoolcache/Python/3.11.0/x64/include/python3.11/bytesobject.h:62,
                       from /opt/hostedtoolcache/Python/3.11.0/x64/include/python3.11/Python.h:50,
                       from pycrfsuite/_pycrfsuite.cpp:6:
      /opt/hostedtoolcache/Python/3.11.0/x64/include/python3.11/cpython/bytesobject.h:7:35: note: declared here
          7 |     Py_DEPRECATED(3.11) Py_hash_t ob_shash;
            |                                   ^~~~~~~~
      pycrfsuite/_pycrfsuite.cpp:14825:43: warning: ‘PyBytesObject::ob_shash’ is deprecated [-Wdeprecated-declarations]
      14825 |             hash2 = ((PyBytesObject*)s2)->ob_shash;
            |                                           ^~~~~~~~
      In file included from /opt/hostedtoolcache/Python/3.11.0/x64/include/python3.11/bytesobject.h:62,
                       from /opt/hostedtoolcache/Python/3.11.0/x64/include/python3.11/Python.h:50,
                       from pycrfsuite/_pycrfsuite.cpp:6:
      /opt/hostedtoolcache/Python/3.11.0/x64/include/python3.11/cpython/bytesobject.h:7:35: note: declared here
          7 |     Py_DEPRECATED(3.11) Py_hash_t ob_shash;
            |                                   ^~~~~~~~
      pycrfsuite/_pycrfsuite.cpp:14825:43: warning: ‘PyBytesObject::ob_shash’ is deprecated [-Wdeprecated-declarations]
      14825 |             hash2 = ((PyBytesObject*)s2)->ob_shash;
            |                                           ^~~~~~~~
      In file included from /opt/hostedtoolcache/Python/3.11.0/x64/include/python3.11/bytesobject.h:62,
                       from /opt/hostedtoolcache/Python/3.11.0/x64/include/python3.11/Python.h:50,
                       from pycrfsuite/_pycrfsuite.cpp:6:
      /opt/hostedtoolcache/Python/3.11.0/x64/include/python3.11/cpython/bytesobject.h:7:35: note: declared here
          7 |     Py_DEPRECATED(3.11) Py_hash_t ob_shash;
            |                                   ^~~~~~~~
      pycrfsuite/_pycrfsuite.cpp:14825:43: warning: ‘PyBytesObject::ob_shash’ is deprecated [-Wdeprecated-declarations]
      14825 |             hash2 = ((PyBytesObject*)s2)->ob_shash;
            |                                           ^~~~~~~~
      In file included from /opt/hostedtoolcache/Python/3.11.0/x64/include/python3.11/bytesobject.h:62,
                       from /opt/hostedtoolcache/Python/3.11.0/x64/include/python3.11/Python.h:50,
                       from pycrfsuite/_pycrfsuite.cpp:6:
      /opt/hostedtoolcache/Python/3.11.0/x64/include/python3.11/cpython/bytesobject.h:7:35: note: declared here
          7 |     Py_DEPRECATED(3.11) Py_hash_t ob_shash;
            |                                   ^~~~~~~~
      pycrfsuite/_pycrfsuite.cpp: In function ‘void __Pyx_AddTraceback(const char*, int, int, const char*)’:
      pycrfsuite/_pycrfsuite.cpp:452:62: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
        452 |   #define __Pyx_PyFrame_SetLineNumber(frame, lineno)  (frame)->f_lineno = (lineno)
            |                                                              ^~
      pycrfsuite/_pycrfsuite.cpp:16387:5: note: in expansion of macro ‘__Pyx_PyFrame_SetLineNumber’
      16387 |     __Pyx_PyFrame_SetLineNumber(py_frame, py_line);
            |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
      In file included from /opt/hostedtoolcache/Python/3.11.0/x64/include/python3.11/Python.h:42,
                       from pycrfsuite/_pycrfsuite.cpp:6:
      /opt/hostedtoolcache/Python/3.11.0/x64/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’}
         22 | typedef struct _frame PyFrameObject;
            |                ^~~~~~
      pycrfsuite/_pycrfsuite.cpp: In function ‘PyObject* __Pyx_Coroutine_SendEx(__pyx_CoroutineObject*, PyObject*, int)’:
      pycrfsuite/_pycrfsuite.cpp:17470:14: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
      17470 |             f->f_back = PyThreadState_GetFrame(tstate);
            |              ^~
      In file included from /opt/hostedtoolcache/Python/3.11.0/x64/include/python3.11/Python.h:42,
                       from pycrfsuite/_pycrfsuite.cpp:6:
      /opt/hostedtoolcache/Python/3.11.0/x64/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’}
         22 | typedef struct _frame PyFrameObject;
            |                ^~~~~~
      In file included from /opt/hostedtoolcache/Python/3.11.0/x64/include/python3.11/Python.h:38,
                       from pycrfsuite/_pycrfsuite.cpp:6:
      pycrfsuite/_pycrfsuite.cpp: In function ‘void __Pyx_Coroutine_ResetFrameBackpointer(__Pyx_ExcInfoStruct*)’:
      pycrfsuite/_pycrfsuite.cpp:17507:19: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
      17507 |         Py_CLEAR(f->f_back);
            |                   ^~
      /opt/hostedtoolcache/Python/3.11.0/x64/include/python3.11/pyport.h:24:38: note: in definition of macro ‘_Py_CAST’
         24 | #define _Py_CAST(type, expr) ((type)(expr))
            |                                      ^~~~
      /opt/hostedtoolcache/Python/3.11.0/x64/include/python3.11/object.h:581:29: note: in expansion of macro ‘_PyObject_CAST’
        581 |         PyObject *_py_tmp = _PyObject_CAST(op); \
            |                             ^~~~~~~~~~~~~~
      pycrfsuite/_pycrfsuite.cpp:17507:9: note: in expansion of macro ‘Py_CLEAR’
      17507 |         Py_CLEAR(f->f_back);
            |         ^~~~~~~~
      In file included from /opt/hostedtoolcache/Python/3.11.0/x64/include/python3.11/Python.h:42,
                       from pycrfsuite/_pycrfsuite.cpp:6:
      /opt/hostedtoolcache/Python/3.11.0/x64/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’}
         22 | typedef struct _frame PyFrameObject;
            |                ^~~~~~
      In file included from /opt/hostedtoolcache/Python/3.11.0/x64/include/python3.11/Python.h:44,
                       from pycrfsuite/_pycrfsuite.cpp:6:
      pycrfsuite/_pycrfsuite.cpp:17507:19: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
      17507 |         Py_CLEAR(f->f_back);
            |                   ^~
      /opt/hostedtoolcache/Python/3.11.0/x64/include/python3.11/object.h:583:14: note: in definition of macro ‘Py_CLEAR’
        583 |             (op) = NULL;                        \
            |              ^~
      In file included from /opt/hostedtoolcache/Python/3.11.0/x64/include/python3.11/Python.h:42,
                       from pycrfsuite/_pycrfsuite.cpp:6:
      /opt/hostedtoolcache/Python/3.11.0/x64/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’}
         22 | typedef struct _frame PyFrameObject;
            |                ^~~~~~
      error: command '/usr/bin/gcc' failed with exit code 1
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure

× Encountered error while trying to install package.
╰─> python-crfsuite

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
zsfc commented 1 year ago

Same problem on Windows 10 with Python 3.11.0. Pinning the install to previous crfsuite versions did not fix the issue, although there were other error messages.

Building wheels for collected packages: python-crfsuite
  Building wheel for python-crfsuite (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [89 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build\lib.win-amd64-cpython-311
      creating build\lib.win-amd64-cpython-311\pycrfsuite
      copying pycrfsuite\_dumpparser.py -> build\lib.win-amd64-cpython-311\pycrfsuite
      copying pycrfsuite\_logparser.py -> build\lib.win-amd64-cpython-311\pycrfsuite
      copying pycrfsuite\__init__.py -> build\lib.win-amd64-cpython-311\pycrfsuite
      running build_ext
      building 'pycrfsuite._pycrfsuite' extension
      creating build\temp.win-amd64-cpython-311
      creating build\temp.win-amd64-cpython-311\Release
      creating build\temp.win-amd64-cpython-311\Release\crfsuite
      creating build\temp.win-amd64-cpython-311\Release\crfsuite\lib
      creating build\temp.win-amd64-cpython-311\Release\crfsuite\lib\cqdb
      creating build\temp.win-amd64-cpython-311\Release\crfsuite\lib\cqdb\src
      creating build\temp.win-amd64-cpython-311\Release\crfsuite\lib\crf
      creating build\temp.win-amd64-cpython-311\Release\crfsuite\lib\crf\src
      creating build\temp.win-amd64-cpython-311\Release\crfsuite\swig
      creating build\temp.win-amd64-cpython-311\Release\liblbfgs
      creating build\temp.win-amd64-cpython-311\Release\liblbfgs\lib
      creating build\temp.win-amd64-cpython-311\Release\pycrfsuite
      "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -IC:\Users\user\AppData\Local\Programs\Python\Python311\include -IC:\Users\user\AppData\Local\Programs\Python\Python311\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt" /Tccrfsuite/lib/cqdb/src/cqdb.c /Fobuild\temp.win-amd64-cpython-311\Release\crfsuite/lib/cqdb/src/cqdb.obj
      cqdb.c
      crfsuite/lib/cqdb/src/cqdb.c(270): warning C4996: 'strncpy': This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
      crfsuite/lib/cqdb/src/cqdb.c(469): warning C4996: 'strncpy': This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
      "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -IC:\Users\user\AppData\Local\Programs\Python\Python311\include -IC:\Users\user\AppData\Local\Programs\Python\Python311\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt" /Tccrfsuite/lib/cqdb/src/lookup3.c /Fobuild\temp.win-amd64-cpython-311\Release\crfsuite/lib/cqdb/src/lookup3.obj
      lookup3.c
      "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -IC:\Users\user\AppData\Local\Programs\Python\Python311\include -IC:\Users\user\AppData\Local\Programs\Python\Python311\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt" /Tccrfsuite/lib/crf/src\crf1d_context.c /Fobuild\temp.win-amd64-cpython-311\Release\crfsuite/lib/crf/src\crf1d_context.obj
      crf1d_context.c
      "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -IC:\Users\user\AppData\Local\Programs\Python\Python311\include -IC:\Users\user\AppData\Local\Programs\Python\Python311\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt" /Tccrfsuite/lib/crf/src\crf1d_encode.c /Fobuild\temp.win-amd64-cpython-311\Release\crfsuite/lib/crf/src\crf1d_encode.obj
      crf1d_encode.c
      crfsuite/lib/crf/src\crf1d_encode.c(897): warning C4101: 'i': unreferenced local variable
      "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -IC:\Users\user\AppData\Local\Programs\Python\Python311\include -IC:\Users\user\AppData\Local\Programs\Python\Python311\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt" /Tccrfsuite/lib/crf/src\crf1d_feature.c /Fobuild\temp.win-amd64-cpython-311\Release\crfsuite/lib/crf/src\crf1d_feature.obj
      crf1d_feature.c
      "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -IC:\Users\user\AppData\Local\Programs\Python\Python311\include -IC:\Users\user\AppData\Local\Programs\Python\Python311\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt" /Tccrfsuite/lib/crf/src\crf1d_model.c /Fobuild\temp.win-amd64-cpython-311\Release\crfsuite/lib/crf/src\crf1d_model.obj
      crf1d_model.c
      crfsuite/lib/crf/src\crf1d_model.c(435): warning C4267: 'function': conversion from 'size_t' to 'long', possible loss of data
      crfsuite/lib/crf/src\crf1d_model.c(542): warning C4267: 'function': conversion from 'size_t' to 'long', possible loss of data
      crfsuite/lib/crf/src\crf1d_model.c(805): warning C4267: 'function': conversion from 'size_t' to 'uint32_t', possible loss of data
      "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -IC:\Users\user\AppData\Local\Programs\Python\Python311\include -IC:\Users\user\AppData\Local\Programs\Python\Python311\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt" /Tccrfsuite/lib/crf/src\crf1d_tag.c /Fobuild\temp.win-amd64-cpython-311\Release\crfsuite/lib/crf/src\crf1d_tag.obj
      crf1d_tag.c
      "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -IC:\Users\user\AppData\Local\Programs\Python\Python311\include -IC:\Users\user\AppData\Local\Programs\Python\Python311\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt" /Tccrfsuite/lib/crf/src\crfsuite.c /Fobuild\temp.win-amd64-cpython-311\Release\crfsuite/lib/crf/src\crfsuite.obj
      crfsuite.c
      "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -IC:\Users\user\AppData\Local\Programs\Python\Python311\include -IC:\Users\user\AppData\Local\Programs\Python\Python311\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt" /Tccrfsuite/lib/crf/src\crfsuite_train.c /Fobuild\temp.win-amd64-cpython-311\Release\crfsuite/lib/crf/src\crfsuite_train.obj
      crfsuite_train.c
      "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -IC:\Users\user\AppData\Local\Programs\Python\Python311\include -IC:\Users\user\AppData\Local\Programs\Python\Python311\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt" /Tccrfsuite/lib/crf/src\dataset.c /Fobuild\temp.win-amd64-cpython-311\Release\crfsuite/lib/crf/src\dataset.obj
      dataset.c
      "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -IC:\Users\user\AppData\Local\Programs\Python\Python311\include -IC:\Users\user\AppData\Local\Programs\Python\Python311\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt" /Tccrfsuite/lib/crf/src\dictionary.c /Fobuild\temp.win-amd64-cpython-311\Release\crfsuite/lib/crf/src\dictionary.obj
      dictionary.c
      "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -IC:\Users\user\AppData\Local\Programs\Python\Python311\include -IC:\Users\user\AppData\Local\Programs\Python\Python311\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt" /Tccrfsuite/lib/crf/src\holdout.c /Fobuild\temp.win-amd64-cpython-311\Release\crfsuite/lib/crf/src\holdout.obj
      holdout.c
      "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -IC:\Users\user\AppData\Local\Programs\Python\Python311\include -IC:\Users\user\AppData\Local\Programs\Python\Python311\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt" /Tccrfsuite/lib/crf/src\logging.c /Fobuild\temp.win-amd64-cpython-311\Release\crfsuite/lib/crf/src\logging.obj
      logging.c
      "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -IC:\Users\user\AppData\Local\Programs\Python\Python311\include -IC:\Users\user\AppData\Local\Programs\Python\Python311\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt" /Tccrfsuite/lib/crf/src\params.c /Fobuild\temp.win-amd64-cpython-311\Release\crfsuite/lib/crf/src\params.obj
      params.c
      "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -IC:\Users\user\AppData\Local\Programs\Python\Python311\include -IC:\Users\user\AppData\Local\Programs\Python\Python311\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt" /Tccrfsuite/lib/crf/src\quark.c /Fobuild\temp.win-amd64-cpython-311\Release\crfsuite/lib/crf/src\quark.obj
      quark.c
      "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -IC:\Users\user\AppData\Local\Programs\Python\Python311\include -IC:\Users\user\AppData\Local\Programs\Python\Python311\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt" /Tccrfsuite/lib/crf/src\rumavl.c /Fobuild\temp.win-amd64-cpython-311\Release\crfsuite/lib/crf/src\rumavl.obj
      rumavl.c
      "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -IC:\Users\user\AppData\Local\Programs\Python\Python311\include -IC:\Users\user\AppData\Local\Programs\Python\Python311\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt" /Tccrfsuite/lib/crf/src\train_arow.c /Fobuild\temp.win-amd64-cpython-311\Release\crfsuite/lib/crf/src\train_arow.obj
      train_arow.c
      "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -IC:\Users\user\AppData\Local\Programs\Python\Python311\include -IC:\Users\user\AppData\Local\Programs\Python\Python311\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt" /Tccrfsuite/lib/crf/src\train_averaged_perceptron.c /Fobuild\temp.win-amd64-cpython-311\Release\crfsuite/lib/crf/src\train_averaged_perceptron.obj
      train_averaged_perceptron.c
      "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -IC:\Users\user\AppData\Local\Programs\Python\Python311\include -IC:\Users\user\AppData\Local\Programs\Python\Python311\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt" /Tccrfsuite/lib/crf/src\train_l2sgd.c /Fobuild\temp.win-amd64-cpython-311\Release\crfsuite/lib/crf/src\train_l2sgd.obj
      train_l2sgd.c
      "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -IC:\Users\user\AppData\Local\Programs\Python\Python311\include -IC:\Users\user\AppData\Local\Programs\Python\Python311\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt" /Tccrfsuite/lib/crf/src\train_lbfgs.c /Fobuild\temp.win-amd64-cpython-311\Release\crfsuite/lib/crf/src\train_lbfgs.obj
      train_lbfgs.c
      "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -IC:\Users\user\AppData\Local\Programs\Python\Python311\include -IC:\Users\user\AppData\Local\Programs\Python\Python311\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt" /Tccrfsuite/lib/crf/src\train_passive_aggressive.c /Fobuild\temp.win-amd64-cpython-311\Release\crfsuite/lib/crf/src\train_passive_aggressive.obj
      train_passive_aggressive.c
      "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -IC:\Users\user\AppData\Local\Programs\Python\Python311\include -IC:\Users\user\AppData\Local\Programs\Python\Python311\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt" /EHsc /Tpcrfsuite/swig\crfsuite.cpp /Fobuild\temp.win-amd64-cpython-311\Release\crfsuite/swig\crfsuite.obj
      crfsuite.cpp
      crfsuite/include/crfsuite.hpp(122): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data
      crfsuite/include/crfsuite.hpp(128): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data
      crfsuite/include/crfsuite.hpp(386): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data
      "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -IC:\Users\user\AppData\Local\Programs\Python\Python311\include -IC:\Users\user\AppData\Local\Programs\Python\Python311\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt" /EHsc /Tcliblbfgs/lib\lbfgs.c /Fobuild\temp.win-amd64-cpython-311\Release\liblbfgs/lib\lbfgs.obj
      lbfgs.c
      "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -IC:\Users\user\AppData\Local\Programs\Python\Python311\include -IC:\Users\user\AppData\Local\Programs\Python\Python311\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt" /EHsc /Tppycrfsuite/_pycrfsuite.cpp /Fobuild\temp.win-amd64-cpython-311\Release\pycrfsuite/_pycrfsuite.obj
      _pycrfsuite.cpp
      pycrfsuite/_pycrfsuite.cpp(14824): warning C4996: 'PyBytesObject::ob_shash': deprecated in 3.11
      pycrfsuite/_pycrfsuite.cpp(14825): warning C4996: 'PyBytesObject::ob_shash': deprecated in 3.11
      pycrfsuite/_pycrfsuite.cpp(16387): error C2027: use of undefined type '_frame'
      C:\Users\user\AppData\Local\Programs\Python\Python311\include\pytypedefs.h(22): note: see declaration of '_frame'
      pycrfsuite/_pycrfsuite.cpp(17470): error C2027: use of undefined type '_frame'
      C:\Users\user\AppData\Local\Programs\Python\Python311\include\pytypedefs.h(22): note: see declaration of '_frame'
      pycrfsuite/_pycrfsuite.cpp(17507): error C2027: use of undefined type '_frame'
      C:\Users\user\AppData\Local\Programs\Python\Python311\include\pytypedefs.h(22): note: see declaration of '_frame'
      error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.29.30133\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for python-crfsuite
  Running setup.py clean for python-crfsuite
Failed to build python-crfsuite
noamo48 commented 1 year ago

Same issue when trying within the latest Python docker image:

# python3 -m pip install python-crfsuite
Collecting python-crfsuite
  Using cached python-crfsuite-0.9.8.tar.gz (440 kB)
  Preparing metadata (setup.py) ... done
Building wheels for collected packages: python-crfsuite
  Building wheel for python-crfsuite (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [434 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build/lib.linux-x86_64-cpython-311
      creating build/lib.linux-x86_64-cpython-311/pycrfsuite
      copying pycrfsuite/__init__.py -> build/lib.linux-x86_64-cpython-311/pycrfsuite
      copying pycrfsuite/_dumpparser.py -> build/lib.linux-x86_64-cpython-311/pycrfsuite
      copying pycrfsuite/_logparser.py -> build/lib.linux-x86_64-cpython-311/pycrfsuite
      running build_ext
      building 'pycrfsuite._pycrfsuite' extension
      creating build/temp.linux-x86_64-cpython-311
      creating build/temp.linux-x86_64-cpython-311/crfsuite
      creating build/temp.linux-x86_64-cpython-311/crfsuite/lib
      creating build/temp.linux-x86_64-cpython-311/crfsuite/lib/cqdb
      creating build/temp.linux-x86_64-cpython-311/crfsuite/lib/cqdb/src
      creating build/temp.linux-x86_64-cpython-311/crfsuite/lib/crf
      creating build/temp.linux-x86_64-cpython-311/crfsuite/lib/crf/src
      creating build/temp.linux-x86_64-cpython-311/crfsuite/swig
      creating build/temp.linux-x86_64-cpython-311/liblbfgs
      creating build/temp.linux-x86_64-cpython-311/liblbfgs/lib
      creating build/temp.linux-x86_64-cpython-311/pycrfsuite
      gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/local/include/python3.11 -c -std=c99 crfsuite/lib/cqdb/src/cqdb.c -o build/temp.linux-x86_64-cpython-311/crfsuite/lib/cqdb/src/cqdb.o
      crfsuite/lib/cqdb/src/cqdb.c: In function ‘cqdb_to_id’:
      crfsuite/lib/cqdb/src/cqdb.c:552:26: warning: variable ‘ksize’ set but not used [-Wunused-but-set-variable]
        552 |                 uint32_t ksize;
            |                          ^~~~~
      crfsuite/lib/cqdb/src/cqdb.c: In function ‘cqdb_writer_close’:
      crfsuite/lib/cqdb/src/cqdb.c:270:5: warning: ‘strncpy’ output truncated before terminating nul copying 4 bytes from a string of the same length [-Wstringop-truncation]
        270 |     strncpy((char*)header.chunkid, CHUNKID, 4);
            |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      crfsuite/lib/cqdb/src/cqdb.c: In function ‘cqdb_reader’:
      crfsuite/lib/cqdb/src/cqdb.c:469:9: warning: ‘strncpy’ specified bound 4 equals destination size [-Wstringop-truncation]
        469 |         strncpy((char*)db->header.chunkid, (const char*)p, 4);
            |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/local/include/python3.11 -c -std=c99 crfsuite/lib/cqdb/src/lookup3.c -o build/temp.linux-x86_64-cpython-311/crfsuite/lib/cqdb/src/lookup3.o
      gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/local/include/python3.11 -c -std=c99 crfsuite/lib/crf/src/crf1d_context.c -o build/temp.linux-x86_64-cpython-311/crfsuite/lib/crf/src/crf1d_context.o
      In file included from crfsuite/lib/crf/src/crf1d_context.c:47:
      crfsuite/lib/crf/src/vecmath.h: In function ‘_aligned_malloc’:
      crfsuite/lib/crf/src/vecmath.h:50:15: warning: implicit declaration of function ‘posix_memalign’ [-Wimplicit-function-declaration]
         50 |     int ret = posix_memalign(&p, alignment, size);
            |               ^~~~~~~~~~~~~~
      crfsuite/lib/crf/src/crf1d_context.c: In function ‘crf1dc_new’:
      crfsuite/lib/crf/src/crf1d_context.c:71:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
         71 |         if (ret = crf1dc_set_num_items(ctx, T)) {
            |             ^~~
      crfsuite/lib/crf/src/crf1d_context.c: In function ‘crf1dc_score’:
      crfsuite/lib/crf/src/crf1d_context.c:440:15: warning: unused variable ‘L’ [-Wunused-variable]
        440 |     const int L = ctx->num_labels;
            |               ^
      crfsuite/lib/crf/src/crf1d_context.c:438:38: warning: unused variable ‘cur’ [-Wunused-variable]
        438 |     const floatval_t *state = NULL, *cur = NULL, *trans = NULL;
            |                                      ^~~
      gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/local/include/python3.11 -c -std=c99 crfsuite/lib/crf/src/crf1d_encode.c -o build/temp.linux-x86_64-cpython-311/crfsuite/lib/crf/src/crf1d_encode.o
      crfsuite/lib/crf/src/crf1d_encode.c: In function ‘crf1de_state_score’:
      crfsuite/lib/crf/src/crf1d_encode.c:136:15: warning: unused variable ‘L’ [-Wunused-variable]
        136 |     const int L = crf1de->num_labels;
            |               ^
      crfsuite/lib/crf/src/crf1d_encode.c: In function ‘crf1de_state_score_scaled’:
      crfsuite/lib/crf/src/crf1d_encode.c:172:15: warning: unused variable ‘L’ [-Wunused-variable]
        172 |     const int L = crf1de->num_labels;
            |               ^
      crfsuite/lib/crf/src/crf1d_encode.c: In function ‘crf1de_features_on_path’:
      crfsuite/lib/crf/src/crf1d_encode.c:268:15: warning: unused variable ‘L’ [-Wunused-variable]
        268 |     const int L = crf1de->num_labels;
            |               ^
      crfsuite/lib/crf/src/crf1d_encode.c:266:22: warning: unused variable ‘ctx’ [-Wunused-variable]
        266 |     crf1d_context_t* ctx = crf1de->ctx;
            |                      ^~~
      crfsuite/lib/crf/src/crf1d_encode.c: In function ‘crf1de_observation_expectation’:
      crfsuite/lib/crf/src/crf1d_encode.c:321:15: warning: unused variable ‘L’ [-Wunused-variable]
        321 |     const int L = crf1de->num_labels;
            |               ^
      crfsuite/lib/crf/src/crf1d_encode.c:319:22: warning: unused variable ‘ctx’ [-Wunused-variable]
        319 |     crf1d_context_t* ctx = crf1de->ctx;
            |                      ^~~
      crfsuite/lib/crf/src/crf1d_encode.c: In function ‘crf1de_model_expectation’:
      crfsuite/lib/crf/src/crf1d_encode.c:372:41: warning: unused variable ‘trans’ [-Wunused-variable]
        372 |     const feature_refs_t *attr = NULL, *trans = NULL;
            |                                         ^~~~~
      crfsuite/lib/crf/src/crf1d_encode.c: In function ‘crf1de_save_model’:
      crfsuite/lib/crf/src/crf1d_encode.c:551:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
        551 |     if (ret = crf1dmw_open_features(writer)) {
            |         ^~~
      crfsuite/lib/crf/src/crf1d_encode.c:585:17: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
        585 |             if (ret = crf1dmw_put_feature(writer, fmap[k], &feat)) {
            |                 ^~~
      crfsuite/lib/crf/src/crf1d_encode.c:592:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
        592 |     if (ret = crf1dmw_close_features(writer)) {
            |         ^~~
      crfsuite/lib/crf/src/crf1d_encode.c:602:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
        602 |     if (ret = crf1dmw_open_labels(writer, L)) {
            |         ^~~
      crfsuite/lib/crf/src/crf1d_encode.c:609:17: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
        609 |             if (ret = crf1dmw_put_label(writer, l, str)) {
            |                 ^~~
      crfsuite/lib/crf/src/crf1d_encode.c:615:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
        615 |     if (ret = crf1dmw_close_labels(writer)) {
            |         ^~~
      crfsuite/lib/crf/src/crf1d_encode.c:621:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
        621 |     if (ret = crf1dmw_open_attrs(writer, B)) {
            |         ^~~
      crfsuite/lib/crf/src/crf1d_encode.c:629:21: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
        629 |                 if (ret = crf1dmw_put_attr(writer, amap[a], str)) {
            |                     ^~~
      crfsuite/lib/crf/src/crf1d_encode.c:636:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
        636 |     if (ret = crf1dmw_close_attrs(writer)) {
            |         ^~~
      crfsuite/lib/crf/src/crf1d_encode.c:642:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
        642 |     if (ret = crf1dmw_open_labelrefs(writer, L+2)) {
            |         ^~~
      crfsuite/lib/crf/src/crf1d_encode.c:647:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
        647 |         if (ret = crf1dmw_put_labelref(writer, l, edge, fmap)) {
            |             ^~~
      crfsuite/lib/crf/src/crf1d_encode.c:651:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
        651 |     if (ret = crf1dmw_close_labelrefs(writer)) {
            |         ^~~
      crfsuite/lib/crf/src/crf1d_encode.c:657:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
        657 |     if (ret = crf1dmw_open_attrrefs(writer, B)) {
            |         ^~~
      crfsuite/lib/crf/src/crf1d_encode.c:663:17: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
        663 |             if (ret = crf1dmw_put_attrref(writer, amap[a], attr, fmap)) {
            |                 ^~~
      crfsuite/lib/crf/src/crf1d_encode.c:668:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
        668 |     if (ret = crf1dmw_close_attrrefs(writer)) {
            |         ^~~
      crfsuite/lib/crf/src/crf1d_encode.c:508:22: warning: unused variable ‘threshold’ [-Wunused-variable]
        508 |     const floatval_t threshold = 0.01;
            |                      ^~~~~~~~~
      In file included from crfsuite/lib/crf/src/crf1d_encode.c:47:
      crfsuite/lib/crf/src/crf1d_encode.c: In function ‘crf1de_exchange_options’:
      crfsuite/lib/crf/src/params.h:49:13: warning: variable ‘__ret’ set but not used [-Wunused-but-set-variable]
         49 |         int __ret = 0; \
            |             ^~~~~
      crfsuite/lib/crf/src/crf1d_encode.c:696:5: note: in expansion of macro ‘BEGIN_PARAM_MAP’
        696 |     BEGIN_PARAM_MAP(params, mode)
            |     ^~~~~~~~~~~~~~~
      crfsuite/lib/crf/src/crf1d_encode.c: In function ‘encoder_viterbi’:
      crfsuite/lib/crf/src/crf1d_encode.c:897:9: warning: unused variable ‘i’ [-Wunused-variable]
        897 |     int i;
            |         ^
      crfsuite/lib/crf/src/crf1d_encode.c: In function ‘encoder_save_model’:
      crfsuite/lib/crf/src/crf1d_encode.c:864:12: warning: ‘ret’ may be used uninitialized in this function [-Wmaybe-uninitialized]
        864 |     return crf1de_save_model(crf1de, filename, w, self->ds->data->attrs,  self->ds->data->labels, lg);
            |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/local/include/python3.11 -c -std=c99 crfsuite/lib/crf/src/crf1d_feature.c -o build/temp.linux-x86_64-cpython-311/crfsuite/lib/crf/src/crf1d_feature.o
      gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/local/include/python3.11 -c -std=c99 crfsuite/lib/crf/src/crf1d_model.c -o build/temp.linux-x86_64-cpython-311/crfsuite/lib/crf/src/crf1d_model.o
      crfsuite/lib/crf/src/crf1d_model.c: In function ‘crf1dmw_put_labelref’:
      crfsuite/lib/crf/src/crf1d_model.c:487:21: warning: unused variable ‘offset’ [-Wunused-variable]
        487 |     uint32_t n = 0, offset = 0;
            |                     ^~~~~~
      crfsuite/lib/crf/src/crf1d_model.c: In function ‘crf1dmw_put_attrref’:
      crfsuite/lib/crf/src/crf1d_model.c:594:21: warning: unused variable ‘offset’ [-Wunused-variable]
        594 |     uint32_t n = 0, offset = 0;
            |                     ^~~~~~
      crfsuite/lib/crf/src/crf1d_model.c: In function ‘crf1dmw_put_feature’:
      crfsuite/lib/crf/src/crf1d_model.c:691:13: warning: comparison of integer expressions of different signedness: ‘int’ and ‘uint32_t’ {aka ‘unsigned int’} [-Wsign-compare]
        691 |     if (fid != hfeat->num) {
            |             ^~
      In function ‘read_uint8’,
          inlined from ‘read_uint8_array’ at crfsuite/lib/crf/src/crf1d_model.c:165:20,
          inlined from ‘crf1dm_new_impl’ at crfsuite/lib/crf/src/crf1d_model.c:729:10:
      crfsuite/lib/crf/src/crf1d_model.c:127:12: warning: writing 16 bytes into a region of size 4 [-Wstringop-overflow=]
        127 |     *value = *buffer;
            |     ~~~~~~~^~~~~~~~~
      crfsuite/lib/crf/src/crf1d_model.c: In function ‘crf1dm_new_impl’:
      crfsuite/lib/crf/src/crf1d_model.c:64:17: note: at offset 0 to object ‘magic’ with size 4 declared here
         64 |     uint8_t     magic[4];       /* File magic. */
            |                 ^~~~~
      gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/local/include/python3.11 -c -std=c99 crfsuite/lib/crf/src/crf1d_tag.c -o build/temp.linux-x86_64-cpython-311/crfsuite/lib/crf/src/crf1d_tag.o
      crfsuite/lib/crf/src/crf1d_tag.c: In function ‘crf1dt_state_score’:
      crfsuite/lib/crf/src/crf1d_tag.c:72:15: warning: unused variable ‘L’ [-Wunused-variable]
         72 |     const int L = crf1dt->num_labels;
            |               ^
      gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/local/include/python3.11 -c -std=c99 crfsuite/lib/crf/src/crfsuite.c -o build/temp.linux-x86_64-cpython-311/crfsuite/lib/crf/src/crfsuite.o
      crfsuite/lib/crf/src/crfsuite.c:322:14: warning: ‘safe_strncpy’ defined but not used [-Wunused-function]
        322 | static char *safe_strncpy(char *dst, const char *src, size_t n)
            |              ^~~~~~~~~~~~
      gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/local/include/python3.11 -c -std=c99 crfsuite/lib/crf/src/crfsuite_train.c -o build/temp.linux-x86_64-cpython-311/crfsuite/lib/crf/src/crfsuite_train.o
      crfsuite/lib/crf/src/crfsuite_train.c: In function ‘crfsuite_train_train’:
      crfsuite/lib/crf/src/crfsuite_train.c:135:11: warning: unused variable ‘algorithm’ [-Wunused-variable]
        135 |     char *algorithm = NULL;
            |           ^~~~~~~~~
      gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/local/include/python3.11 -c -std=c99 crfsuite/lib/crf/src/dataset.c -o build/temp.linux-x86_64-cpython-311/crfsuite/lib/crf/src/dataset.o
      gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/local/include/python3.11 -c -std=c99 crfsuite/lib/crf/src/dictionary.c -o build/temp.linux-x86_64-cpython-311/crfsuite/lib/crf/src/dictionary.o
      gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/local/include/python3.11 -c -std=c99 crfsuite/lib/crf/src/holdout.c -o build/temp.linux-x86_64-cpython-311/crfsuite/lib/crf/src/holdout.o
      gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/local/include/python3.11 -c -std=c99 crfsuite/lib/crf/src/logging.c -o build/temp.linux-x86_64-cpython-311/crfsuite/lib/crf/src/logging.o
      gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/local/include/python3.11 -c -std=c99 crfsuite/lib/crf/src/params.c -o build/temp.linux-x86_64-cpython-311/crfsuite/lib/crf/src/params.o
      gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/local/include/python3.11 -c -std=c99 crfsuite/lib/crf/src/quark.c -o build/temp.linux-x86_64-cpython-311/crfsuite/lib/crf/src/quark.o
      gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/local/include/python3.11 -c -std=c99 crfsuite/lib/crf/src/rumavl.c -o build/temp.linux-x86_64-cpython-311/crfsuite/lib/crf/src/rumavl.o
      gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/local/include/python3.11 -c -std=c99 crfsuite/lib/crf/src/train_arow.c -o build/temp.linux-x86_64-cpython-311/crfsuite/lib/crf/src/train_arow.o
      In file included from crfsuite/lib/crf/src/train_arow.c:47:
      crfsuite/lib/crf/src/vecmath.h: In function ‘_aligned_malloc’:
      crfsuite/lib/crf/src/vecmath.h:50:15: warning: implicit declaration of function ‘posix_memalign’ [-Wimplicit-function-declaration]
         50 |     int ret = posix_memalign(&p, alignment, size);
            |               ^~~~~~~~~~~~~~
      In file included from crfsuite/lib/crf/src/train_arow.c:46:
      crfsuite/lib/crf/src/train_arow.c: In function ‘exchange_options’:
      crfsuite/lib/crf/src/params.h:49:13: warning: variable ‘__ret’ set but not used [-Wunused-but-set-variable]
         49 |         int __ret = 0; \
            |             ^~~~~
      crfsuite/lib/crf/src/train_arow.c:207:5: note: in expansion of macro ‘BEGIN_PARAM_MAP’
        207 |     BEGIN_PARAM_MAP(params, mode)
            |     ^~~~~~~~~~~~~~~
      crfsuite/lib/crf/src/train_arow.c: In function ‘crfsuite_train_arow’:
      crfsuite/lib/crf/src/train_arow.c:288:20: warning: unused variable ‘norm’ [-Wunused-variable]
        288 |         floatval_t norm = 0., sum_loss = 0.;
            |                    ^~~~
      crfsuite/lib/crf/src/train_arow.c:245:16: warning: variable ‘beta’ set but not used [-Wunused-but-set-variable]
        245 |     floatval_t beta;
            |                ^~~~
      At top level:
      crfsuite/lib/crf/src/train_arow.c:200:19: warning: ‘tau2’ defined but not used [-Wunused-function]
        200 | static floatval_t tau2(floatval_t cost, floatval_t norm, floatval_t c)
            |                   ^~~~
      crfsuite/lib/crf/src/train_arow.c:195:19: warning: ‘tau1’ defined but not used [-Wunused-function]
        195 | static floatval_t tau1(floatval_t cost, floatval_t norm, floatval_t c)
            |                   ^~~~
      crfsuite/lib/crf/src/train_arow.c:190:19: warning: ‘tau0’ defined but not used [-Wunused-function]
        190 | static floatval_t tau0(floatval_t cost, floatval_t norm, floatval_t c)
            |                   ^~~~
      crfsuite/lib/crf/src/train_arow.c:185:19: warning: ‘cost_sensitive’ defined but not used [-Wunused-function]
        185 | static floatval_t cost_sensitive(floatval_t err, floatval_t d)
            |                   ^~~~~~~~~~~~~~
      crfsuite/lib/crf/src/train_arow.c:180:19: warning: ‘cost_insensitive’ defined but not used [-Wunused-function]
        180 | static floatval_t cost_insensitive(floatval_t err, floatval_t d)
            |                   ^~~~~~~~~~~~~~~~
      crfsuite/lib/crf/src/train_arow.c:157:13: warning: ‘delta_add’ defined but not used [-Wunused-function]
        157 | static void delta_add(delta_t *dc, floatval_t *w, floatval_t *ws, const floatval_t tau, const floatval_t u)
            |             ^~~~~~~~~
      crfsuite/lib/crf/src/train_arow.c:145:19: warning: ‘delta_norm2’ defined but not used [-Wunused-function]
        145 | static floatval_t delta_norm2(delta_t *dc)
            |                   ^~~~~~~~~~~
      gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/local/include/python3.11 -c -std=c99 crfsuite/lib/crf/src/train_averaged_perceptron.c -o build/temp.linux-x86_64-cpython-311/crfsuite/lib/crf/src/train_averaged_perceptron.o
      In file included from crfsuite/lib/crf/src/train_averaged_perceptron.c:47:
      crfsuite/lib/crf/src/vecmath.h: In function ‘_aligned_malloc’:
      crfsuite/lib/crf/src/vecmath.h:50:15: warning: implicit declaration of function ‘posix_memalign’ [-Wimplicit-function-declaration]
         50 |     int ret = posix_memalign(&p, alignment, size);
            |               ^~~~~~~~~~~~~~
      In file included from crfsuite/lib/crf/src/train_averaged_perceptron.c:46:
      crfsuite/lib/crf/src/train_averaged_perceptron.c: In function ‘exchange_options’:
      crfsuite/lib/crf/src/params.h:49:13: warning: variable ‘__ret’ set but not used [-Wunused-but-set-variable]
         49 |         int __ret = 0; \
            |             ^~~~~
      crfsuite/lib/crf/src/train_averaged_perceptron.c:87:5: note: in expansion of macro ‘BEGIN_PARAM_MAP’
         87 |     BEGIN_PARAM_MAP(params, mode)
            |     ^~~~~~~~~~~~~~~
      crfsuite/lib/crf/src/train_averaged_perceptron.c: In function ‘crfsuite_train_averaged_perceptron’:
      crfsuite/lib/crf/src/train_averaged_perceptron.c:155:20: warning: unused variable ‘norm’ [-Wunused-variable]
        155 |         floatval_t norm = 0., loss = 0.;
            |                    ^~~~
      gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/local/include/python3.11 -c -std=c99 crfsuite/lib/crf/src/train_l2sgd.c -o build/temp.linux-x86_64-cpython-311/crfsuite/lib/crf/src/train_l2sgd.o
      In file included from crfsuite/lib/crf/src/train_l2sgd.c:109:
      crfsuite/lib/crf/src/vecmath.h: In function ‘_aligned_malloc’:
      crfsuite/lib/crf/src/vecmath.h:50:15: warning: implicit declaration of function ‘posix_memalign’ [-Wimplicit-function-declaration]
         50 |     int ret = posix_memalign(&p, alignment, size);
            |               ^~~~~~~~~~~~~~
      crfsuite/lib/crf/src/train_l2sgd.c: In function ‘l2sgd’:
      crfsuite/lib/crf/src/train_l2sgd.c:152:23: warning: unused variable ‘clk_begin’ [-Wunused-variable]
        152 |     clock_t clk_prev, clk_begin = clock();
            |                       ^~~~~~~~~
      In file included from crfsuite/lib/crf/src/train_l2sgd.c:107:
      crfsuite/lib/crf/src/train_l2sgd.c: In function ‘exchange_options’:
      crfsuite/lib/crf/src/params.h:49:13: warning: variable ‘__ret’ set but not used [-Wunused-but-set-variable]
         49 |         int __ret = 0; \
            |             ^~~~~
      crfsuite/lib/crf/src/train_l2sgd.c:390:5: note: in expansion of macro ‘BEGIN_PARAM_MAP’
        390 |     BEGIN_PARAM_MAP(params, mode)
            |     ^~~~~~~~~~~~~~~
      crfsuite/lib/crf/src/train_l2sgd.c: In function ‘crfsuite_train_l2sgd’:
      crfsuite/lib/crf/src/train_l2sgd.c:454:15: warning: unused variable ‘T’ [-Wunused-variable]
        454 |     const int T = gm->cap_items;
            |               ^
      crfsuite/lib/crf/src/train_l2sgd.c:237:13: warning: ‘eta’ may be used uninitialized in this function [-Wmaybe-uninitialized]
        237 |             logging(lg, "Learning rate (eta): %f\n", eta);
            |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      crfsuite/lib/crf/src/train_l2sgd.c:147:16: note: ‘eta’ was declared here
        147 |     floatval_t eta, gain, decay = 1.;
            |                ^~~
      gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/local/include/python3.11 -c -std=c99 crfsuite/lib/crf/src/train_lbfgs.c -o build/temp.linux-x86_64-cpython-311/crfsuite/lib/crf/src/train_lbfgs.o
      In file included from crfsuite/lib/crf/src/train_lbfgs.c:50:
      crfsuite/lib/crf/src/vecmath.h: In function ‘_aligned_malloc’:
      crfsuite/lib/crf/src/vecmath.h:50:15: warning: implicit declaration of function ‘posix_memalign’ [-Wimplicit-function-declaration]
         50 |     int ret = posix_memalign(&p, alignment, size);
            |               ^~~~~~~~~~~~~~
      In file included from crfsuite/lib/crf/src/train_lbfgs.c:49:
      crfsuite/lib/crf/src/train_lbfgs.c: In function ‘exchange_options’:
      crfsuite/lib/crf/src/params.h:49:13: warning: variable ‘__ret’ set but not used [-Wunused-but-set-variable]
         49 |         int __ret = 0; \
            |             ^~~~~
      crfsuite/lib/crf/src/train_lbfgs.c:163:5: note: in expansion of macro ‘BEGIN_PARAM_MAP’
        163 |     BEGIN_PARAM_MAP(params, mode)
            |     ^~~~~~~~~~~~~~~
      crfsuite/lib/crf/src/train_lbfgs.c: In function ‘crfsuite_train_lbfgs’:
      crfsuite/lib/crf/src/train_lbfgs.c:231:15: warning: unused variable ‘A’ [-Wunused-variable]
        231 |     const int A =  trainset->data->attrs->num(trainset->data->attrs);
            |               ^
      crfsuite/lib/crf/src/train_lbfgs.c:230:15: warning: unused variable ‘L’ [-Wunused-variable]
        230 |     const int L = trainset->data->labels->num(trainset->data->labels);
            |               ^
      crfsuite/lib/crf/src/train_lbfgs.c:229:15: warning: unused variable ‘N’ [-Wunused-variable]
        229 |     const int N = trainset->num_instances;
            |               ^
      gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/local/include/python3.11 -c -std=c99 crfsuite/lib/crf/src/train_passive_aggressive.c -o build/temp.linux-x86_64-cpython-311/crfsuite/lib/crf/src/train_passive_aggressive.o
      In file included from crfsuite/lib/crf/src/train_passive_aggressive.c:47:
      crfsuite/lib/crf/src/vecmath.h: In function ‘_aligned_malloc’:
      crfsuite/lib/crf/src/vecmath.h:50:15: warning: implicit declaration of function ‘posix_memalign’ [-Wimplicit-function-declaration]
         50 |     int ret = posix_memalign(&p, alignment, size);
            |               ^~~~~~~~~~~~~~
      In file included from crfsuite/lib/crf/src/train_passive_aggressive.c:46:
      crfsuite/lib/crf/src/train_passive_aggressive.c: In function ‘exchange_options’:
      crfsuite/lib/crf/src/params.h:49:13: warning: variable ‘__ret’ set but not used [-Wunused-but-set-variable]
         49 |         int __ret = 0; \
            |             ^~~~~
      crfsuite/lib/crf/src/train_passive_aggressive.c:209:5: note: in expansion of macro ‘BEGIN_PARAM_MAP’
        209 |     BEGIN_PARAM_MAP(params, mode)
            |     ^~~~~~~~~~~~~~~
      crfsuite/lib/crf/src/train_passive_aggressive.c: In function ‘crfsuite_train_passive_aggressive’:
      crfsuite/lib/crf/src/train_passive_aggressive.c:318:20: warning: unused variable ‘norm’ [-Wunused-variable]
        318 |         floatval_t norm = 0., sum_loss = 0.;
            |                    ^~~~
      gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/local/include/python3.11 -c crfsuite/swig/crfsuite.cpp -o build/temp.linux-x86_64-cpython-311/crfsuite/swig/crfsuite.o
      gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/local/include/python3.11 -c -std=c99 liblbfgs/lib/lbfgs.c -o build/temp.linux-x86_64-cpython-311/liblbfgs/lib/lbfgs.o
      gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/local/include/python3.11 -c pycrfsuite/_pycrfsuite.cpp -o build/temp.linux-x86_64-cpython-311/pycrfsuite/_pycrfsuite.o
      pycrfsuite/_pycrfsuite.cpp: In function ‘int __Pyx_PyBytes_Equals(PyObject*, PyObject*, int)’:
      pycrfsuite/_pycrfsuite.cpp:14824:43: warning: ‘PyBytesObject::ob_shash’ is deprecated [-Wdeprecated-declarations]
      14824 |             hash1 = ((PyBytesObject*)s1)->ob_shash;
            |                                           ^~~~~~~~
      In file included from /usr/local/include/python3.11/bytesobject.h:62,
                       from /usr/local/include/python3.11/Python.h:50,
                       from pycrfsuite/_pycrfsuite.cpp:6:
      /usr/local/include/python3.11/cpython/bytesobject.h:7:35: note: declared here
          7 |     Py_DEPRECATED(3.11) Py_hash_t ob_shash;
            |                                   ^~~~~~~~
      pycrfsuite/_pycrfsuite.cpp:14824:43: warning: ‘PyBytesObject::ob_shash’ is deprecated [-Wdeprecated-declarations]
      14824 |             hash1 = ((PyBytesObject*)s1)->ob_shash;
            |                                           ^~~~~~~~
      In file included from /usr/local/include/python3.11/bytesobject.h:62,
                       from /usr/local/include/python3.11/Python.h:50,
                       from pycrfsuite/_pycrfsuite.cpp:6:
      /usr/local/include/python3.11/cpython/bytesobject.h:7:35: note: declared here
          7 |     Py_DEPRECATED(3.11) Py_hash_t ob_shash;
            |                                   ^~~~~~~~
      pycrfsuite/_pycrfsuite.cpp:14824:43: warning: ‘PyBytesObject::ob_shash’ is deprecated [-Wdeprecated-declarations]
      14824 |             hash1 = ((PyBytesObject*)s1)->ob_shash;
            |                                           ^~~~~~~~
      In file included from /usr/local/include/python3.11/bytesobject.h:62,
                       from /usr/local/include/python3.11/Python.h:50,
                       from pycrfsuite/_pycrfsuite.cpp:6:
      /usr/local/include/python3.11/cpython/bytesobject.h:7:35: note: declared here
          7 |     Py_DEPRECATED(3.11) Py_hash_t ob_shash;
            |                                   ^~~~~~~~
      pycrfsuite/_pycrfsuite.cpp:14825:43: warning: ‘PyBytesObject::ob_shash’ is deprecated [-Wdeprecated-declarations]
      14825 |             hash2 = ((PyBytesObject*)s2)->ob_shash;
            |                                           ^~~~~~~~
      In file included from /usr/local/include/python3.11/bytesobject.h:62,
                       from /usr/local/include/python3.11/Python.h:50,
                       from pycrfsuite/_pycrfsuite.cpp:6:
      /usr/local/include/python3.11/cpython/bytesobject.h:7:35: note: declared here
          7 |     Py_DEPRECATED(3.11) Py_hash_t ob_shash;
            |                                   ^~~~~~~~
      pycrfsuite/_pycrfsuite.cpp:14825:43: warning: ‘PyBytesObject::ob_shash’ is deprecated [-Wdeprecated-declarations]
      14825 |             hash2 = ((PyBytesObject*)s2)->ob_shash;
            |                                           ^~~~~~~~
      In file included from /usr/local/include/python3.11/bytesobject.h:62,
                       from /usr/local/include/python3.11/Python.h:50,
                       from pycrfsuite/_pycrfsuite.cpp:6:
      /usr/local/include/python3.11/cpython/bytesobject.h:7:35: note: declared here
          7 |     Py_DEPRECATED(3.11) Py_hash_t ob_shash;
            |                                   ^~~~~~~~
      pycrfsuite/_pycrfsuite.cpp:14825:43: warning: ‘PyBytesObject::ob_shash’ is deprecated [-Wdeprecated-declarations]
      14825 |             hash2 = ((PyBytesObject*)s2)->ob_shash;
            |                                           ^~~~~~~~
      In file included from /usr/local/include/python3.11/bytesobject.h:62,
                       from /usr/local/include/python3.11/Python.h:50,
                       from pycrfsuite/_pycrfsuite.cpp:6:
      /usr/local/include/python3.11/cpython/bytesobject.h:7:35: note: declared here
          7 |     Py_DEPRECATED(3.11) Py_hash_t ob_shash;
            |                                   ^~~~~~~~
      pycrfsuite/_pycrfsuite.cpp: In function ‘void __Pyx_AddTraceback(const char*, int, int, const char*)’:
      pycrfsuite/_pycrfsuite.cpp:452:62: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
        452 |   #define __Pyx_PyFrame_SetLineNumber(frame, lineno)  (frame)->f_lineno = (lineno)
            |                                                              ^~
      pycrfsuite/_pycrfsuite.cpp:16387:5: note: in expansion of macro ‘__Pyx_PyFrame_SetLineNumber’
      16387 |     __Pyx_PyFrame_SetLineNumber(py_frame, py_line);
            |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
      In file included from /usr/local/include/python3.11/Python.h:42,
                       from pycrfsuite/_pycrfsuite.cpp:6:
      /usr/local/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’}
         22 | typedef struct _frame PyFrameObject;
            |                ^~~~~~
      pycrfsuite/_pycrfsuite.cpp: In function ‘PyObject* __Pyx_Coroutine_SendEx(__pyx_CoroutineObject*, PyObject*, int)’:
      pycrfsuite/_pycrfsuite.cpp:17470:14: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
      17470 |             f->f_back = PyThreadState_GetFrame(tstate);
            |              ^~
      In file included from /usr/local/include/python3.11/Python.h:42,
                       from pycrfsuite/_pycrfsuite.cpp:6:
      /usr/local/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’}
         22 | typedef struct _frame PyFrameObject;
            |                ^~~~~~
      In file included from /usr/local/include/python3.11/Python.h:38,
                       from pycrfsuite/_pycrfsuite.cpp:6:
      pycrfsuite/_pycrfsuite.cpp: In function ‘void __Pyx_Coroutine_ResetFrameBackpointer(__Pyx_ExcInfoStruct*)’:
      pycrfsuite/_pycrfsuite.cpp:17507:19: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
      17507 |         Py_CLEAR(f->f_back);
            |                   ^~
      /usr/local/include/python3.11/pyport.h:24:38: note: in definition of macro ‘_Py_CAST’
         24 | #define _Py_CAST(type, expr) ((type)(expr))
            |                                      ^~~~
      /usr/local/include/python3.11/object.h:581:29: note: in expansion of macro ‘_PyObject_CAST’
        581 |         PyObject *_py_tmp = _PyObject_CAST(op); \
            |                             ^~~~~~~~~~~~~~
      pycrfsuite/_pycrfsuite.cpp:17507:9: note: in expansion of macro ‘Py_CLEAR’
      17507 |         Py_CLEAR(f->f_back);
            |         ^~~~~~~~
      In file included from /usr/local/include/python3.11/Python.h:42,
                       from pycrfsuite/_pycrfsuite.cpp:6:
      /usr/local/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’}
         22 | typedef struct _frame PyFrameObject;
            |                ^~~~~~
      In file included from /usr/local/include/python3.11/Python.h:44,
                       from pycrfsuite/_pycrfsuite.cpp:6:
      pycrfsuite/_pycrfsuite.cpp:17507:19: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
      17507 |         Py_CLEAR(f->f_back);
            |                   ^~
      /usr/local/include/python3.11/object.h:583:14: note: in definition of macro ‘Py_CLEAR’
        583 |             (op) = NULL;                        \
            |              ^~
      In file included from /usr/local/include/python3.11/Python.h:42,
                       from pycrfsuite/_pycrfsuite.cpp:6:
      /usr/local/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’}
         22 | typedef struct _frame PyFrameObject;
            |                ^~~~~~
      error: command '/usr/bin/gcc' failed with exit code 1
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for python-crfsuite
  Running setup.py clean for python-crfsuite
Failed to build python-crfsuite
Installing collected packages: python-crfsuite
  Running setup.py install for python-crfsuite ... error
  error: subprocess-exited-with-error

  × Running setup.py install for python-crfsuite did not run successfully.
  │ exit code: 1
  ╰─> [436 lines of output]
      running install
      /usr/local/lib/python3.11/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
        warnings.warn(
      running build
      running build_py
      creating build
      creating build/lib.linux-x86_64-cpython-311
      creating build/lib.linux-x86_64-cpython-311/pycrfsuite
      copying pycrfsuite/__init__.py -> build/lib.linux-x86_64-cpython-311/pycrfsuite
      copying pycrfsuite/_dumpparser.py -> build/lib.linux-x86_64-cpython-311/pycrfsuite
      copying pycrfsuite/_logparser.py -> build/lib.linux-x86_64-cpython-311/pycrfsuite
      running build_ext
      building 'pycrfsuite._pycrfsuite' extension
      creating build/temp.linux-x86_64-cpython-311
      creating build/temp.linux-x86_64-cpython-311/crfsuite
      creating build/temp.linux-x86_64-cpython-311/crfsuite/lib
      creating build/temp.linux-x86_64-cpython-311/crfsuite/lib/cqdb
      creating build/temp.linux-x86_64-cpython-311/crfsuite/lib/cqdb/src
      creating build/temp.linux-x86_64-cpython-311/crfsuite/lib/crf
      creating build/temp.linux-x86_64-cpython-311/crfsuite/lib/crf/src
      creating build/temp.linux-x86_64-cpython-311/crfsuite/swig
      creating build/temp.linux-x86_64-cpython-311/liblbfgs
      creating build/temp.linux-x86_64-cpython-311/liblbfgs/lib
      creating build/temp.linux-x86_64-cpython-311/pycrfsuite
      gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/local/include/python3.11 -c -std=c99 crfsuite/lib/cqdb/src/cqdb.c -o build/temp.linux-x86_64-cpython-311/crfsuite/lib/cqdb/src/cqdb.o
      crfsuite/lib/cqdb/src/cqdb.c: In function ‘cqdb_to_id’:
      crfsuite/lib/cqdb/src/cqdb.c:552:26: warning: variable ‘ksize’ set but not used [-Wunused-but-set-variable]
        552 |                 uint32_t ksize;
            |                          ^~~~~
      crfsuite/lib/cqdb/src/cqdb.c: In function ‘cqdb_writer_close’:
      crfsuite/lib/cqdb/src/cqdb.c:270:5: warning: ‘strncpy’ output truncated before terminating nul copying 4 bytes from a string of the same length [-Wstringop-truncation]
        270 |     strncpy((char*)header.chunkid, CHUNKID, 4);
            |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      crfsuite/lib/cqdb/src/cqdb.c: In function ‘cqdb_reader’:
      crfsuite/lib/cqdb/src/cqdb.c:469:9: warning: ‘strncpy’ specified bound 4 equals destination size [-Wstringop-truncation]
        469 |         strncpy((char*)db->header.chunkid, (const char*)p, 4);
            |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/local/include/python3.11 -c -std=c99 crfsuite/lib/cqdb/src/lookup3.c -o build/temp.linux-x86_64-cpython-311/crfsuite/lib/cqdb/src/lookup3.o
      gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/local/include/python3.11 -c -std=c99 crfsuite/lib/crf/src/crf1d_context.c -o build/temp.linux-x86_64-cpython-311/crfsuite/lib/crf/src/crf1d_context.o
      In file included from crfsuite/lib/crf/src/crf1d_context.c:47:
      crfsuite/lib/crf/src/vecmath.h: In function ‘_aligned_malloc’:
      crfsuite/lib/crf/src/vecmath.h:50:15: warning: implicit declaration of function ‘posix_memalign’ [-Wimplicit-function-declaration]
         50 |     int ret = posix_memalign(&p, alignment, size);
            |               ^~~~~~~~~~~~~~
      crfsuite/lib/crf/src/crf1d_context.c: In function ‘crf1dc_new’:
      crfsuite/lib/crf/src/crf1d_context.c:71:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
         71 |         if (ret = crf1dc_set_num_items(ctx, T)) {
            |             ^~~
      crfsuite/lib/crf/src/crf1d_context.c: In function ‘crf1dc_score’:
      crfsuite/lib/crf/src/crf1d_context.c:440:15: warning: unused variable ‘L’ [-Wunused-variable]
        440 |     const int L = ctx->num_labels;
            |               ^
      crfsuite/lib/crf/src/crf1d_context.c:438:38: warning: unused variable ‘cur’ [-Wunused-variable]
        438 |     const floatval_t *state = NULL, *cur = NULL, *trans = NULL;
            |                                      ^~~
      gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/local/include/python3.11 -c -std=c99 crfsuite/lib/crf/src/crf1d_encode.c -o build/temp.linux-x86_64-cpython-311/crfsuite/lib/crf/src/crf1d_encode.o
      crfsuite/lib/crf/src/crf1d_encode.c: In function ‘crf1de_state_score’:
      crfsuite/lib/crf/src/crf1d_encode.c:136:15: warning: unused variable ‘L’ [-Wunused-variable]
        136 |     const int L = crf1de->num_labels;
            |               ^
      crfsuite/lib/crf/src/crf1d_encode.c: In function ‘crf1de_state_score_scaled’:
      crfsuite/lib/crf/src/crf1d_encode.c:172:15: warning: unused variable ‘L’ [-Wunused-variable]
        172 |     const int L = crf1de->num_labels;
            |               ^
      crfsuite/lib/crf/src/crf1d_encode.c: In function ‘crf1de_features_on_path’:
      crfsuite/lib/crf/src/crf1d_encode.c:268:15: warning: unused variable ‘L’ [-Wunused-variable]
        268 |     const int L = crf1de->num_labels;
            |               ^
      crfsuite/lib/crf/src/crf1d_encode.c:266:22: warning: unused variable ‘ctx’ [-Wunused-variable]
        266 |     crf1d_context_t* ctx = crf1de->ctx;
            |                      ^~~
      crfsuite/lib/crf/src/crf1d_encode.c: In function ‘crf1de_observation_expectation’:
      crfsuite/lib/crf/src/crf1d_encode.c:321:15: warning: unused variable ‘L’ [-Wunused-variable]
        321 |     const int L = crf1de->num_labels;
            |               ^
      crfsuite/lib/crf/src/crf1d_encode.c:319:22: warning: unused variable ‘ctx’ [-Wunused-variable]
        319 |     crf1d_context_t* ctx = crf1de->ctx;
            |                      ^~~
      crfsuite/lib/crf/src/crf1d_encode.c: In function ‘crf1de_model_expectation’:
      crfsuite/lib/crf/src/crf1d_encode.c:372:41: warning: unused variable ‘trans’ [-Wunused-variable]
        372 |     const feature_refs_t *attr = NULL, *trans = NULL;
            |                                         ^~~~~
      crfsuite/lib/crf/src/crf1d_encode.c: In function ‘crf1de_save_model’:
      crfsuite/lib/crf/src/crf1d_encode.c:551:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
        551 |     if (ret = crf1dmw_open_features(writer)) {
            |         ^~~
      crfsuite/lib/crf/src/crf1d_encode.c:585:17: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
        585 |             if (ret = crf1dmw_put_feature(writer, fmap[k], &feat)) {
            |                 ^~~
      crfsuite/lib/crf/src/crf1d_encode.c:592:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
        592 |     if (ret = crf1dmw_close_features(writer)) {
            |         ^~~
      crfsuite/lib/crf/src/crf1d_encode.c:602:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
        602 |     if (ret = crf1dmw_open_labels(writer, L)) {
            |         ^~~
      crfsuite/lib/crf/src/crf1d_encode.c:609:17: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
        609 |             if (ret = crf1dmw_put_label(writer, l, str)) {
            |                 ^~~
      crfsuite/lib/crf/src/crf1d_encode.c:615:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
        615 |     if (ret = crf1dmw_close_labels(writer)) {
            |         ^~~
      crfsuite/lib/crf/src/crf1d_encode.c:621:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
        621 |     if (ret = crf1dmw_open_attrs(writer, B)) {
            |         ^~~
      crfsuite/lib/crf/src/crf1d_encode.c:629:21: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
        629 |                 if (ret = crf1dmw_put_attr(writer, amap[a], str)) {
            |                     ^~~
      crfsuite/lib/crf/src/crf1d_encode.c:636:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
        636 |     if (ret = crf1dmw_close_attrs(writer)) {
            |         ^~~
      crfsuite/lib/crf/src/crf1d_encode.c:642:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
        642 |     if (ret = crf1dmw_open_labelrefs(writer, L+2)) {
            |         ^~~
      crfsuite/lib/crf/src/crf1d_encode.c:647:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
        647 |         if (ret = crf1dmw_put_labelref(writer, l, edge, fmap)) {
            |             ^~~
      crfsuite/lib/crf/src/crf1d_encode.c:651:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
        651 |     if (ret = crf1dmw_close_labelrefs(writer)) {
            |         ^~~
      crfsuite/lib/crf/src/crf1d_encode.c:657:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
        657 |     if (ret = crf1dmw_open_attrrefs(writer, B)) {
            |         ^~~
      crfsuite/lib/crf/src/crf1d_encode.c:663:17: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
        663 |             if (ret = crf1dmw_put_attrref(writer, amap[a], attr, fmap)) {
            |                 ^~~
      crfsuite/lib/crf/src/crf1d_encode.c:668:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
        668 |     if (ret = crf1dmw_close_attrrefs(writer)) {
            |         ^~~
      crfsuite/lib/crf/src/crf1d_encode.c:508:22: warning: unused variable ‘threshold’ [-Wunused-variable]
        508 |     const floatval_t threshold = 0.01;
            |                      ^~~~~~~~~
      In file included from crfsuite/lib/crf/src/crf1d_encode.c:47:
      crfsuite/lib/crf/src/crf1d_encode.c: In function ‘crf1de_exchange_options’:
      crfsuite/lib/crf/src/params.h:49:13: warning: variable ‘__ret’ set but not used [-Wunused-but-set-variable]
         49 |         int __ret = 0; \
            |             ^~~~~
      crfsuite/lib/crf/src/crf1d_encode.c:696:5: note: in expansion of macro ‘BEGIN_PARAM_MAP’
        696 |     BEGIN_PARAM_MAP(params, mode)
            |     ^~~~~~~~~~~~~~~
      crfsuite/lib/crf/src/crf1d_encode.c: In function ‘encoder_viterbi’:
      crfsuite/lib/crf/src/crf1d_encode.c:897:9: warning: unused variable ‘i’ [-Wunused-variable]
        897 |     int i;
            |         ^
      crfsuite/lib/crf/src/crf1d_encode.c: In function ‘encoder_save_model’:
      crfsuite/lib/crf/src/crf1d_encode.c:864:12: warning: ‘ret’ may be used uninitialized in this function [-Wmaybe-uninitialized]
        864 |     return crf1de_save_model(crf1de, filename, w, self->ds->data->attrs,  self->ds->data->labels, lg);
            |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/local/include/python3.11 -c -std=c99 crfsuite/lib/crf/src/crf1d_feature.c -o build/temp.linux-x86_64-cpython-311/crfsuite/lib/crf/src/crf1d_feature.o
      gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/local/include/python3.11 -c -std=c99 crfsuite/lib/crf/src/crf1d_model.c -o build/temp.linux-x86_64-cpython-311/crfsuite/lib/crf/src/crf1d_model.o
      crfsuite/lib/crf/src/crf1d_model.c: In function ‘crf1dmw_put_labelref’:
      crfsuite/lib/crf/src/crf1d_model.c:487:21: warning: unused variable ‘offset’ [-Wunused-variable]
        487 |     uint32_t n = 0, offset = 0;
            |                     ^~~~~~
      crfsuite/lib/crf/src/crf1d_model.c: In function ‘crf1dmw_put_attrref’:
      crfsuite/lib/crf/src/crf1d_model.c:594:21: warning: unused variable ‘offset’ [-Wunused-variable]
        594 |     uint32_t n = 0, offset = 0;
            |                     ^~~~~~
      crfsuite/lib/crf/src/crf1d_model.c: In function ‘crf1dmw_put_feature’:
      crfsuite/lib/crf/src/crf1d_model.c:691:13: warning: comparison of integer expressions of different signedness: ‘int’ and ‘uint32_t’ {aka ‘unsigned int’} [-Wsign-compare]
        691 |     if (fid != hfeat->num) {
            |             ^~
      In function ‘read_uint8’,
          inlined from ‘read_uint8_array’ at crfsuite/lib/crf/src/crf1d_model.c:165:20,
          inlined from ‘crf1dm_new_impl’ at crfsuite/lib/crf/src/crf1d_model.c:729:10:
      crfsuite/lib/crf/src/crf1d_model.c:127:12: warning: writing 16 bytes into a region of size 4 [-Wstringop-overflow=]
        127 |     *value = *buffer;
            |     ~~~~~~~^~~~~~~~~
      crfsuite/lib/crf/src/crf1d_model.c: In function ‘crf1dm_new_impl’:
      crfsuite/lib/crf/src/crf1d_model.c:64:17: note: at offset 0 to object ‘magic’ with size 4 declared here
         64 |     uint8_t     magic[4];       /* File magic. */
            |                 ^~~~~
      gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/local/include/python3.11 -c -std=c99 crfsuite/lib/crf/src/crf1d_tag.c -o build/temp.linux-x86_64-cpython-311/crfsuite/lib/crf/src/crf1d_tag.o
      crfsuite/lib/crf/src/crf1d_tag.c: In function ‘crf1dt_state_score’:
      crfsuite/lib/crf/src/crf1d_tag.c:72:15: warning: unused variable ‘L’ [-Wunused-variable]
         72 |     const int L = crf1dt->num_labels;
            |               ^
      gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/local/include/python3.11 -c -std=c99 crfsuite/lib/crf/src/crfsuite.c -o build/temp.linux-x86_64-cpython-311/crfsuite/lib/crf/src/crfsuite.o
      crfsuite/lib/crf/src/crfsuite.c:322:14: warning: ‘safe_strncpy’ defined but not used [-Wunused-function]
        322 | static char *safe_strncpy(char *dst, const char *src, size_t n)
            |              ^~~~~~~~~~~~
      gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/local/include/python3.11 -c -std=c99 crfsuite/lib/crf/src/crfsuite_train.c -o build/temp.linux-x86_64-cpython-311/crfsuite/lib/crf/src/crfsuite_train.o
      crfsuite/lib/crf/src/crfsuite_train.c: In function ‘crfsuite_train_train’:
      crfsuite/lib/crf/src/crfsuite_train.c:135:11: warning: unused variable ‘algorithm’ [-Wunused-variable]
        135 |     char *algorithm = NULL;
            |           ^~~~~~~~~
      gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/local/include/python3.11 -c -std=c99 crfsuite/lib/crf/src/dataset.c -o build/temp.linux-x86_64-cpython-311/crfsuite/lib/crf/src/dataset.o
      gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/local/include/python3.11 -c -std=c99 crfsuite/lib/crf/src/dictionary.c -o build/temp.linux-x86_64-cpython-311/crfsuite/lib/crf/src/dictionary.o
      gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/local/include/python3.11 -c -std=c99 crfsuite/lib/crf/src/holdout.c -o build/temp.linux-x86_64-cpython-311/crfsuite/lib/crf/src/holdout.o
      gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/local/include/python3.11 -c -std=c99 crfsuite/lib/crf/src/logging.c -o build/temp.linux-x86_64-cpython-311/crfsuite/lib/crf/src/logging.o
      gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/local/include/python3.11 -c -std=c99 crfsuite/lib/crf/src/params.c -o build/temp.linux-x86_64-cpython-311/crfsuite/lib/crf/src/params.o
      gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/local/include/python3.11 -c -std=c99 crfsuite/lib/crf/src/quark.c -o build/temp.linux-x86_64-cpython-311/crfsuite/lib/crf/src/quark.o
      gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/local/include/python3.11 -c -std=c99 crfsuite/lib/crf/src/rumavl.c -o build/temp.linux-x86_64-cpython-311/crfsuite/lib/crf/src/rumavl.o
      gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/local/include/python3.11 -c -std=c99 crfsuite/lib/crf/src/train_arow.c -o build/temp.linux-x86_64-cpython-311/crfsuite/lib/crf/src/train_arow.o
      In file included from crfsuite/lib/crf/src/train_arow.c:47:
      crfsuite/lib/crf/src/vecmath.h: In function ‘_aligned_malloc’:
      crfsuite/lib/crf/src/vecmath.h:50:15: warning: implicit declaration of function ‘posix_memalign’ [-Wimplicit-function-declaration]
         50 |     int ret = posix_memalign(&p, alignment, size);
            |               ^~~~~~~~~~~~~~
      In file included from crfsuite/lib/crf/src/train_arow.c:46:
      crfsuite/lib/crf/src/train_arow.c: In function ‘exchange_options’:
      crfsuite/lib/crf/src/params.h:49:13: warning: variable ‘__ret’ set but not used [-Wunused-but-set-variable]
         49 |         int __ret = 0; \
            |             ^~~~~
      crfsuite/lib/crf/src/train_arow.c:207:5: note: in expansion of macro ‘BEGIN_PARAM_MAP’
        207 |     BEGIN_PARAM_MAP(params, mode)
            |     ^~~~~~~~~~~~~~~
      crfsuite/lib/crf/src/train_arow.c: In function ‘crfsuite_train_arow’:
      crfsuite/lib/crf/src/train_arow.c:288:20: warning: unused variable ‘norm’ [-Wunused-variable]
        288 |         floatval_t norm = 0., sum_loss = 0.;
            |                    ^~~~
      crfsuite/lib/crf/src/train_arow.c:245:16: warning: variable ‘beta’ set but not used [-Wunused-but-set-variable]
        245 |     floatval_t beta;
            |                ^~~~
      At top level:
      crfsuite/lib/crf/src/train_arow.c:200:19: warning: ‘tau2’ defined but not used [-Wunused-function]
        200 | static floatval_t tau2(floatval_t cost, floatval_t norm, floatval_t c)
            |                   ^~~~
      crfsuite/lib/crf/src/train_arow.c:195:19: warning: ‘tau1’ defined but not used [-Wunused-function]
        195 | static floatval_t tau1(floatval_t cost, floatval_t norm, floatval_t c)
            |                   ^~~~
      crfsuite/lib/crf/src/train_arow.c:190:19: warning: ‘tau0’ defined but not used [-Wunused-function]
        190 | static floatval_t tau0(floatval_t cost, floatval_t norm, floatval_t c)
            |                   ^~~~
      crfsuite/lib/crf/src/train_arow.c:185:19: warning: ‘cost_sensitive’ defined but not used [-Wunused-function]
        185 | static floatval_t cost_sensitive(floatval_t err, floatval_t d)
            |                   ^~~~~~~~~~~~~~
      crfsuite/lib/crf/src/train_arow.c:180:19: warning: ‘cost_insensitive’ defined but not used [-Wunused-function]
        180 | static floatval_t cost_insensitive(floatval_t err, floatval_t d)
            |                   ^~~~~~~~~~~~~~~~
      crfsuite/lib/crf/src/train_arow.c:157:13: warning: ‘delta_add’ defined but not used [-Wunused-function]
        157 | static void delta_add(delta_t *dc, floatval_t *w, floatval_t *ws, const floatval_t tau, const floatval_t u)
            |             ^~~~~~~~~
      crfsuite/lib/crf/src/train_arow.c:145:19: warning: ‘delta_norm2’ defined but not used [-Wunused-function]
        145 | static floatval_t delta_norm2(delta_t *dc)
            |                   ^~~~~~~~~~~
      gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/local/include/python3.11 -c -std=c99 crfsuite/lib/crf/src/train_averaged_perceptron.c -o build/temp.linux-x86_64-cpython-311/crfsuite/lib/crf/src/train_averaged_perceptron.o
      In file included from crfsuite/lib/crf/src/train_averaged_perceptron.c:47:
      crfsuite/lib/crf/src/vecmath.h: In function ‘_aligned_malloc’:
      crfsuite/lib/crf/src/vecmath.h:50:15: warning: implicit declaration of function ‘posix_memalign’ [-Wimplicit-function-declaration]
         50 |     int ret = posix_memalign(&p, alignment, size);
            |               ^~~~~~~~~~~~~~
      In file included from crfsuite/lib/crf/src/train_averaged_perceptron.c:46:
      crfsuite/lib/crf/src/train_averaged_perceptron.c: In function ‘exchange_options’:
      crfsuite/lib/crf/src/params.h:49:13: warning: variable ‘__ret’ set but not used [-Wunused-but-set-variable]
         49 |         int __ret = 0; \
            |             ^~~~~
      crfsuite/lib/crf/src/train_averaged_perceptron.c:87:5: note: in expansion of macro ‘BEGIN_PARAM_MAP’
         87 |     BEGIN_PARAM_MAP(params, mode)
            |     ^~~~~~~~~~~~~~~
      crfsuite/lib/crf/src/train_averaged_perceptron.c: In function ‘crfsuite_train_averaged_perceptron’:
      crfsuite/lib/crf/src/train_averaged_perceptron.c:155:20: warning: unused variable ‘norm’ [-Wunused-variable]
        155 |         floatval_t norm = 0., loss = 0.;
            |                    ^~~~
      gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/local/include/python3.11 -c -std=c99 crfsuite/lib/crf/src/train_l2sgd.c -o build/temp.linux-x86_64-cpython-311/crfsuite/lib/crf/src/train_l2sgd.o
      In file included from crfsuite/lib/crf/src/train_l2sgd.c:109:
      crfsuite/lib/crf/src/vecmath.h: In function ‘_aligned_malloc’:
      crfsuite/lib/crf/src/vecmath.h:50:15: warning: implicit declaration of function ‘posix_memalign’ [-Wimplicit-function-declaration]
         50 |     int ret = posix_memalign(&p, alignment, size);
            |               ^~~~~~~~~~~~~~
      crfsuite/lib/crf/src/train_l2sgd.c: In function ‘l2sgd’:
      crfsuite/lib/crf/src/train_l2sgd.c:152:23: warning: unused variable ‘clk_begin’ [-Wunused-variable]
        152 |     clock_t clk_prev, clk_begin = clock();
            |                       ^~~~~~~~~
      In file included from crfsuite/lib/crf/src/train_l2sgd.c:107:
      crfsuite/lib/crf/src/train_l2sgd.c: In function ‘exchange_options’:
      crfsuite/lib/crf/src/params.h:49:13: warning: variable ‘__ret’ set but not used [-Wunused-but-set-variable]
         49 |         int __ret = 0; \
            |             ^~~~~
      crfsuite/lib/crf/src/train_l2sgd.c:390:5: note: in expansion of macro ‘BEGIN_PARAM_MAP’
        390 |     BEGIN_PARAM_MAP(params, mode)
            |     ^~~~~~~~~~~~~~~
      crfsuite/lib/crf/src/train_l2sgd.c: In function ‘crfsuite_train_l2sgd’:
      crfsuite/lib/crf/src/train_l2sgd.c:454:15: warning: unused variable ‘T’ [-Wunused-variable]
        454 |     const int T = gm->cap_items;
            |               ^
      crfsuite/lib/crf/src/train_l2sgd.c:237:13: warning: ‘eta’ may be used uninitialized in this function [-Wmaybe-uninitialized]
        237 |             logging(lg, "Learning rate (eta): %f\n", eta);
            |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      crfsuite/lib/crf/src/train_l2sgd.c:147:16: note: ‘eta’ was declared here
        147 |     floatval_t eta, gain, decay = 1.;
            |                ^~~
      gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/local/include/python3.11 -c -std=c99 crfsuite/lib/crf/src/train_lbfgs.c -o build/temp.linux-x86_64-cpython-311/crfsuite/lib/crf/src/train_lbfgs.o
      In file included from crfsuite/lib/crf/src/train_lbfgs.c:50:
      crfsuite/lib/crf/src/vecmath.h: In function ‘_aligned_malloc’:
      crfsuite/lib/crf/src/vecmath.h:50:15: warning: implicit declaration of function ‘posix_memalign’ [-Wimplicit-function-declaration]
         50 |     int ret = posix_memalign(&p, alignment, size);
            |               ^~~~~~~~~~~~~~
      In file included from crfsuite/lib/crf/src/train_lbfgs.c:49:
      crfsuite/lib/crf/src/train_lbfgs.c: In function ‘exchange_options’:
      crfsuite/lib/crf/src/params.h:49:13: warning: variable ‘__ret’ set but not used [-Wunused-but-set-variable]
         49 |         int __ret = 0; \
            |             ^~~~~
      crfsuite/lib/crf/src/train_lbfgs.c:163:5: note: in expansion of macro ‘BEGIN_PARAM_MAP’
        163 |     BEGIN_PARAM_MAP(params, mode)
            |     ^~~~~~~~~~~~~~~
      crfsuite/lib/crf/src/train_lbfgs.c: In function ‘crfsuite_train_lbfgs’:
      crfsuite/lib/crf/src/train_lbfgs.c:231:15: warning: unused variable ‘A’ [-Wunused-variable]
        231 |     const int A =  trainset->data->attrs->num(trainset->data->attrs);
            |               ^
      crfsuite/lib/crf/src/train_lbfgs.c:230:15: warning: unused variable ‘L’ [-Wunused-variable]
        230 |     const int L = trainset->data->labels->num(trainset->data->labels);
            |               ^
      crfsuite/lib/crf/src/train_lbfgs.c:229:15: warning: unused variable ‘N’ [-Wunused-variable]
        229 |     const int N = trainset->num_instances;
            |               ^
      gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/local/include/python3.11 -c -std=c99 crfsuite/lib/crf/src/train_passive_aggressive.c -o build/temp.linux-x86_64-cpython-311/crfsuite/lib/crf/src/train_passive_aggressive.o
      In file included from crfsuite/lib/crf/src/train_passive_aggressive.c:47:
      crfsuite/lib/crf/src/vecmath.h: In function ‘_aligned_malloc’:
      crfsuite/lib/crf/src/vecmath.h:50:15: warning: implicit declaration of function ‘posix_memalign’ [-Wimplicit-function-declaration]
         50 |     int ret = posix_memalign(&p, alignment, size);
            |               ^~~~~~~~~~~~~~
      In file included from crfsuite/lib/crf/src/train_passive_aggressive.c:46:
      crfsuite/lib/crf/src/train_passive_aggressive.c: In function ‘exchange_options’:
      crfsuite/lib/crf/src/params.h:49:13: warning: variable ‘__ret’ set but not used [-Wunused-but-set-variable]
         49 |         int __ret = 0; \
            |             ^~~~~
      crfsuite/lib/crf/src/train_passive_aggressive.c:209:5: note: in expansion of macro ‘BEGIN_PARAM_MAP’
        209 |     BEGIN_PARAM_MAP(params, mode)
            |     ^~~~~~~~~~~~~~~
      crfsuite/lib/crf/src/train_passive_aggressive.c: In function ‘crfsuite_train_passive_aggressive’:
      crfsuite/lib/crf/src/train_passive_aggressive.c:318:20: warning: unused variable ‘norm’ [-Wunused-variable]
        318 |         floatval_t norm = 0., sum_loss = 0.;
            |                    ^~~~
      gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/local/include/python3.11 -c crfsuite/swig/crfsuite.cpp -o build/temp.linux-x86_64-cpython-311/crfsuite/swig/crfsuite.o
      gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/local/include/python3.11 -c -std=c99 liblbfgs/lib/lbfgs.c -o build/temp.linux-x86_64-cpython-311/liblbfgs/lib/lbfgs.o
      gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/local/include/python3.11 -c pycrfsuite/_pycrfsuite.cpp -o build/temp.linux-x86_64-cpython-311/pycrfsuite/_pycrfsuite.o
      pycrfsuite/_pycrfsuite.cpp: In function ‘int __Pyx_PyBytes_Equals(PyObject*, PyObject*, int)’:
      pycrfsuite/_pycrfsuite.cpp:14824:43: warning: ‘PyBytesObject::ob_shash’ is deprecated [-Wdeprecated-declarations]
      14824 |             hash1 = ((PyBytesObject*)s1)->ob_shash;
            |                                           ^~~~~~~~
      In file included from /usr/local/include/python3.11/bytesobject.h:62,
                       from /usr/local/include/python3.11/Python.h:50,
                       from pycrfsuite/_pycrfsuite.cpp:6:
      /usr/local/include/python3.11/cpython/bytesobject.h:7:35: note: declared here
          7 |     Py_DEPRECATED(3.11) Py_hash_t ob_shash;
            |                                   ^~~~~~~~
      pycrfsuite/_pycrfsuite.cpp:14824:43: warning: ‘PyBytesObject::ob_shash’ is deprecated [-Wdeprecated-declarations]
      14824 |             hash1 = ((PyBytesObject*)s1)->ob_shash;
            |                                           ^~~~~~~~
      In file included from /usr/local/include/python3.11/bytesobject.h:62,
                       from /usr/local/include/python3.11/Python.h:50,
                       from pycrfsuite/_pycrfsuite.cpp:6:
      /usr/local/include/python3.11/cpython/bytesobject.h:7:35: note: declared here
          7 |     Py_DEPRECATED(3.11) Py_hash_t ob_shash;
            |                                   ^~~~~~~~
      pycrfsuite/_pycrfsuite.cpp:14824:43: warning: ‘PyBytesObject::ob_shash’ is deprecated [-Wdeprecated-declarations]
      14824 |             hash1 = ((PyBytesObject*)s1)->ob_shash;
            |                                           ^~~~~~~~
      In file included from /usr/local/include/python3.11/bytesobject.h:62,
                       from /usr/local/include/python3.11/Python.h:50,
                       from pycrfsuite/_pycrfsuite.cpp:6:
      /usr/local/include/python3.11/cpython/bytesobject.h:7:35: note: declared here
          7 |     Py_DEPRECATED(3.11) Py_hash_t ob_shash;
            |                                   ^~~~~~~~
      pycrfsuite/_pycrfsuite.cpp:14825:43: warning: ‘PyBytesObject::ob_shash’ is deprecated [-Wdeprecated-declarations]
      14825 |             hash2 = ((PyBytesObject*)s2)->ob_shash;
            |                                           ^~~~~~~~
      In file included from /usr/local/include/python3.11/bytesobject.h:62,
                       from /usr/local/include/python3.11/Python.h:50,
                       from pycrfsuite/_pycrfsuite.cpp:6:
      /usr/local/include/python3.11/cpython/bytesobject.h:7:35: note: declared here
          7 |     Py_DEPRECATED(3.11) Py_hash_t ob_shash;
            |                                   ^~~~~~~~
      pycrfsuite/_pycrfsuite.cpp:14825:43: warning: ‘PyBytesObject::ob_shash’ is deprecated [-Wdeprecated-declarations]
      14825 |             hash2 = ((PyBytesObject*)s2)->ob_shash;
            |                                           ^~~~~~~~
      In file included from /usr/local/include/python3.11/bytesobject.h:62,
                       from /usr/local/include/python3.11/Python.h:50,
                       from pycrfsuite/_pycrfsuite.cpp:6:
      /usr/local/include/python3.11/cpython/bytesobject.h:7:35: note: declared here
          7 |     Py_DEPRECATED(3.11) Py_hash_t ob_shash;
            |                                   ^~~~~~~~
      pycrfsuite/_pycrfsuite.cpp:14825:43: warning: ‘PyBytesObject::ob_shash’ is deprecated [-Wdeprecated-declarations]
      14825 |             hash2 = ((PyBytesObject*)s2)->ob_shash;
            |                                           ^~~~~~~~
      In file included from /usr/local/include/python3.11/bytesobject.h:62,
                       from /usr/local/include/python3.11/Python.h:50,
                       from pycrfsuite/_pycrfsuite.cpp:6:
      /usr/local/include/python3.11/cpython/bytesobject.h:7:35: note: declared here
          7 |     Py_DEPRECATED(3.11) Py_hash_t ob_shash;
            |                                   ^~~~~~~~
      pycrfsuite/_pycrfsuite.cpp: In function ‘void __Pyx_AddTraceback(const char*, int, int, const char*)’:
      pycrfsuite/_pycrfsuite.cpp:452:62: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
        452 |   #define __Pyx_PyFrame_SetLineNumber(frame, lineno)  (frame)->f_lineno = (lineno)
            |                                                              ^~
      pycrfsuite/_pycrfsuite.cpp:16387:5: note: in expansion of macro ‘__Pyx_PyFrame_SetLineNumber’
      16387 |     __Pyx_PyFrame_SetLineNumber(py_frame, py_line);
            |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
      In file included from /usr/local/include/python3.11/Python.h:42,
                       from pycrfsuite/_pycrfsuite.cpp:6:
      /usr/local/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’}
         22 | typedef struct _frame PyFrameObject;
            |                ^~~~~~
      pycrfsuite/_pycrfsuite.cpp: In function ‘PyObject* __Pyx_Coroutine_SendEx(__pyx_CoroutineObject*, PyObject*, int)’:
      pycrfsuite/_pycrfsuite.cpp:17470:14: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
      17470 |             f->f_back = PyThreadState_GetFrame(tstate);
            |              ^~
      In file included from /usr/local/include/python3.11/Python.h:42,
                       from pycrfsuite/_pycrfsuite.cpp:6:
      /usr/local/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’}
         22 | typedef struct _frame PyFrameObject;
            |                ^~~~~~
      In file included from /usr/local/include/python3.11/Python.h:38,
                       from pycrfsuite/_pycrfsuite.cpp:6:
      pycrfsuite/_pycrfsuite.cpp: In function ‘void __Pyx_Coroutine_ResetFrameBackpointer(__Pyx_ExcInfoStruct*)’:
      pycrfsuite/_pycrfsuite.cpp:17507:19: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
      17507 |         Py_CLEAR(f->f_back);
            |                   ^~
      /usr/local/include/python3.11/pyport.h:24:38: note: in definition of macro ‘_Py_CAST’
         24 | #define _Py_CAST(type, expr) ((type)(expr))
            |                                      ^~~~
      /usr/local/include/python3.11/object.h:581:29: note: in expansion of macro ‘_PyObject_CAST’
        581 |         PyObject *_py_tmp = _PyObject_CAST(op); \
            |                             ^~~~~~~~~~~~~~
      pycrfsuite/_pycrfsuite.cpp:17507:9: note: in expansion of macro ‘Py_CLEAR’
      17507 |         Py_CLEAR(f->f_back);
            |         ^~~~~~~~
      In file included from /usr/local/include/python3.11/Python.h:42,
                       from pycrfsuite/_pycrfsuite.cpp:6:
      /usr/local/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’}
         22 | typedef struct _frame PyFrameObject;
            |                ^~~~~~
      In file included from /usr/local/include/python3.11/Python.h:44,
                       from pycrfsuite/_pycrfsuite.cpp:6:
      pycrfsuite/_pycrfsuite.cpp:17507:19: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
      17507 |         Py_CLEAR(f->f_back);
            |                   ^~
      /usr/local/include/python3.11/object.h:583:14: note: in definition of macro ‘Py_CLEAR’
        583 |             (op) = NULL;                        \
            |              ^~
      In file included from /usr/local/include/python3.11/Python.h:42,
                       from pycrfsuite/_pycrfsuite.cpp:6:
      /usr/local/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’}
         22 | typedef struct _frame PyFrameObject;
            |                ^~~~~~
      error: command '/usr/bin/gcc' failed with exit code 1
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure

× Encountered error while trying to install package.
╰─> python-crfsuite
koutoftimer commented 1 year ago

I have very same problem on GNU\Gentoo Linux:

$ python --version
Python 3.11.1
$ pip --version
pip 22.3.1 from /project/venv/lib/python3.11/site-packages/pip (python 3.11)
Build log ```console $ pip install python-crfsuite Collecting python-crfsuite Using cached python-crfsuite-0.9.8.tar.gz (440 kB) Preparing metadata (setup.py): started Preparing metadata (setup.py): finished with status 'done' Building wheels for collected packages: python-crfsuite Building wheel for python-crfsuite (setup.py): started Building wheel for python-crfsuite (setup.py): finished with status 'error' error: subprocess-exited-with-error × python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [160 lines of output] running bdist_wheel running build running build_py creating build creating build/lib.linux-x86_64-cpython-311 creating build/lib.linux-x86_64-cpython-311/pycrfsuite copying pycrfsuite/_logparser.py -> build/lib.linux-x86_64-cpython-311/pycrfsuite copying pycrfsuite/_dumpparser.py -> build/lib.linux-x86_64-cpython-311/pycrfsuite copying pycrfsuite/__init__.py -> build/lib.linux-x86_64-cpython-311/pycrfsuite running build_ext building 'pycrfsuite._pycrfsuite' extension creating build/temp.linux-x86_64-cpython-311 creating build/temp.linux-x86_64-cpython-311/crfsuite creating build/temp.linux-x86_64-cpython-311/crfsuite/lib creating build/temp.linux-x86_64-cpython-311/crfsuite/lib/cqdb creating build/temp.linux-x86_64-cpython-311/crfsuite/lib/cqdb/src creating build/temp.linux-x86_64-cpython-311/crfsuite/lib/crf creating build/temp.linux-x86_64-cpython-311/crfsuite/lib/crf/src creating build/temp.linux-x86_64-cpython-311/crfsuite/swig creating build/temp.linux-x86_64-cpython-311/liblbfgs creating build/temp.linux-x86_64-cpython-311/liblbfgs/lib creating build/temp.linux-x86_64-cpython-311/pycrfsuite x86_64-pc-linux-gnu-gcc -Wsign-compare -DNDEBUG -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/project/venv/include -I/usr/include/python3.11 -c crfsuite/lib/cqdb/src/cqdb.c -o build/temp.linux-x86_64-cpython-311/crfsuite/lib/cqdb/src/cqdb.o x86_64-pc-linux-gnu-gcc -Wsign-compare -DNDEBUG -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/project/venv/include -I/usr/include/python3.11 -c crfsuite/lib/cqdb/src/lookup3.c -o build/temp.linux-x86_64-cpython-311/crfsuite/lib/cqdb/src/lookup3.o x86_64-pc-linux-gnu-gcc -Wsign-compare -DNDEBUG -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/project/venv/include -I/usr/include/python3.11 -c crfsuite/lib/crf/src/crf1d_context.c -o build/temp.linux-x86_64-cpython-311/crfsuite/lib/crf/src/crf1d_context.o x86_64-pc-linux-gnu-gcc -Wsign-compare -DNDEBUG -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/project/venv/include -I/usr/include/python3.11 -c crfsuite/lib/crf/src/crf1d_encode.c -o build/temp.linux-x86_64-cpython-311/crfsuite/lib/crf/src/crf1d_encode.o x86_64-pc-linux-gnu-gcc -Wsign-compare -DNDEBUG -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/project/venv/include -I/usr/include/python3.11 -c crfsuite/lib/crf/src/crf1d_feature.c -o build/temp.linux-x86_64-cpython-311/crfsuite/lib/crf/src/crf1d_feature.o x86_64-pc-linux-gnu-gcc -Wsign-compare -DNDEBUG -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/project/venv/include -I/usr/include/python3.11 -c crfsuite/lib/crf/src/crf1d_model.c -o build/temp.linux-x86_64-cpython-311/crfsuite/lib/crf/src/crf1d_model.o crfsuite/lib/crf/src/crf1d_model.c: In function ‘crf1dmw_put_feature’: crfsuite/lib/crf/src/crf1d_model.c:691:13: warning: comparison of integer expressions of different signedness: ‘int’ and ‘uint32_t’ {aka ‘unsigned int’} [-Wsign-compare] 691 | if (fid != hfeat->num) { | ^~ x86_64-pc-linux-gnu-gcc -Wsign-compare -DNDEBUG -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/project/venv/include -I/usr/include/python3.11 -c crfsuite/lib/crf/src/crf1d_tag.c -o build/temp.linux-x86_64-cpython-311/crfsuite/lib/crf/src/crf1d_tag.o x86_64-pc-linux-gnu-gcc -Wsign-compare -DNDEBUG -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/project/venv/include -I/usr/include/python3.11 -c crfsuite/lib/crf/src/crfsuite.c -o build/temp.linux-x86_64-cpython-311/crfsuite/lib/crf/src/crfsuite.o x86_64-pc-linux-gnu-gcc -Wsign-compare -DNDEBUG -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/project/venv/include -I/usr/include/python3.11 -c crfsuite/lib/crf/src/crfsuite_train.c -o build/temp.linux-x86_64-cpython-311/crfsuite/lib/crf/src/crfsuite_train.o x86_64-pc-linux-gnu-gcc -Wsign-compare -DNDEBUG -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/project/venv/include -I/usr/include/python3.11 -c crfsuite/lib/crf/src/dataset.c -o build/temp.linux-x86_64-cpython-311/crfsuite/lib/crf/src/dataset.o x86_64-pc-linux-gnu-gcc -Wsign-compare -DNDEBUG -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/project/venv/include -I/usr/include/python3.11 -c crfsuite/lib/crf/src/dictionary.c -o build/temp.linux-x86_64-cpython-311/crfsuite/lib/crf/src/dictionary.o x86_64-pc-linux-gnu-gcc -Wsign-compare -DNDEBUG -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/project/venv/include -I/usr/include/python3.11 -c crfsuite/lib/crf/src/holdout.c -o build/temp.linux-x86_64-cpython-311/crfsuite/lib/crf/src/holdout.o x86_64-pc-linux-gnu-gcc -Wsign-compare -DNDEBUG -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/project/venv/include -I/usr/include/python3.11 -c crfsuite/lib/crf/src/logging.c -o build/temp.linux-x86_64-cpython-311/crfsuite/lib/crf/src/logging.o x86_64-pc-linux-gnu-gcc -Wsign-compare -DNDEBUG -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/project/venv/include -I/usr/include/python3.11 -c crfsuite/lib/crf/src/params.c -o build/temp.linux-x86_64-cpython-311/crfsuite/lib/crf/src/params.o x86_64-pc-linux-gnu-gcc -Wsign-compare -DNDEBUG -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/project/venv/include -I/usr/include/python3.11 -c crfsuite/lib/crf/src/quark.c -o build/temp.linux-x86_64-cpython-311/crfsuite/lib/crf/src/quark.o x86_64-pc-linux-gnu-gcc -Wsign-compare -DNDEBUG -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/project/venv/include -I/usr/include/python3.11 -c crfsuite/lib/crf/src/rumavl.c -o build/temp.linux-x86_64-cpython-311/crfsuite/lib/crf/src/rumavl.o x86_64-pc-linux-gnu-gcc -Wsign-compare -DNDEBUG -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/project/venv/include -I/usr/include/python3.11 -c crfsuite/lib/crf/src/train_arow.c -o build/temp.linux-x86_64-cpython-311/crfsuite/lib/crf/src/train_arow.o x86_64-pc-linux-gnu-gcc -Wsign-compare -DNDEBUG -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/project/venv/include -I/usr/include/python3.11 -c crfsuite/lib/crf/src/train_averaged_perceptron.c -o build/temp.linux-x86_64-cpython-311/crfsuite/lib/crf/src/train_averaged_perceptron.o x86_64-pc-linux-gnu-gcc -Wsign-compare -DNDEBUG -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/project/venv/include -I/usr/include/python3.11 -c crfsuite/lib/crf/src/train_l2sgd.c -o build/temp.linux-x86_64-cpython-311/crfsuite/lib/crf/src/train_l2sgd.o x86_64-pc-linux-gnu-gcc -Wsign-compare -DNDEBUG -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/project/venv/include -I/usr/include/python3.11 -c crfsuite/lib/crf/src/train_lbfgs.c -o build/temp.linux-x86_64-cpython-311/crfsuite/lib/crf/src/train_lbfgs.o x86_64-pc-linux-gnu-gcc -Wsign-compare -DNDEBUG -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/project/venv/include -I/usr/include/python3.11 -c crfsuite/lib/crf/src/train_passive_aggressive.c -o build/temp.linux-x86_64-cpython-311/crfsuite/lib/crf/src/train_passive_aggressive.o x86_64-pc-linux-gnu-gcc -Wsign-compare -DNDEBUG -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/project/venv/include -I/usr/include/python3.11 -c crfsuite/swig/crfsuite.cpp -o build/temp.linux-x86_64-cpython-311/crfsuite/swig/crfsuite.o x86_64-pc-linux-gnu-gcc -Wsign-compare -DNDEBUG -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/project/venv/include -I/usr/include/python3.11 -c liblbfgs/lib/lbfgs.c -o build/temp.linux-x86_64-cpython-311/liblbfgs/lib/lbfgs.o x86_64-pc-linux-gnu-gcc -Wsign-compare -DNDEBUG -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/project/venv/include -I/usr/include/python3.11 -c pycrfsuite/_pycrfsuite.cpp -o build/temp.linux-x86_64-cpython-311/pycrfsuite/_pycrfsuite.o pycrfsuite/_pycrfsuite.cpp: In function ‘int __Pyx_PyBytes_Equals(PyObject*, PyObject*, int)’: pycrfsuite/_pycrfsuite.cpp:14824:43: warning: ‘PyBytesObject::ob_shash’ is deprecated [-Wdeprecated-declarations] 14824 | hash1 = ((PyBytesObject*)s1)->ob_shash; | ^~~~~~~~ In file included from /usr/include/python3.11/bytesobject.h:62, from /usr/include/python3.11/Python.h:50, from pycrfsuite/_pycrfsuite.cpp:6: /usr/include/python3.11/cpython/bytesobject.h:7:35: note: declared here 7 | Py_DEPRECATED(3.11) Py_hash_t ob_shash; | ^~~~~~~~ pycrfsuite/_pycrfsuite.cpp:14824:43: warning: ‘PyBytesObject::ob_shash’ is deprecated [-Wdeprecated-declarations] 14824 | hash1 = ((PyBytesObject*)s1)->ob_shash; | ^~~~~~~~ In file included from /usr/include/python3.11/bytesobject.h:62, from /usr/include/python3.11/Python.h:50, from pycrfsuite/_pycrfsuite.cpp:6: /usr/include/python3.11/cpython/bytesobject.h:7:35: note: declared here 7 | Py_DEPRECATED(3.11) Py_hash_t ob_shash; | ^~~~~~~~ pycrfsuite/_pycrfsuite.cpp:14824:43: warning: ‘PyBytesObject::ob_shash’ is deprecated [-Wdeprecated-declarations] 14824 | hash1 = ((PyBytesObject*)s1)->ob_shash; | ^~~~~~~~ In file included from /usr/include/python3.11/bytesobject.h:62, from /usr/include/python3.11/Python.h:50, from pycrfsuite/_pycrfsuite.cpp:6: /usr/include/python3.11/cpython/bytesobject.h:7:35: note: declared here 7 | Py_DEPRECATED(3.11) Py_hash_t ob_shash; | ^~~~~~~~ pycrfsuite/_pycrfsuite.cpp:14825:43: warning: ‘PyBytesObject::ob_shash’ is deprecated [-Wdeprecated-declarations] 14825 | hash2 = ((PyBytesObject*)s2)->ob_shash; | ^~~~~~~~ In file included from /usr/include/python3.11/bytesobject.h:62, from /usr/include/python3.11/Python.h:50, from pycrfsuite/_pycrfsuite.cpp:6: /usr/include/python3.11/cpython/bytesobject.h:7:35: note: declared here 7 | Py_DEPRECATED(3.11) Py_hash_t ob_shash; | ^~~~~~~~ pycrfsuite/_pycrfsuite.cpp:14825:43: warning: ‘PyBytesObject::ob_shash’ is deprecated [-Wdeprecated-declarations] 14825 | hash2 = ((PyBytesObject*)s2)->ob_shash; | ^~~~~~~~ In file included from /usr/include/python3.11/bytesobject.h:62, from /usr/include/python3.11/Python.h:50, from pycrfsuite/_pycrfsuite.cpp:6: /usr/include/python3.11/cpython/bytesobject.h:7:35: note: declared here 7 | Py_DEPRECATED(3.11) Py_hash_t ob_shash; | ^~~~~~~~ pycrfsuite/_pycrfsuite.cpp:14825:43: warning: ‘PyBytesObject::ob_shash’ is deprecated [-Wdeprecated-declarations] 14825 | hash2 = ((PyBytesObject*)s2)->ob_shash; | ^~~~~~~~ In file included from /usr/include/python3.11/bytesobject.h:62, from /usr/include/python3.11/Python.h:50, from pycrfsuite/_pycrfsuite.cpp:6: /usr/include/python3.11/cpython/bytesobject.h:7:35: note: declared here 7 | Py_DEPRECATED(3.11) Py_hash_t ob_shash; | ^~~~~~~~ pycrfsuite/_pycrfsuite.cpp: In function ‘void __Pyx_AddTraceback(const char*, int, int, const char*)’: pycrfsuite/_pycrfsuite.cpp:452:62: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’} 452 | #define __Pyx_PyFrame_SetLineNumber(frame, lineno) (frame)->f_lineno = (lineno) | ^~ pycrfsuite/_pycrfsuite.cpp:16387:5: note: in expansion of macro ‘__Pyx_PyFrame_SetLineNumber’ 16387 | __Pyx_PyFrame_SetLineNumber(py_frame, py_line); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/python3.11/Python.h:42, from pycrfsuite/_pycrfsuite.cpp:6: /usr/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’} 22 | typedef struct _frame PyFrameObject; | ^~~~~~ pycrfsuite/_pycrfsuite.cpp: In function ‘PyObject* __Pyx_Coroutine_SendEx(__pyx_CoroutineObject*, PyObject*, int)’: pycrfsuite/_pycrfsuite.cpp:17470:14: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’} 17470 | f->f_back = PyThreadState_GetFrame(tstate); | ^~ In file included from /usr/include/python3.11/Python.h:42, from pycrfsuite/_pycrfsuite.cpp:6: /usr/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’} 22 | typedef struct _frame PyFrameObject; | ^~~~~~ In file included from /usr/include/python3.11/Python.h:38, from pycrfsuite/_pycrfsuite.cpp:6: pycrfsuite/_pycrfsuite.cpp: In function ‘void __Pyx_Coroutine_ResetFrameBackpointer(__Pyx_ExcInfoStruct*)’: pycrfsuite/_pycrfsuite.cpp:17507:19: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’} 17507 | Py_CLEAR(f->f_back); | ^~ /usr/include/python3.11/pyport.h:24:38: note: in definition of macro ‘_Py_CAST’ 24 | #define _Py_CAST(type, expr) ((type)(expr)) | ^~~~ /usr/include/python3.11/object.h:581:29: note: in expansion of macro ‘_PyObject_CAST’ 581 | PyObject *_py_tmp = _PyObject_CAST(op); \ | ^~~~~~~~~~~~~~ pycrfsuite/_pycrfsuite.cpp:17507:9: note: in expansion of macro ‘Py_CLEAR’ 17507 | Py_CLEAR(f->f_back); | ^~~~~~~~ In file included from /usr/include/python3.11/Python.h:42, from pycrfsuite/_pycrfsuite.cpp:6: /usr/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’} 22 | typedef struct _frame PyFrameObject; | ^~~~~~ In file included from /usr/include/python3.11/Python.h:44, from pycrfsuite/_pycrfsuite.cpp:6: pycrfsuite/_pycrfsuite.cpp:17507:19: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’} 17507 | Py_CLEAR(f->f_back); | ^~ /usr/include/python3.11/object.h:583:14: note: in definition of macro ‘Py_CLEAR’ 583 | (op) = NULL; \ | ^~ In file included from /usr/include/python3.11/Python.h:42, from pycrfsuite/_pycrfsuite.cpp:6: /usr/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’} 22 | typedef struct _frame PyFrameObject; | ^~~~~~ error: command '/usr/bin/x86_64-pc-linux-gnu-gcc' failed with exit code 1 [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for python-crfsuite Running setup.py clean for python-crfsuite Failed to build python-crfsuite Installing collected packages: python-crfsuite Running setup.py install for python-crfsuite: started Running setup.py install for python-crfsuite: finished with status 'error' error: subprocess-exited-with-error × Running setup.py install for python-crfsuite did not run successfully. │ exit code: 1 ╰─> [162 lines of output] running install /project/venv/lib/python3.11/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools. warnings.warn( running build running build_py creating build creating build/lib.linux-x86_64-cpython-311 creating build/lib.linux-x86_64-cpython-311/pycrfsuite copying pycrfsuite/_logparser.py -> build/lib.linux-x86_64-cpython-311/pycrfsuite copying pycrfsuite/_dumpparser.py -> build/lib.linux-x86_64-cpython-311/pycrfsuite copying pycrfsuite/__init__.py -> build/lib.linux-x86_64-cpython-311/pycrfsuite running build_ext building 'pycrfsuite._pycrfsuite' extension creating build/temp.linux-x86_64-cpython-311 creating build/temp.linux-x86_64-cpython-311/crfsuite creating build/temp.linux-x86_64-cpython-311/crfsuite/lib creating build/temp.linux-x86_64-cpython-311/crfsuite/lib/cqdb creating build/temp.linux-x86_64-cpython-311/crfsuite/lib/cqdb/src creating build/temp.linux-x86_64-cpython-311/crfsuite/lib/crf creating build/temp.linux-x86_64-cpython-311/crfsuite/lib/crf/src creating build/temp.linux-x86_64-cpython-311/crfsuite/swig creating build/temp.linux-x86_64-cpython-311/liblbfgs creating build/temp.linux-x86_64-cpython-311/liblbfgs/lib creating build/temp.linux-x86_64-cpython-311/pycrfsuite x86_64-pc-linux-gnu-gcc -Wsign-compare -DNDEBUG -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/project/venv/include -I/usr/include/python3.11 -c crfsuite/lib/cqdb/src/cqdb.c -o build/temp.linux-x86_64-cpython-311/crfsuite/lib/cqdb/src/cqdb.o x86_64-pc-linux-gnu-gcc -Wsign-compare -DNDEBUG -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/project/venv/include -I/usr/include/python3.11 -c crfsuite/lib/cqdb/src/lookup3.c -o build/temp.linux-x86_64-cpython-311/crfsuite/lib/cqdb/src/lookup3.o x86_64-pc-linux-gnu-gcc -Wsign-compare -DNDEBUG -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/project/venv/include -I/usr/include/python3.11 -c crfsuite/lib/crf/src/crf1d_context.c -o build/temp.linux-x86_64-cpython-311/crfsuite/lib/crf/src/crf1d_context.o x86_64-pc-linux-gnu-gcc -Wsign-compare -DNDEBUG -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/project/venv/include -I/usr/include/python3.11 -c crfsuite/lib/crf/src/crf1d_encode.c -o build/temp.linux-x86_64-cpython-311/crfsuite/lib/crf/src/crf1d_encode.o x86_64-pc-linux-gnu-gcc -Wsign-compare -DNDEBUG -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/project/venv/include -I/usr/include/python3.11 -c crfsuite/lib/crf/src/crf1d_feature.c -o build/temp.linux-x86_64-cpython-311/crfsuite/lib/crf/src/crf1d_feature.o x86_64-pc-linux-gnu-gcc -Wsign-compare -DNDEBUG -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/project/venv/include -I/usr/include/python3.11 -c crfsuite/lib/crf/src/crf1d_model.c -o build/temp.linux-x86_64-cpython-311/crfsuite/lib/crf/src/crf1d_model.o crfsuite/lib/crf/src/crf1d_model.c: In function ‘crf1dmw_put_feature’: crfsuite/lib/crf/src/crf1d_model.c:691:13: warning: comparison of integer expressions of different signedness: ‘int’ and ‘uint32_t’ {aka ‘unsigned int’} [-Wsign-compare] 691 | if (fid != hfeat->num) { | ^~ x86_64-pc-linux-gnu-gcc -Wsign-compare -DNDEBUG -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/project/venv/include -I/usr/include/python3.11 -c crfsuite/lib/crf/src/crf1d_tag.c -o build/temp.linux-x86_64-cpython-311/crfsuite/lib/crf/src/crf1d_tag.o x86_64-pc-linux-gnu-gcc -Wsign-compare -DNDEBUG -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/project/venv/include -I/usr/include/python3.11 -c crfsuite/lib/crf/src/crfsuite.c -o build/temp.linux-x86_64-cpython-311/crfsuite/lib/crf/src/crfsuite.o x86_64-pc-linux-gnu-gcc -Wsign-compare -DNDEBUG -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/project/venv/include -I/usr/include/python3.11 -c crfsuite/lib/crf/src/crfsuite_train.c -o build/temp.linux-x86_64-cpython-311/crfsuite/lib/crf/src/crfsuite_train.o x86_64-pc-linux-gnu-gcc -Wsign-compare -DNDEBUG -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/project/venv/include -I/usr/include/python3.11 -c crfsuite/lib/crf/src/dataset.c -o build/temp.linux-x86_64-cpython-311/crfsuite/lib/crf/src/dataset.o x86_64-pc-linux-gnu-gcc -Wsign-compare -DNDEBUG -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/project/venv/include -I/usr/include/python3.11 -c crfsuite/lib/crf/src/dictionary.c -o build/temp.linux-x86_64-cpython-311/crfsuite/lib/crf/src/dictionary.o x86_64-pc-linux-gnu-gcc -Wsign-compare -DNDEBUG -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/project/venv/include -I/usr/include/python3.11 -c crfsuite/lib/crf/src/holdout.c -o build/temp.linux-x86_64-cpython-311/crfsuite/lib/crf/src/holdout.o x86_64-pc-linux-gnu-gcc -Wsign-compare -DNDEBUG -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/project/venv/include -I/usr/include/python3.11 -c crfsuite/lib/crf/src/logging.c -o build/temp.linux-x86_64-cpython-311/crfsuite/lib/crf/src/logging.o x86_64-pc-linux-gnu-gcc -Wsign-compare -DNDEBUG -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/project/venv/include -I/usr/include/python3.11 -c crfsuite/lib/crf/src/params.c -o build/temp.linux-x86_64-cpython-311/crfsuite/lib/crf/src/params.o x86_64-pc-linux-gnu-gcc -Wsign-compare -DNDEBUG -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/project/venv/include -I/usr/include/python3.11 -c crfsuite/lib/crf/src/quark.c -o build/temp.linux-x86_64-cpython-311/crfsuite/lib/crf/src/quark.o x86_64-pc-linux-gnu-gcc -Wsign-compare -DNDEBUG -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/project/venv/include -I/usr/include/python3.11 -c crfsuite/lib/crf/src/rumavl.c -o build/temp.linux-x86_64-cpython-311/crfsuite/lib/crf/src/rumavl.o x86_64-pc-linux-gnu-gcc -Wsign-compare -DNDEBUG -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/project/venv/include -I/usr/include/python3.11 -c crfsuite/lib/crf/src/train_arow.c -o build/temp.linux-x86_64-cpython-311/crfsuite/lib/crf/src/train_arow.o x86_64-pc-linux-gnu-gcc -Wsign-compare -DNDEBUG -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/project/venv/include -I/usr/include/python3.11 -c crfsuite/lib/crf/src/train_averaged_perceptron.c -o build/temp.linux-x86_64-cpython-311/crfsuite/lib/crf/src/train_averaged_perceptron.o x86_64-pc-linux-gnu-gcc -Wsign-compare -DNDEBUG -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/project/venv/include -I/usr/include/python3.11 -c crfsuite/lib/crf/src/train_l2sgd.c -o build/temp.linux-x86_64-cpython-311/crfsuite/lib/crf/src/train_l2sgd.o x86_64-pc-linux-gnu-gcc -Wsign-compare -DNDEBUG -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/project/venv/include -I/usr/include/python3.11 -c crfsuite/lib/crf/src/train_lbfgs.c -o build/temp.linux-x86_64-cpython-311/crfsuite/lib/crf/src/train_lbfgs.o x86_64-pc-linux-gnu-gcc -Wsign-compare -DNDEBUG -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/project/venv/include -I/usr/include/python3.11 -c crfsuite/lib/crf/src/train_passive_aggressive.c -o build/temp.linux-x86_64-cpython-311/crfsuite/lib/crf/src/train_passive_aggressive.o x86_64-pc-linux-gnu-gcc -Wsign-compare -DNDEBUG -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/project/venv/include -I/usr/include/python3.11 -c crfsuite/swig/crfsuite.cpp -o build/temp.linux-x86_64-cpython-311/crfsuite/swig/crfsuite.o x86_64-pc-linux-gnu-gcc -Wsign-compare -DNDEBUG -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/project/venv/include -I/usr/include/python3.11 -c liblbfgs/lib/lbfgs.c -o build/temp.linux-x86_64-cpython-311/liblbfgs/lib/lbfgs.o x86_64-pc-linux-gnu-gcc -Wsign-compare -DNDEBUG -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/project/venv/include -I/usr/include/python3.11 -c pycrfsuite/_pycrfsuite.cpp -o build/temp.linux-x86_64-cpython-311/pycrfsuite/_pycrfsuite.o pycrfsuite/_pycrfsuite.cpp: In function ‘int __Pyx_PyBytes_Equals(PyObject*, PyObject*, int)’: pycrfsuite/_pycrfsuite.cpp:14824:43: warning: ‘PyBytesObject::ob_shash’ is deprecated [-Wdeprecated-declarations] 14824 | hash1 = ((PyBytesObject*)s1)->ob_shash; | ^~~~~~~~ In file included from /usr/include/python3.11/bytesobject.h:62, from /usr/include/python3.11/Python.h:50, from pycrfsuite/_pycrfsuite.cpp:6: /usr/include/python3.11/cpython/bytesobject.h:7:35: note: declared here 7 | Py_DEPRECATED(3.11) Py_hash_t ob_shash; | ^~~~~~~~ pycrfsuite/_pycrfsuite.cpp:14824:43: warning: ‘PyBytesObject::ob_shash’ is deprecated [-Wdeprecated-declarations] 14824 | hash1 = ((PyBytesObject*)s1)->ob_shash; | ^~~~~~~~ In file included from /usr/include/python3.11/bytesobject.h:62, from /usr/include/python3.11/Python.h:50, from pycrfsuite/_pycrfsuite.cpp:6: /usr/include/python3.11/cpython/bytesobject.h:7:35: note: declared here 7 | Py_DEPRECATED(3.11) Py_hash_t ob_shash; | ^~~~~~~~ pycrfsuite/_pycrfsuite.cpp:14824:43: warning: ‘PyBytesObject::ob_shash’ is deprecated [-Wdeprecated-declarations] 14824 | hash1 = ((PyBytesObject*)s1)->ob_shash; | ^~~~~~~~ In file included from /usr/include/python3.11/bytesobject.h:62, from /usr/include/python3.11/Python.h:50, from pycrfsuite/_pycrfsuite.cpp:6: /usr/include/python3.11/cpython/bytesobject.h:7:35: note: declared here 7 | Py_DEPRECATED(3.11) Py_hash_t ob_shash; | ^~~~~~~~ pycrfsuite/_pycrfsuite.cpp:14825:43: warning: ‘PyBytesObject::ob_shash’ is deprecated [-Wdeprecated-declarations] 14825 | hash2 = ((PyBytesObject*)s2)->ob_shash; | ^~~~~~~~ In file included from /usr/include/python3.11/bytesobject.h:62, from /usr/include/python3.11/Python.h:50, from pycrfsuite/_pycrfsuite.cpp:6: /usr/include/python3.11/cpython/bytesobject.h:7:35: note: declared here 7 | Py_DEPRECATED(3.11) Py_hash_t ob_shash; | ^~~~~~~~ pycrfsuite/_pycrfsuite.cpp:14825:43: warning: ‘PyBytesObject::ob_shash’ is deprecated [-Wdeprecated-declarations] 14825 | hash2 = ((PyBytesObject*)s2)->ob_shash; | ^~~~~~~~ In file included from /usr/include/python3.11/bytesobject.h:62, from /usr/include/python3.11/Python.h:50, from pycrfsuite/_pycrfsuite.cpp:6: /usr/include/python3.11/cpython/bytesobject.h:7:35: note: declared here 7 | Py_DEPRECATED(3.11) Py_hash_t ob_shash; | ^~~~~~~~ pycrfsuite/_pycrfsuite.cpp:14825:43: warning: ‘PyBytesObject::ob_shash’ is deprecated [-Wdeprecated-declarations] 14825 | hash2 = ((PyBytesObject*)s2)->ob_shash; | ^~~~~~~~ In file included from /usr/include/python3.11/bytesobject.h:62, from /usr/include/python3.11/Python.h:50, from pycrfsuite/_pycrfsuite.cpp:6: /usr/include/python3.11/cpython/bytesobject.h:7:35: note: declared here 7 | Py_DEPRECATED(3.11) Py_hash_t ob_shash; | ^~~~~~~~ pycrfsuite/_pycrfsuite.cpp: In function ‘void __Pyx_AddTraceback(const char*, int, int, const char*)’: pycrfsuite/_pycrfsuite.cpp:452:62: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’} 452 | #define __Pyx_PyFrame_SetLineNumber(frame, lineno) (frame)->f_lineno = (lineno) | ^~ pycrfsuite/_pycrfsuite.cpp:16387:5: note: in expansion of macro ‘__Pyx_PyFrame_SetLineNumber’ 16387 | __Pyx_PyFrame_SetLineNumber(py_frame, py_line); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/python3.11/Python.h:42, from pycrfsuite/_pycrfsuite.cpp:6: /usr/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’} 22 | typedef struct _frame PyFrameObject; | ^~~~~~ pycrfsuite/_pycrfsuite.cpp: In function ‘PyObject* __Pyx_Coroutine_SendEx(__pyx_CoroutineObject*, PyObject*, int)’: pycrfsuite/_pycrfsuite.cpp:17470:14: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’} 17470 | f->f_back = PyThreadState_GetFrame(tstate); | ^~ In file included from /usr/include/python3.11/Python.h:42, from pycrfsuite/_pycrfsuite.cpp:6: /usr/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’} 22 | typedef struct _frame PyFrameObject; | ^~~~~~ In file included from /usr/include/python3.11/Python.h:38, from pycrfsuite/_pycrfsuite.cpp:6: pycrfsuite/_pycrfsuite.cpp: In function ‘void __Pyx_Coroutine_ResetFrameBackpointer(__Pyx_ExcInfoStruct*)’: pycrfsuite/_pycrfsuite.cpp:17507:19: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’} 17507 | Py_CLEAR(f->f_back); | ^~ /usr/include/python3.11/pyport.h:24:38: note: in definition of macro ‘_Py_CAST’ 24 | #define _Py_CAST(type, expr) ((type)(expr)) | ^~~~ /usr/include/python3.11/object.h:581:29: note: in expansion of macro ‘_PyObject_CAST’ 581 | PyObject *_py_tmp = _PyObject_CAST(op); \ | ^~~~~~~~~~~~~~ pycrfsuite/_pycrfsuite.cpp:17507:9: note: in expansion of macro ‘Py_CLEAR’ 17507 | Py_CLEAR(f->f_back); | ^~~~~~~~ In file included from /usr/include/python3.11/Python.h:42, from pycrfsuite/_pycrfsuite.cpp:6: /usr/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’} 22 | typedef struct _frame PyFrameObject; | ^~~~~~ In file included from /usr/include/python3.11/Python.h:44, from pycrfsuite/_pycrfsuite.cpp:6: pycrfsuite/_pycrfsuite.cpp:17507:19: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’} 17507 | Py_CLEAR(f->f_back); | ^~ /usr/include/python3.11/object.h:583:14: note: in definition of macro ‘Py_CLEAR’ 583 | (op) = NULL; \ | ^~ In file included from /usr/include/python3.11/Python.h:42, from pycrfsuite/_pycrfsuite.cpp:6: /usr/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’} 22 | typedef struct _frame PyFrameObject; | ^~~~~~ error: command '/usr/bin/x86_64-pc-linux-gnu-gcc' failed with exit code 1 [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: legacy-install-failure × Encountered error while trying to install package. ╰─> python-crfsuite note: This is an issue with the package mentioned above, not pip. hint: See above for output from the failure. ```
svenvarkel commented 1 year ago

I have exactly the same problem although I'm using poetry on Mac M1.

poetry env use 3.10 poetry install

and it all works well.

poetry env use 3.11 poetry install

and it fails with the same error.

fgregg commented 1 year ago

fixed in the 0.9.9 release

mlissner commented 1 year ago

Thank you @fgregg for the release. Very appreciated!