Source: black
Version: 24.8.0-1
Severity: normal
User: [email protected]
Usertags: python3.13
Block: -1 with 1081617

This package failed build from source when test-built against a version of
python3-defaults that includes 3.13 as a supported version.

To reproduce this issue, build against python3-defaults (python3-all-dev etc.)
from Debian experimental.

Looks like the issue is probably mypyc lacking 3.13 support:
https://github.com/python/mypy/issues/17264

What's new in Python 3.13:
https://docs.python.org/3.13/whatsnew/3.13.html

Log snippet:

I: pybuild plugin_pyproject:129: Building wheel for python3.13 with "build" 
module
I: pybuild base:311: python3.13 -m build --skip-dependency-check --no-isolation 
--wheel --outdir /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13  --verbose
* Building wheel...
Building `wheel` version `standard`
Traceback (most recent call last):
  File 
"/usr/lib/python3/dist-packages/pyproject_hooks/_in_process/_in_process.py", 
line 373, in <module>
    main()
    ~~~~^^
  File 
"/usr/lib/python3/dist-packages/pyproject_hooks/_in_process/_in_process.py", 
line 357, in main
    json_out["return_val"] = hook(**hook_input["kwargs"])
                             ~~~~^^^^^^^^^^^^^^^^^^^^^^^^
  File 
"/usr/lib/python3/dist-packages/pyproject_hooks/_in_process/_in_process.py", 
line 271, in build_wheel
    return _build_backend().build_wheel(
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
        wheel_directory, config_settings, metadata_directory
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "/usr/lib/python3/dist-packages/hatchling/build.py", line 58, in 
build_wheel
    return os.path.basename(next(builder.build(directory=wheel_directory, 
versions=['standard'])))
                            
~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/hatchling/builders/plugin/interface.py", 
line 147, in build
    build_hook.initialize(version, build_data)
    ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/hatch_mypyc/plugin.py", line 338, in 
initialize
    raise Exception(f'Error while invoking 
Mypyc:\n{process.stdout.decode("utf-8")}')
Exception: Error while invoking Mypyc:
Parsed and typechecked in 14.631s
Compiling numerics, pgen, handle_ipynb_magics, driver, pytree, pygram, lines, 
grammar, parsing, comments, conv, const, trans, _width_table, brackets, nodes, 
black, parse, ranges, resources, rusty, cache, schema, token, linegen, mode, 
tokenize, literals, strings
src/black/trans.py:679: warning: Treating generator comprehension as list
Compiled to C in 6.643s
running build_ext
building '30fcd23745efe32ce681__mypyc' extension
creating /tmp/tmp7udtpbbe/tmp/tmp
creating /tmp/tmp7udtpbbe/tmp/tmp/tmp7udtpbbe
creating /tmp/tmp7udtpbbe/tmp/tmp/tmp7udtpbbe/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 -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC 
-I/usr/lib/python3/dist-packages/mypyc/lib-rt -I/tmp/tmp7udtpbbe/build 
-I/usr/include/python3.13 -c 
/tmp/tmp7udtpbbe/build/__native_30fcd23745efe32ce681.c -o 
/tmp/tmp7udtpbbe/tmp/tmp/tmp7udtpbbe/build/__native_30fcd23745efe32ce681.o -O3 
-g1 -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 
/usr/lib/python3/dist-packages/mypyc/lib-rt/pythonsupport.h:17,
                 from /usr/lib/python3/dist-packages/mypyc/lib-rt/CPy.h:12,
                 from /usr/lib/python3/dist-packages/mypyc/lib-rt/init.c:2,
                 from /tmp/tmp7udtpbbe/build/__native_30fcd23745efe32ce681.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"
      |    ^~~~~
/usr/lib/python3/dist-packages/mypyc/lib-rt/pythonsupport.h: In function 
‘update_bases’:
/usr/lib/python3/dist-packages/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
/usr/lib/python3/dist-packages/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
/usr/lib/python3/dist-packages/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);
      |                  ^
/usr/lib/python3/dist-packages/mypyc/lib-rt/pythonsupport.h: In function 
‘init_subclass’:
/usr/lib/python3/dist-packages/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);
      |           ^
/usr/lib/python3/dist-packages/mypyc/lib-rt/pythonsupport.h: In function 
‘_PyGen_GetCode’:
/usr/lib/python3/dist-packages/mypyc/lib-rt/pythonsupport.h:403:17: error: 
‘_PyInterpreterFrame’ has no member named ‘f_code’
  403 |     return frame->f_code;
      |                 ^~
