This got reopened, the real bug here is:
make[6]: Entering directory '/<<PKGBUILDDIR>>/modules/python'
/bin/bash ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.
-I../../include/lib -I../../include -I../../include -I../../grecs/include
-I../../grecs/wordsplit -I../../grecs/include -I/usr/include/python3.12
-I/usr/include/python3.12 -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2
-Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=.
-fstack-protector-strong -fstack-clash-protection -Wformat
-Werror=format-security -mbranch-protection=standard -c -o python.lo python.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../../include/lib -I../../include
-I../../include -I../../grecs/include -I../../grecs/wordsplit
-I../../grecs/include -I/usr/include/python3.12 -I/usr/include/python3.12
-Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration
-ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong
-fstack-clash-protection -Wformat -Werror=format-security
-mbranch-protection=standard -c python.c -fPIC -DPIC -o .libs/python.o
In file included from /usr/include/python3.12/Python.h:44,
from python.c:19:
/usr/include/python3.12/object.h:142:9: error: initialization of 'long int'
from 'PyTypeObject *' {aka 'struct _typeobject *'} makes integer from pointer
without a cast [-Wint-conversion]
142 | (type) \
| ^
python.c:97:5: note: in expansion of macro 'PyObject_HEAD_INIT'
97 | PyObject_HEAD_INIT(&PyType_Type)
| ^~~~~~~~~~~~~~~~~~
/usr/include/python3.12/object.h:142:9: note: (near initialization for
'PySelectionKeyType.ob_base.ob_size')
142 | (type) \
| ^
python.c:97:5: note: in expansion of macro 'PyObject_HEAD_INIT'
97 | PyObject_HEAD_INIT(&PyType_Type)
| ^~~~~~~~~~~~~~~~~~
/usr/include/python3.12/object.h:142:9: error: initialization of 'long int'
from 'PyTypeObject *' {aka 'struct _typeobject *'} makes integer from pointer
without a cast [-Wint-conversion]
142 | (type) \
| ^
python.c:182:5: note: in expansion of macro 'PyObject_HEAD_INIT'
182 | PyObject_HEAD_INIT(&PyType_Type)
| ^~~~~~~~~~~~~~~~~~
/usr/include/python3.12/object.h:142:9: note: (near initialization for
'PyStrategyType.ob_base.ob_size')
142 | (type) \
| ^
python.c:182:5: note: in expansion of macro 'PyObject_HEAD_INIT'
182 | PyObject_HEAD_INIT(&PyType_Type)
| ^~~~~~~~~~~~~~~~~~
--
Stefano Rivera
http://tumbleweed.org.za/
+1 415 683 3272