Skip to contentSkip to conversation

Python3.12 / Scarthgap build issues.

DISCUSSION Daniel Squires 1 participant 2 messages Jan 2, 2025

lore
Share & tools
lore
#0 lore raw

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_TARGET or _PYTHON_INCLUDE_NATIVE is not defined" |     6 | #error "_PYTHON_INCLUDE_TARGET or _PYTHON_INCLUDE_NATIVE is 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_TARGET or _PYTHON_INCLUDE_NATIVE is 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?