Closed
requested to merge topic/hpy-update-vendored/hpy-update-vendored-fixes into branch/hpy-update-vendored
Some simple fixes from trying a translation. It now gets to compilation but errors because HPyDef_Slot
is undefined:
pypy_module__cffi_backend.c: In function ‘pypy_g_W_FFIObject_fetch_int_constant’:
pypy_module__cffi_backend.c:65474:13: warning: assignment discards ‘const’ qualifier \
from pointer target type [-Wdiscarded-qualifiers]
65474 | l_v552129 = RPyField(l_v552128, globals);
| ^
pypy_module__hpy_universal.c: In function ‘pypy_g_HPyModule_Create’:
pypy_module__hpy_universal.c:33729:12: warning: assignment to ‘int *’ \
from incompatible pointer type ‘cpy_PyMethodDef *’ {aka ‘struct PyMethodDef *’} \
[-Wincompatible-pointer-types]
33729 | l_v667359 = RPyField(l_hpydef_1, legacy_methods);
| ^
pypy_module__hpy_universal.c: In function ‘pypy_g_HPyType_FromSpec’:
pypy_module__hpy_universal.c:38223:2: error: unknown type name ‘HPyDef_Slot’; \
did you mean ‘HPyDef_SLOT’?
38223 | HPyDef_Slot *l_v669297; Signed l_v669092; Signed l_v669096;
| ^~~~~~~~~~~
| HPyDef_SLOT
pypy_module__hpy_universal.c:39238:17: error: ‘HPyDef_Slot’ undeclared \
(first use in this function); did you mean ‘HPyDef_SLOT’?
39238 | l_v669297 = (HPyDef_Slot *)(l_v669296);
| ^~~~~~~~~~~
| HPyDef_SLOT
pypy_module__hpy_universal.c:39238:17: note: each undeclared identifier is reported \
only once for each function it appears in
pypy_module__hpy_universal.c:39238:30: error: expected expression before ‘)’ token
39238 | l_v669297 = (HPyDef_Slot *)(l_v669296);
| ^
In file included from /home/matti/pypy_stuff/pypy/rpython/translator/c/src/g_include.h:11,
from pypy_module__hpy_universal.c:9:
/home/matti/pypy_stuff/pypy/rpython/translator/c/src/support.h:66:52: error: request \
for member ‘slot’ in something not a structure or union
66 | # define RPyField(ptr, name) ((ptr)->name)
| ^~
/home/matti/pypy_stuff/pypy/rpython/translator/c/src/support.h:66:52: \
note: in definition of macro ‘RPyField’
66 | # define RPyField(ptr, name) ((ptr)->name)
| ^~
make: *** [Makefile:915: pypy_module__hpy_universal.o] Error 1
Here is the complete compilation output, we should clean up those warnings https://paste.ubuntu.com/p/hK9s4mbwMy/