Python3.12 / Scarthgap build issues.
I'm running into the below problem whilst trying to build python projects against python3.12 under Scarthgap. Search engines turn up very little/nothing relevant on the topic which leads me to think it must be something related to my specific configuration but I am all out of ideas at this point.
Quoted 7 lines
<snip>/recipe-sysroot/usr/include/python3.12/pyconfig.h:6:2: error: #error "
_PYTHON_INCLUDE_TARGETor_PYTHON_INCLUDE_NATIVEis not defined" | 6 | #error "_PYTHON_INCLUDE_TARGETor_PYTHON_INCLUDE_NATIVEis not defined"</snip>
The above file has changed dramatically since my kirkstone / python3.10 build and just contains:
Quoted 11 lines
#if defined (
_PYTHON_INCLUDE_TARGET)
#include "pyconfig-target.h"
#elif defined (_PYTHON_INCLUDE_NATIVE)
#include "pyconfig-native.h"
#else
#error "_PYTHON_INCLUDE_TARGETor_PYTHON_INCLUDE_NATIVEis not defined" #endif // End of #if defined (_PYTHON_INCLUDE_TARGET)
Notably neither of included files exist anywhere so even if the _PYTHON_INCLUDE_TARGET or _PYTHON_INCLUDE_NATIVE were defined it still would not work.
Does anybody have any idea what is going on?
Answering my own question, having looked at what I dismissed as an irrelevant post more thoroughly I spotted a potential source of the above. It appears the python3 recipes pyconfig.h is getting clobbered by the tensorflow recipe which I had previously built: