python3 setup.py build error
ijglb opened this issue · comments
极光萝卜 commented
error when run python3 setup.py build
# python3 setup.py build
running build
running build_ext
building 'walletcore' extension
/usr/bin/clang -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Iwallet-core/include -Isrc -I/usr/include/python3.6m -c src/Data.cc -o build/temp.linux-x86_64-3.6/src/Data.o -std=c++17
/usr/bin/clang -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Iwallet-core/include -Isrc -I/usr/include/python3.6m -c src/String.cc -o build/temp.linux-x86_64-3.6/src/String.o -std=c++17
/usr/bin/clang -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Iwallet-core/include -Isrc -I/usr/include/python3.6m -c src/AnySigner.cc -o build/temp.linux-x86_64-3.6/src/AnySigner.o -std=c++17
/usr/bin/clang -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Iwallet-core/include -Isrc -I/usr/include/python3.6m -c src/generated/FIOAccount.cc -o build/temp.linux-x86_64-3.6/src/generated/FIOAccount.o -std=c++17
src/generated/FIOAccount.cc:118:6: warning: ISO C++11 does not allow conversion from string literal to 'char *'
[-Wwritable-strings]
{"description", (getter)PyFIOAccountDescription, nullptr,
^
src/generated/FIOAccount.cc:119:6: error: cannot initialize a member subobject of type 'char *' with an lvalue of type
'const char [64]'
PyFIOAccountDescription_doc},
^~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning and 1 error generated.
error: command '/usr/bin/clang' failed with exit status 1
Peng Huang commented
I am OK with python 3.9. Can you try python 3.9?
极光萝卜 commented
thanks,it works