Temporary header file '/tmp/XjFzzum3s_/dump1.h' with the following content will be compiled to create GCC translation unit dump: // add defines #define __STDC_VERSION__ 201710L #define _GXX_NULLPTR_T #define CLUTTER_ENABLE_COMPOSITOR_API 1 #define _REGEX_NELTS(n) #define _Atomic #define PACKED #define getaddrinfo_a(a,b,c,d) // add includes #include "/usr/lib/gcc/arm-linux-gnueabihf/12/include/stddef.h" #include "/usr/include/stdlib.h" #include "/usr/include/py3c/capsulethunk.h" #include "/usr/include/py3c/comparison.h" #include "/usr/include/py3c/compat.h" #include "/usr/include/py3c/fileshim.h" #include "/usr/include/py3c/py3shims.h" #include "/usr/include/py3c/tpflags.h" #include "/usr/include/py3c.h" // add classes PyCodeObject* tmp_add_class_0; PyConfig* tmp_add_class_1; PyGetSetDef* tmp_add_class_2; PyMethodDef* tmp_add_class_3; PyModuleDef* tmp_add_class_4; PyModuleDef_Base* tmp_add_class_5; PyModuleDef_Slot* tmp_add_class_6; PyPreConfig* tmp_add_class_7; PyStructSequence_Desc* tmp_add_class_8; PyStructSequence_Field* tmp_add_class_9; _G_fpos64_t* tmp_add_class_10; _G_fpos_t* tmp_add_class_11; _IO_cookie_io_functions_t* tmp_add_class_12; _PyArg_Parser* tmp_add_class_13; _PyCFrame* tmp_add_class_14; _PyWeakReference* tmp_add_class_15; _Py_Identifier* tmp_add_class_16; _Py_tss_t* tmp_add_class_17; _err_stackitem* tmp_add_class_18; _frozen* tmp_add_class_19; _heaptypeobject* tmp_add_class_20; _inittab* tmp_add_class_21; _line_offsets* tmp_add_class_22; _longobject* tmp_add_class_23; _object* tmp_add_class_24; _opaque* tmp_add_class_25; _specialization_cache* tmp_add_class_26; _stack_chunk* tmp_add_class_27; _traceback* tmp_add_class_28; _ts* tmp_add_class_29; _typeobject* tmp_add_class_30; _xid* tmp_add_class_31; itimerval* tmp_add_class_32; statx_timestamp* tmp_add_class_33; wrapperbase* tmp_add_class_34; The GCC parameters: gcc -fdump-lang-raw -fkeep-inline-functions -c -x c++ -fpermissive -w "/tmp/XjFzzum3s_/dump1.h" -I/usr/include/python3.11 In file included from /tmp/XjFzzum3s_/dump1.h:14: /usr/include/py3c/capsulethunk.h:60:19: error: ‘PyObject’ was not declared in this scope; did you mean ‘PyObject_NEW’? 60 | PyCapsule_SetName(PyObject *capsule, const char *unused) | ^~~~~~~~ | PyObject_NEW /usr/include/py3c/capsulethunk.h:60:29: error: ‘capsule’ was not declared in this scope 60 | PyCapsule_SetName(PyObject *capsule, const char *unused) | ^~~~~~~ /usr/include/py3c/capsulethunk.h:60:38: error: expected primary-expression before ‘const’ 60 | PyCapsule_SetName(PyObject *capsule, const char *unused) | ^~~~~ /usr/include/py3c/capsulethunk.h: In function ‘void* PyCapsule_Import(const char*, int)’: /usr/include/py3c/capsulethunk.h:80:5: error: ‘PyObject’ was not declared in this scope; did you mean ‘PyObject_NEW’? 80 | PyObject *object = NULL; | ^~~~~~~~ | PyObject_NEW /usr/include/py3c/capsulethunk.h:80:15: error: ‘object’ was not declared in this scope 80 | PyObject *object = NULL; | ^~~~~~ /usr/include/py3c/capsulethunk.h:83:27: error: ‘strlen’ was not declared in this scope 83 | size_t name_length = (strlen(name) + 1) * sizeof(char); | ^~~~~~ /usr/include/py3c/capsulethunk.h:1:1: note: ‘strlen’ is defined in header ‘’; did you forget to ‘#include ’? +++ |+#include 1 | /* Copyright (c) 2011, Larry Hastings /usr/include/py3c/capsulethunk.h:84:30: error: ‘PyMem_MALLOC’ was not declared in this scope 84 | char *name_dup = (char *)PyMem_MALLOC(name_length); | ^~~~~~~~~~~~ /usr/include/py3c/capsulethunk.h:84:30: note: the macro ‘PyMem_MALLOC’ had not yet been defined In file included from /usr/include/python3.11/Python.h:41, from /usr/include/py3c/comparison.h:7, from /tmp/XjFzzum3s_/dump1.h:15: /usr/include/python3.11/pymem.h:85: note: it was later defined here 85 | #define PyMem_MALLOC(n) PyMem_Malloc(n) | /usr/include/py3c/capsulethunk.h:90:5: error: ‘memcpy’ was not declared in this scope 90 | memcpy(name_dup, name, name_length); | ^~~~~~ /usr/include/py3c/capsulethunk.h:90:5: note: ‘memcpy’ is defined in header ‘’; did you forget to ‘#include ’? /usr/include/py3c/capsulethunk.h:94:21: error: ‘strchr’ was not declared in this scope 94 | char *dot = strchr(trace, '.'); | ^~~~~~ /usr/include/py3c/capsulethunk.h:94:21: note: ‘strchr’ is defined in header ‘’; did you forget to ‘#include ’? /usr/include/py3c/capsulethunk.h:101:26: error: ‘PyImport_ImportModuleNoBlock’ was not declared in this scope; did you mean ‘PyImport_ImportModuleEx’? 101 | object = PyImport_ImportModuleNoBlock(trace); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ | PyImport_ImportModuleEx /usr/include/py3c/capsulethunk.h:103:26: error: ‘PyImport_ImportModule’ was not declared in this scope; did you mean ‘PyImport_ImportModuleEx’? 103 | object = PyImport_ImportModule(trace); | ^~~~~~~~~~~~~~~~~~~~~ | PyImport_ImportModuleEx /usr/include/py3c/capsulethunk.h:105:34: error: ‘PyExc_ImportError’ was not declared in this scope 105 | PyErr_Format(PyExc_ImportError, | ^~~~~~~~~~~~~~~~~ /usr/include/py3c/capsulethunk.h:105:21: error: ‘PyErr_Format’ was not declared in this scope; did you mean ‘PyStr_Format’? 105 | PyErr_Format(PyExc_ImportError, | ^~~~~~~~~~~~ | PyStr_Format /usr/include/py3c/capsulethunk.h:111:23: error: ‘object2’ was not declared in this scope 111 | PyObject *object2 = PyObject_GetAttrString(object, trace); | ^~~~~~~ /usr/include/py3c/capsulethunk.h:111:33: error: ‘PyObject_GetAttrString’ was not declared in this scope; did you mean ‘PyObject_DelAttrString’? 111 | PyObject *object2 = PyObject_GetAttrString(object, trace); | ^~~~~~~~~~~~~~~~~~~~~~ | PyObject_DelAttrString /usr/include/py3c/capsulethunk.h:112:13: error: ‘Py_DECREF’ was not declared in this scope 112 | Py_DECREF(object); | ^~~~~~~~~ /usr/include/py3c/capsulethunk.h:112:13: note: the macro ‘Py_DECREF’ had not yet been defined In file included from /usr/include/python3.11/Python.h:44: /usr/include/python3.11/object.h:541: note: it was later defined here 541 | #define Py_DECREF(op) Py_DECREF(_PyObject_CAST(op)) | /usr/include/py3c/capsulethunk.h:122:9: error: ‘PyCObject_Check’ was not declared in this scope; did you mean ‘PyODict_Check’? 122 | if (PyCObject_Check(object)) { | ^~~~~~~~~~~~~~~ | PyODict_Check /usr/include/py3c/capsulethunk.h:123:9: error: ‘PyCObject’ was not declared in this scope 123 | PyCObject *cobject = (PyCObject *)object; | ^~~~~~~~~ /usr/include/py3c/capsulethunk.h:123:20: error: ‘cobject’ was not declared in this scope 123 | PyCObject *cobject = (PyCObject *)object; | ^~~~~~~ /usr/include/py3c/capsulethunk.h:123:42: error: expected primary-expression before ‘)’ token 123 | PyCObject *cobject = (PyCObject *)object; | ^ /usr/include/py3c/capsulethunk.h:126:22: error: ‘PyExc_AttributeError’ was not declared in this scope 126 | PyErr_Format(PyExc_AttributeError, | ^~~~~~~~~~~~~~~~~~~~ /usr/include/py3c/capsulethunk.h:126:9: error: ‘PyErr_Format’ was not declared in this scope; did you mean ‘PyStr_Format’? 126 | PyErr_Format(PyExc_AttributeError, | ^~~~~~~~~~~~ | PyStr_Format /usr/include/py3c/capsulethunk.h:132:5: error: ‘Py_XDECREF’ was not declared in this scope 132 | Py_XDECREF(object); | ^~~~~~~~~~ /usr/include/py3c/capsulethunk.h:132:5: note: the macro ‘Py_XDECREF’ had not yet been defined /usr/include/python3.11/object.h:606: note: it was later defined here 606 | # define Py_XDECREF(op) Py_XDECREF(_PyObject_CAST(op)) | /usr/include/py3c/capsulethunk.h:134:9: error: ‘PyMem_FREE’ was not declared in this scope 134 | PyMem_FREE(name_dup); | ^~~~~~~~~~ /usr/include/py3c/capsulethunk.h:134:9: note: the macro ‘PyMem_FREE’ had not yet been defined /usr/include/python3.11/pymem.h:89: note: it was later defined here 89 | #define PyMem_FREE(p) PyMem_Free(p) | /usr/include/python3.11/pycapsule.h: At global scope: /usr/include/py3c/capsulethunk.h:35:27: error: expected ‘)’ before ‘(’ token 35 | (PyCObject_FromVoidPtr(pointer, (void (*)(void*)) (destructor))) | ~ ^ /usr/include/python3.11/pycapsule.h:28:24: note: in expansion of macro ‘PyCapsule_New’ 28 | PyAPI_FUNC(PyObject *) PyCapsule_New( | ^~~~~~~~~~~~~ /usr/include/python3.11/object.h:153:42: error: expected ‘)’ before ‘(’ token 153 | # define Py_IS_TYPE(ob, type) Py_IS_TYPE(_PyObject_CAST(ob), type) | ^ /usr/include/python3.11/pycapsule.h:25:34: note: in expansion of macro ‘Py_IS_TYPE’ 25 | #define PyCapsule_CheckExact(op) Py_IS_TYPE(op, &PyCapsule_Type) | ^~~~~~~~~~ /usr/include/py3c/capsulethunk.h:16:7: note: in expansion of macro ‘PyCapsule_CheckExact’ 16 | ( PyCapsule_CheckExact(capsule) \ | ^~~~~~~~~~~~~~~~~~~~ /usr/include/py3c/capsulethunk.h:47:5: note: in expansion of macro ‘__PyCapsule_GetField’ 47 | __PyCapsule_GetField(capsule, destructor, (void (*)(void*)) NULL) | ^~~~~~~~~~~~~~~~~~~~ /usr/include/python3.11/pycapsule.h:35:34: note: in expansion of macro ‘PyCapsule_GetDestructor’ 35 | PyAPI_FUNC(PyCapsule_Destructor) PyCapsule_GetDestructor(PyObject *capsule); | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/py3c/capsulethunk.h:16:5: note: to match this ‘(’ 16 | ( PyCapsule_CheckExact(capsule) \ | ^ /usr/include/py3c/capsulethunk.h:47:5: note: in expansion of macro ‘__PyCapsule_GetField’ 47 | __PyCapsule_GetField(capsule, destructor, (void (*)(void*)) NULL) | ^~~~~~~~~~~~~~~~~~~~ /usr/include/python3.11/pycapsule.h:35:34: note: in expansion of macro ‘PyCapsule_GetDestructor’ 35 | PyAPI_FUNC(PyCapsule_Destructor) PyCapsule_GetDestructor(PyObject *capsule); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/time.h:29, from /usr/include/python3.11/pyport.h:227, from /usr/include/python3.11/Python.h:38: /usr/include/py3c/capsulethunk.h:57:36: error: expected unqualified-id before ‘__null’ 57 | #define PyCapsule_GetName(capsule) NULL | ^~~~ /usr/include/python3.11/pycapsule.h:37:26: note: in expansion of macro ‘PyCapsule_GetName’ 37 | PyAPI_FUNC(const char *) PyCapsule_GetName(PyObject *capsule); | ^~~~~~~~~~~~~~~~~ /usr/include/python3.11/object.h:153:42: error: expected ‘)’ before ‘(’ token 153 | # define Py_IS_TYPE(ob, type) Py_IS_TYPE(_PyObject_CAST(ob), type) | ^ /usr/include/python3.11/pycapsule.h:25:34: note: in expansion of macro ‘Py_IS_TYPE’ 25 | #define PyCapsule_CheckExact(op) Py_IS_TYPE(op, &PyCapsule_Type) | ^~~~~~~~~~ /usr/include/py3c/capsulethunk.h:16:7: note: in expansion of macro ‘PyCapsule_CheckExact’ 16 | ( PyCapsule_CheckExact(capsule) \ | ^~~~~~~~~~~~~~~~~~~~ /usr/include/py3c/capsulethunk.h:71:5: note: in expansion of macro ‘__PyCapsule_GetField’ 71 | __PyCapsule_GetField(capsule, desc, (void*) NULL) | ^~~~~~~~~~~~~~~~~~~~ /usr/include/python3.11/pycapsule.h:39:20: note: in expansion of macro ‘PyCapsule_GetContext’ 39 | PyAPI_FUNC(void *) PyCapsule_GetContext(PyObject *capsule); | ^~~~~~~~~~~~~~~~~~~~ /usr/include/py3c/capsulethunk.h:16:5: note: to match this ‘(’ 16 | ( PyCapsule_CheckExact(capsule) \ | ^ /usr/include/py3c/capsulethunk.h:71:5: note: in expansion of macro ‘__PyCapsule_GetField’ 71 | __PyCapsule_GetField(capsule, desc, (void*) NULL) | ^~~~~~~~~~~~~~~~~~~~ /usr/include/python3.11/pycapsule.h:39:20: note: in expansion of macro ‘PyCapsule_GetContext’ 39 | PyAPI_FUNC(void *) PyCapsule_GetContext(PyObject *capsule); | ^~~~~~~~~~~~~~~~~~~~ /usr/include/python3.11/object.h:153:42: error: expected ‘)’ before ‘(’ token 153 | # define Py_IS_TYPE(ob, type) Py_IS_TYPE(_PyObject_CAST(ob), type) | ^ /usr/include/python3.11/pycapsule.h:25:34: note: in expansion of macro ‘Py_IS_TYPE’ 25 | #define PyCapsule_CheckExact(op) Py_IS_TYPE(op, &PyCapsule_Type) | ^~~~~~~~~~ /usr/include/py3c/capsulethunk.h:22:7: note: in expansion of macro ‘PyCapsule_CheckExact’ 22 | ( PyCapsule_CheckExact(capsule) \ | ^~~~~~~~~~~~~~~~~~~~ /usr/include/py3c/capsulethunk.h:43:5: note: in expansion of macro ‘__PyCapsule_SetField’ 43 | __PyCapsule_SetField(capsule, cobject, pointer) | ^~~~~~~~~~~~~~~~~~~~ /usr/include/python3.11/pycapsule.h:43:17: note: in expansion of macro ‘PyCapsule_SetPointer’ 43 | PyAPI_FUNC(int) PyCapsule_SetPointer(PyObject *capsule, void *pointer); | ^~~~~~~~~~~~~~~~~~~~ /usr/include/py3c/capsulethunk.h:22:5: note: to match this ‘(’ 22 | ( PyCapsule_CheckExact(capsule) \ | ^ /usr/include/py3c/capsulethunk.h:43:5: note: in expansion of macro ‘__PyCapsule_SetField’ 43 | __PyCapsule_SetField(capsule, cobject, pointer) | ^~~~~~~~~~~~~~~~~~~~ /usr/include/python3.11/pycapsule.h:43:17: note: in expansion of macro ‘PyCapsule_SetPointer’ 43 | PyAPI_FUNC(int) PyCapsule_SetPointer(PyObject *capsule, void *pointer); | ^~~~~~~~~~~~~~~~~~~~ /usr/include/python3.11/object.h:153:42: error: expected ‘)’ before ‘(’ token 153 | # define Py_IS_TYPE(ob, type) Py_IS_TYPE(_PyObject_CAST(ob), type) | ^ /usr/include/python3.11/pycapsule.h:25:34: note: in expansion of macro ‘Py_IS_TYPE’ 25 | #define PyCapsule_CheckExact(op) Py_IS_TYPE(op, &PyCapsule_Type) | ^~~~~~~~~~ /usr/include/py3c/capsulethunk.h:22:7: note: in expansion of macro ‘PyCapsule_CheckExact’ 22 | ( PyCapsule_CheckExact(capsule) \ | ^~~~~~~~~~~~~~~~~~~~ /usr/include/py3c/capsulethunk.h:50:5: note: in expansion of macro ‘__PyCapsule_SetField’ 50 | __PyCapsule_SetField(capsule, destructor, (void (*)(void*)) dtor) | ^~~~~~~~~~~~~~~~~~~~ /usr/include/python3.11/pycapsule.h:45:17: note: in expansion of macro ‘PyCapsule_SetDestructor’ 45 | PyAPI_FUNC(int) PyCapsule_SetDestructor(PyObject *capsule, PyCapsule_Destructor destructor); | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/py3c/capsulethunk.h:22:5: note: to match this ‘(’ 22 | ( PyCapsule_CheckExact(capsule) \ | ^ /usr/include/py3c/capsulethunk.h:50:5: note: in expansion of macro ‘__PyCapsule_SetField’ 50 | __PyCapsule_SetField(capsule, destructor, (void (*)(void*)) dtor) | ^~~~~~~~~~~~~~~~~~~~ /usr/include/python3.11/pycapsule.h:45:17: note: in expansion of macro ‘PyCapsule_SetDestructor’ 45 | PyAPI_FUNC(int) PyCapsule_SetDestructor(PyObject *capsule, PyCapsule_Destructor destructor); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/python3.11/Python.h:70: /usr/include/python3.11/pycapsule.h:47:70: error: ‘int PyCapsule_SetName(PyObject*, const char*)’ redeclared as different kind of entity 47 | PyAPI_FUNC(int) PyCapsule_SetName(PyObject *capsule, const char *name); | ^ /usr/include/py3c/capsulethunk.h:60:1: note: previous declaration ‘int PyCapsule_SetName’ 60 | PyCapsule_SetName(PyObject *capsule, const char *unused) | ^~~~~~~~~~~~~~~~~ /usr/include/python3.11/object.h:153:42: error: expected ‘)’ before ‘(’ token 153 | # define Py_IS_TYPE(ob, type) Py_IS_TYPE(_PyObject_CAST(ob), type) | ^ /usr/include/python3.11/pycapsule.h:25:34: note: in expansion of macro ‘Py_IS_TYPE’ 25 | #define PyCapsule_CheckExact(op) Py_IS_TYPE(op, &PyCapsule_Type) | ^~~~~~~~~~ /usr/include/py3c/capsulethunk.h:22:7: note: in expansion of macro ‘PyCapsule_CheckExact’ 22 | ( PyCapsule_CheckExact(capsule) \ | ^~~~~~~~~~~~~~~~~~~~ /usr/include/py3c/capsulethunk.h:74:5: note: in expansion of macro ‘__PyCapsule_SetField’ 74 | __PyCapsule_SetField(capsule, desc, context) | ^~~~~~~~~~~~~~~~~~~~ /usr/include/python3.11/pycapsule.h:49:17: note: in expansion of macro ‘PyCapsule_SetContext’ 49 | PyAPI_FUNC(int) PyCapsule_SetContext(PyObject *capsule, void *context); | ^~~~~~~~~~~~~~~~~~~~ /usr/include/py3c/capsulethunk.h:22:5: note: to match this ‘(’ 22 | ( PyCapsule_CheckExact(capsule) \ | ^ /usr/include/py3c/capsulethunk.h:74:5: note: in expansion of macro ‘__PyCapsule_SetField’ 74 | __PyCapsule_SetField(capsule, desc, context) | ^~~~~~~~~~~~~~~~~~~~ /usr/include/python3.11/pycapsule.h:49:17: note: in expansion of macro ‘PyCapsule_SetContext’ 49 | PyAPI_FUNC(int) PyCapsule_SetContext(PyObject *capsule, void *context); | ^~~~~~~~~~~~~~~~~~~~ /usr/include/python3.11/pycapsule.h:51:20: error: conflicting declaration of ‘void* PyCapsule_Import(const char*, int)’ with ‘C’ linkage 51 | PyAPI_FUNC(void *) PyCapsule_Import( | ^~~~~~~~~~~~~~~~ /usr/include/py3c/capsulethunk.h:78:1: note: previous declaration with ‘C++’ linkage 78 | PyCapsule_Import(const char *name, int no_block) | ^~~~~~~~~~~~~~~~