/usr/lib/python3/dist-packages/mypyc/lib-rt/CPy.h: In function 
‘CPy_CalculateMetaclass’:
/usr/lib/python3/dist-packages/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
/usr/lib/python3/dist-packages/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);
      |            ^
/usr/lib/python3/dist-packages/mypyc/lib-rt/getargs.c: In function 
‘vgetargskeywords’:
/usr/lib/python3/dist-packages/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)
      |                                             
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/lib/python3/dist-packages/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 /tmp/tmp7udtpbbe/build/__native_30fcd23745efe32ce681.c:3:
/usr/lib/python3/dist-packages/mypyc/lib-rt/getargsfast.c: In function 
‘find_keyword’:
/usr/lib/python3/dist-packages/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 /tmp/tmp7udtpbbe/build/__native_30fcd23745efe32ce681.c:6:
/usr/lib/python3/dist-packages/mypyc/lib-rt/str_ops.c: In function 
‘CPyStr_Build’:
/usr/lib/python3/dist-packages/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 /tmp/tmp7udtpbbe/build/__native_30fcd23745efe32ce681.c:7:
/usr/lib/python3/dist-packages/mypyc/lib-rt/bytes_ops.c: In function 
‘CPyBytes_Join’:
/usr/lib/python3/dist-packages/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
/usr/lib/python3/dist-packages/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 /tmp/tmp7udtpbbe/build/__native_30fcd23745efe32ce681.c:8:
/usr/lib/python3/dist-packages/mypyc/lib-rt/list_ops.c: In function 
‘CPyList_Extend’:
/usr/lib/python3/dist-packages/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
/usr/lib/python3/dist-packages/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 /tmp/tmp7udtpbbe/build/__native_30fcd23745efe32ce681.c:9:
/usr/lib/python3/dist-packages/mypyc/lib-rt/dict_ops.c: In function 
‘CPyDict_SetDefault’:
/usr/lib/python3/dist-packages/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
/usr/lib/python3/dist-packages/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);
      |            
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/lib/python3/dist-packages/mypyc/lib-rt/dict_ops.c: In function 
‘CPyDict_UpdateGeneral’:
/usr/lib/python3/dist-packages/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);
      |                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/lib/python3/dist-packages/mypyc/lib-rt/dict_ops.c: In function 
‘CPyDict_KeysView’:
/usr/lib/python3/dist-packages/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
/usr/lib/python3/dist-packages/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);
      |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/lib/python3/dist-packages/mypyc/lib-rt/dict_ops.c: In function 
‘CPyDict_ValuesView’:
/usr/lib/python3/dist-packages/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);
      |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/lib/python3/dist-packages/mypyc/lib-rt/dict_ops.c: In function 
‘CPyDict_ItemsView’:
/usr/lib/python3/dist-packages/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);
      |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/lib/python3/dist-packages/mypyc/lib-rt/dict_ops.c: In function 
‘CPyDict_Keys’:
/usr/lib/python3/dist-packages/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);
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/lib/python3/dist-packages/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);
      |                     ^~~~~~~~~~~~~~
/usr/lib/python3/dist-packages/mypyc/lib-rt/dict_ops.c: In function 
‘CPyDict_Values’:
/usr/lib/python3/dist-packages/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);
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/lib/python3/dist-packages/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);
      |                     ^~~~~~~~~~~~~~
/usr/lib/python3/dist-packages/mypyc/lib-rt/dict_ops.c: In function 
‘CPyDict_Items’:
/usr/lib/python3/dist-packages/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);
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/lib/python3/dist-packages/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);
      |                     ^~~~~~~~~~~~~~
/usr/lib/python3/dist-packages/mypyc/lib-rt/dict_ops.c: In function 
‘CPyDict_Clear’:
/usr/lib/python3/dist-packages/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);
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/lib/python3/dist-packages/mypyc/lib-rt/dict_ops.c: In function 
‘CPyDict_Copy’:
/usr/lib/python3/dist-packages/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);
      |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/lib/python3/dist-packages/mypyc/lib-rt/dict_ops.c: In function 
