Skip to content

Incompatible with Python 3.10 #130

@christianbundy

Description

@christianbundy

Hi there. I'm looking to install this on Python 3.10, but I'm getting an error message when attempting to build locally. Details included below:

More info
root@9fa684e31e01:/# python --version
Python 3.10.0
root@9fa684e31e01:/# pip --version
pip 21.3 from /usr/local/lib/python3.10/site-packages/pip (python 3.10)
root@9fa684e31e01:/# /usr/local/bin/python -m pip install --upgrade pip^C
root@9fa684e31e01:/# pip install python-crfsuite
Collecting python-crfsuite
  Using cached python-crfsuite-0.9.7.tar.gz (432 kB)
  Preparing metadata (setup.py) ... done
Building wheels for collected packages: python-crfsuite
  Building wheel for python-crfsuite (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /usr/local/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-6e6udq0x/python-crfsuite_19e81d7c6a234bf3a36f6bdf3ff7e364/setup.py'"'"'; __file__='"'"'/tmp/pip-install-6e6udq0x/python-crfsuite_19e81d7c6a234bf3a36f6bdf3ff7e364/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-6djr334w
       cwd: /tmp/pip-install-6e6udq0x/python-crfsuite_19e81d7c6a234bf3a36f6bdf3ff7e364/
  Complete output (485 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-x86_64-3.10
  creating build/lib.linux-x86_64-3.10/pycrfsuite
  copying pycrfsuite/_logparser.py -> build/lib.linux-x86_64-3.10/pycrfsuite
  copying pycrfsuite/__init__.py -> build/lib.linux-x86_64-3.10/pycrfsuite
  copying pycrfsuite/_dumpparser.py -> build/lib.linux-x86_64-3.10/pycrfsuite
  running build_ext
  building 'pycrfsuite._pycrfsuite' extension
  creating build/temp.linux-x86_64-3.10
  creating build/temp.linux-x86_64-3.10/crfsuite
  creating build/temp.linux-x86_64-3.10/crfsuite/lib
  creating build/temp.linux-x86_64-3.10/crfsuite/lib/cqdb
  creating build/temp.linux-x86_64-3.10/crfsuite/lib/cqdb/src
  creating build/temp.linux-x86_64-3.10/crfsuite/lib/crf
  creating build/temp.linux-x86_64-3.10/crfsuite/lib/crf/src
  creating build/temp.linux-x86_64-3.10/crfsuite/swig
  creating build/temp.linux-x86_64-3.10/liblbfgs
  creating build/temp.linux-x86_64-3.10/liblbfgs/lib
  creating build/temp.linux-x86_64-3.10/pycrfsuite
  gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/local/include/python3.10 -c -std=c99 crfsuite/lib/cqdb/src/cqdb.c -o build/temp.linux-x86_64-3.10/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 -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/local/include/python3.10 -c -std=c99 crfsuite/lib/cqdb/src/lookup3.c -o build/temp.linux-x86_64-3.10/crfsuite/lib/cqdb/src/lookup3.o
  gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/local/include/python3.10 -c -std=c99 crfsuite/lib/crf/src/crf1d_context.c -o build/temp.linux-x86_64-3.10/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 -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/local/include/python3.10 -c -std=c99 crfsuite/lib/crf/src/crf1d_encode.c -o build/temp.linux-x86_64-3.10/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 -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/local/include/python3.10 -c -std=c99 crfsuite/lib/crf/src/crf1d_feature.c -o build/temp.linux-x86_64-3.10/crfsuite/lib/crf/src/crf1d_feature.o
  gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/local/include/python3.10 -c -std=c99 crfsuite/lib/crf/src/crf1d_model.c -o build/temp.linux-x86_64-3.10/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 -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/local/include/python3.10 -c -std=c99 crfsuite/lib/crf/src/crf1d_tag.c -o build/temp.linux-x86_64-3.10/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 -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/local/include/python3.10 -c -std=c99 crfsuite/lib/crf/src/crfsuite.c -o build/temp.linux-x86_64-3.10/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 -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/local/include/python3.10 -c -std=c99 crfsuite/lib/crf/src/crfsuite_train.c -o build/temp.linux-x86_64-3.10/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 -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/local/include/python3.10 -c -std=c99 crfsuite/lib/crf/src/dataset.c -o build/temp.linux-x86_64-3.10/crfsuite/lib/crf/src/dataset.o
  gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/local/include/python3.10 -c -std=c99 crfsuite/lib/crf/src/dictionary.c -o build/temp.linux-x86_64-3.10/crfsuite/lib/crf/src/dictionary.o
  gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/local/include/python3.10 -c -std=c99 crfsuite/lib/crf/src/holdout.c -o build/temp.linux-x86_64-3.10/crfsuite/lib/crf/src/holdout.o
  gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/local/include/python3.10 -c -std=c99 crfsuite/lib/crf/src/logging.c -o build/temp.linux-x86_64-3.10/crfsuite/lib/crf/src/logging.o
  gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/local/include/python3.10 -c -std=c99 crfsuite/lib/crf/src/params.c -o build/temp.linux-x86_64-3.10/crfsuite/lib/crf/src/params.o
  gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/local/include/python3.10 -c -std=c99 crfsuite/lib/crf/src/quark.c -o build/temp.linux-x86_64-3.10/crfsuite/lib/crf/src/quark.o
  gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/local/include/python3.10 -c -std=c99 crfsuite/lib/crf/src/rumavl.c -o build/temp.linux-x86_64-3.10/crfsuite/lib/crf/src/rumavl.o
  gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/local/include/python3.10 -c -std=c99 crfsuite/lib/crf/src/train_arow.c -o build/temp.linux-x86_64-3.10/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 -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/local/include/python3.10 -c -std=c99 crfsuite/lib/crf/src/train_averaged_perceptron.c -o build/temp.linux-x86_64-3.10/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 -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/local/include/python3.10 -c -std=c99 crfsuite/lib/crf/src/train_l2sgd.c -o build/temp.linux-x86_64-3.10/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 -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/local/include/python3.10 -c -std=c99 crfsuite/lib/crf/src/train_lbfgs.c -o build/temp.linux-x86_64-3.10/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 -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/local/include/python3.10 -c -std=c99 crfsuite/lib/crf/src/train_passive_aggressive.c -o build/temp.linux-x86_64-3.10/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 -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/local/include/python3.10 -c crfsuite/swig/crfsuite.cpp -o build/temp.linux-x86_64-3.10/crfsuite/swig/crfsuite.o
  gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/local/include/python3.10 -c -std=c99 liblbfgs/lib/lbfgs.c -o build/temp.linux-x86_64-3.10/liblbfgs/lib/lbfgs.o
  gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/local/include/python3.10 -c pycrfsuite/_pycrfsuite.cpp -o build/temp.linux-x86_64-3.10/pycrfsuite/_pycrfsuite.o
  In file included from /usr/local/include/python3.10/unicodeobject.h:1046,
                   from /usr/local/include/python3.10/Python.h:96,
                   from pycrfsuite/_pycrfsuite.cpp:4:
  pycrfsuite/_pycrfsuite.cpp: In function ‘int __Pyx_ParseOptionalKeywords(PyObject*, PyObject***, PyObject*, PyObject**, Py_ssize_t, const char*)’:
  /usr/local/include/python3.10/cpython/unicodeobject.h:451:75: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations]
    451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
        |                                                                           ^
  /usr/local/include/python3.10/cpython/unicodeobject.h:261:7: note: in expansion of macro ‘PyUnicode_WSTR_LENGTH’
    261 |       PyUnicode_WSTR_LENGTH(op) :                    \
        |       ^~~~~~~~~~~~~~~~~~~~~
  pycrfsuite/_pycrfsuite.cpp:13546:22: note: in expansion of macro ‘PyUnicode_GET_SIZE’
  13546 |                     (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
        |                      ^~~~~~~~~~~~~~~~~~
  /usr/local/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
    446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
        |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
  /usr/local/include/python3.10/cpython/unicodeobject.h:262:52: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations]
    262 |       ((void)PyUnicode_AsUnicode(_PyObject_CAST(op)),\
        |                                                    ^
  pycrfsuite/_pycrfsuite.cpp:13546:22: note: in expansion of macro ‘PyUnicode_GET_SIZE’
  13546 |                     (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
        |                      ^~~~~~~~~~~~~~~~~~
  /usr/local/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
    580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
        |                                             ^~~~~~~~~~~~~~~~~~~
  /usr/local/include/python3.10/cpython/unicodeobject.h:451:75: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations]
    451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
        |                                                                           ^
  /usr/local/include/python3.10/cpython/unicodeobject.h:264:8: note: in expansion of macro ‘PyUnicode_WSTR_LENGTH’
    264 |        PyUnicode_WSTR_LENGTH(op)))
        |        ^~~~~~~~~~~~~~~~~~~~~
  pycrfsuite/_pycrfsuite.cpp:13546:22: note: in expansion of macro ‘PyUnicode_GET_SIZE’
  13546 |                     (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
        |                      ^~~~~~~~~~~~~~~~~~
  /usr/local/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
    446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
        |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
  /usr/local/include/python3.10/cpython/unicodeobject.h:451:75: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations]
    451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
        |                                                                           ^
  /usr/local/include/python3.10/cpython/unicodeobject.h:261:7: note: in expansion of macro ‘PyUnicode_WSTR_LENGTH’
    261 |       PyUnicode_WSTR_LENGTH(op) :                    \
        |       ^~~~~~~~~~~~~~~~~~~~~
  pycrfsuite/_pycrfsuite.cpp:13546:52: note: in expansion of macro ‘PyUnicode_GET_SIZE’
  13546 |                     (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
        |                                                    ^~~~~~~~~~~~~~~~~~
  /usr/local/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
    446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
        |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
  /usr/local/include/python3.10/cpython/unicodeobject.h:262:52: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations]
    262 |       ((void)PyUnicode_AsUnicode(_PyObject_CAST(op)),\
        |                                                    ^
  pycrfsuite/_pycrfsuite.cpp:13546:52: note: in expansion of macro ‘PyUnicode_GET_SIZE’
  13546 |                     (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
        |                                                    ^~~~~~~~~~~~~~~~~~
  /usr/local/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
    580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
        |                                             ^~~~~~~~~~~~~~~~~~~
  /usr/local/include/python3.10/cpython/unicodeobject.h:451:75: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations]
    451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
        |                                                                           ^
  /usr/local/include/python3.10/cpython/unicodeobject.h:264:8: note: in expansion of macro ‘PyUnicode_WSTR_LENGTH’
    264 |        PyUnicode_WSTR_LENGTH(op)))
        |        ^~~~~~~~~~~~~~~~~~~~~
  pycrfsuite/_pycrfsuite.cpp:13546:52: note: in expansion of macro ‘PyUnicode_GET_SIZE’
  13546 |                     (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
        |                                                    ^~~~~~~~~~~~~~~~~~
  /usr/local/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
    446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
        |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
  /usr/local/include/python3.10/cpython/unicodeobject.h:451:75: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations]
    451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
        |                                                                           ^
  /usr/local/include/python3.10/cpython/unicodeobject.h:261:7: note: in expansion of macro ‘PyUnicode_WSTR_LENGTH’
    261 |       PyUnicode_WSTR_LENGTH(op) :                    \
        |       ^~~~~~~~~~~~~~~~~~~~~
  pycrfsuite/_pycrfsuite.cpp:13562:26: note: in expansion of macro ‘PyUnicode_GET_SIZE’
  13562 |                         (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
        |                          ^~~~~~~~~~~~~~~~~~
  /usr/local/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
    446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
        |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
  /usr/local/include/python3.10/cpython/unicodeobject.h:262:52: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations]
    262 |       ((void)PyUnicode_AsUnicode(_PyObject_CAST(op)),\
        |                                                    ^
  pycrfsuite/_pycrfsuite.cpp:13562:26: note: in expansion of macro ‘PyUnicode_GET_SIZE’
  13562 |                         (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
        |                          ^~~~~~~~~~~~~~~~~~
  /usr/local/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
    580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
        |                                             ^~~~~~~~~~~~~~~~~~~
  /usr/local/include/python3.10/cpython/unicodeobject.h:451:75: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations]
    451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
        |                                                                           ^
  /usr/local/include/python3.10/cpython/unicodeobject.h:264:8: note: in expansion of macro ‘PyUnicode_WSTR_LENGTH’
    264 |        PyUnicode_WSTR_LENGTH(op)))
        |        ^~~~~~~~~~~~~~~~~~~~~
  pycrfsuite/_pycrfsuite.cpp:13562:26: note: in expansion of macro ‘PyUnicode_GET_SIZE’
  13562 |                         (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
        |                          ^~~~~~~~~~~~~~~~~~
  /usr/local/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
    446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
        |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
  /usr/local/include/python3.10/cpython/unicodeobject.h:451:75: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations]
    451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
        |                                                                           ^
  /usr/local/include/python3.10/cpython/unicodeobject.h:261:7: note: in expansion of macro ‘PyUnicode_WSTR_LENGTH’
    261 |       PyUnicode_WSTR_LENGTH(op) :                    \
        |       ^~~~~~~~~~~~~~~~~~~~~
  pycrfsuite/_pycrfsuite.cpp:13562:59: note: in expansion of macro ‘PyUnicode_GET_SIZE’
  13562 |                         (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
        |                                                           ^~~~~~~~~~~~~~~~~~
  /usr/local/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
    446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
        |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
  /usr/local/include/python3.10/cpython/unicodeobject.h:262:52: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations]
    262 |       ((void)PyUnicode_AsUnicode(_PyObject_CAST(op)),\
        |                                                    ^
  pycrfsuite/_pycrfsuite.cpp:13562:59: note: in expansion of macro ‘PyUnicode_GET_SIZE’
  13562 |                         (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
        |                                                           ^~~~~~~~~~~~~~~~~~
  /usr/local/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
    580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
        |                                             ^~~~~~~~~~~~~~~~~~~
  /usr/local/include/python3.10/cpython/unicodeobject.h:451:75: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations]
    451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
        |                                                                           ^
  /usr/local/include/python3.10/cpython/unicodeobject.h:264:8: note: in expansion of macro ‘PyUnicode_WSTR_LENGTH’
    264 |        PyUnicode_WSTR_LENGTH(op)))
        |        ^~~~~~~~~~~~~~~~~~~~~
  pycrfsuite/_pycrfsuite.cpp:13562:59: note: in expansion of macro ‘PyUnicode_GET_SIZE’
  13562 |                         (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
        |                                                           ^~~~~~~~~~~~~~~~~~
  /usr/local/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
    446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
        |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
  pycrfsuite/_pycrfsuite.cpp: In function ‘PyObject* __Pyx_decode_c_bytes(const char*, Py_ssize_t, Py_ssize_t, Py_ssize_t, const char*, const char*, PyObject* (*)(const char*, Py_ssize_t, const char*))’:
  pycrfsuite/_pycrfsuite.cpp:13906:45: warning: ‘PyObject* PyUnicode_FromUnicode(const Py_UNICODE*, Py_ssize_t)’ is deprecated [-Wdeprecated-declarations]
  13906 |         return PyUnicode_FromUnicode(NULL, 0);
        |                                             ^
  In file included from /usr/local/include/python3.10/unicodeobject.h:1046,
                   from /usr/local/include/python3.10/Python.h:96,
                   from pycrfsuite/_pycrfsuite.cpp:4:
  /usr/local/include/python3.10/cpython/unicodeobject.h:551:42: note: declared here
    551 | Py_DEPRECATED(3.3) PyAPI_FUNC(PyObject*) PyUnicode_FromUnicode(
        |                                          ^~~~~~~~~~~~~~~~~~~~~
  pycrfsuite/_pycrfsuite.cpp: In function ‘PyObject* __Pyx_Coroutine_Send(PyObject*, PyObject*)’:
  pycrfsuite/_pycrfsuite.cpp:17069:19: error: ‘_PyGen_Send’ was not declared in this scope; did you mean ‘_PyGen_yf’?
  17069 |             ret = _PyGen_Send((PyGenObject*)yf, value == Py_None ? NULL : value);
        |                   ^~~~~~~~~~~
        |                   _PyGen_yf
  pycrfsuite/_pycrfsuite.cpp:17074:19: error: ‘_PyGen_Send’ was not declared in this scope; did you mean ‘_PyGen_yf’?
  17074 |             ret = _PyGen_Send((PyGenObject*)yf, value == Py_None ? NULL : value);
        |                   ^~~~~~~~~~~
        |                   _PyGen_yf
  pycrfsuite/_pycrfsuite.cpp: In function ‘PyObject* __Pyx_Generator_Next(PyObject*)’:
  pycrfsuite/_pycrfsuite.cpp:17158:19: error: ‘_PyGen_Send’ was not declared in this scope; did you mean ‘_PyGen_yf’?
  17158 |             ret = _PyGen_Send((PyGenObject*)yf, NULL);
        |                   ^~~~~~~~~~~
        |                   _PyGen_yf
  error: command '/usr/bin/gcc' failed with exit code 1
  ----------------------------------------
  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: Command errored out with exit status 1:
     command: /usr/local/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-6e6udq0x/python-crfsuite_19e81d7c6a234bf3a36f6bdf3ff7e364/setup.py'"'"'; __file__='"'"'/tmp/pip-install-6e6udq0x/python-crfsuite_19e81d7c6a234bf3a36f6bdf3ff7e364/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-280daoo3/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.10/python-crfsuite
         cwd: /tmp/pip-install-6e6udq0x/python-crfsuite_19e81d7c6a234bf3a36f6bdf3ff7e364/
    Complete output (485 lines):
    running install
    running build
    running build_py
    creating build
    creating build/lib.linux-x86_64-3.10
    creating build/lib.linux-x86_64-3.10/pycrfsuite
    copying pycrfsuite/_logparser.py -> build/lib.linux-x86_64-3.10/pycrfsuite
    copying pycrfsuite/__init__.py -> build/lib.linux-x86_64-3.10/pycrfsuite
    copying pycrfsuite/_dumpparser.py -> build/lib.linux-x86_64-3.10/pycrfsuite
    running build_ext
    building 'pycrfsuite._pycrfsuite' extension
    creating build/temp.linux-x86_64-3.10
    creating build/temp.linux-x86_64-3.10/crfsuite
    creating build/temp.linux-x86_64-3.10/crfsuite/lib
    creating build/temp.linux-x86_64-3.10/crfsuite/lib/cqdb
    creating build/temp.linux-x86_64-3.10/crfsuite/lib/cqdb/src
    creating build/temp.linux-x86_64-3.10/crfsuite/lib/crf
    creating build/temp.linux-x86_64-3.10/crfsuite/lib/crf/src
    creating build/temp.linux-x86_64-3.10/crfsuite/swig
    creating build/temp.linux-x86_64-3.10/liblbfgs
    creating build/temp.linux-x86_64-3.10/liblbfgs/lib
    creating build/temp.linux-x86_64-3.10/pycrfsuite
    gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/local/include/python3.10 -c -std=c99 crfsuite/lib/cqdb/src/cqdb.c -o build/temp.linux-x86_64-3.10/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 -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/local/include/python3.10 -c -std=c99 crfsuite/lib/cqdb/src/lookup3.c -o build/temp.linux-x86_64-3.10/crfsuite/lib/cqdb/src/lookup3.o
    gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/local/include/python3.10 -c -std=c99 crfsuite/lib/crf/src/crf1d_context.c -o build/temp.linux-x86_64-3.10/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 -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/local/include/python3.10 -c -std=c99 crfsuite/lib/crf/src/crf1d_encode.c -o build/temp.linux-x86_64-3.10/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 -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/local/include/python3.10 -c -std=c99 crfsuite/lib/crf/src/crf1d_feature.c -o build/temp.linux-x86_64-3.10/crfsuite/lib/crf/src/crf1d_feature.o
    gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/local/include/python3.10 -c -std=c99 crfsuite/lib/crf/src/crf1d_model.c -o build/temp.linux-x86_64-3.10/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 -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/local/include/python3.10 -c -std=c99 crfsuite/lib/crf/src/crf1d_tag.c -o build/temp.linux-x86_64-3.10/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 -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/local/include/python3.10 -c -std=c99 crfsuite/lib/crf/src/crfsuite.c -o build/temp.linux-x86_64-3.10/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 -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/local/include/python3.10 -c -std=c99 crfsuite/lib/crf/src/crfsuite_train.c -o build/temp.linux-x86_64-3.10/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 -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/local/include/python3.10 -c -std=c99 crfsuite/lib/crf/src/dataset.c -o build/temp.linux-x86_64-3.10/crfsuite/lib/crf/src/dataset.o
    gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/local/include/python3.10 -c -std=c99 crfsuite/lib/crf/src/dictionary.c -o build/temp.linux-x86_64-3.10/crfsuite/lib/crf/src/dictionary.o
    gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/local/include/python3.10 -c -std=c99 crfsuite/lib/crf/src/holdout.c -o build/temp.linux-x86_64-3.10/crfsuite/lib/crf/src/holdout.o
    gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/local/include/python3.10 -c -std=c99 crfsuite/lib/crf/src/logging.c -o build/temp.linux-x86_64-3.10/crfsuite/lib/crf/src/logging.o
    gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/local/include/python3.10 -c -std=c99 crfsuite/lib/crf/src/params.c -o build/temp.linux-x86_64-3.10/crfsuite/lib/crf/src/params.o
    gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/local/include/python3.10 -c -std=c99 crfsuite/lib/crf/src/quark.c -o build/temp.linux-x86_64-3.10/crfsuite/lib/crf/src/quark.o
    gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/local/include/python3.10 -c -std=c99 crfsuite/lib/crf/src/rumavl.c -o build/temp.linux-x86_64-3.10/crfsuite/lib/crf/src/rumavl.o
    gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/local/include/python3.10 -c -std=c99 crfsuite/lib/crf/src/train_arow.c -o build/temp.linux-x86_64-3.10/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 -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/local/include/python3.10 -c -std=c99 crfsuite/lib/crf/src/train_averaged_perceptron.c -o build/temp.linux-x86_64-3.10/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 -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/local/include/python3.10 -c -std=c99 crfsuite/lib/crf/src/train_l2sgd.c -o build/temp.linux-x86_64-3.10/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 -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/local/include/python3.10 -c -std=c99 crfsuite/lib/crf/src/train_lbfgs.c -o build/temp.linux-x86_64-3.10/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 -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/local/include/python3.10 -c -std=c99 crfsuite/lib/crf/src/train_passive_aggressive.c -o build/temp.linux-x86_64-3.10/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 -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/local/include/python3.10 -c crfsuite/swig/crfsuite.cpp -o build/temp.linux-x86_64-3.10/crfsuite/swig/crfsuite.o
    gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/local/include/python3.10 -c -std=c99 liblbfgs/lib/lbfgs.c -o build/temp.linux-x86_64-3.10/liblbfgs/lib/lbfgs.o
    gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/local/include/python3.10 -c pycrfsuite/_pycrfsuite.cpp -o build/temp.linux-x86_64-3.10/pycrfsuite/_pycrfsuite.o
    In file included from /usr/local/include/python3.10/unicodeobject.h:1046,
                     from /usr/local/include/python3.10/Python.h:96,
                     from pycrfsuite/_pycrfsuite.cpp:4:
    pycrfsuite/_pycrfsuite.cpp: In function ‘int __Pyx_ParseOptionalKeywords(PyObject*, PyObject***, PyObject*, PyObject**, Py_ssize_t, const char*)’:
    /usr/local/include/python3.10/cpython/unicodeobject.h:451:75: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations]
      451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
          |                                                                           ^
    /usr/local/include/python3.10/cpython/unicodeobject.h:261:7: note: in expansion of macro ‘PyUnicode_WSTR_LENGTH’
      261 |       PyUnicode_WSTR_LENGTH(op) :                    \
          |       ^~~~~~~~~~~~~~~~~~~~~
    pycrfsuite/_pycrfsuite.cpp:13546:22: note: in expansion of macro ‘PyUnicode_GET_SIZE’
    13546 |                     (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
          |                      ^~~~~~~~~~~~~~~~~~
    /usr/local/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
      446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
          |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
    /usr/local/include/python3.10/cpython/unicodeobject.h:262:52: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations]
      262 |       ((void)PyUnicode_AsUnicode(_PyObject_CAST(op)),\
          |                                                    ^
    pycrfsuite/_pycrfsuite.cpp:13546:22: note: in expansion of macro ‘PyUnicode_GET_SIZE’
    13546 |                     (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
          |                      ^~~~~~~~~~~~~~~~~~
    /usr/local/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
      580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
          |                                             ^~~~~~~~~~~~~~~~~~~
    /usr/local/include/python3.10/cpython/unicodeobject.h:451:75: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations]
      451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
          |                                                                           ^
    /usr/local/include/python3.10/cpython/unicodeobject.h:264:8: note: in expansion of macro ‘PyUnicode_WSTR_LENGTH’
      264 |        PyUnicode_WSTR_LENGTH(op)))
          |        ^~~~~~~~~~~~~~~~~~~~~
    pycrfsuite/_pycrfsuite.cpp:13546:22: note: in expansion of macro ‘PyUnicode_GET_SIZE’
    13546 |                     (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
          |                      ^~~~~~~~~~~~~~~~~~
    /usr/local/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
      446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
          |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
    /usr/local/include/python3.10/cpython/unicodeobject.h:451:75: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations]
      451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
          |                                                                           ^
    /usr/local/include/python3.10/cpython/unicodeobject.h:261:7: note: in expansion of macro ‘PyUnicode_WSTR_LENGTH’
      261 |       PyUnicode_WSTR_LENGTH(op) :                    \
          |       ^~~~~~~~~~~~~~~~~~~~~
    pycrfsuite/_pycrfsuite.cpp:13546:52: note: in expansion of macro ‘PyUnicode_GET_SIZE’
    13546 |                     (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
          |                                                    ^~~~~~~~~~~~~~~~~~
    /usr/local/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
      446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
          |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
    /usr/local/include/python3.10/cpython/unicodeobject.h:262:52: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations]
      262 |       ((void)PyUnicode_AsUnicode(_PyObject_CAST(op)),\
          |                                                    ^
    pycrfsuite/_pycrfsuite.cpp:13546:52: note: in expansion of macro ‘PyUnicode_GET_SIZE’
    13546 |                     (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
          |                                                    ^~~~~~~~~~~~~~~~~~
    /usr/local/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
      580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
          |                                             ^~~~~~~~~~~~~~~~~~~
    /usr/local/include/python3.10/cpython/unicodeobject.h:451:75: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations]
      451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
          |                                                                           ^
    /usr/local/include/python3.10/cpython/unicodeobject.h:264:8: note: in expansion of macro ‘PyUnicode_WSTR_LENGTH’
      264 |        PyUnicode_WSTR_LENGTH(op)))
          |        ^~~~~~~~~~~~~~~~~~~~~
    pycrfsuite/_pycrfsuite.cpp:13546:52: note: in expansion of macro ‘PyUnicode_GET_SIZE’
    13546 |                     (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
          |                                                    ^~~~~~~~~~~~~~~~~~
    /usr/local/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
      446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
          |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
    /usr/local/include/python3.10/cpython/unicodeobject.h:451:75: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations]
      451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
          |                                                                           ^
    /usr/local/include/python3.10/cpython/unicodeobject.h:261:7: note: in expansion of macro ‘PyUnicode_WSTR_LENGTH’
      261 |       PyUnicode_WSTR_LENGTH(op) :                    \
          |       ^~~~~~~~~~~~~~~~~~~~~
    pycrfsuite/_pycrfsuite.cpp:13562:26: note: in expansion of macro ‘PyUnicode_GET_SIZE’
    13562 |                         (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
          |                          ^~~~~~~~~~~~~~~~~~
    /usr/local/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
      446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
          |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
    /usr/local/include/python3.10/cpython/unicodeobject.h:262:52: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations]
      262 |       ((void)PyUnicode_AsUnicode(_PyObject_CAST(op)),\
          |                                                    ^
    pycrfsuite/_pycrfsuite.cpp:13562:26: note: in expansion of macro ‘PyUnicode_GET_SIZE’
    13562 |                         (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
          |                          ^~~~~~~~~~~~~~~~~~
    /usr/local/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
      580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
          |                                             ^~~~~~~~~~~~~~~~~~~
    /usr/local/include/python3.10/cpython/unicodeobject.h:451:75: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations]
      451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
          |                                                                           ^
    /usr/local/include/python3.10/cpython/unicodeobject.h:264:8: note: in expansion of macro ‘PyUnicode_WSTR_LENGTH’
      264 |        PyUnicode_WSTR_LENGTH(op)))
          |        ^~~~~~~~~~~~~~~~~~~~~
    pycrfsuite/_pycrfsuite.cpp:13562:26: note: in expansion of macro ‘PyUnicode_GET_SIZE’
    13562 |                         (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
          |                          ^~~~~~~~~~~~~~~~~~
    /usr/local/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
      446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
          |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
    /usr/local/include/python3.10/cpython/unicodeobject.h:451:75: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations]
      451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
          |                                                                           ^
    /usr/local/include/python3.10/cpython/unicodeobject.h:261:7: note: in expansion of macro ‘PyUnicode_WSTR_LENGTH’
      261 |       PyUnicode_WSTR_LENGTH(op) :                    \
          |       ^~~~~~~~~~~~~~~~~~~~~
    pycrfsuite/_pycrfsuite.cpp:13562:59: note: in expansion of macro ‘PyUnicode_GET_SIZE’
    13562 |                         (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
          |                                                           ^~~~~~~~~~~~~~~~~~
    /usr/local/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
      446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
          |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
    /usr/local/include/python3.10/cpython/unicodeobject.h:262:52: warning: ‘Py_UNICODE* PyUnicode_AsUnicode(PyObject*)’ is deprecated [-Wdeprecated-declarations]
      262 |       ((void)PyUnicode_AsUnicode(_PyObject_CAST(op)),\
          |                                                    ^
    pycrfsuite/_pycrfsuite.cpp:13562:59: note: in expansion of macro ‘PyUnicode_GET_SIZE’
    13562 |                         (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
          |                                                           ^~~~~~~~~~~~~~~~~~
    /usr/local/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
      580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
          |                                             ^~~~~~~~~~~~~~~~~~~
    /usr/local/include/python3.10/cpython/unicodeobject.h:451:75: warning: ‘Py_ssize_t _PyUnicode_get_wstr_length(PyObject*)’ is deprecated [-Wdeprecated-declarations]
      451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
          |                                                                           ^
    /usr/local/include/python3.10/cpython/unicodeobject.h:264:8: note: in expansion of macro ‘PyUnicode_WSTR_LENGTH’
      264 |        PyUnicode_WSTR_LENGTH(op)))
          |        ^~~~~~~~~~~~~~~~~~~~~
    pycrfsuite/_pycrfsuite.cpp:13562:59: note: in expansion of macro ‘PyUnicode_GET_SIZE’
    13562 |                         (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
          |                                                           ^~~~~~~~~~~~~~~~~~
    /usr/local/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
      446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
          |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
    pycrfsuite/_pycrfsuite.cpp: In function ‘PyObject* __Pyx_decode_c_bytes(const char*, Py_ssize_t, Py_ssize_t, Py_ssize_t, const char*, const char*, PyObject* (*)(const char*, Py_ssize_t, const char*))’:
    pycrfsuite/_pycrfsuite.cpp:13906:45: warning: ‘PyObject* PyUnicode_FromUnicode(const Py_UNICODE*, Py_ssize_t)’ is deprecated [-Wdeprecated-declarations]
    13906 |         return PyUnicode_FromUnicode(NULL, 0);
          |                                             ^
    In file included from /usr/local/include/python3.10/unicodeobject.h:1046,
                     from /usr/local/include/python3.10/Python.h:96,
                     from pycrfsuite/_pycrfsuite.cpp:4:
    /usr/local/include/python3.10/cpython/unicodeobject.h:551:42: note: declared here
      551 | Py_DEPRECATED(3.3) PyAPI_FUNC(PyObject*) PyUnicode_FromUnicode(
          |                                          ^~~~~~~~~~~~~~~~~~~~~
    pycrfsuite/_pycrfsuite.cpp: In function ‘PyObject* __Pyx_Coroutine_Send(PyObject*, PyObject*)’:
    pycrfsuite/_pycrfsuite.cpp:17069:19: error: ‘_PyGen_Send’ was not declared in this scope; did you mean ‘_PyGen_yf’?
    17069 |             ret = _PyGen_Send((PyGenObject*)yf, value == Py_None ? NULL : value);
          |                   ^~~~~~~~~~~
          |                   _PyGen_yf
    pycrfsuite/_pycrfsuite.cpp:17074:19: error: ‘_PyGen_Send’ was not declared in this scope; did you mean ‘_PyGen_yf’?
    17074 |             ret = _PyGen_Send((PyGenObject*)yf, value == Py_None ? NULL : value);
          |                   ^~~~~~~~~~~
          |                   _PyGen_yf
    pycrfsuite/_pycrfsuite.cpp: In function ‘PyObject* __Pyx_Generator_Next(PyObject*)’:
    pycrfsuite/_pycrfsuite.cpp:17158:19: error: ‘_PyGen_Send’ was not declared in this scope; did you mean ‘_PyGen_yf’?
    17158 |             ret = _PyGen_Send((PyGenObject*)yf, NULL);
          |                   ^~~~~~~~~~~
          |                   _PyGen_yf
    error: command '/usr/bin/gcc' failed with exit code 1
    ----------------------------------------
ERROR: Command errored out with exit status 1: /usr/local/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-6e6udq0x/python-crfsuite_19e81d7c6a234bf3a36f6bdf3ff7e364/setup.py'"'"'; __file__='"'"'/tmp/pip-install-6e6udq0x/python-crfsuite_19e81d7c6a234bf3a36f6bdf3ff7e364/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-280daoo3/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.10/python-crfsuite Check the logs for full command output.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions