user/py3-lxml: FTBFS: error: dereferencing pointer to incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
Found on ppc64:
...
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/readme.txt -> build/lib.linux-ppc64-cpython-311/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
running build_ext
building 'lxml.etree' extension
creating build/temp.linux-ppc64-cpython-311
creating build/temp.linux-ppc64-cpython-311/src
creating build/temp.linux-ppc64-cpython-311/src/lxml
gcc -DNDEBUG -g -fwrapv -O3 -Wall -O2 -fno-omit-frame-pointer -ggdb -mcpu=970 -mtune=power9 -maltivec -mlong-double-64 -fno-inline-small-functions -g -O2 -fno-omit-frame-pointer -ggdb -mcpu=970 -mtune=power9 -maltivec -mlong-double-64 -fno-inline-small-functions -g -O2 -fno-omit-frame-pointer -ggdb -mcpu=970 -mtune=power9 -maltivec -mlong-double-64 -fno-inline-small-functions -g -DTHREAD_STACK_SIZE=0x100000 -O2 -fno-omit-frame-pointer -ggdb -mcpu=970 -mtune=power9 -maltivec -mlong-double-64 -fno-inline-small-functions -g -fPIC -DCYTHON_CLINE_IN_TRACEBACK=0 -I/usr/include/libxml2 -Isrc -Isrc/lxml/includes -I/usr/include/python3.11 -c src/lxml/etree.c -o build/temp.linux-ppc64-cpython-311/src/lxml/etree.o -w
src/lxml/etree.c: In function ‘__Pyx_Coroutine_SendEx’:
src/lxml/etree.c:265439:14: error: dereferencing pointer to incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
f->f_back = PyThreadState_GetFrame(tstate);
^~
Compile failed: command '/usr/local/bin/gcc' failed with exit code 1
creating tmp
cc -I/usr/include/libxml2 -I/usr/include/libxml2 -c /tmp/xmlXPathInit4a37i8z8.c -o tmp/xmlXPathInit4a37i8z8.o
cc tmp/xmlXPathInit4a37i8z8.o -lxml2 -o a.out
error: command '/usr/local/bin/gcc' failed with exit code 1
>>> ERROR: py3-lxml: build failed
Likely due to Python 3.11
bump; some breakage was to be expected.