Как исправить ошибку: команда 'x86_64- linux -gnu-g cc' завершилась неудачно с состоянием выхода 1 при установке cgkit - PullRequest
0 голосов
/ 09 апреля 2020

Я пытаюсь установить пакет cgkit, и при запуске: python setup.py install я получаю ошибку ниже:

Я использую Ubuntu 18.04 с Python 3.6, я установил все зависимости, но ошибка все тот же

building '_core' extension
x86_64-linux-gnu-gcc -pthread -DNDEBUG -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DBOOST_PYTHON_MAX_ARITY=18 -Isupportlib/include -I/usr/include/python3.6m -c wrappers/py_wrapper.cpp -o build/temp.linux-x86_64-3.6/wrappers/py_wrapper.o
In file included from wrappers/py_wrapper.cpp:10:0:
wrappers/py_slot.h: In static member function ‘static void ArraySlotWrapper<T>::setValues_py(support3d::ArraySlot<T>*, int, boost::python::api::object)’:
wrappers/py_slot.h:396:20: error: there are no arguments to ‘PyString_AsString’ that depend on a template parameter, so a declaration of ‘PyString_AsString’ must be available [-fpermissive]
  throw EValueError(PyString_AsString(msg.ptr()));
                    ^~~~~~~~~~~~~~~~~
wrappers/py_slot.h:396:20: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
In file included from supportlib/include/worldobject.h:47:0,
                 from wrappers/py_wrapper.cpp:12:
supportlib/include/component.h: At global scope:
supportlib/include/component.h:74:3: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
   auto_ptr<ISlot> slot;
   ^~~~~~~~

error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...