...
/<<PKGBUILDDIR>>/src/Base/ConsoleObserver.cpp: In member function ‘std::stringstream& Base::LogLevel::prefix(std::stringstream&, const char*, int)’:
/<<PKGBUILDDIR>>/src/Base/ConsoleObserver.cpp:269:41: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
269 | src = PyUnicode_AsUTF8(frame->f_code->co_filename);
| ^~
In file included from /usr/include/python3.11/Python.h:42,
from /<<PKGBUILDDIR>>/src/Base/ConsoleObserver.cpp:31:
/usr/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’}
22 | typedef struct _frame PyFrameObject;
| ^~~~~~
make[4]: *** [src/Base/CMakeFiles/FreeCADBase.dir/build.make:388: src/Base/CMakeFiles/FreeCADBase.dir/ConsoleObserver.cpp.o] Error 1