ProductName: macOS
ProductVersion: 12.4
BuildVersion: 21F79
Python version number 3.9.10
Apple clang version 13.1.6 (clang-1316.0.21.2.5)
Target: arm64-apple-darwin21.5.0
The wallet-core build was successful but the 'python setup.py build' failed:
(venv) ➜ wallet-core-python git:(main) ✗ python setup.py build
running build
running build_ext
building 'walletcore' extension
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch arm64 -arch x86_64 -g -Iwallet-core/include -Isrc -I/Users/idanshperling/dev/krayon-monorepo/krayon-django/venv/include -I/Library/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c src/AnySigner.cc -o build/temp.macosx-10.9-universal2-3.9/src/AnySigner.o -std=c++17
In file included from src/AnySigner.cc:17:
In file included from src/AnySigner.h:20:
/Library/Frameworks/Python.framework/Versions/3.9/include/python3.9/Python.h:30:10: warning: non-portable path to file ''; specified path differs in case from file name on disk [-Wnonportable-include-path]
include
^~~~~~~~~~
<String.h>
In file included from src/AnySigner.cc:17:
In file included from src/AnySigner.h:20:
In file included from /Library/Frameworks/Python.framework/Versions/3.9/include/python3.9/Python.h:30:
In file included from src/string.h:19:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/memory:681:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/memory/raw_storage_iterator.h:16:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/iterator:582:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/iterator/common_iterator.h:22:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/variant:204:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/functional/hash.h:40:12: error: reference to unresolved using declaration
_VSTD::memcpy(&r, p, sizeof(r));
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cstring:69:1: note: using declaration annotated with 'using_if_exists' here
using ::memcpy _LIBCPP_USING_IF_EXISTS;
^
In file included from src/AnySigner.cc:17:
In file included from src/AnySigner.h:20:
In file included from /Library/Frameworks/Python.framework/Versions/3.9/include/python3.9/Python.h:30:
In file included from src/string.h:19:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/memory:682:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/memory/shared_ptr.h:35:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/atomic:669:19: error: reference to unresolved using declaration
return _VSTD::memcmp(&lhs, &rhs, sizeof(_Tp)) == 0;
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cstring:75:1: note: using declaration annotated with 'using_if_exists' here
using ::memcmp _LIBCPP_USING_IF_EXISTS;
^
In file included from src/AnySigner.cc:17:
In file included from src/AnySigner.h:20:
In file included from /Library/Frameworks/Python.framework/Versions/3.9/include/python3.9/Python.h:30:
In file included from src/string.h:19:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/memory:740:16: error: reference to unresolved using declaration
_VSTD::memcpy(begin2, begin1, _Np sizeof(_Tp));
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cstring:69:1: note: using declaration annotated with 'using_if_exists' here
using ::memcpy _LIBCPP_USING_IF_EXISTS;
^
In file included from src/AnySigner.cc:17:
In file included from src/AnySigner.h:20:
In file included from /Library/Frameworks/Python.framework/Versions/3.9/include/python3.9/Python.h:30:
In file included from src/string.h:19:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/memory:767:16: error: reference to unresolved using declaration
_VSTD::memcpy(const_cast<_RawDest>(begin2), begin1, _Np sizeof(_Dest));
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cstring:69:1: note: using declaration annotated with 'using_if_exists' here
using ::memcpy _LIBCPP_USING_IF_EXISTS;
^
In file included from src/AnySigner.cc:17:
In file included from src/AnySigner.h:20:
In file included from /Library/Frameworks/Python.framework/Versions/3.9/include/python3.9/Python.h:30:
In file included from src/string.h:19:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/memory:799:16: error: reference to unresolved using declaration
_VSTD::memcpy(static_cast<void>(end2), static_cast<void const>(__begin1), _Np sizeof(_Tp));
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cstring:69:1: note: using declaration annotated with 'using_if_exists' here
using ::memcpy _LIBCPP_USING_IF_EXISTS;
^
In file included from src/AnySigner.cc:17:
In file included from src/AnySigner.h:20:
In file included from /Library/Frameworks/Python.framework/Versions/3.9/include/python3.9/Python.h:30:
In file included from src/string.h:19:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/memory:799:9: error: excess elements in scalar initializer
_VSTD::memcpy(static_cast<void>(__end2), static_cast<void const>(begin1), _Np * sizeof(_Tp));
^ ~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/config:858:15: note: expanded from macro '_VSTD'
define _VSTD std::_LIBCPP_ABI_NAMESPACE
^
In file included from src/AnySigner.cc:17:
In file included from src/AnySigner.h:20:
In file included from /Library/Frameworks/Python.framework/Versions/3.9/include/python3.9/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 /Library/Frameworks/Python.framework/Versions/3.9/include/python3.9/Python.h:93:
In file included from /Library/Frameworks/Python.framework/Versions/3.9/include/python3.9/unicodeobject.h:1026:
/Library/Frameworks/Python.framework/Versions/3.9/include/python3.9/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
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/wchar.h:152:10: note: 'wmemcpy' declared here
wchar_t wmemcpy(wchar_t __restrict, const wchar_t restrict, size_t);
^
In file included from src/AnySigner.cc:17:
In file included from src/AnySigner.h:20:
In file included from /Library/Frameworks/Python.framework/Versions/3.9/include/python3.9/Python.h:146:
In file included from /Library/Frameworks/Python.framework/Versions/3.9/include/python3.9/abstract.h:843:
/Library/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/abstract.h:80:5: error: use of undeclared identifier 'memcpy'; did you mean 'wmemcpy'?
memcpy(&ptr, (char ) callable + offset, sizeof(ptr));
^~
wmemcpy
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/wchar.h:152:10: note: 'wmemcpy' declared here
wchar_t wmemcpy(wchar_t __restrict, const wchar_t restrict, size_t);
^
In file included from src/AnySigner.cc:17:
In file included from src/AnySigner.h:20:
In file included from /Library/Frameworks/Python.framework/Versions/3.9/include/python3.9/Python.h:146:
In file included from /Library/Frameworks/Python.framework/Versions/3.9/include/python3.9/abstract.h:843:
/Library/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/abstract.h:80: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));
^~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/wchar.h:152:38: note: passing argument to parameter here
wchar_t wmemcpy(wchar_t restrict, const wchar_t * __restrict, size_t);
^
In file included from src/AnySigner.cc:17:
In file included from src/AnySigner.h:20:
In file included from /Library/Frameworks/Python.framework/Versions/3.9/include/python3.9/Python.h:30:
In file included from src/String.h:19:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/memory:681:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/memory/raw_storage_iterator.h:16:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/iterator:582:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/iterator/common_iterator.h:22:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/variant:204:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/hash.h:40:5: error: excess elements in scalar initializer
_VSTD::memcpy(&r, p, sizeof(r));
^ ~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__config:858:15: note: expanded from macro '_VSTD'
define _VSTD std::_LIBCPP_ABI_NAMESPACE
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/functional/hash.h:138:28: note: in instantiation of function template specialization 'std::loadword' requested here
const uint32_t a = loadword(s);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/functional/hash.h:229:14: note: in instantiation of member function 'std::murmur2_or_cityhash<unsigned long, 64>::hash_len_0_to_16' requested here
return hash_len_0_to_16(s, len);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/functional/hash.h:347:16: note: in instantiation of member function 'std::murmur2_or_cityhash<unsigned long, 64>::operator()' requested here
return murmur2_or_cityhash()(&u, sizeof(u));
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/functional/hash.h:421:20: note: in instantiation of member function 'std::scalar_hash<std::_PairT, 2>::operator()' requested here
return _HashT()(p);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/functional/hash.h:40:5: error: excess elements in scalar initializer
_VSTD::memcpy(&r, p, sizeof(r));
^ ~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/config:858:15: note: expanded from macro '_VSTD'
define _VSTD std::_LIBCPP_ABI_NAMESPACE
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/functional/hash.h:239:15: note: in instantiation of function template specialization 'std::loadword' requested here
_Size x = loadword<_Size>(s + len - 40);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/functional/hash.h:347:16: note: in instantiation of member function 'std::murmur2_or_cityhash<unsigned long, 64>::operator()' requested here
return murmur2_or_cityhash()(&u, sizeof(u));
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/functional/hash.h:421:20: note: in instantiation of member function 'std::scalar_hash<std::_PairT, 2>::operator()' requested here
return _HashT()(p);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/functional/hash.h:185:42: error: no matching function for call to 'loadword'
return weak_hash_len_32_with_seeds(__loadword<_Size>(s),
^~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/functional/hash.h:244:28: note: in instantiation of member function 'std::murmur2_or_cityhash<unsigned long, 64>::weak_hash_len_32_with_seeds' requested here
pair<_Size, _Size> v = weak_hash_len_32_with_seeds(s + len - 64, len, z);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/functional/hash.h:347:16: note: in instantiation of member function 'std::murmur2_or_cityhash<unsigned long, 64>::operator()' requested here
return murmur2_or_cityhash()(&u, sizeof(u));
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/functional/hash.h:421:20: note: in instantiation of member function 'std::scalar_hash<std::_PairT, 2>::operator()' requested here
return _HashT()(p);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/functional/hash.h:37:1: note: candidate template ignored: substitution failure [with _Size = unsigned long]
loadword(const void* p)
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/functional/hash.h:186:42: error: no matching function for call to 'loadword'
loadword<_Size>(s + 8),
^~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/functional/hash.h:37:1: note: candidate template ignored: substitution failure [with _Size = unsigned long]
loadword(const voidp)
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/functional/hash.h:187:42: error: no matching function for call to 'loadword'
loadword<_Size>(s + 16),
^~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/functional/hash.h:37:1: note: candidate template ignored: substitution failure [with _Size = unsigned long]
__loadword(const voidp)
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/functional/hash.h:188:42: error: no matching function for call to 'loadword'
loadword<_Size>(s + 24),
^~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/functional/hash.h:37:1: note: candidate template ignored: substitution failure [with _Size = unsigned long]
loadword(const void* p)
^
In file included from src/AnySigner.cc:17:
In file included from src/AnySigner.h:20:
In file included from /Library/Frameworks/Python.framework/Versions/3.9/include/python3.9/Python.h:30:
In file included from src/String.h:19:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/memory:682:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/memory/shared_ptr.h:35:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/atomic:669:12: error: excess elements in scalar initializer
return _VSTD::memcmp(&lhs, &__rhs, sizeof(_Tp)) == 0;
^ ~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__config:858:15: note: expanded from macro '_VSTD'
define _VSTD std::_LIBCPP_ABI_NAMESPACE
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/atomic:1599:17: note: in instantiation of function template specialization 'std::cxx_nonatomic_compare_equal' requested here
return !__cxx_nonatomic_compare_equal(cxx_atomic_load(a, order), val);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/thread/poll_with_backoff.h:39:11: note: in instantiation of member function 'std::cxx_atomic_wait_test_fn_impl<const volatile std::cxx_atomic_impl, bool>::operator()' requested here
if (f())
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/atomic:1570:12: note: in instantiation of function template specialization 'std::libcpp_thread_poll_with_backoff<std::cxx_atomic_wait_test_fn_impl<const volatile std::cxx_atomic_impl, bool> &, std::libcpp_atomic_wait_backoff_impl<const volatile std::cxx_atomic_impl, std::cxx_atomic_wait_test_fn_impl<const volatile std::cxx_atomic_impl, bool>> &>' requested here
return libcpp_thread_poll_with_backoff(__test_fn, backoff_fn);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/atomic:1608:12: note: in instantiation of function template specialization 'std::cxx_atomic_wait<const volatile std::cxx_atomic_impl, std::cxx_atomic_wait_test_fn_impl<const volatile std::cxx_atomic_impl, bool> &>' requested here
return cxx_atomic_wait(a, test_fn);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/atomic:2564:10: note: in instantiation of function template specialization 'std::cxx_atomic_wait<const volatile std::cxx_atomic_impl, bool>' requested here
{cxx_atomic_wait(&a_, _LIBCPP_ATOMIC_FLAG_TYPE(v), m);}
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/atomic:1599:17: error: no matching function for call to '__cxx_nonatomic_compare_equal'
return !cxx_nonatomic_compare_equal(cxx_atomic_load(a, order), val);
^~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/thread/poll_with_backoff.h:39:11: note: in instantiation of member function 'std::cxx_atomic_wait_test_fn_impl<const std::cxx_atomic_impl, bool>::operator()' requested here
if (f())
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/atomic:1570:12: note: in instantiation of function template specialization 'std::libcpp_thread_poll_with_backoff<std::cxx_atomic_wait_test_fn_impl<const std::cxx_atomic_impl, bool> &, std::libcpp_atomic_wait_backoff_impl<const std::cxx_atomic_impl, std::cxx_atomic_wait_test_fn_impl<const std::cxx_atomic_impl, bool>> &>' requested here
return libcpp_thread_poll_with_backoff(test_fn, __backoff_fn);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/atomic:1608:12: note: in instantiation of function template specialization 'std::cxx_atomic_wait<const std::cxx_atomic_impl, std::cxx_atomic_wait_test_fn_impl<const std::cxx_atomic_impl, bool> &>' requested here
return cxx_atomic_wait(a, test_fn);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/atomic:2567:10: note: in instantiation of function template specialization 'std::cxx_atomic_wait<const std::cxx_atomic_impl, bool>' requested here
{cxx_atomic_wait(&a_, _LIBCPP_ATOMIC_FLAG_TYPE(v), m);}
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/atomic:668:6: note: candidate template ignored: substitution failure [with _Tp = bool]
bool cxx_nonatomic_compare_equal(_Tp const& lhs, _Tp const& __rhs) {
^
1 warning and 19 errors generated.
error: command '/usr/bin/clang' failed with exit code 1
and thanks for this python wrapper, really keen to run + test this
what are the system requirements? maybe I can build it on a specific container with a specific OS?
ProductName: macOS ProductVersion: 12.4 BuildVersion: 21F79 Python version number 3.9.10 Apple clang version 13.1.6 (clang-1316.0.21.2.5) Target: arm64-apple-darwin21.5.0
I followed these steps:
The wallet-core build was successful but the 'python setup.py build' failed:
(venv) ➜ wallet-core-python git:(main) ✗ python setup.py build running build running build_ext building 'walletcore' extension clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch arm64 -arch x86_64 -g -Iwallet-core/include -Isrc -I/Users/idanshperling/dev/krayon-monorepo/krayon-django/venv/include -I/Library/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c src/AnySigner.cc -o build/temp.macosx-10.9-universal2-3.9/src/AnySigner.o -std=c++17 In file included from src/AnySigner.cc:17: In file included from src/AnySigner.h:20: /Library/Frameworks/Python.framework/Versions/3.9/include/python3.9/Python.h:30:10: warning: non-portable path to file ''; specified path differs in case from file name on disk [-Wnonportable-include-path]
include
In file included from src/AnySigner.cc:17: In file included from src/AnySigner.h:20: In file included from /Library/Frameworks/Python.framework/Versions/3.9/include/python3.9/Python.h:30: In file included from src/string.h:19: In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/memory:681: In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/memory/raw_storage_iterator.h:16: In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/iterator:582: In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/iterator/common_iterator.h:22: In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/variant:204: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/functional/hash.h:40:12: error: reference to unresolved using declaration _VSTD::memcpy(&r, p, sizeof(r)); ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cstring:69:1: note: using declaration annotated with 'using_if_exists' here using ::memcpy _LIBCPP_USING_IF_EXISTS; ^ In file included from src/AnySigner.cc:17: In file included from src/AnySigner.h:20: In file included from /Library/Frameworks/Python.framework/Versions/3.9/include/python3.9/Python.h:30: In file included from src/string.h:19: In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/memory:682: In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/memory/shared_ptr.h:35: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/atomic:669:19: error: reference to unresolved using declaration return _VSTD::memcmp(&lhs, &rhs, sizeof(_Tp)) == 0; ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cstring:75:1: note: using declaration annotated with 'using_if_exists' here using ::memcmp _LIBCPP_USING_IF_EXISTS; ^ In file included from src/AnySigner.cc:17: In file included from src/AnySigner.h:20: In file included from /Library/Frameworks/Python.framework/Versions/3.9/include/python3.9/Python.h:30: In file included from src/string.h:19: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/memory:740:16: error: reference to unresolved using declaration _VSTD::memcpy(begin2, begin1, _Np sizeof(_Tp)); ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cstring:69:1: note: using declaration annotated with 'using_if_exists' here using ::memcpy _LIBCPP_USING_IF_EXISTS; ^ In file included from src/AnySigner.cc:17: In file included from src/AnySigner.h:20: In file included from /Library/Frameworks/Python.framework/Versions/3.9/include/python3.9/Python.h:30: In file included from src/string.h:19: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/memory:767:16: error: reference to unresolved using declaration _VSTD::memcpy(const_cast<_RawDest>(begin2), begin1, _Np sizeof(_Dest)); ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cstring:69:1: note: using declaration annotated with 'using_if_exists' here using ::memcpy _LIBCPP_USING_IF_EXISTS; ^ In file included from src/AnySigner.cc:17: In file included from src/AnySigner.h:20: In file included from /Library/Frameworks/Python.framework/Versions/3.9/include/python3.9/Python.h:30: In file included from src/string.h:19: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/memory:799:16: error: reference to unresolved using declaration _VSTD::memcpy(static_cast<void>(end2), static_cast<void const>(__begin1), _Np sizeof(_Tp)); ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cstring:69:1: note: using declaration annotated with 'using_if_exists' here using ::memcpy _LIBCPP_USING_IF_EXISTS; ^ In file included from src/AnySigner.cc:17: In file included from src/AnySigner.h:20: In file included from /Library/Frameworks/Python.framework/Versions/3.9/include/python3.9/Python.h:30: In file included from src/string.h:19: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/memory:799:9: error: excess elements in scalar initializer _VSTD::memcpy(static_cast<void>(__end2), static_cast<void const>(begin1), _Np * sizeof(_Tp)); ^
~~~~~~~~~~~/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/config:858:15: note: expanded from macro '_VSTD'define _VSTD std::_LIBCPP_ABI_NAMESPACE
In file included from src/AnySigner.cc:17: In file included from src/AnySigner.h:20: In file included from /Library/Frameworks/Python.framework/Versions/3.9/include/python3.9/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 /Library/Frameworks/Python.framework/Versions/3.9/include/python3.9/Python.h:93: In file included from /Library/Frameworks/Python.framework/Versions/3.9/include/python3.9/unicodeobject.h:1026: /Library/Frameworks/Python.framework/Versions/3.9/include/python3.9/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 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/wchar.h:152:10: note: 'wmemcpy' declared here wchar_t wmemcpy(wchar_t __restrict, const wchar_t restrict, size_t); ^ In file included from src/AnySigner.cc:17: In file included from src/AnySigner.h:20: In file included from /Library/Frameworks/Python.framework/Versions/3.9/include/python3.9/Python.h:146: In file included from /Library/Frameworks/Python.framework/Versions/3.9/include/python3.9/abstract.h:843: /Library/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/abstract.h:80:5: error: use of undeclared identifier 'memcpy'; did you mean 'wmemcpy'? memcpy(&ptr, (char ) callable + offset, sizeof(ptr)); ^~wmemcpy /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/wchar.h:152:10: note: 'wmemcpy' declared here wchar_t wmemcpy(wchar_t __restrict, const wchar_t restrict, size_t); ^ In file included from src/AnySigner.cc:17: In file included from src/AnySigner.h:20: In file included from /Library/Frameworks/Python.framework/Versions/3.9/include/python3.9/Python.h:146: In file included from /Library/Frameworks/Python.framework/Versions/3.9/include/python3.9/abstract.h:843: /Library/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/abstract.h:80: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)); ^~~~ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/wchar.h:152:38: note: passing argument to parameter here wchar_t wmemcpy(wchar_t restrict, const wchar_t * __restrict, size_t); ^ In file included from src/AnySigner.cc:17: In file included from src/AnySigner.h:20: In file included from /Library/Frameworks/Python.framework/Versions/3.9/include/python3.9/Python.h:30: In file included from src/String.h:19: In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/memory:681: In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/memory/raw_storage_iterator.h:16: In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/iterator:582: In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/iterator/common_iterator.h:22: In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/variant:204: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/hash.h:40:5: error: excess elements in scalar initializer _VSTD::memcpy(&r, p, sizeof(r)); ^~~~~~~ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__config:858:15: note: expanded from macro '_VSTD'define _VSTD std::_LIBCPP_ABI_NAMESPACE
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/functional/hash.h:138:28: note: in instantiation of function template specialization 'std::loadword' requested here
const uint32_t a = loadword(s);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/functional/hash.h:229:14: note: in instantiation of member function 'std::murmur2_or_cityhash<unsigned long, 64>::hash_len_0_to_16' requested here
return hash_len_0_to_16(s, len);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/functional/hash.h:347:16: note: in instantiation of member function 'std::murmur2_or_cityhash<unsigned long, 64>::operator()' requested here
return murmur2_or_cityhash()(&u, sizeof(u));
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/functional/hash.h:421:20: note: in instantiation of member function 'std::scalar_hash<std::_PairT, 2>::operator()' requested here
return _HashT()(p);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/functional/hash.h:40:5: error: excess elements in scalar initializer
_VSTD::memcpy(&r, p, sizeof(r));
^
~~~~~~ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/config:858:15: note: expanded from macro '_VSTD'define _VSTD std::_LIBCPP_ABI_NAMESPACE
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/functional/hash.h:239:15: note: in instantiation of function template specialization 'std::loadword' requested here
_Size x = loadword<_Size>(s + len - 40);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/functional/hash.h:347:16: note: in instantiation of member function 'std::murmur2_or_cityhash<unsigned long, 64>::operator()' requested here
return murmur2_or_cityhash()(&u, sizeof(u));
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/functional/hash.h:421:20: note: in instantiation of member function 'std::scalar_hash<std::_PairT, 2>::operator()' requested here
return _HashT()( p);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/functional/hash.h:185:42: error: no matching function for call to 'loadword'
return weak_hash_len_32_with_seeds(__loadword<_Size>(s),
^()(&u, sizeof(u));
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/functional/hash.h:421:20: note: in instantiation of member function 'std::scalar_hash<std::_PairT, 2>::operator()' requested here
return _HashT()(p);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/functional/hash.h:37:1: note: candidate template ignored: substitution failure [with _Size = unsigned long]
loadword(const void* p)
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/functional/hash.h:186:42: error: no matching function for call to 'loadword'
loadword<_Size>(s + 8),
^
~~~~ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/functional/hash.h:244:28: note: in instantiation of member function 'std::murmur2_or_cityhash<unsigned long, 64>::weak_hash_len_32_with_seeds' requested here pair<_Size, _Size> v = weak_hash_len_32_with_seeds(s + len - 64, len, z); ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/functional/hash.h:347:16: note: in instantiation of member function 'std::murmur2_or_cityhash<unsigned long, 64>::operator()' requested here return murmur2_or_cityhash~~~~ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/functional/hash.h:37:1: note: candidate template ignored: substitution failure [with _Size = unsigned long] loadword(const void p) ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/functional/hash.h:187:42: error: no matching function for call to 'loadword' loadword<_Size>(s + 16), ^~~~~ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/functional/hash.h:37:1: note: candidate template ignored: substitution failure [with _Size = unsigned long] __loadword(const void p) ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/functional/hash.h:188:42: error: no matching function for call to 'loadword' loadword<_Size>(s + 24), ^~~~~ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/functional/hash.h:37:1: note: candidate template ignored: substitution failure [with _Size = unsigned long] loadword(const void* p) ^ In file included from src/AnySigner.cc:17: In file included from src/AnySigner.h:20: In file included from /Library/Frameworks/Python.framework/Versions/3.9/include/python3.9/Python.h:30: In file included from src/String.h:19: In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/memory:682: In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/memory/shared_ptr.h:35: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/atomic:669:12: error: excess elements in scalar initializer return _VSTD::memcmp(&lhs, &__rhs, sizeof(_Tp)) == 0; ^~~~~~ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__config:858:15: note: expanded from macro '_VSTD'define _VSTD std::_LIBCPP_ABI_NAMESPACE
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/atomic:1599:17: note: in instantiation of function template specialization 'std::cxx_nonatomic_compare_equal' requested here
return !__cxx_nonatomic_compare_equal( cxx_atomic_load(a, order), val);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/thread/poll_with_backoff.h:39:11: note: in instantiation of member function 'std::cxx_atomic_wait_test_fn_impl<const volatile std::cxx_atomic_impl, bool>::operator()' requested here
if ( f())
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/atomic:1570:12: note: in instantiation of function template specialization 'std::libcpp_thread_poll_with_backoff<std::cxx_atomic_wait_test_fn_impl<const volatile std::cxx_atomic_impl, bool> &, std::libcpp_atomic_wait_backoff_impl<const volatile std::cxx_atomic_impl, std::cxx_atomic_wait_test_fn_impl<const volatile std::cxx_atomic_impl, bool>> &>' requested here
return libcpp_thread_poll_with_backoff(__test_fn, backoff_fn);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/atomic:1608:12: note: in instantiation of function template specialization 'std::cxx_atomic_wait<const volatile std::cxx_atomic_impl, std::cxx_atomic_wait_test_fn_impl<const volatile std::cxx_atomic_impl, bool> &>' requested here
return cxx_atomic_wait(a, test_fn);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/atomic:2564:10: note: in instantiation of function template specialization 'std::cxx_atomic_wait<const volatile std::cxx_atomic_impl, bool>' requested here
{ cxx_atomic_wait(&a_, _LIBCPP_ATOMIC_FLAG_TYPE(v), m);}
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/atomic:1599:17: error: no matching function for call to '__cxx_nonatomic_compare_equal'
return !cxx_nonatomic_compare_equal(cxx_atomic_load(a, order), val);
^, bool>::operator()' requested here
if ( f())
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/atomic:1570:12: note: in instantiation of function template specialization 'std::libcpp_thread_poll_with_backoff<std::cxx_atomic_wait_test_fn_impl<const std::cxx_atomic_impl, bool> &, std:: libcpp_atomic_wait_backoff_impl<const std::cxx_atomic_impl, std:: cxx_atomic_wait_test_fn_impl<const std::cxx_atomic_impl, bool>> &>' requested here
return libcpp_thread_poll_with_backoff(test_fn, __backoff_fn);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/atomic:1608:12: note: in instantiation of function template specialization 'std::cxx_atomic_wait<const std::cxx_atomic_impl, std:: cxx_atomic_wait_test_fn_impl<const std::cxx_atomic_impl, bool> &>' requested here
return cxx_atomic_wait(a, test_fn);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/atomic:2567:10: note: in instantiation of function template specialization 'std::cxx_atomic_wait<const std::cxx_atomic_impl, bool>' requested here
{cxx_atomic_wait(&a_, _LIBCPP_ATOMIC_FLAG_TYPE(v), m);}
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/atomic:668:6: note: candidate template ignored: substitution failure [with _Tp = bool]
bool cxx_nonatomic_compare_equal(_Tp const& lhs, _Tp const& __rhs) {
^
1 warning and 19 errors generated.
error: command '/usr/bin/clang' failed with exit code 1
~~~~~~~~ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/thread/poll_with_backoff.h:39:11: note: in instantiation of member function 'std::cxx_atomic_wait_test_fn_impl<const std::cxx_atomic_impl