You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
python3 setup.py build
/mnt/d/WSL2/wallet-core-python/setup.py:19: 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
running build
running build_ext
building 'walletcore' extension
creating build
creating build/temp.linux-x86_64-3.10
creating build/temp.linux-x86_64-3.10/src
creating build/temp.linux-x86_64-3.10/src/generated
/usr/bin/clang -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Iwallet-core/include -Isrc -I/usr/include/python3.10 -c src/AnySigner.cc -o build/temp.linux-x86_64-3.10/src/AnySigner.o -std=c++17
In file included from src/AnySigner.cc:17:
In file included from src/AnySigner.h:20:
In file included from /usr/include/python3.10/Python.h:30:
src/string.h:35:1: error: unknown type name 'PyObject'
PyObject* PyUnicode_FromTWString(const TWStringPtr& str);
^
src/string.h:38:35: error: unknown type name 'PyObject'
TWStringPtr PyUnicode_GetTWString(PyObject* object);
^
In file included from src/AnySigner.cc:17:
In file included from src/AnySigner.h:20:
In file included from /usr/include/python3.10/Python.h:83:
In file included from /usr/include/python3.10/unicodeobject.h:1046:
/usr/include/python3.10/cpython/unicodeobject.h:55:5: error: use of undeclared identifier 'memcpy'; did you mean 'wmemcpy'?
memcpy(target, source, (size_t)(length) * sizeof(Py_UNICODE));
^~~~~~
wmemcpy
/usr/include/x86_64-linux-gnu/bits/wchar2.h:39:8: note: 'wmemcpy' declared here
__NTH (wmemcpy (wchar_t *__restrict __s1, const wchar_t *__restrict __s2,
^
In file included from src/AnySigner.cc:17:
In file included from src/AnySigner.h:20:
In file included from /usr/include/python3.10/Python.h:110:
In file included from /usr/include/python3.10/genobject.h:12:
In file included from /usr/include/python3.10/abstract.h:866:
/usr/include/python3.10/cpython/abstract.h:76:5: error: use of undeclared identifier 'memcpy'; did you mean 'wmemcpy'?
memcpy(&ptr, (char *) callable + offset, sizeof(ptr));
^~~~~~
wmemcpy
/usr/include/x86_64-linux-gnu/bits/wchar2.h:39:8: note: 'wmemcpy' declared here
__NTH (wmemcpy (wchar_t *__restrict __s1, const wchar_t *__restrict __s2,
^
In file included from src/AnySigner.cc:17:
In file included from src/AnySigner.h:20:
In file included from /usr/include/python3.10/Python.h:110:
In file included from /usr/include/python3.10/genobject.h:12:
In file included from /usr/include/python3.10/abstract.h:866:
/usr/include/python3.10/cpython/abstract.h:76:12: error: cannot initialize a parameter of type 'wchar_t *' with an rvalue of type 'vectorcallfunc *' (aka '_object *(**)(_object *, _object *const *, unsigned long, _object *)')
memcpy(&ptr, (char *) callable + offset, sizeof(ptr));
^~~~
/usr/include/x86_64-linux-gnu/bits/wchar2.h:39:37: note: passing argument to parameter '__s1' here
__NTH (wmemcpy (wchar_t *__restrict __s1, const wchar_t *__restrict __s2,
^
src/AnySigner.cc:20:10: warning: non-portable path to file '"string.h"'; specified path differs in case from file name on disk [-Wnonportable-include-path]
#include "String.h"
^~~~~~~~~~
"string.h"
1 warning and 5 errors generated.
error: command '/usr/bin/clang' failed with exit code 1
The text was updated successfully, but these errors were encountered:
python3 setup.py build
/mnt/d/WSL2/wallet-core-python/setup.py:19: 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
running build
running build_ext
building 'walletcore' extension
creating build
creating build/temp.linux-x86_64-3.10
creating build/temp.linux-x86_64-3.10/src
creating build/temp.linux-x86_64-3.10/src/generated
/usr/bin/clang -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Iwallet-core/include -Isrc -I/usr/include/python3.10 -c src/AnySigner.cc -o build/temp.linux-x86_64-3.10/src/AnySigner.o -std=c++17
In file included from src/AnySigner.cc:17:
In file included from src/AnySigner.h:20:
In file included from /usr/include/python3.10/Python.h:30:
src/string.h:35:1: error: unknown type name 'PyObject'
PyObject* PyUnicode_FromTWString(const TWStringPtr& str);
^
src/string.h:38:35: error: unknown type name 'PyObject'
TWStringPtr PyUnicode_GetTWString(PyObject* object);
^
In file included from src/AnySigner.cc:17:
In file included from src/AnySigner.h:20:
In file included from /usr/include/python3.10/Python.h:83:
In file included from /usr/include/python3.10/unicodeobject.h:1046:
/usr/include/python3.10/cpython/unicodeobject.h:55:5: error: use of undeclared identifier 'memcpy'; did you mean 'wmemcpy'?
memcpy(target, source, (size_t)(length) * sizeof(Py_UNICODE));
^~~~~~
wmemcpy
/usr/include/x86_64-linux-gnu/bits/wchar2.h:39:8: note: 'wmemcpy' declared here
__NTH (wmemcpy (wchar_t *__restrict __s1, const wchar_t *__restrict __s2,
^
In file included from src/AnySigner.cc:17:
In file included from src/AnySigner.h:20:
In file included from /usr/include/python3.10/Python.h:110:
In file included from /usr/include/python3.10/genobject.h:12:
In file included from /usr/include/python3.10/abstract.h:866:
/usr/include/python3.10/cpython/abstract.h:76:5: error: use of undeclared identifier 'memcpy'; did you mean 'wmemcpy'?
memcpy(&ptr, (char *) callable + offset, sizeof(ptr));
^~~~~~
wmemcpy
/usr/include/x86_64-linux-gnu/bits/wchar2.h:39:8: note: 'wmemcpy' declared here
__NTH (wmemcpy (wchar_t *__restrict __s1, const wchar_t *__restrict __s2,
^
In file included from src/AnySigner.cc:17:
In file included from src/AnySigner.h:20:
In file included from /usr/include/python3.10/Python.h:110:
In file included from /usr/include/python3.10/genobject.h:12:
In file included from /usr/include/python3.10/abstract.h:866:
/usr/include/python3.10/cpython/abstract.h:76:12: error: cannot initialize a parameter of type 'wchar_t *' with an rvalue of type 'vectorcallfunc *' (aka '_object *(**)(_object *, _object *const *, unsigned long, _object *)')
memcpy(&ptr, (char *) callable + offset, sizeof(ptr));
^~~~
/usr/include/x86_64-linux-gnu/bits/wchar2.h:39:37: note: passing argument to parameter '__s1' here
__NTH (wmemcpy (wchar_t *__restrict __s1, const wchar_t *__restrict __s2,
^
src/AnySigner.cc:20:10: warning: non-portable path to file '"string.h"'; specified path differs in case from file name on disk [-Wnonportable-include-path]
#include "String.h"
^~~~~~~~~~
"string.h"
1 warning and 5 errors generated.
error: command '/usr/bin/clang' failed with exit code 1
The text was updated successfully, but these errors were encountered: