Source: mypy Version: 1.11.2-3 Severity: normal Tags: upstream User: debian-pyt...@lists.debian.org Usertags: python3.13 Forwarded: https://github.com/python/mypy/issues/17264
This package failed build from source when test-built against a version of python3-defaults that incudes 3.13 as a supported version. To reproduce this issue, build against python3-defaults (python3-all-dev etc.) from Debian experimental. What's new in Python 3.13: https://docs.python.org/3.13/whatsnew/3.13.html Log snippet: creating build/temp.linux-aarch64-cpython-313/build aarch64-linux-gnu-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wno-misleading-indentation -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/<<PKGBUILDDIR>>/mypyc/lib-rt -Ibuild -I/usr/include/python3.13 -c build/__native_3204bda914b7f2c6f497.c -o build/temp.linux-aarch64-cpython-313/build/__native_3204bda914b7f2c6f497.o -O3 -g2 -Werror -Wno-unused-function -Wno-unused-label -Wno-unreachable-code -Wno-unused-variable -Wno-unused-command-line-argument -Wno-unknown-warning-option -Wno-unused-but-set-variable -Wno-ignored-optimization-argument -Wno-cpp In file included from /<<PKGBUILDDIR>>/mypyc/lib-rt/pythonsupport.h:17, from /<<PKGBUILDDIR>>/mypyc/lib-rt/CPy.h:12, from /<<PKGBUILDDIR>>/mypyc/lib-rt/init.c:2, from build/__native_3204bda914b7f2c6f497.c:1: /usr/include/python3.13/internal/pycore_frame.h:8:4: error: #error "this header requires Py_BUILD_CORE define" 8 | # error "this header requires Py_BUILD_CORE define" | ^~~~~ In file included from /usr/include/python3.13/internal/pycore_frame.h:13: /usr/include/python3.13/internal/pycore_code.h:8:4: error: #error "this header requires Py_BUILD_CORE define" 8 | # error "this header requires Py_BUILD_CORE define" | ^~~~~ In file included from /usr/include/python3.13/internal/pycore_code.h:11: /usr/include/python3.13/internal/pycore_lock.h:13:4: error: #error "this header requires Py_BUILD_CORE define" 13 | # error "this header requires Py_BUILD_CORE define" | ^~~~~ In file included from /usr/include/python3.13/internal/pycore_code.h:12: /usr/include/python3.13/internal/pycore_backoff.h:9:4: error: #error "this header requires Py_BUILD_CORE define" 9 | # error "this header requires Py_BUILD_CORE define" | ^~~~~ /<<PKGBUILDDIR>>/mypyc/lib-rt/pythonsupport.h: In function ‘update_bases’: /<<PKGBUILDDIR>>/mypyc/lib-rt/pythonsupport.h:51:13: error: implicit declaration of function ‘_PyObject_LookupAttrId’; did you mean ‘_PyObject_GetAttrId’? [-Wimplicit-function-declaration] 51 | if (_PyObject_LookupAttrId(base, &PyId___mro_entries__, &meth) < 0) { | ^~~~~~~~~~~~~~~~~~~~~~ | _PyObject_GetAttrId /<<PKGBUILDDIR>>/mypyc/lib-rt/pythonsupport.h:62:20: error: implicit declaration of function ‘_PyObject_FastCall’; did you mean ‘PyObject_Call’? [-Wimplicit-function-declaration] 62 | new_base = _PyObject_FastCall(meth, stack, 1); | ^~~~~~~~~~~~~~~~~~ | PyObject_Call /<<PKGBUILDDIR>>/mypyc/lib-rt/pythonsupport.h:62:18: error: assignment to ‘PyObject *’ {aka ‘struct _object *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 62 | new_base = _PyObject_FastCall(meth, stack, 1); | ^ /<<PKGBUILDDIR>>/mypyc/lib-rt/pythonsupport.h: In function ‘init_subclass’: /<<PKGBUILDDIR>>/mypyc/lib-rt/pythonsupport.h:111:11: error: assignment to ‘PyObject *’ {aka ‘struct _object *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 111 | super = _PyObject_FastCall((PyObject *)&PySuper_Type, args, 2); | ^ /<<PKGBUILDDIR>>/mypyc/lib-rt/pythonsupport.h: In function ‘_PyGen_GetCode’: /<<PKGBUILDDIR>>/mypyc/lib-rt/pythonsupport.h:403:17: error: ‘_PyInterpreterFrame’ has no member named ‘f_code’ 403 | return frame->f_code; | ^~ /<<PKGBUILDDIR>>/mypyc/lib-rt/CPy.h: In function ‘CPy_CalculateMetaclass’: /<<PKGBUILDDIR>>/mypyc/lib-rt/CPy.h:850:24: error: implicit declaration of function ‘_PyType_CalculateMetaclass’; did you mean ‘CPy_CalculateMetaclass’? [-Wimplicit-function-declaration] 850 | return (PyObject *)_PyType_CalculateMetaclass((PyTypeObject *)type, o); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ | CPy_CalculateMetaclass /<<PKGBUILDDIR>>/mypyc/lib-rt/CPy.h:850:12: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast] 850 | return (PyObject *)_PyType_CalculateMetaclass((PyTypeObject *)type, o); | ^ /<<PKGBUILDDIR>>/mypyc/lib-rt/getargs.c: In function ‘vgetargskeywords’: /<<PKGBUILDDIR>>/mypyc/lib-rt/pythonsupport.h:310:45: error: implicit declaration of function ‘_PyUnicode_EqualToASCIIString’; did you mean ‘CPyUnicode_EqualToASCIIString’? [-Wimplicit-function-declaration] 310 | #define CPyUnicode_EqualToASCIIString(x, y) _PyUnicode_EqualToASCIIString(x, y) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /<<PKGBUILDDIR>>/mypyc/lib-rt/getargs.c:398:21: note: in expansion of macro ‘CPyUnicode_EqualToASCIIString’ 398 | if (CPyUnicode_EqualToASCIIString(key, kwlist[i])) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from build/__native_3204bda914b7f2c6f497.c:3: /<<PKGBUILDDIR>>/mypyc/lib-rt/getargsfast.c: In function ‘find_keyword’: /<<PKGBUILDDIR>>/mypyc/lib-rt/getargsfast.c:274:13: error: implicit declaration of function ‘_PyUnicode_EQ’; did you mean ‘PyUnicode_New’? [-Wimplicit-function-declaration] 274 | if (_PyUnicode_EQ(kwname, key)) { | ^~~~~~~~~~~~~ | PyUnicode_New In file included from build/__native_3204bda914b7f2c6f497.c:6: /<<PKGBUILDDIR>>/mypyc/lib-rt/str_ops.c: In function ‘CPyStr_Build’: /<<PKGBUILDDIR>>/mypyc/lib-rt/str_ops.c:120:17: error: implicit declaration of function ‘_PyUnicode_FastCopyCharacters’; did you mean ‘PyUnicode_CopyCharacters’? [-Wimplicit-function-declaration] 120 | _PyUnicode_FastCopyCharacters(res, res_offset, item, 0, itemlen); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | PyUnicode_CopyCharacters In file included from build/__native_3204bda914b7f2c6f497.c:7: /<<PKGBUILDDIR>>/mypyc/lib-rt/bytes_ops.c: In function ‘CPyBytes_Join’: /<<PKGBUILDDIR>>/mypyc/lib-rt/bytes_ops.c:105:16: error: implicit declaration of function ‘_PyObject_CallMethodIdOneArg’; did you mean ‘PyObject_CallMethodOneArg’? [-Wimplicit-function-declaration] 105 | return _PyObject_CallMethodIdOneArg(sep, &PyId_join, iter); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ | PyObject_CallMethodOneArg /<<PKGBUILDDIR>>/mypyc/lib-rt/bytes_ops.c:105:16: error: returning ‘int’ from a function with return type ‘PyObject *’ {aka ‘struct _object *’} makes pointer from integer without a cast [-Wint-conversion] 105 | return _PyObject_CallMethodIdOneArg(sep, &PyId_join, iter); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from build/__native_3204bda914b7f2c6f497.c:8: /<<PKGBUILDDIR>>/mypyc/lib-rt/list_ops.c: In function ‘CPyList_Extend’: /<<PKGBUILDDIR>>/mypyc/lib-rt/list_ops.c:259:12: error: implicit declaration of function ‘_PyList_Extend’; did you mean ‘CPyList_Extend’? [-Wimplicit-function-declaration] 259 | return _PyList_Extend((PyListObject *)o1, o2); | ^~~~~~~~~~~~~~ | CPyList_Extend /<<PKGBUILDDIR>>/mypyc/lib-rt/list_ops.c:259:12: error: returning ‘int’ from a function with return type ‘PyObject *’ {aka ‘struct _object *’} makes pointer from integer without a cast [-Wint-conversion] 259 | return _PyList_Extend((PyListObject *)o1, o2); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from build/__native_3204bda914b7f2c6f497.c:9: /<<PKGBUILDDIR>>/mypyc/lib-rt/dict_ops.c: In function ‘CPyDict_SetDefault’: /<<PKGBUILDDIR>>/mypyc/lib-rt/dict_ops.c:81:12: error: implicit declaration of function ‘_PyObject_CallMethodIdObjArgs’; did you mean ‘PyObject_CallMethodObjArgs’? [-Wimplicit-function-declaration] 81 | return _PyObject_CallMethodIdObjArgs(dict, &PyId_setdefault, key, value, NULL); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | PyObject_CallMethodObjArgs /<<PKGBUILDDIR>>/mypyc/lib-rt/dict_ops.c:81:12: error: returning ‘int’ from a function with return type ‘PyObject *’ {aka ‘struct _object *’} makes pointer from integer without a cast [-Wint-conversion] 81 | return _PyObject_CallMethodIdObjArgs(dict, &PyId_setdefault, key, value, NULL); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /<<PKGBUILDDIR>>/mypyc/lib-rt/dict_ops.c: In function ‘CPyDict_UpdateGeneral’: /<<PKGBUILDDIR>>/mypyc/lib-rt/dict_ops.c:136:21: error: initialization of ‘PyObject *’ {aka ‘struct _object *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 136 | PyObject *res = _PyObject_CallMethodIdOneArg(dict, &PyId_update, stuff); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /<<PKGBUILDDIR>>/mypyc/lib-rt/dict_ops.c: In function ‘CPyDict_KeysView’: /<<PKGBUILDDIR>>/mypyc/lib-rt/dict_ops.c:203:12: error: implicit declaration of function ‘_PyObject_CallMethodIdNoArgs’; did you mean ‘PyObject_CallMethodNoArgs’? [-Wimplicit-function-declaration] 203 | return _PyObject_CallMethodIdNoArgs(dict, &PyId_keys); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ | PyObject_CallMethodNoArgs /<<PKGBUILDDIR>>/mypyc/lib-rt/dict_ops.c:203:12: error: returning ‘int’ from a function with return type ‘PyObject *’ {aka ‘struct _object *’} makes pointer from integer without a cast [-Wint-conversion] 203 | return _PyObject_CallMethodIdNoArgs(dict, &PyId_keys); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /<<PKGBUILDDIR>>/mypyc/lib-rt/dict_ops.c: In function ‘CPyDict_ValuesView’: /<<PKGBUILDDIR>>/mypyc/lib-rt/dict_ops.c:211:12: error: returning ‘int’ from a function with return type ‘PyObject *’ {aka ‘struct _object *’} makes pointer from integer without a cast [-Wint-conversion] 211 | return _PyObject_CallMethodIdNoArgs(dict, &PyId_values); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /<<PKGBUILDDIR>>/mypyc/lib-rt/dict_ops.c: In function ‘CPyDict_ItemsView’: /<<PKGBUILDDIR>>/mypyc/lib-rt/dict_ops.c:219:12: error: returning ‘int’ from a function with return type ‘PyObject *’ {aka ‘struct _object *’} makes pointer from integer without a cast [-Wint-conversion] 219 | return _PyObject_CallMethodIdNoArgs(dict, &PyId_items); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /<<PKGBUILDDIR>>/mypyc/lib-rt/dict_ops.c: In function ‘CPyDict_Keys’: /<<PKGBUILDDIR>>/mypyc/lib-rt/dict_ops.c:229:22: error: initialization of ‘PyObject *’ {aka ‘struct _object *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 229 | PyObject *view = _PyObject_CallMethodIdNoArgs(dict, &PyId_keys); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /<<PKGBUILDDIR>>/mypyc/lib-rt/dict_ops.c:233:21: error: initialization of ‘PyObject *’ {aka ‘struct _object *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 233 | PyObject *res = _PyList_Extend((PyListObject *)list, view); | ^~~~~~~~~~~~~~ /<<PKGBUILDDIR>>/mypyc/lib-rt/dict_ops.c: In function ‘CPyDict_Values’: /<<PKGBUILDDIR>>/mypyc/lib-rt/dict_ops.c:249:22: error: initialization of ‘PyObject *’ {aka ‘struct _object *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 249 | PyObject *view = _PyObject_CallMethodIdNoArgs(dict, &PyId_values); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /<<PKGBUILDDIR>>/mypyc/lib-rt/dict_ops.c:253:21: error: initialization of ‘PyObject *’ {aka ‘struct _object *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 253 | PyObject *res = _PyList_Extend((PyListObject *)list, view); | ^~~~~~~~~~~~~~ /<<PKGBUILDDIR>>/mypyc/lib-rt/dict_ops.c: In function ‘CPyDict_Items’: /<<PKGBUILDDIR>>/mypyc/lib-rt/dict_ops.c:269:22: error: initialization of ‘PyObject *’ {aka ‘struct _object *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 269 | PyObject *view = _PyObject_CallMethodIdNoArgs(dict, &PyId_items); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /<<PKGBUILDDIR>>/mypyc/lib-rt/dict_ops.c:273:21: error: initialization of ‘PyObject *’ {aka ‘struct _object *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 273 | PyObject *res = _PyList_Extend((PyListObject *)list, view); | ^~~~~~~~~~~~~~ /<<PKGBUILDDIR>>/mypyc/lib-rt/dict_ops.c: In function ‘CPyDict_Clear’: /<<PKGBUILDDIR>>/mypyc/lib-rt/dict_ops.c:287:25: error: initialization of ‘PyObject *’ {aka ‘struct _object *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 287 | PyObject *res = _PyObject_CallMethodIdNoArgs(dict, &PyId_clear); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /<<PKGBUILDDIR>>/mypyc/lib-rt/dict_ops.c: In function ‘CPyDict_Copy’: /<<PKGBUILDDIR>>/mypyc/lib-rt/dict_ops.c:300:12: error: returning ‘int’ from a function with return type ‘PyObject *’ {aka ‘struct _object *’} makes pointer from integer without a cast [-Wint-conversion] 300 | return _PyObject_CallMethodIdNoArgs(dict, &PyId_copy); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /<<PKGBUILDDIR>>/mypyc/lib-rt/dict_ops.c: In function ‘CPyDict_GetItemsIter’: /<<PKGBUILDDIR>>/mypyc/lib-rt/dict_ops.c:319:22: error: initialization of ‘PyObject *’ {aka ‘struct _object *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 319 | PyObject *view = _PyObject_CallMethodIdNoArgs(dict, &PyId_items); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /<<PKGBUILDDIR>>/mypyc/lib-rt/dict_ops.c: In function ‘CPyDict_GetValuesIter’: /<<PKGBUILDDIR>>/mypyc/lib-rt/dict_ops.c:335:22: error: initialization of ‘PyObject *’ {aka ‘struct _object *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 335 | PyObject *view = _PyObject_CallMethodIdNoArgs(dict, &PyId_values); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from build/__native_3204bda914b7f2c6f497.c:10: /<<PKGBUILDDIR>>/mypyc/lib-rt/set_ops.c: In function ‘CPySet_Remove’: /<<PKGBUILDDIR>>/mypyc/lib-rt/set_ops.c:14:9: error: implicit declaration of function ‘_PyErr_SetKeyError’; did you mean ‘PyErr_SetImportError’? [-Wimplicit-function-declaration] 14 | _PyErr_SetKeyError(key); | ^~~~~~~~~~~~~~~~~~ | PyErr_SetImportError In file included from build/__native_3204bda914b7f2c6f497.c:13: /<<PKGBUILDDIR>>/mypyc/lib-rt/misc_ops.c: In function ‘CPyIter_Send’: /<<PKGBUILDDIR>>/mypyc/lib-rt/misc_ops.c:31:16: error: returning ‘int’ from a function with return type ‘PyObject *’ {aka ‘struct _object *’} makes pointer from integer without a cast [-Wint-conversion] 31 | return _PyObject_CallMethodIdOneArg(iter, &PyId_send, val); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /<<PKGBUILDDIR>>/mypyc/lib-rt/misc_ops.c: In function ‘CPy_FetchStopIterationValue’: /<<PKGBUILDDIR>>/mypyc/lib-rt/misc_ops.c:101:5: error: implicit declaration of function ‘_PyGen_FetchStopIterationValue’; did you mean ‘CPy_FetchStopIterationValue’? [-Wimplicit-function-declaration] 101 | _PyGen_FetchStopIterationValue(&val); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | CPy_FetchStopIterationValue /<<PKGBUILDDIR>>/mypyc/lib-rt/misc_ops.c: In function ‘CPyType_FromTemplate’: /<<PKGBUILDDIR>>/mypyc/lib-rt/misc_ops.c:166:19: error: assignment to ‘PyTypeObject *’ {aka ‘struct _typeobject *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 166 | metaclass = _PyType_CalculateMetaclass(metaclass, bases); | ^ /<<PKGBUILDDIR>>/mypyc/lib-rt/misc_ops.c: In function ‘CPy_GetANext’: /<<PKGBUILDDIR>>/mypyc/lib-rt/misc_ops.c:926:13: error: implicit declaration of function ‘_PyErr_FormatFromCause’ [-Wimplicit-function-declaration] 926 | _PyErr_FormatFromCause( | ^~~~~~~~~~~~~~~~~~~~~~ build/__native_3204bda914b7f2c6f497.c: In function ‘api_____mypyc_lambda__0_run_obj_traverse’: build/__native_3204bda914b7f2c6f497.c:195:5: error: implicit declaration of function ‘_PyObject_VisitManagedDict’; did you mean ‘PyObject_VisitManagedDict’? [-Wimplicit-function-declaration] 195 | _PyObject_VisitManagedDict((PyObject *)self, visit, arg); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ | PyObject_VisitManagedDict build/__native_3204bda914b7f2c6f497.c: In function ‘api_____mypyc_lambda__0_run_obj_clear’: build/__native_3204bda914b7f2c6f497.c:203:5: error: implicit declaration of function ‘_PyObject_ClearManagedDict’; did you mean ‘PyObject_ClearManagedDict’? [-Wimplicit-function-declaration] 203 | _PyObject_ClearManagedDict((PyObject *)self); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ | PyObject_ClearManagedDict build/__native_3204bda914b7f2c6f497.c: In function ‘CPyDef_mypy___build___invert_deps’: build/__native_3204bda914b7f2c6f497.c:42555:17: error: implicit declaration of function ‘_PySet_Update’; did you mean ‘CPyDict_Update’? [-Wimplicit-function-declaration] 42555 | cpy_r_r53 = _PySet_Update(cpy_r_r52, cpy_r_r34); | ^~~~~~~~~~~~~ | CPyDict_Update /<<PKGBUILDDIR>>/mypyc/lib-rt/pythonsupport.h: In function ‘_PyGen_GetCode’: /<<PKGBUILDDIR>>/mypyc/lib-rt/pythonsupport.h:404:1: error: control reaches end of non-void function [-Werror=return-type] 404 | } | ^ At top level: cc1: note: unrecognized command-line option ‘-Wno-ignored-optimization-argument’ may have been intended to silence earlier diagnostics cc1: note: unrecognized command-line option ‘-Wno-unknown-warning-option’ may have been intended to silence earlier diagnostics cc1: note: unrecognized command-line option ‘-Wno-unused-command-line-argument’ may have been intended to silence earlier diagnostics cc1: all warnings being treated as errors error: command '/usr/bin/aarch64-linux-gnu-gcc' failed with exit code 1 ERROR Backend subprocess exited when trying to invoke build_wheel E: pybuild pybuild:389: build: plugin pyproject failed with: exit code=1: python3.13 -m build --skip-dependency-check --no-isolation --wheel --outdir /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_mypy If required, the full build log is available here (for the next 30 days): https://debusine.debian.net/artifact/709112/ This bug has been filed at "normal" severity, as we haven't started the transition to add 3.13 as a supported version, yet. This will be raised to RC as soon as that happens, hopefully well before trixie. Thanks, Stefano