/build/python-apsw/src/apsw-3.36.0-r1/setup.py:20: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives from distutils.core import setup, Extension, Command running build running build_ext SQLite: Using system sqlite include/libraries building 'apsw' extension creating build creating build/temp.linux-riscv64-3.10 creating build/temp.linux-riscv64-3.10/src gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=rv64gc -mabi=lp64d -O3 -pipe -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -march=rv64gc -mabi=lp64d -O3 -pipe -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -march=rv64gc -mabi=lp64d -O3 -pipe -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -march=rv64gc -mabi=lp64d -O2 -pipe -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -flto -fPIC -DEXPERIMENTAL=1 -DNDEBUG=1 -DAPSW_FORK_CHECKER=1 -Isrc -I/usr/include/python3.10 -c src/apsw.c -o build/temp.linux-riscv64-3.10/src/apsw.o In file included from src/apsw.c:137: src/pyutil.c: In function ‘Call_PythonMethod’: src/pyutil.c:177:3: warning: ‘PyEval_CallObjectWithKeywords’ is deprecated [-Wdeprecated-declarations] 177 | res = PyEval_CallObject(method, args); | ^~~ In file included from /usr/include/python3.10/Python.h:130, from src/apsw.c:75: /usr/include/python3.10/ceval.h:17:43: note: declared here 17 | Py_DEPRECATED(3.9) PyAPI_FUNC(PyObject *) PyEval_CallObjectWithKeywords( | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/apsw.c:143: src/util.c: In function ‘apsw_write_unraiseable’: src/util.c:141:7: warning: ‘PyEval_CallFunction’ is deprecated [-Wdeprecated-declarations] 141 | result = PyEval_CallFunction(excepthook, "(OOO)", err_type ? err_type : Py_None, err_value ? err_value : Py_None, err_traceback ? err_traceback : Py_None); | ^~~~~~ In file included from /usr/include/python3.10/Python.h:130, from src/apsw.c:75: /usr/include/python3.10/ceval.h:26:43: note: declared here 26 | Py_DEPRECATED(3.9) PyAPI_FUNC(PyObject *) PyEval_CallFunction( | ^~~~~~~~~~~~~~~~~~~ In file included from src/apsw.c:143: src/util.c:153:5: warning: ‘PyEval_CallFunction’ is deprecated [-Wdeprecated-declarations] 153 | result = PyEval_CallFunction(excepthook, "(OOO)", err_type ? err_type : Py_None, err_value ? err_value : Py_None, err_traceback ? err_traceback : Py_None); | ^~~~~~ In file included from /usr/include/python3.10/Python.h:130, from src/apsw.c:75: /usr/include/python3.10/ceval.h:26:43: note: declared here 26 | Py_DEPRECATED(3.9) PyAPI_FUNC(PyObject *) PyEval_CallFunction( | ^~~~~~~~~~~~~~~~~~~ In file included from src/apsw.c:146: src/apswbuffer.c: In function ‘APSWBuffer_hash’: src/apswbuffer.c:132:12: warning: comparison of integer expressions of different signedness: ‘Py_uhash_t’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare] 132 | if (hash == -1) | ^~ In file included from src/apsw.c:149: src/statementcache.c: In function ‘statementcache_prepare’: src/statementcache.c:234:7: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations] 234 | if( sc->cache && sc->numentries && ((PyUnicode_CheckExact(query) && PyUnicode_GET_DATA_SIZE(query) < SC_MAXSIZE) | ^~ In file included from /usr/include/python3.10/unicodeobject.h:1046, from /usr/include/python3.10/Python.h:83, from src/apsw.c:75: /usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/apsw.c:149: src/statementcache.c:234:7: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations] 234 | if( sc->cache && sc->numentries && ((PyUnicode_CheckExact(query) && PyUnicode_GET_DATA_SIZE(query) < SC_MAXSIZE) | ^~ In file included from /usr/include/python3.10/unicodeobject.h:1046, from /usr/include/python3.10/Python.h:83, from src/apsw.c:75: /usr/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ In file included from src/apsw.c:149: src/statementcache.c:234:7: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations] 234 | if( sc->cache && sc->numentries && ((PyUnicode_CheckExact(query) && PyUnicode_GET_DATA_SIZE(query) < SC_MAXSIZE) | ^~ In file included from /usr/include/python3.10/unicodeobject.h:1046, from /usr/include/python3.10/Python.h:83, from src/apsw.c:75: /usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/apsw.c:152: src/connection.c: In function ‘Connection_init’: src/connection.c:433:5: warning: ‘PyEval_CallObjectWithKeywords’ is deprecated [-Wdeprecated-declarations] 433 | hookresult = PyEval_CallObject(hook, hookargs); | ^~~~~~~~~~ In file included from /usr/include/python3.10/Python.h:130, from src/apsw.c:75: /usr/include/python3.10/ceval.h:17:43: note: declared here 17 | Py_DEPRECATED(3.9) PyAPI_FUNC(PyObject *) PyEval_CallObjectWithKeywords( | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/apsw.c:152: src/connection.c: In function ‘rollbackhookcb’: src/connection.c:995:3: warning: ‘PyEval_CallObjectWithKeywords’ is deprecated [-Wdeprecated-declarations] 995 | retval = PyEval_CallObject(self->rollbackhook, NULL); | ^~~~~~ In file included from /usr/include/python3.10/Python.h:130, from src/apsw.c:75: /usr/include/python3.10/ceval.h:17:43: note: declared here 17 | Py_DEPRECATED(3.9) PyAPI_FUNC(PyObject *) PyEval_CallObjectWithKeywords( | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/apsw.c:152: src/connection.c: In function ‘commithookcb’: src/connection.c:1133:3: warning: ‘PyEval_CallObjectWithKeywords’ is deprecated [-Wdeprecated-declarations] 1133 | retval = PyEval_CallObject(self->commithook, NULL); | ^~~~~~ In file included from /usr/include/python3.10/Python.h:130, from src/apsw.c:75: /usr/include/python3.10/ceval.h:17:43: note: declared here 17 | Py_DEPRECATED(3.9) PyAPI_FUNC(PyObject *) PyEval_CallObjectWithKeywords( | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/apsw.c:152: src/connection.c: In function ‘walhookcb’: src/connection.c:1211:3: warning: ‘PyEval_CallFunction’ is deprecated [-Wdeprecated-declarations] 1211 | retval = PyEval_CallFunction(self->walhook, "(OO&i)", self, convertutf8string, dbname, npages); | ^~~~~~ In file included from /usr/include/python3.10/Python.h:130, from src/apsw.c:75: /usr/include/python3.10/ceval.h:26:43: note: declared here 26 | Py_DEPRECATED(3.9) PyAPI_FUNC(PyObject *) PyEval_CallFunction( | ^~~~~~~~~~~~~~~~~~~ In file included from src/apsw.c:152: src/connection.c: In function ‘progresshandlercb’: src/connection.c:1299:3: warning: ‘PyEval_CallObjectWithKeywords’ is deprecated [-Wdeprecated-declarations] 1299 | retval = PyEval_CallObject(self->progresshandler, NULL); | ^~~~~~ In file included from /usr/include/python3.10/Python.h:130, from src/apsw.c:75: /usr/include/python3.10/ceval.h:17:43: note: declared here 17 | Py_DEPRECATED(3.9) PyAPI_FUNC(PyObject *) PyEval_CallObjectWithKeywords( | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/apsw.c:152: src/connection.c: In function ‘collationneeded_cb’: src/connection.c:1507:5: warning: ‘PyEval_CallFunction’ is deprecated [-Wdeprecated-declarations] 1507 | res = PyEval_CallFunction(self->collationneeded, "(OO)", self, pyname); | ^~~ In file included from /usr/include/python3.10/Python.h:130, from src/apsw.c:75: /usr/include/python3.10/ceval.h:26:43: note: declared here 26 | Py_DEPRECATED(3.9) PyAPI_FUNC(PyObject *) PyEval_CallFunction( | ^~~~~~~~~~~~~~~~~~~ In file included from src/apsw.c:152: src/connection.c: In function ‘Connection_serialize’: src/connection.c:1728:28: warning: pointer targets in passing argument 1 of ‘PyBytes_FromStringAndSize’ differ in signedness [-Wpointer-sign] 1728 | pyres = converttobytes(serialization, size); | ^~~~~~~~~~~~~ | | | unsigned char * In file included from /usr/include/python3.10/Python.h:82, from src/apsw.c:75: /usr/include/python3.10/bytesobject.h:34:50: note: expected ‘const char *’ but argument is of type ‘unsigned char *’ 34 | PyAPI_FUNC(PyObject *) PyBytes_FromStringAndSize(const char *, Py_ssize_t); | ^~~~~~~~~~~~ In file included from src/apsw.c:152: src/connection.c:1710:7: warning: unused variable ‘res’ [-Wunused-variable] 1710 | int res = SQLITE_OK; | ^~~ In file included from src/apsw.c:143: src/connection.c: In function ‘Connection_deserialize’: src/connection.c:1795:67: warning: pointer targets in passing argument 3 of ‘sqlite3_deserialize’ differ in signedness [-Wpointer-sign] 1795 | PYSQLITE_CON_CALL(res = sqlite3_deserialize(self->db, dbname, newcontents, buflen, buflen, SQLITE_DESERIALIZE_RESIZEABLE | SQLITE_DESERIALIZE_FREEONCLOSE)); | ^~~~~~~~~~~ | | | char * src/util.c:62:7: note: in definition of macro ‘INUSE_CALL’ 62 | x; \ | ^ src/util.c:72:41: note: in expansion of macro ‘_PYSQLITE_CALL_E’ 72 | #define PYSQLITE_CON_CALL(y) INUSE_CALL(_PYSQLITE_CALL_E(self->db, y)) | ^~~~~~~~~~~~~~~~ src/connection.c:1795:5: note: in expansion of macro ‘PYSQLITE_CON_CALL’ 1795 | PYSQLITE_CON_CALL(res = sqlite3_deserialize(self->db, dbname, newcontents, buflen, buflen, SQLITE_DESERIALIZE_RESIZEABLE | SQLITE_DESERIALIZE_FREEONCLOSE)); | ^~~~~~~~~~~~~~~~~ In file included from src/apsw.c:59: /usr/include/sqlite3.h:10030:18: note: expected ‘unsigned char *’ but argument is of type ‘char *’ 10030 | unsigned char *pData, /* The serialized database content */ | ~~~~~~~~~~~~~~~^~~~~ In file included from src/apsw.c:152: src/connection.c: In function ‘cbdispatch_func’: src/connection.c:2169:3: warning: ‘PyEval_CallObjectWithKeywords’ is deprecated [-Wdeprecated-declarations] 2169 | retval = PyEval_CallObject(cbinfo->scalarfunc, pyargs); | ^~~~~~ In file included from /usr/include/python3.10/Python.h:130, from src/apsw.c:75: /usr/include/python3.10/ceval.h:17:43: note: declared here 17 | Py_DEPRECATED(3.9) PyAPI_FUNC(PyObject *) PyEval_CallObjectWithKeywords( | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/apsw.c:152: src/connection.c: In function ‘getaggregatefunctioncontext’: src/connection.c:2210:3: warning: ‘PyEval_CallObjectWithKeywords’ is deprecated [-Wdeprecated-declarations] 2210 | retval = PyEval_CallObject(cbinfo->aggregatefactory, NULL); | ^~~~~~ In file included from /usr/include/python3.10/Python.h:130, from src/apsw.c:75: /usr/include/python3.10/ceval.h:17:43: note: declared here 17 | Py_DEPRECATED(3.9) PyAPI_FUNC(PyObject *) PyEval_CallObjectWithKeywords( | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/apsw.c:152: src/connection.c: In function ‘cbdispatch_step’: src/connection.c:2289:3: warning: ‘PyEval_CallObjectWithKeywords’ is deprecated [-Wdeprecated-declarations] 2289 | retval = PyEval_CallObject(aggfc->stepfunc, pyargs); | ^~~~~~ In file included from /usr/include/python3.10/Python.h:130, from src/apsw.c:75: /usr/include/python3.10/ceval.h:17:43: note: declared here 17 | Py_DEPRECATED(3.9) PyAPI_FUNC(PyObject *) PyEval_CallObjectWithKeywords( | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/apsw.c:167: src/vfs.c: In function ‘apswvfs_excepthook’: src/vfs.c:281:3: warning: ‘PyEval_CallObjectWithKeywords’ is deprecated [-Wdeprecated-declarations] 281 | return PyEval_CallObject(excepthook, args); | ^~~~~~ In file included from /usr/include/python3.10/Python.h:130, from src/apsw.c:75: /usr/include/python3.10/ceval.h:17:43: note: declared here 17 | Py_DEPRECATED(3.9) PyAPI_FUNC(PyObject *) PyEval_CallObjectWithKeywords( | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/apsw.c: In function ‘apsw_logger’: src/apsw.c:319:5: warning: ‘PyEval_CallFunction’ is deprecated [-Wdeprecated-declarations] 319 | res = PyEval_CallFunction(arg, "iO", errcode, msgaspystring); | ^~~ In file included from /usr/include/python3.10/Python.h:130, from src/apsw.c:75: /usr/include/python3.10/ceval.h:26:43: note: declared here 26 | Py_DEPRECATED(3.9) PyAPI_FUNC(PyObject *) PyEval_CallFunction( | ^~~~~~~~~~~~~~~~~~~ src/apsw.c: In function ‘formatsqlvalue’: src/apsw.c:1081:5: warning: ‘PyUnicode_FromUnicode’ is deprecated [-Wdeprecated-declarations] 1081 | unires = PyUnicode_FromUnicode(NULL, PyUnicode_GET_SIZE(value) + 2); | ^~~~~~ In file included from /usr/include/python3.10/unicodeobject.h:1046, from /usr/include/python3.10/Python.h:83, from src/apsw.c:75: /usr/include/python3.10/cpython/unicodeobject.h:551:42: note: declared here 551 | Py_DEPRECATED(3.3) PyAPI_FUNC(PyObject*) PyUnicode_FromUnicode( | ^~~~~~~~~~~~~~~~~~~~~ src/apsw.c:1081:5: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations] 1081 | unires = PyUnicode_FromUnicode(NULL, PyUnicode_GET_SIZE(value) + 2); | ^~~~~~ In file included from /usr/include/python3.10/unicodeobject.h:1046, from /usr/include/python3.10/Python.h:83, from src/apsw.c:75: /usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ src/apsw.c:1081:5: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations] 1081 | unires = PyUnicode_FromUnicode(NULL, PyUnicode_GET_SIZE(value) + 2); | ^~~~~~ In file included from /usr/include/python3.10/unicodeobject.h:1046, from /usr/include/python3.10/Python.h:83, from src/apsw.c:75: /usr/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ src/apsw.c:1081:5: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations] 1081 | unires = PyUnicode_FromUnicode(NULL, PyUnicode_GET_SIZE(value) + 2); | ^~~~~~ In file included from /usr/include/python3.10/unicodeobject.h:1046, from /usr/include/python3.10/Python.h:83, from src/apsw.c:75: /usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ src/apsw.c:1084:5: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations] 1084 | res = PyUnicode_AS_UNICODE(unires); | ^~~ In file included from /usr/include/python3.10/unicodeobject.h:1046, from /usr/include/python3.10/Python.h:83, from src/apsw.c:75: /usr/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ src/apsw.c:1086:5: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations] 1086 | memcpy(res, PyUnicode_AS_UNICODE(value), PyUnicode_GET_DATA_SIZE(value)); | ^~~~~~ In file included from /usr/include/python3.10/unicodeobject.h:1046, from /usr/include/python3.10/Python.h:83, from src/apsw.c:75: /usr/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ src/apsw.c:1086:5: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations] 1086 | memcpy(res, PyUnicode_AS_UNICODE(value), PyUnicode_GET_DATA_SIZE(value)); | ^~~~~~ In file included from /usr/include/python3.10/unicodeobject.h:1046, from /usr/include/python3.10/Python.h:83, from src/apsw.c:75: /usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ src/apsw.c:1086:5: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations] 1086 | memcpy(res, PyUnicode_AS_UNICODE(value), PyUnicode_GET_DATA_SIZE(value)); | ^~~~~~ In file included from /usr/include/python3.10/unicodeobject.h:1046, from /usr/include/python3.10/Python.h:83, from src/apsw.c:75: /usr/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ src/apsw.c:1086:5: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations] 1086 | memcpy(res, PyUnicode_AS_UNICODE(value), PyUnicode_GET_DATA_SIZE(value)); | ^~~~~~ In file included from /usr/include/python3.10/unicodeobject.h:1046, from /usr/include/python3.10/Python.h:83, from src/apsw.c:75: /usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ src/apsw.c:1087:5: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations] 1087 | res += PyUnicode_GET_SIZE(value); | ^~~ In file included from /usr/include/python3.10/unicodeobject.h:1046, from /usr/include/python3.10/Python.h:83, from src/apsw.c:75: /usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ src/apsw.c:1087:5: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations] 1087 | res += PyUnicode_GET_SIZE(value); | ^~~ In file included from /usr/include/python3.10/unicodeobject.h:1046, from /usr/include/python3.10/Python.h:83, from src/apsw.c:75: /usr/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ src/apsw.c:1087:5: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations] 1087 | res += PyUnicode_GET_SIZE(value); | ^~~ In file included from /usr/include/python3.10/unicodeobject.h:1046, from /usr/include/python3.10/Python.h:83, from src/apsw.c:75: /usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ src/apsw.c:1090:5: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations] 1090 | res = PyUnicode_AS_UNICODE(unires) + 1; | ^~~ In file included from /usr/include/python3.10/unicodeobject.h:1046, from /usr/include/python3.10/Python.h:83, from src/apsw.c:75: /usr/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ src/apsw.c:1091:5: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations] 1091 | left = PyUnicode_GET_SIZE(value); | ^~~~ In file included from /usr/include/python3.10/unicodeobject.h:1046, from /usr/include/python3.10/Python.h:83, from src/apsw.c:75: /usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ src/apsw.c:1091:5: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations] 1091 | left = PyUnicode_GET_SIZE(value); | ^~~~ In file included from /usr/include/python3.10/unicodeobject.h:1046, from /usr/include/python3.10/Python.h:83, from src/apsw.c:75: /usr/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ src/apsw.c:1091:5: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations] 1091 | left = PyUnicode_GET_SIZE(value); | ^~~~ In file included from /usr/include/python3.10/unicodeobject.h:1046, from /usr/include/python3.10/Python.h:83, from src/apsw.c:75: /usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ src/apsw.c:1099:9: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations] 1099 | APSW_FAULT_INJECT(FormatSQLValueResizeFails, | ^~~~~~~~~~~~~~~~~ In file included from /usr/include/python3.10/unicodeobject.h:1046, from /usr/include/python3.10/Python.h:83, from src/apsw.c:75: /usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ src/apsw.c:1099:9: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations] 1099 | APSW_FAULT_INJECT(FormatSQLValueResizeFails, | ^~~~~~~~~~~~~~~~~ In file included from /usr/include/python3.10/unicodeobject.h:1046, from /usr/include/python3.10/Python.h:83, from src/apsw.c:75: /usr/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ src/apsw.c:1099:9: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations] 1099 | APSW_FAULT_INJECT(FormatSQLValueResizeFails, | ^~~~~~~~~~~~~~~~~ In file included from /usr/include/python3.10/unicodeobject.h:1046, from /usr/include/python3.10/Python.h:83, from src/apsw.c:75: /usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ src/apsw.c:1107:9: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations] 1107 | res = PyUnicode_AS_UNICODE(unires) + (PyUnicode_GET_SIZE(unires) - left - moveamount - 1); | ^~~ In file included from /usr/include/python3.10/unicodeobject.h:1046, from /usr/include/python3.10/Python.h:83, from src/apsw.c:75: /usr/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ src/apsw.c:1107:9: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations] 1107 | res = PyUnicode_AS_UNICODE(unires) + (PyUnicode_GET_SIZE(unires) - left - moveamount - 1); | ^~~ In file included from /usr/include/python3.10/unicodeobject.h:1046, from /usr/include/python3.10/Python.h:83, from src/apsw.c:75: /usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ src/apsw.c:1107:9: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations] 1107 | res = PyUnicode_AS_UNICODE(unires) + (PyUnicode_GET_SIZE(unires) - left - moveamount - 1); | ^~~ In file included from /usr/include/python3.10/unicodeobject.h:1046, from /usr/include/python3.10/Python.h:83, from src/apsw.c:75: /usr/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ src/apsw.c:1107:9: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations] 1107 | res = PyUnicode_AS_UNICODE(unires) + (PyUnicode_GET_SIZE(unires) - left - moveamount - 1); | ^~~ In file included from /usr/include/python3.10/unicodeobject.h:1046, from /usr/include/python3.10/Python.h:83, from src/apsw.c:75: /usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ src/apsw.c:1155:5: warning: ‘PyUnicode_FromUnicode’ is deprecated [-Wdeprecated-declarations] 1155 | APSW_FAULT_INJECT(FormatSQLValuePyUnicodeFromUnicodeFails, | ^~~~~~~~~~~~~~~~~ In file included from /usr/include/python3.10/unicodeobject.h:1046, from /usr/include/python3.10/Python.h:83, from src/apsw.c:75: /usr/include/python3.10/cpython/unicodeobject.h:551:42: note: declared here 551 | Py_DEPRECATED(3.3) PyAPI_FUNC(PyObject*) PyUnicode_FromUnicode( | ^~~~~~~~~~~~~~~~~~~~~ src/apsw.c:1164:5: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations] 1164 | res = PyUnicode_AS_UNICODE(unires); | ^~~ In file included from /usr/include/python3.10/unicodeobject.h:1046, from /usr/include/python3.10/Python.h:83, from src/apsw.c:75: /usr/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ src/apsw.c: In function ‘PyInit_apsw’: src/apsw.c:1312:3: warning: ‘PyEval_InitThreads’ is deprecated [-Wdeprecated-declarations] 1312 | PyEval_InitThreads(); | ^~~~~~~~~~~~~~~~~~ In file included from /usr/include/python3.10/Python.h:130, from src/apsw.c:75: /usr/include/python3.10/ceval.h:122:37: note: declared here 122 | Py_DEPRECATED(3.9) PyAPI_FUNC(void) PyEval_InitThreads(void); | ^~~~~~~~~~~~~~~~~~ creating build/lib.linux-riscv64-3.10 gcc -pthread -shared -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto -march=rv64gc -mabi=lp64d -O2 -pipe -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -flto build/temp.linux-riscv64-3.10/src/apsw.o -L/usr/lib -lsqlite3 -o build/lib.linux-riscv64-3.10/apsw.cpython-310-riscv64-linux-gnu.so