Pulse-Eight / libcec

USB CEC Adapter communication Library http://libcec.pulse-eight.com/
Other
714 stars 287 forks source link

Error compile on python3. #589

Closed 68foxboris closed 2 years ago

68foxboris commented 2 years ago

Good evening. Error compiling for python 3. ` DEBUG: Executing shell function do_compile NOTE: VERBOSE=1 cmake --build /home/foxbob/python3/openpli-oe-core/build/tmp/work/cortexa15hf-neon-vfpv4-oe-linux-gnueabi/libcec/6.0.2-r0/build --target all -- [1/2] /home/foxbob/python3/openpli-oe-core/build/tmp/work/cortexa15hf-neon-vfpv4-oe-linux-gnueabi/libcec/6.0.2-r0/recipe-sysroot-native/usr/bin/arm-oe-linux-gnueabi/arm-oe-linux-gnueabi-g++ -D_cec_EXPORTS -I/usr/include/p8-platform -I/home/foxbob/python3/openpli-oe-core/build/tmp/work/cortexa15hf-neon-vfpv4-oe-linux-gnueabi/libcec/6.0.2-r0/git/src/libcec -I/home/foxbob/python3/openpli-oe-core/build/tmp/work/cortexa15hf-neon-vfpv4-oe-linux-gnueabi/libcec/6.0.2-r0/git/src/libcec/../../include -I/home/foxbob/python3/openpli-oe-core/build/tmp/work/cortexa15hf-neon-vfpv4-oe-linux-gnueabi/libcec/6.0.2-r0/recipe-sysroot/usr/include/python3.9 -mfpu=neon-vfpv4 -mfloat-abi=hard -mcpu=cortex-a15 --sysroot=/home/foxbob/python3/openpli-oe-core/build/tmp/work/cortexa15hf-neon-vfpv4-oe-linux-gnueabi/libcec/6.0.2-r0/recipe-sysroot -Os -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/foxbob/python3/openpli-oe-core/build/tmp/work/cortexa15hf-neon-vfpv4-oe-linux-gnueabi/libcec/6.0.2-r0=/usr/src/debug/libcec/6.0.2-r0 -fdebug-prefix-map=/home/foxbob/python3/openpli-oe-core/build/tmp/work/cortexa15hf-neon-vfpv4-oe-linux-gnueabi/libcec/6.0.2-r0=/usr/src/debug/libcec/6.0.2-r0 -fdebug-prefix-map=/home/foxbob/python3/openpli-oe-core/build/tmp/work/cortexa15hf-neon-vfpv4-oe-linux-gnueabi/libcec/6.0.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/foxbob/python3/openpli-oe-core/build/tmp/work/cortexa15hf-neon-vfpv4-oe-linux-gnueabi/libcec/6.0.2-r0/recipe-sysroot-native= -fvisibility-inlines-hidden -mfpu=neon-vfpv4 -mfloat-abi=hard -mcpu=cortex-a15 --sysroot=/home/foxbob/python3/openpli-oe-core/build/tmp/work/cortexa15hf-neon-vfpv4-oe-linux-gnueabi/libcec/6.0.2-r0/recipe-sysroot -std=c++11 -Wall -Wextra -Wno-missing-field-initializers -Wno-deprecated-copy -fPIC -MD -MT src/libcec/CMakeFiles/_cec.dir/CMakeFiles/_cec.dir/libcecPYTHON_wrap.cxx.o -MF src/libcec/CMakeFiles/_cec.dir/CMakeFiles/_cec.dir/libcecPYTHON_wrap.cxx.o.d -o src/libcec/CMakeFiles/_cec.dir/CMakeFiles/_cec.dir/libcecPYTHON_wrap.cxx.o -c src/libcec/CMakeFiles/_cec.dir/libcecPYTHON_wrap.cxx FAILED: src/libcec/CMakeFiles/_cec.dir/CMakeFiles/_cec.dir/libcecPYTHON_wrap.cxx.o /home/foxbob/python3/openpli-oe-core/build/tmp/work/cortexa15hf-neon-vfpv4-oe-linux-gnueabi/libcec/6.0.2-r0/recipe-sysroot-native/usr/bin/arm-oe-linux-gnueabi/arm-oe-linux-gnueabi-g++ -D_cec_EXPORTS -I/usr/include/p8-platform -I/home/foxbob/python3/openpli-oe-core/build/tmp/work/cortexa15hf-neon-vfpv4-oe-linux-gnueabi/libcec/6.0.2-r0/git/src/libcec -I/home/foxbob/python3/openpli-oe-core/build/tmp/work/cortexa15hf-neon-vfpv4-oe-linux-gnueabi/libcec/6.0.2-r0/git/src/libcec/../../include -I/home/foxbob/python3/openpli-oe-core/build/tmp/work/cortexa15hf-neon-vfpv4-oe-linux-gnueabi/libcec/6.0.2-r0/recipe-sysroot/usr/include/python3.9 -mfpu=neon-vfpv4 -mfloat-abi=hard -mcpu=cortex-a15 --sysroot=/home/foxbob/python3/openpli-oe-core/build/tmp/work/cortexa15hf-neon-vfpv4-oe-linux-gnueabi/libcec/6.0.2-r0/recipe-sysroot -Os -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/foxbob/python3/openpli-oe-core/build/tmp/work/cortexa15hf-neon-vfpv4-oe-linux-gnueabi/libcec/6.0.2-r0=/usr/src/debug/libcec/6.0.2-r0 -fdebug-prefix-map=/home/foxbob/python3/openpli-oe-core/build/tmp/work/cortexa15hf-neon-vfpv4-oe-linux-gnueabi/libcec/6.0.2-r0=/usr/src/debug/libcec/6.0.2-r0 -fdebug-prefix-map=/home/foxbob/python3/openpli-oe-core/build/tmp/work/cortexa15hf-neon-vfpv4-oe-linux-gnueabi/libcec/6.0.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/foxbob/python3/openpli-oe-core/build/tmp/work/cortexa15hf-neon-vfpv4-oe-linux-gnueabi/libcec/6.0.2-r0/recipe-sysroot-native= -fvisibility-inlines-hidden -mfpu=neon-vfpv4 -mfloat-abi=hard -mcpu=cortex-a15 --sysroot=/home/foxbob/python3/openpli-oe-core/build/tmp/work/cortexa15hf-neon-vfpv4-oe-linux-gnueabi/libcec/6.0.2-r0/recipe-sysroot -std=c++11 -Wall -Wextra -Wno-missing-field-initializers -Wno-deprecated-copy -fPIC -MD -MT src/libcec/CMakeFiles/_cec.dir/CMakeFiles/_cec.dir/libcecPYTHON_wrap.cxx.o -MF src/libcec/CMakeFiles/_cec.dir/CMakeFiles/_cec.dir/libcecPYTHON_wrap.cxx.o.d -o src/libcec/CMakeFiles/_cec.dir/CMakeFiles/_cec.dir/libcecPYTHON_wrap.cxx.o -c src/libcec/CMakeFiles/_cec.dir/libcecPYTHON_wrap.cxx In file included from /home/foxbob/python3/openpli-oe-core/build/tmp/work/cortexa15hf-neon-vfpv4-oe-linux-gnueabi/libcec/6.0.2-r0/recipe-sysroot/usr/include/python3.9/Python.h:141, from src/libcec/CMakeFiles/_cec.dir/libcecPYTHON_wrap.cxx:174: /home/foxbob/python3/openpli-oe-core/build/tmp/work/cortexa15hf-neon-vfpv4-oe-linux-gnueabi/libcec/6.0.2-r0/git/src/libcec/SwigHelper.h: In member function 'int CEC::CCecPythonCallbacks::CallPythonCallback(CEC::libcecSwigCallback, PyObject)': /home/foxbob/python3/openpli-oe-core/build/tmp/work/cortexa15hf-neon-vfpv4-oe-linux-gnueabi/libcec/6.0.2-r0/recipe-sysroot/usr/include/python3.9/ceval.h:24:66: warning: 'PyObject PyEval_CallObjectWithKeywords(PyObject, PyObject, PyObject)' is deprecated [-Wdeprecated-declarations] 24 | PyEval_CallObjectWithKeywords(callable, arg, (PyObject )NULL) | ^ /home/foxbob/python3/openpli-oe-core/build/tmp/work/cortexa15hf-neon-vfpv4-oe-linux-gnueabi/libcec/6.0.2-r0/git/src/libcec/SwigHelper.h:122:18: note: in expansion of macro 'PyEval_CallObject' 122 | result = PyEval_CallObject(m_callbacks[callback], arglist); | ^~~~~ /home/foxbob/python3/openpli-oe-core/build/tmp/work/cortexa15hf-neon-vfpv4-oe-linux-gnueabi/libcec/6.0.2-r0/recipe-sysroot/usr/include/python3.9/ceval.h:17:43: note: declared here 17 | Py_DEPRECATED(3.9) PyAPI_FUNC(PyObject ) PyEval_CallObjectWithKeywords( | ^~~~~~~~~ In file included from src/libcec/CMakeFiles/_cec.dir/libcecPYTHON_wrap.cxx:3197: /home/foxbob/python3/openpli-oe-core/build/tmp/work/cortexa15hf-neon-vfpv4-oe-linux-gnueabi/libcec/6.0.2-r0/git/src/libcec/SwigHelper.h:129:15: error: 'PyInt_Check' was not declared in this scope; did you mean 'PySet_Check'? 129 | if (PyInt_Check(result)) | ^~~ | PySet_Check /home/foxbob/python3/openpli-oe-core/build/tmp/work/cortexa15hf-neon-vfpv4-oe-linux-gnueabi/libcec/6.0.2-r0/git/src/libcec/SwigHelper.h:130:27: error: 'PyInt_AsLong' was not declared in this scope; did you mean 'PyLong_AsLong'? 130 | retval = (int)PyInt_AsLong(result); | ^~~~ | PyLong_AsLong src/libcec/CMakeFiles/_cec.dir/libcecPYTHON_wrap.cxx: In function 'PyObject SWIG_From_long_SS_long(long long int)': src/libcec/CMakeFiles/_cec.dir/libcecPYTHON_wrap.cxx:3571:34: error: 'PyInt_FromLong' was not declared in this scope; did you mean 'PyLong_FromLong'? 3571 | PyLong_FromLongLong(value) : PyInt_FromLong(static_cast< long >(value)); | ^~~~~~ | PyLong_FromLong src/libcec/CMakeFiles/_cec.dir/libcecPYTHON_wrap.cxx: In function 'PyObject SWIG_From_ptrdiff_t(ptrdiff_t)': src/libcec/CMakeFiles/_cec.dir/libcecPYTHON_wrap.cxx:3563:28: error: 'PyInt_FromLong' was not declared in this scope; did you mean 'PyLong_FromLong'? 3563 | #define SWIG_From_long PyInt_FromLong | ^~~~~~ src/libcec/CMakeFiles/_cec.dir/libcecPYTHON_wrap.cxx:3582:12: note: in expansion of macro 'SWIG_From_long' 3582 | return SWIG_From_long (static_cast< long >(value)); | ^~~~~~ src/libcec/CMakeFiles/_cec.dir/libcecPYTHON_wrap.cxx: In function 'PyObject SWIG_From_unsigned_SS_long(long unsigned int)': src/libcec/CMakeFiles/_cec.dir/libcecPYTHON_wrap.cxx:4883:38: error: 'PyInt_FromLong' was not declared in this scope; did you mean 'PyLong_FromLong'? 4883 | PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value)); | ^~~~~~ | PyLong_FromLong src/libcec/CMakeFiles/_cec.dir/libcecPYTHON_wrap.cxx: In function 'PyObject SWIG_From_unsigned_SS_long_SS_long(long long unsigned int)': src/libcec/CMakeFiles/_cec.dir/libcecPYTHON_wrap.cxx:4892:42: error: 'PyInt_FromLong' was not declared in this scope; did you mean 'PyLong_FromLong'? 4892 | PyLong_FromUnsignedLongLong(value) : PyInt_FromLong(static_cast< long >(value)); | ^~~~~~ | PyLong_FromLong src/libcec/CMakeFiles/_cec.dir/libcecPYTHON_wrap.cxx: In function 'PyObject SWIG_From_int(int)': src/libcec/CMakeFiles/_cec.dir/libcecPYTHON_wrap.cxx:4995:10: error: 'PyInt_FromLong' was not declared in this scope; did you mean 'PyLong_FromLong'? 4995 | return PyInt_FromLong((long) value); | ^~~~~~ | PyLong_FromLong src/libcec/CMakeFiles/_cec.dir/libcecPYTHON_wrap.cxx: In function 'PyObject SWIG_From_signed_SS_char(signed char)': src/libcec/CMakeFiles/_cec.dir/libcecPYTHON_wrap.cxx:3563:28: error: 'PyInt_FromLong' was not declared in this scope; did you mean 'PyLong_FromLong'? 3563 | #define SWIG_From_long PyInt_FromLong | ^~~~~~ src/libcec/CMakeFiles/_cec.dir/libcecPYTHON_wrap.cxx:5306:10: note: in expansion of macro 'SWIG_From_long' 5306 | return SWIG_From_long (value); | ^~~~~~ src/libcec/CMakeFiles/_cec.dir/libcecPYTHON_wrap.cxx: In function 'CEC::ICECAdapter CEC_ICECAdapter_Create(CEC::libcec_configuration)': src/libcec/CMakeFiles/_cec.dir/libcecPYTHON_wrap.cxx:5412:28: warning: 'void PyEval_InitThreads()' is deprecated [-Wdeprecated-declarations] 5412 | PyEval_InitThreads(); | ^ In file included from /home/foxbob/python3/openpli-oe-core/build/tmp/work/cortexa15hf-neon-vfpv4-oe-linux-gnueabi/libcec/6.0.2-r0/recipe-sysroot/usr/include/python3.9/Python.h:141, from src/libcec/CMakeFiles/_cec.dir/libcecPYTHON_wrap.cxx:174: /home/foxbob/python3/openpli-oe-core/build/tmp/work/cortexa15hf-neon-vfpv4-oe-linux-gnueabi/libcec/6.0.2-r0/recipe-sysroot/usr/include/python3.9/ceval.h:130:37: note: declared here 130 | Py_DEPRECATED(3.9) PyAPI_FUNC(void) PyEval_InitThreads(void); | ^~~~~~ src/libcec/CMakeFiles/_cec.dir/libcecPYTHON_wrap.cxx: In function 'PyObject PyInit__cec()': src/libcec/CMakeFiles/_cec.dir/libcecPYTHON_wrap.cxx:1060:65: warning: 'void PyEval_InitThreads()' is deprecated [-Wdeprecated-declarations] 1060 | # define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads() | ^ src/libcec/CMakeFiles/_cec.dir/libcecPYTHON_wrap.cxx:19357:3: note: in expansion of macro 'SWIG_PYTHON_INITIALIZE_THREADS' 19357 | SWIG_PYTHON_INITIALIZE_THREADS; | ^~~~~~~~~~ In file included from /home/foxbob/python3/openpli-oe-core/build/tmp/work/cortexa15hf-neon-vfpv4-oe-linux-gnueabi/libcec/6.0.2-r0/recipe-sysroot/usr/include/python3.9/Python.h:141, from src/libcec/CMakeFiles/_cec.dir/libcecPYTHON_wrap.cxx:174: /home/foxbob/python3/openpli-oe-core/build/tmp/work/cortexa15hf-neon-vfpv4-oe-linux-gnueabi/libcec/6.0.2-r0/recipe-sysroot/usr/include/python3.9/ceval.h:130:37: note: declared here 130 | Py_DEPRECATED(3.9) PyAPI_FUNC(void) PyEval_InitThreads(void); | ^~~~~~ src/libcec/CMakeFiles/_cec.dir/libcecPYTHON_wrap.cxx: In instantiation of 'static Type swig::traits_as<Type, swig::pointer_category>::as(PyObject, bool) [with Type = CEC::AdapterDescriptor; PyObject = _object]': src/libcec/CMakeFiles/_cec.dir/libcecPYTHON_wrap.cxx:3958:64: required from 'Type swig::as(PyObject, bool) [with Type = CEC::AdapterDescriptor; PyObject = _object]' src/libcec/CMakeFiles/_cec.dir/libcecPYTHON_wrap.cxx:4525:20: required from 'swig::SwigPySequence_Ref::operator T() const [with T = CEC::AdapterDescriptor]' src/libcec/CMakeFiles/_cec.dir/libcecPYTHON_wrap.cxx:4761:30: required from 'void swig::assign(const SwigPySeq&, Seq) [with SwigPySeq = swig::SwigPySequence_Cont; Seq = std::vector<CEC::AdapterDescriptor, std::allocator >]' src/libcec/CMakeFiles/_cec.dir/libcecPYTHON_wrap.cxx:4783:12: required from 'static int swig::traits_asptr_stdseq<Seq, T>::asptr(PyObject, swig::traits_asptr_stdseq<Seq, T>::sequence) [with Seq = std::vector<CEC::AdapterDescriptor, std::allocator >; T = CEC::AdapterDescriptor; PyObject = _object; swig::traits_asptr_stdseq<Seq, T>::sequence = std::vector<CEC::AdapterDescriptor, std::allocator >]' src/libcec/CMakeFiles/_cec.dir/libcecPYTHON_wrap.cxx:4844:52: required from 'static int swig::traits_asptr<std::vector >::asptr(PyObject*, std::vector*) [with T = CEC::AdapterDescriptor; PyObject = _object]' src/libcec/CMakeFiles/_cec.dir/libcecPYTHON_wrap.cxx:3850:37: required from 'int swig::asptr(PyObject, Type) [with Type = std::vector<CEC::AdapterDescriptor, std::allocator >; PyObject = _object]' src/libcec/CMakeFiles/_cec.dir/libcecPYTHON_wrap.cxx:6604:34: required from here src/libcec/CMakeFiles/_cec.dir/libcecPYTHON_wrap.cxx:3933:8: warning: 'void memset(void, int, size_t)' clearing an object of type 'struct CEC::AdapterDescriptor' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 3933 | memset(v_def,0,sizeof(Type)); | ~~^~~~~~ In file included from /home/foxbob/python3/openpli-oe-core/build/tmp/work/cortexa15hf-neon-vfpv4-oe-linux-gnueabi/libcec/6.0.2-r0/git/src/libcec/env.h:36, from /home/foxbob/python3/openpli-oe-core/build/tmp/work/cortexa15hf-neon-vfpv4-oe-linux-gnueabi/libcec/6.0.2-r0/git/src/libcec/SwigHelper.h:40, from src/libcec/CMakeFiles/_cec.dir/libcecPYTHON_wrap.cxx:3197: /home/foxbob/python3/openpli-oe-core/build/tmp/work/cortexa15hf-neon-vfpv4-oe-linux-gnueabi/libcec/6.0.2-r0/git/src/libcec/../../include/cectypes.h:934:16: note: 'struct CEC::AdapterDescriptor' declared here 934 | typedef struct AdapterDescriptor | ^~~~~ ninja: build stopped: subcommand failed. WARNING: /home/foxbob/python3/openpli-oe-core/build/tmp/work/cortexa15hf-neon-vfpv4-oe-linux-gnueabi/libcec/6.0.2-r0/temp/run.do_compile.1885174:153 exit 1 from 'eval ${DESTDIR:+DESTDIR=${DESTDIR} }VERBOSE=1 cmake --build '/home/foxbob/python3/openpli-oe-core/build/tmp/work/cortexa15hf-neon-vfpv4-oe-linux-gnueabi/libcec/6.0.2-r0/build' "$@" -- ${EXTRA_OECMAKE_BUILD}' WARNING: Backtrace (BB generated script):

1: cmake_runcmake_build, /home/foxbob/python3/openpli-oe-core/build/tmp/work/cortexa15hf-neon-vfpv4-oe-linux-gnueabi/libcec/6.0.2-r0/temp/run.do_compile.1885174, line 153

#2: cmake_do_compile, /home/foxbob/python3/openpli-oe-core/build/tmp/work/cortexa15hf-neon-vfpv4-oe-linux-gnueabi/libcec/6.0.2-r0/temp/run.do_compile.1885174, line 147
#3: do_compile, /home/foxbob/python3/openpli-oe-core/build/tmp/work/cortexa15hf-neon-vfpv4-oe-linux-gnueabi/libcec/6.0.2-r0/temp/run.do_compile.1885174, line 142
#4: main, /home/foxbob/python3/openpli-oe-core/build/tmp/work/cortexa15hf-neon-vfpv4-oe-linux-gnueabi/libcec/6.0.2-r0/temp/run.do_compile.1885174, line 166

ERROR: ExecutionError('/home/foxbob/python3/openpli-oe-core/build/tmp/work/cortexa15hf-neon-vfpv4-oe-linux-gnueabi/libcec/6.0.2-r0/temp/run.do_compile.1885174', 1, None, None)

`