‘CPyDict_GetItemsIter’:
/usr/lib/python3/dist-packages/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);
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/lib/python3/dist-packages/mypyc/lib-rt/dict_ops.c: In function 
‘CPyDict_GetValuesIter’:
/usr/lib/python3/dist-packages/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 /tmp/tmp7udtpbbe/build/__native_30fcd23745efe32ce681.c:10:
/usr/lib/python3/dist-packages/mypyc/lib-rt/set_ops.c: In function 
‘CPySet_Remove’:
/usr/lib/python3/dist-packages/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 /tmp/tmp7udtpbbe/build/__native_30fcd23745efe32ce681.c:13:
/usr/lib/python3/dist-packages/mypyc/lib-rt/misc_ops.c: In function 
‘CPyIter_Send’:
/usr/lib/python3/dist-packages/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);
      |                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/lib/python3/dist-packages/mypyc/lib-rt/misc_ops.c: In function 
‘CPy_FetchStopIterationValue’:
/usr/lib/python3/dist-packages/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
/usr/lib/python3/dist-packages/mypyc/lib-rt/misc_ops.c: In function 
‘CPyType_FromTemplate’:
/usr/lib/python3/dist-packages/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);
      |                   ^
/usr/lib/python3/dist-packages/mypyc/lib-rt/misc_ops.c: In function 
‘CPy_GetANext’:
/usr/lib/python3/dist-packages/mypyc/lib-rt/misc_ops.c:926:13: error: implicit 
declaration of function ‘_PyErr_FormatFromCause’ 
[-Wimplicit-function-declaration]
  926 |             _PyErr_FormatFromCause(
      |             ^~~~~~~~~~~~~~~~~~~~~~
/tmp/tmp7udtpbbe/build/__native_30fcd23745efe32ce681.c: In function 
‘black___get_imports_from_children_get_future_imports_obj_traverse’:
/tmp/tmp7udtpbbe/build/__native_30fcd23745efe32ce681.c:357:5: error: implicit 
declaration of function ‘_PyObject_VisitManagedDict’; did you mean 
‘PyObject_VisitManagedDict’? [-Wimplicit-function-declaration]
  357 |     _PyObject_VisitManagedDict((PyObject *)self, visit, arg);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~
      |     PyObject_VisitManagedDict
/tmp/tmp7udtpbbe/build/__native_30fcd23745efe32ce681.c: In function 
‘black___get_imports_from_children_get_future_imports_obj_clear’:
/tmp/tmp7udtpbbe/build/__native_30fcd23745efe32ce681.c:365:5: error: implicit 
declaration of function ‘_PyObject_ClearManagedDict’; did you mean 
‘PyObject_ClearManagedDict’? [-Wimplicit-function-declaration]
  365 |     _PyObject_ClearManagedDict((PyObject *)self);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~
      |     PyObject_ClearManagedDict
/tmp/tmp7udtpbbe/build/__native_30fcd23745efe32ce681.c: In function 
‘CPyDef_black___get_sources’:
/tmp/tmp7udtpbbe/build/__native_30fcd23745efe32ce681.c:6467:18: error: implicit 
declaration of function ‘_PySet_Update’; did you mean ‘CPyDict_Update’? 
[-Wimplicit-function-declaration]
 6467 |     cpy_r_r205 = _PySet_Update(cpy_r_r0, cpy_r_r204);
      |                  ^~~~~~~~~~~~~
      |                  CPyDict_Update
/usr/lib/python3/dist-packages/mypyc/lib-rt/pythonsupport.h: In function 
‘_PyGen_GetCode’:
/usr/lib/python3/dist-packages/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  --verbose
I: pybuild plugin_pyproject:129: Building wheel for python3.12 with "build" 
module
I: pybuild base:311: python3.12 -m build --skip-dependency-check --no-isolation 
--wheel --outdir /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12  --verbose
* Building wheel...
Building `wheel` version `standard`
Successfully built black-24.8.0-cp312-cp312-linux_aarch64.whl
I: pybuild plugin_pyproject:144: Unpacking wheel built for python3.12 with 
"installer" module
dh_auto_build: error: pybuild --build -i python{version} -p "3.13 3.12" 
returned exit code 13
make: *** [debian/rules:11: binary-arch] Error 25
dpkg-buildpackage: error: debian/rules binary-arch subprocess returned exit 
status 2
--------------------------------------------------------------------------------
Build finished at 2024-09-17T07:32:53Z

If required, the full build log is available here (for the next 30 days):
https://debusine.debian.net/artifact/761714/

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

Reply via email to