Bug 2039365
Summary: | petsc fails to build with Python 3.11: src/petsc4py.PETSc.c:318:11: error: too few arguments to function ‘PyCode_New’ | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Tomáš Hrnčiar <thrnciar> |
Component: | petsc | Assignee: | Antonio T. sagitter <trpost> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 36 | CC: | mhroncok, pviktori, thrnciar, trpost |
Target Milestone: | --- | Keywords: | Reopened |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | petsc-3.17.2-3.fc37 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2022-06-21 02:28:03 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 2016048, 2045102, 2045109 |
Description
Tomáš Hrnčiar
2022-01-11 15:36:05 UTC
FEDORA-2022-efa6021c1a has been submitted as an update to Fedora 36. https://bodhi.fedoraproject.org/updates/FEDORA-2022-efa6021c1a FEDORA-2022-efa6021c1a has been pushed to the Fedora 36 stable repository. If problem still persists, please make note of it in this bug report. + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1' + /usr/bin/python3 setup.py build '--executable=/usr/bin/python3 -s' running build running build_src running build_py creating build creating build/lib.linux-x86_64-3.11 creating build/lib.linux-x86_64-3.11/petsc4py copying src/__init__.py -> build/lib.linux-x86_64-3.11/petsc4py copying src/PETSc.py -> build/lib.linux-x86_64-3.11/petsc4py copying src/__main__.py -> build/lib.linux-x86_64-3.11/petsc4py creating build/lib.linux-x86_64-3.11/petsc4py/lib copying src/lib/__init__.py -> build/lib.linux-x86_64-3.11/petsc4py/lib creating build/lib.linux-x86_64-3.11/petsc4py/include creating build/lib.linux-x86_64-3.11/petsc4py/include/petsc4py copying src/include/petsc4py/petsc4py.PETSc_api.h -> build/lib.linux-x86_64-3.11/petsc4py/include/petsc4py copying src/include/petsc4py/petsc4py.h -> build/lib.linux-x86_64-3.11/petsc4py/include/petsc4py copying src/include/petsc4py/numpy.h -> build/lib.linux-x86_64-3.11/petsc4py/include/petsc4py copying src/include/petsc4py/petsc4py.PETSc.h -> build/lib.linux-x86_64-3.11/petsc4py/include/petsc4py copying src/include/petsc4py/petsc4py.i -> build/lib.linux-x86_64-3.11/petsc4py/include/petsc4py copying src/include/petsc4py/PETSc.pxd -> build/lib.linux-x86_64-3.11/petsc4py/include/petsc4py copying src/include/petsc4py/__init__.pxd -> build/lib.linux-x86_64-3.11/petsc4py/include/petsc4py copying src/include/petsc4py/__init__.pyx -> build/lib.linux-x86_64-3.11/petsc4py/include/petsc4py copying src/PETSc.pxd -> build/lib.linux-x86_64-3.11/petsc4py copying src/lib/petsc.cfg -> build/lib.linux-x86_64-3.11/petsc4py/lib running build_ext PETSC_DIR: /builddir/build/BUILD/petsc-3.16.3/buildopenmpi_dir PETSC_ARCH: x86_64 version: 3.16.3 release integer-size: 32-bit scalar-type: real precision: double language: CONLY compiler: /usr/lib64/openmpi/bin/mpicc linker: /usr/lib64/openmpi/bin/mpicc building 'PETSc' extension creating build/temp.linux-x86_64-3.11 creating build/temp.linux-x86_64-3.11/x86_64 creating build/temp.linux-x86_64-3.11/x86_64/src /usr/lib64/openmpi/bin/mpicc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O3 -fPIC -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O3 -fPIC -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/include/flexiblas -I/usr/include/openmpi-x86_64/superlu_dist -I/usr/include/openmpi-x86_64/hypre -I/builddir/build/BUILD/petsc-3.16.3/buildopenmpi_dir/x86_64/include -I/builddir/build/BUILD/petsc-3.16.3/buildopenmpi_dir/include -Isrc/include -I/usr/lib64/python3.11/site-packages/numpy/core/include -I/usr/include/python3.11 -c src/PETSc.c -o build/temp.linux-x86_64-3.11/x86_64/src/PETSc.o In file included from src/PETSc.c:4: src/petsc4py.PETSc.c: In function ‘__Pyx_InitCachedConstants’: src/petsc4py.PETSc.c:341687:278: warning: passing argument 14 of ‘PyCode_New’ makes pointer from integer without a cast [-Wint-conversion] 341687 | __pyx_codeobj__23 = (PyObject*)__Pyx_PyCode_New(0, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS|CO_VARARGS|CO_VARKEYWORDS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__22, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_PETSc_Log_pyx, __pyx_n_s_wrapped_func, 110, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__23)) __PYX_ERR(28, 110, __pyx_L1_error) | ^~~ | | | int src/petsc4py.PETSc.c:318:72: note: in definition of macro ‘__Pyx_PyCode_New’ 318 | PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos) | ^~~~~ In file included from /usr/include/python3.11/code.h:13, from /usr/include/python3.11/Python.h:69, from src/petsc4py.PETSc.c:4, from src/PETSc.c:4: /usr/include/python3.11/cpython/code.h:156:33: note: expected ‘PyObject *’ {aka ‘struct _object *’} but argument is of type ‘int’ 156 | PyObject *, PyObject *, PyObject *, int, PyObject *, | ^~~~~~~~~~ In file included from src/PETSc.c:4: src/petsc4py.PETSc.c:341687:283: warning: passing argument 15 of ‘PyCode_New’ makes integer from pointer without a cast [-Wint-conversion] 341687 | __pyx_codeobj__23 = (PyObject*)__Pyx_PyCode_New(0, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS|CO_VARARGS|CO_VARKEYWORDS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__22, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_PETSc_Log_pyx, __pyx_n_s_wrapped_func, 110, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__23)) __PYX_ERR(28, 110, __pyx_L1_error) | ^~~~~~~~~~~~~~~~~ | | | PyObject * {aka struct _object *} src/petsc4py.PETSc.c:318:79: note: in definition of macro ‘__Pyx_PyCode_New’ 318 | PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos) | ^~~~ In file included from /usr/include/python3.11/code.h:13, from /usr/include/python3.11/Python.h:69, from src/petsc4py.PETSc.c:4, from src/PETSc.c:4: /usr/include/python3.11/cpython/code.h:156:45: note: expected ‘int’ but argument is of type ‘PyObject *’ {aka ‘struct _object *’} 156 | PyObject *, PyObject *, PyObject *, int, PyObject *, | ^~~ In file included from src/PETSc.c:4: src/petsc4py.PETSc.c:318:11: error: too few arguments to function ‘PyCode_New’ 318 | PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos) | ^~~~~~~~~~ src/petsc4py.PETSc.c:341687:34: note: in expansion of macro ‘__Pyx_PyCode_New’ 341687 | __pyx_codeobj__23 = (PyObject*)__Pyx_PyCode_New(0, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS|CO_VARARGS|CO_VARKEYWORDS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__22, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_PETSc_Log_pyx, __pyx_n_s_wrapped_func, 110, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__23)) __PYX_ERR(28, 110, __pyx_L1_error) | ^~~~~~~~~~~~~~~~ In file included from /usr/include/python3.11/code.h:13, from /usr/include/python3.11/Python.h:69, from src/petsc4py.PETSc.c:4, from src/PETSc.c:4: /usr/include/python3.11/cpython/code.h:153:28: note: declared here 153 | PyAPI_FUNC(PyCodeObject *) PyCode_New( | ^~~~~~~~~~ In file included from src/PETSc.c:4: src/petsc4py.PETSc.c:341699:249: warning: passing argument 14 of ‘PyCode_New’ makes pointer from integer without a cast [-Wint-conversion] 341699 | __pyx_codeobj__25 = (PyObject*)__Pyx_PyCode_New(1, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__24, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_PETSc_Log_pyx, __pyx_n_s_decorator, 108, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__25)) __PYX_ERR(28, 108, __pyx_L1_error) | ^~~ | | | int src/petsc4py.PETSc.c:318:72: note: in definition of macro ‘__Pyx_PyCode_New’ 318 | PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos) | ^~~~~ In file included from /usr/include/python3.11/code.h:13, from /usr/include/python3.11/Python.h:69, from src/petsc4py.PETSc.c:4, from src/PETSc.c:4: /usr/include/python3.11/cpython/code.h:156:33: note: expected ‘PyObject *’ {aka ‘struct _object *’} but argument is of type ‘int’ 156 | PyObject *, PyObject *, PyObject *, int, PyObject *, | ^~~~~~~~~~ In file included from src/PETSc.c:4: src/petsc4py.PETSc.c:341699:254: warning: passing argument 15 of ‘PyCode_New’ makes integer from pointer without a cast [-Wint-conversion] 341699 | __pyx_codeobj__25 = (PyObject*)__Pyx_PyCode_New(1, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__24, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_PETSc_Log_pyx, __pyx_n_s_decorator, 108, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__25)) __PYX_ERR(28, 108, __pyx_L1_error) | ^~~~~~~~~~~~~~~~~ | | | PyObject * {aka struct _object *} src/petsc4py.PETSc.c:318:79: note: in definition of macro ‘__Pyx_PyCode_New’ 318 | PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos) | ^~~~ In file included from /usr/include/python3.11/code.h:13, from /usr/include/python3.11/Python.h:69, from src/petsc4py.PETSc.c:4, from src/PETSc.c:4: /usr/include/python3.11/cpython/code.h:156:45: note: expected ‘int’ but argument is of type ‘PyObject *’ {aka ‘struct _object *’} 156 | PyObject *, PyObject *, PyObject *, int, PyObject *, | ^~~ In file included from src/PETSc.c:4: src/petsc4py.PETSc.c:318:11: error: too few arguments to function ‘PyCode_New’ 318 | PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos) | ^~~~~~~~~~ src/petsc4py.PETSc.c:341699:34: note: in expansion of macro ‘__Pyx_PyCode_New’ 341699 | __pyx_codeobj__25 = (PyObject*)__Pyx_PyCode_New(1, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__24, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_PETSc_Log_pyx, __pyx_n_s_decorator, 108, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__25)) __PYX_ERR(28, 108, __pyx_L1_error) | ^~~~~~~~~~~~~~~~ In file included from /usr/include/python3.11/code.h:13, from /usr/include/python3.11/Python.h:69, from src/petsc4py.PETSc.c:4, from src/PETSc.c:4: /usr/include/python3.11/cpython/code.h:153:28: note: declared here 153 | PyAPI_FUNC(PyCodeObject *) PyCode_New( | ^~~~~~~~~~ In file included from src/PETSc.c:4: src/petsc4py.PETSc.c:342239:246: warning: passing argument 14 of ‘PyCode_New’ makes pointer from integer without a cast [-Wint-conversion] 342239 | __pyx_codeobj__81 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__80, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_PETSc_Error_pyx, __pyx_n_s_init, 7, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__81)) __PYX_ERR(1, 7, __pyx_L1_error) | ^ | | | int src/petsc4py.PETSc.c:318:72: note: in definition of macro ‘__Pyx_PyCode_New’ 318 | PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos) | ^~~~~ In file included from /usr/include/python3.11/code.h:13, from /usr/include/python3.11/Python.h:69, from src/petsc4py.PETSc.c:4, from src/PETSc.c:4: /usr/include/python3.11/cpython/code.h:156:33: note: expected ‘PyObject *’ {aka ‘struct _object *’} but argument is of type ‘int’ 156 | PyObject *, PyObject *, PyObject *, int, PyObject *, | ^~~~~~~~~~ In file included from src/PETSc.c:4: src/petsc4py.PETSc.c:342239:249: warning: passing argument 15 of ‘PyCode_New’ makes integer from pointer without a cast [-Wint-conversion] 342239 | __pyx_codeobj__81 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__80, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_PETSc_Error_pyx, __pyx_n_s_init, 7, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__81)) __PYX_ERR(1, 7, __pyx_L1_error) | ^~~~~~~~~~~~~~~~~ | | | PyObject * {aka struct _object *} src/petsc4py.PETSc.c:318:79: note: in definition of macro ‘__Pyx_PyCode_New’ 318 | PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos) | ^~~~ In file included from /usr/include/python3.11/code.h:13, from /usr/include/python3.11/Python.h:69, from src/petsc4py.PETSc.c:4, from src/PETSc.c:4: /usr/include/python3.11/cpython/code.h:156:45: note: expected ‘int’ but argument is of type ‘PyObject *’ {aka ‘struct _object *’} 156 | PyObject *, PyObject *, PyObject *, int, PyObject *, | ^~~ In file included from src/PETSc.c:4: src/petsc4py.PETSc.c:318:11: error: too few arguments to function ‘PyCode_New’ 318 | PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos) | ^~~~~~~~~~ src/petsc4py.PETSc.c:342239:34: note: in expansion of macro ‘__Pyx_PyCode_New’ 342239 | __pyx_codeobj__81 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__80, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_PETSc_Error_pyx, __pyx_n_s_init, 7, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__81)) __PYX_ERR(1, 7, __pyx_L1_error) | ^~~~~~~~~~~~~~~~ In file included from /usr/include/python3.11/code.h:13, from /usr/include/python3.11/Python.h:69, from src/petsc4py.PETSc.c:4, from src/PETSc.c:4: /usr/include/python3.11/cpython/code.h:153:28: note: declared here 153 | PyAPI_FUNC(PyCodeObject *) PyCode_New( | ^~~~~~~~~~ In file included from src/PETSc.c:4: src/petsc4py.PETSc.c:342251:251: warning: passing argument 14 of ‘PyCode_New’ makes pointer from integer without a cast [-Wint-conversion] 342251 | __pyx_codeobj__83 = (PyObject*)__Pyx_PyCode_New(1, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__82, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_PETSc_Error_pyx, __pyx_n_s_nonzero_2, 11, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__83)) __PYX_ERR(1, 11, __pyx_L1_error) | ^~ | | | int src/petsc4py.PETSc.c:318:72: note: in definition of macro ‘__Pyx_PyCode_New’ 318 | PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos) | ^~~~~ In file included from /usr/include/python3.11/code.h:13, from /usr/include/python3.11/Python.h:69, from src/petsc4py.PETSc.c:4, from src/PETSc.c:4: /usr/include/python3.11/cpython/code.h:156:33: note: expected ‘PyObject *’ {aka ‘struct _object *’} but argument is of type ‘int’ 156 | PyObject *, PyObject *, PyObject *, int, PyObject *, | ^~~~~~~~~~ In file included from src/PETSc.c:4: src/petsc4py.PETSc.c:342251:255: warning: passing argument 15 of ‘PyCode_New’ makes integer from pointer without a cast [-Wint-conversion] 342251 | __pyx_codeobj__83 = (PyObject*)__Pyx_PyCode_New(1, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__82, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_PETSc_Error_pyx, __pyx_n_s_nonzero_2, 11, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__83)) __PYX_ERR(1, 11, __pyx_L1_error) | ^~~~~~~~~~~~~~~~~ | | | PyObject * {aka struct _object *} src/petsc4py.PETSc.c:318:79: note: in definition of macro ‘__Pyx_PyCode_New’ 318 | PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos) | ^~~~ In file included from /usr/include/python3.11/code.h:13, from /usr/include/python3.11/Python.h:69, from src/petsc4py.PETSc.c:4, from src/PETSc.c:4: /usr/include/python3.11/cpython/code.h:156:45: note: expected ‘int’ but argument is of type ‘PyObject *’ {aka ‘struct _object *’} 156 | PyObject *, PyObject *, PyObject *, int, PyObject *, | ^~~ In file included from src/PETSc.c:4: src/petsc4py.PETSc.c:318:11: error: too few arguments to function ‘PyCode_New’ 318 | PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos) | ^~~~~~~~~~ src/petsc4py.PETSc.c:342251:34: note: in expansion of macro ‘__Pyx_PyCode_New’ 342251 | __pyx_codeobj__83 = (PyObject*)__Pyx_PyCode_New(1, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__82, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_PETSc_Error_pyx, __pyx_n_s_nonzero_2, 11, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__83)) __PYX_ERR(1, 11, __pyx_L1_error) | ^~~~~~~~~~~~~~~~ In file included from /usr/include/python3.11/code.h:13, from /usr/include/python3.11/Python.h:69, from src/petsc4py.PETSc.c:4, from src/PETSc.c:4: /usr/include/python3.11/cpython/code.h:153:28: note: declared here 153 | PyAPI_FUNC(PyCodeObject *) PyCode_New( | ^~~~~~~~~~ In file included from src/PETSc.c:4: src/petsc4py.PETSc.c:342263:246: warning: passing argument 14 of ‘PyCode_New’ makes pointer from integer without a cast [-Wint-conversion] 342263 | __pyx_codeobj__85 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__84, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_PETSc_Error_pyx, __pyx_n_s_repr, 15, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__85)) __PYX_ERR(1, 15, __pyx_L1_error) | ^~ | | | int src/petsc4py.PETSc.c:318:72: note: in definition of macro ‘__Pyx_PyCode_New’ 318 | PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos) | ^~~~~ In file included from /usr/include/python3.11/code.h:13, from /usr/include/python3.11/Python.h:69, from src/petsc4py.PETSc.c:4, from src/PETSc.c:4: /usr/include/python3.11/cpython/code.h:156:33: note: expected ‘PyObject *’ {aka ‘struct _object *’} but argument is of type ‘int’ 156 | PyObject *, PyObject *, PyObject *, int, PyObject *, | ^~~~~~~~~~ In file included from src/PETSc.c:4: src/petsc4py.PETSc.c:342263:250: warning: passing argument 15 of ‘PyCode_New’ makes integer from pointer without a cast [-Wint-conversion] 342263 | __pyx_codeobj__85 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__84, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_PETSc_Error_pyx, __pyx_n_s_repr, 15, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__85)) __PYX_ERR(1, 15, __pyx_L1_error) | ^~~~~~~~~~~~~~~~~ | | | PyObject * {aka struct _object *} src/petsc4py.PETSc.c:318:79: note: in definition of macro ‘__Pyx_PyCode_New’ 318 | PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos) | ^~~~ In file included from /usr/include/python3.11/code.h:13, from /usr/include/python3.11/Python.h:69, from src/petsc4py.PETSc.c:4, from src/PETSc.c:4: /usr/include/python3.11/cpython/code.h:156:45: note: expected ‘int’ but argument is of type ‘PyObject *’ {aka ‘struct _object *’} 156 | PyObject *, PyObject *, PyObject *, int, PyObject *, | ^~~ In file included from src/PETSc.c:4: src/petsc4py.PETSc.c:318:11: error: too few arguments to function ‘PyCode_New’ 318 | PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos) | ^~~~~~~~~~ src/petsc4py.PETSc.c:342263:34: note: in expansion of macro ‘__Pyx_PyCode_New’ 342263 | __pyx_codeobj__85 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__84, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_PETSc_Error_pyx, __pyx_n_s_repr, 15, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__85)) __PYX_ERR(1, 15, __pyx_L1_error) | ^~~~~~~~~~~~~~~~ In file included from /usr/include/python3.11/code.h:13, from /usr/include/python3.11/Python.h:69, from src/petsc4py.PETSc.c:4, from src/PETSc.c:4: /usr/include/python3.11/cpython/code.h:153:28: note: declared here 153 | PyAPI_FUNC(PyCodeObject *) PyCode_New( | ^~~~~~~~~~ In file included from src/PETSc.c:4: src/petsc4py.PETSc.c:342275:245: warning: passing argument 14 of ‘PyCode_New’ makes pointer from integer without a cast [-Wint-conversion] 342275 | __pyx_codeobj__87 = (PyObject*)__Pyx_PyCode_New(1, 0, 8, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__86, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_PETSc_Error_pyx, __pyx_n_s_str, 18, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__87)) __PYX_ERR(1, 18, __pyx_L1_error) | ^~ | | | int src/petsc4py.PETSc.c:318:72: note: in definition of macro ‘__Pyx_PyCode_New’ 318 | PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos) | ^~~~~ In file included from /usr/include/python3.11/code.h:13, from /usr/include/python3.11/Python.h:69, from src/petsc4py.PETSc.c:4, from src/PETSc.c:4: /usr/include/python3.11/cpython/code.h:156:33: note: expected ‘PyObject *’ {aka ‘struct _object *’} but argument is of type ‘int’ 156 | PyObject *, PyObject *, PyObject *, int, PyObject *, | ^~~~~~~~~~ In file included from src/PETSc.c:4: src/petsc4py.PETSc.c:342275:249: warning: passing argument 15 of ‘PyCode_New’ makes integer from pointer without a cast [-Wint-conversion] 342275 | __pyx_codeobj__87 = (PyObject*)__Pyx_PyCode_New(1, 0, 8, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__86, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_PETSc_Error_pyx, __pyx_n_s_str, 18, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__87)) __PYX_ERR(1, 18, __pyx_L1_error) | ^~~~~~~~~~~~~~~~~ | | | PyObject * {aka struct _object *} src/petsc4py.PETSc.c:318:79: note: in definition of macro ‘__Pyx_PyCode_New’ 318 | PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos) | ^~~~ In file included from /usr/include/python3.11/code.h:13, from /usr/include/python3.11/Python.h:69, from src/petsc4py.PETSc.c:4, from src/PETSc.c:4: /usr/include/python3.11/cpython/code.h:156:45: note: expected ‘int’ but argument is of type ‘PyObject *’ {aka ‘struct _object *’} 156 | PyObject *, PyObject *, PyObject *, int, PyObject *, | ^~~ In file included from src/PETSc.c:4: src/petsc4py.PETSc.c:318:11: error: too few arguments to function ‘PyCode_New’ 318 | PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos) | ^~~~~~~~~~ src/petsc4py.PETSc.c:342275:34: note: in expansion of macro ‘__Pyx_PyCode_New’ 342275 | __pyx_codeobj__87 = (PyObject*)__Pyx_PyCode_New(1, 0, 8, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__86, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_PETSc_Error_pyx, __pyx_n_s_str, 18, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__87)) __PYX_ERR(1, 18, __pyx_L1_error) | ^~~~~~~~~~~~~~~~ In file included from /usr/include/python3.11/code.h:13, from /usr/include/python3.11/Python.h:69, from src/petsc4py.PETSc.c:4, from src/PETSc.c:4: /usr/include/python3.11/cpython/code.h:153:28: note: declared here 153 | PyAPI_FUNC(PyCodeObject *) PyCode_New( | ^~~~~~~~~~ In file included from src/PETSc.c:4: src/petsc4py.PETSc.c:342969:254: warning: passing argument 14 of ‘PyCode_New’ makes pointer from integer without a cast [-Wint-conversion] 342969 | __pyx_codeobj__151 = (PyObject*)__Pyx_PyCode_New(2, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__150, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_PETSc_PETSc_pyx, __pyx_n_s_initialize, 484, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__151)) __PYX_ERR(11, 484, __pyx_L1_error) | ^~~ | | | int src/petsc4py.PETSc.c:318:72: note: in definition of macro ‘__Pyx_PyCode_New’ 318 | PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos) | ^~~~~ In file included from /usr/include/python3.11/code.h:13, from /usr/include/python3.11/Python.h:69, from src/petsc4py.PETSc.c:4, from src/PETSc.c:4: /usr/include/python3.11/cpython/code.h:156:33: note: expected ‘PyObject *’ {aka ‘struct _object *’} but argument is of type ‘int’ 156 | PyObject *, PyObject *, PyObject *, int, PyObject *, | ^~~~~~~~~~ In file included from src/PETSc.c:4: src/petsc4py.PETSc.c:342969:259: warning: passing argument 15 of ‘PyCode_New’ makes integer from pointer without a cast [-Wint-conversion] 342969 | __pyx_codeobj__151 = (PyObject*)__Pyx_PyCode_New(2, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__150, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_PETSc_PETSc_pyx, __pyx_n_s_initialize, 484, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__151)) __PYX_ERR(11, 484, __pyx_L1_error) | ^~~~~~~~~~~~~~~~~ | | | PyObject * {aka struct _object *} src/petsc4py.PETSc.c:318:79: note: in definition of macro ‘__Pyx_PyCode_New’ 318 | PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos) | ^~~~ In file included from /usr/include/python3.11/code.h:13, from /usr/include/python3.11/Python.h:69, from src/petsc4py.PETSc.c:4, from src/PETSc.c:4: /usr/include/python3.11/cpython/code.h:156:45: note: expected ‘int’ but argument is of type ‘PyObject *’ {aka ‘struct _object *’} 156 | PyObject *, PyObject *, PyObject *, int, PyObject *, | ^~~ In file included from src/PETSc.c:4: src/petsc4py.PETSc.c:318:11: error: too few arguments to function ‘PyCode_New’ 318 | PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos) | ^~~~~~~~~~ src/petsc4py.PETSc.c:342969:35: note: in expansion of macro ‘__Pyx_PyCode_New’ 342969 | __pyx_codeobj__151 = (PyObject*)__Pyx_PyCode_New(2, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__150, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_PETSc_PETSc_pyx, __pyx_n_s_initialize, 484, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__151)) __PYX_ERR(11, 484, __pyx_L1_error) | ^~~~~~~~~~~~~~~~ In file included from /usr/include/python3.11/code.h:13, from /usr/include/python3.11/Python.h:69, from src/petsc4py.PETSc.c:4, from src/PETSc.c:4: /usr/include/python3.11/cpython/code.h:153:28: note: declared here 153 | PyAPI_FUNC(PyCodeObject *) PyCode_New( | ^~~~~~~~~~ In file included from src/PETSc.c:4: src/petsc4py.PETSc.c:342978:253: warning: passing argument 14 of ‘PyCode_New’ makes pointer from integer without a cast [-Wint-conversion] 342978 | __pyx_codeobj__152 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_PETSc_PETSc_pyx, __pyx_n_s_finalize, 500, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__152)) __PYX_ERR(11, 500, __pyx_L1_error) | ^~~ | | | int src/petsc4py.PETSc.c:318:72: note: in definition of macro ‘__Pyx_PyCode_New’ 318 | PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos) | ^~~~~ In file included from /usr/include/python3.11/code.h:13, from /usr/include/python3.11/Python.h:69, from src/petsc4py.PETSc.c:4, from src/PETSc.c:4: /usr/include/python3.11/cpython/code.h:156:33: note: expected ‘PyObject *’ {aka ‘struct _object *’} but argument is of type ‘int’ 156 | PyObject *, PyObject *, PyObject *, int, PyObject *, | ^~~~~~~~~~ In file included from src/PETSc.c:4: src/petsc4py.PETSc.c:342978:258: warning: passing argument 15 of ‘PyCode_New’ makes integer from pointer without a cast [-Wint-conversion] 342978 | __pyx_codeobj__152 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_PETSc_PETSc_pyx, __pyx_n_s_finalize, 500, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__152)) __PYX_ERR(11, 500, __pyx_L1_error) | ^~~~~~~~~~~~~~~~~ | | | PyObject * {aka struct _object *} src/petsc4py.PETSc.c:318:79: note: in definition of macro ‘__Pyx_PyCode_New’ 318 | PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos) | ^~~~ In file included from /usr/include/python3.11/code.h:13, from /usr/include/python3.11/Python.h:69, from src/petsc4py.PETSc.c:4, from src/PETSc.c:4: /usr/include/python3.11/cpython/code.h:156:45: note: expected ‘int’ but argument is of type ‘PyObject *’ {aka ‘struct _object *’} 156 | PyObject *, PyObject *, PyObject *, int, PyObject *, | ^~~ In file included from src/PETSc.c:4: src/petsc4py.PETSc.c:318:11: error: too few arguments to function ‘PyCode_New’ 318 | PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos) | ^~~~~~~~~~ src/petsc4py.PETSc.c:342978:35: note: in expansion of macro ‘__Pyx_PyCode_New’ 342978 | __pyx_codeobj__152 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_PETSc_PETSc_pyx, __pyx_n_s_finalize, 500, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__152)) __PYX_ERR(11, 500, __pyx_L1_error) | ^~~~~~~~~~~~~~~~ In file included from /usr/include/python3.11/code.h:13, from /usr/include/python3.11/Python.h:69, from src/petsc4py.PETSc.c:4, from src/PETSc.c:4: /usr/include/python3.11/cpython/code.h:153:28: note: declared here 153 | PyAPI_FUNC(PyCodeObject *) PyCode_New( | ^~~~~~~~~~ In file included from src/PETSc.c:4: src/petsc4py.PETSc.c:342987:265: warning: passing argument 14 of ‘PyCode_New’ makes pointer from integer without a cast [-Wint-conversion] 342987 | __pyx_codeobj__153 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_PETSc_PETSc_pyx, __pyx_n_s_push_python_vfprintf, 522, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__153)) __PYX_ERR(11, 522, __pyx_L1_error) | ^~~ | | | int src/petsc4py.PETSc.c:318:72: note: in definition of macro ‘__Pyx_PyCode_New’ 318 | PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos) | ^~~~~ In file included from /usr/include/python3.11/code.h:13, from /usr/include/python3.11/Python.h:69, from src/petsc4py.PETSc.c:4, from src/PETSc.c:4: /usr/include/python3.11/cpython/code.h:156:33: note: expected ‘PyObject *’ {aka ‘struct _object *’} but argument is of type ‘int’ 156 | PyObject *, PyObject *, PyObject *, int, PyObject *, | ^~~~~~~~~~ In file included from src/PETSc.c:4: src/petsc4py.PETSc.c:342987:270: warning: passing argument 15 of ‘PyCode_New’ makes integer from pointer without a cast [-Wint-conversion] 342987 | __pyx_codeobj__153 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_PETSc_PETSc_pyx, __pyx_n_s_push_python_vfprintf, 522, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__153)) __PYX_ERR(11, 522, __pyx_L1_error) | ^~~~~~~~~~~~~~~~~ | | | PyObject * {aka struct _object *} src/petsc4py.PETSc.c:318:79: note: in definition of macro ‘__Pyx_PyCode_New’ 318 | PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos) | ^~~~ In file included from /usr/include/python3.11/code.h:13, from /usr/include/python3.11/Python.h:69, from src/petsc4py.PETSc.c:4, from src/PETSc.c:4: /usr/include/python3.11/cpython/code.h:156:45: note: expected ‘int’ but argument is of type ‘PyObject *’ {aka ‘struct _object *’} 156 | PyObject *, PyObject *, PyObject *, int, PyObject *, | ^~~ In file included from src/PETSc.c:4: src/petsc4py.PETSc.c:318:11: error: too few arguments to function ‘PyCode_New’ 318 | PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos) | ^~~~~~~~~~ src/petsc4py.PETSc.c:342987:35: note: in expansion of macro ‘__Pyx_PyCode_New’ 342987 | __pyx_codeobj__153 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_PETSc_PETSc_pyx, __pyx_n_s_push_python_vfprintf, 522, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__153)) __PYX_ERR(11, 522, __pyx_L1_error) | ^~~~~~~~~~~~~~~~ In file included from /usr/include/python3.11/code.h:13, from /usr/include/python3.11/Python.h:69, from src/petsc4py.PETSc.c:4, from src/PETSc.c:4: /usr/include/python3.11/cpython/code.h:153:28: note: declared here 153 | PyAPI_FUNC(PyCodeObject *) PyCode_New( | ^~~~~~~~~~ In file included from src/PETSc.c:4: src/petsc4py.PETSc.c:342996:264: warning: passing argument 14 of ‘PyCode_New’ makes pointer from integer without a cast [-Wint-conversion] 342996 | __pyx_codeobj__154 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_PETSc_PETSc_pyx, __pyx_n_s_pop_python_vfprintf, 525, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__154)) __PYX_ERR(11, 525, __pyx_L1_error) | ^~~ | | | int src/petsc4py.PETSc.c:318:72: note: in definition of macro ‘__Pyx_PyCode_New’ 318 | PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos) | ^~~~~ In file included from /usr/include/python3.11/code.h:13, from /usr/include/python3.11/Python.h:69, from src/petsc4py.PETSc.c:4, from src/PETSc.c:4: /usr/include/python3.11/cpython/code.h:156:33: note: expected ‘PyObject *’ {aka ‘struct _object *’} but argument is of type ‘int’ 156 | PyObject *, PyObject *, PyObject *, int, PyObject *, | ^~~~~~~~~~ In file included from src/PETSc.c:4: src/petsc4py.PETSc.c:342996:269: warning: passing argument 15 of ‘PyCode_New’ makes integer from pointer without a cast [-Wint-conversion] 342996 | __pyx_codeobj__154 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_PETSc_PETSc_pyx, __pyx_n_s_pop_python_vfprintf, 525, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__154)) __PYX_ERR(11, 525, __pyx_L1_error) | ^~~~~~~~~~~~~~~~~ | | | PyObject * {aka struct _object *} src/petsc4py.PETSc.c:318:79: note: in definition of macro ‘__Pyx_PyCode_New’ 318 | PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos) | ^~~~ In file included from /usr/include/python3.11/code.h:13, from /usr/include/python3.11/Python.h:69, from src/petsc4py.PETSc.c:4, from src/PETSc.c:4: /usr/include/python3.11/cpython/code.h:156:45: note: expected ‘int’ but argument is of type ‘PyObject *’ {aka ‘struct _object *’} 156 | PyObject *, PyObject *, PyObject *, int, PyObject *, | ^~~ In file included from src/PETSc.c:4: src/petsc4py.PETSc.c:318:11: error: too few arguments to function ‘PyCode_New’ 318 | PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos) | ^~~~~~~~~~ src/petsc4py.PETSc.c:342996:35: note: in expansion of macro ‘__Pyx_PyCode_New’ 342996 | __pyx_codeobj__154 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_PETSc_PETSc_pyx, __pyx_n_s_pop_python_vfprintf, 525, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__154)) __PYX_ERR(11, 525, __pyx_L1_error) | ^~~~~~~~~~~~~~~~ In file included from /usr/include/python3.11/code.h:13, from /usr/include/python3.11/Python.h:69, from src/petsc4py.PETSc.c:4, from src/PETSc.c:4: /usr/include/python3.11/cpython/code.h:153:28: note: declared here 153 | PyAPI_FUNC(PyCodeObject *) PyCode_New( | ^~~~~~~~~~ In file included from src/PETSc.c:4: src/petsc4py.PETSc.c:343005:261: warning: passing argument 14 of ‘PyCode_New’ makes pointer from integer without a cast [-Wint-conversion] 343005 | __pyx_codeobj__155 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_PETSc_PETSc_pyx, __pyx_n_s_stdout_is_stderr, 528, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__155)) __PYX_ERR(11, 528, __pyx_L1_error) | ^~~ | | | int src/petsc4py.PETSc.c:318:72: note: in definition of macro ‘__Pyx_PyCode_New’ 318 | PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos) | ^~~~~ In file included from /usr/include/python3.11/code.h:13, from /usr/include/python3.11/Python.h:69, from src/petsc4py.PETSc.c:4, from src/PETSc.c:4: /usr/include/python3.11/cpython/code.h:156:33: note: expected ‘PyObject *’ {aka ‘struct _object *’} but argument is of type ‘int’ 156 | PyObject *, PyObject *, PyObject *, int, PyObject *, | ^~~~~~~~~~ In file included from src/PETSc.c:4: src/petsc4py.PETSc.c:343005:266: warning: passing argument 15 of ‘PyCode_New’ makes integer from pointer without a cast [-Wint-conversion] 343005 | __pyx_codeobj__155 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_PETSc_PETSc_pyx, __pyx_n_s_stdout_is_stderr, 528, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__155)) __PYX_ERR(11, 528, __pyx_L1_error) | ^~~~~~~~~~~~~~~~~ | | | PyObject * {aka struct _object *} src/petsc4py.PETSc.c:318:79: note: in definition of macro ‘__Pyx_PyCode_New’ 318 | PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos) | ^~~~ In file included from /usr/include/python3.11/code.h:13, from /usr/include/python3.11/Python.h:69, from src/petsc4py.PETSc.c:4, from src/PETSc.c:4: /usr/include/python3.11/cpython/code.h:156:45: note: expected ‘int’ but argument is of type ‘PyObject *’ {aka ‘struct _object *’} 156 | PyObject *, PyObject *, PyObject *, int, PyObject *, | ^~~ In file included from src/PETSc.c:4: src/petsc4py.PETSc.c:318:11: error: too few arguments to function ‘PyCode_New’ 318 | PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos) | ^~~~~~~~~~ src/petsc4py.PETSc.c:343005:35: note: in expansion of macro ‘__Pyx_PyCode_New’ 343005 | __pyx_codeobj__155 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_PETSc_PETSc_pyx, __pyx_n_s_stdout_is_stderr, 528, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__155)) __PYX_ERR(11, 528, __pyx_L1_error) | ^~~~~~~~~~~~~~~~ In file included from /usr/include/python3.11/code.h:13, from /usr/include/python3.11/Python.h:69, from src/petsc4py.PETSc.c:4, from src/PETSc.c:4: /usr/include/python3.11/cpython/code.h:153:28: note: declared here 153 | PyAPI_FUNC(PyCodeObject *) PyCode_New( | ^~~~~~~~~~ In file included from src/PETSc.c:4: src/petsc4py.PETSc.c:343070:258: warning: passing argument 14 of ‘PyCode_New’ makes pointer from integer without a cast [-Wint-conversion] 343070 | __pyx_codeobj__162 = (PyObject*)__Pyx_PyCode_New(3, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__161, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_Enum, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__162)) __PYX_ERR(57, 1, __pyx_L1_error) | ^ | | | int src/petsc4py.PETSc.c:318:72: note: in definition of macro ‘__Pyx_PyCode_New’ 318 | PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos) | ^~~~~ In file included from /usr/include/python3.11/code.h:13, from /usr/include/python3.11/Python.h:69, from src/petsc4py.PETSc.c:4, from src/PETSc.c:4: /usr/include/python3.11/cpython/code.h:156:33: note: expected ‘PyObject *’ {aka ‘struct _object *’} but argument is of type ‘int’ 156 | PyObject *, PyObject *, PyObject *, int, PyObject *, | ^~~~~~~~~~ In file included from src/PETSc.c:4: src/petsc4py.PETSc.c:343070:261: warning: passing argument 15 of ‘PyCode_New’ makes integer from pointer without a cast [-Wint-conversion] 343070 | __pyx_codeobj__162 = (PyObject*)__Pyx_PyCode_New(3, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__161, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_Enum, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__162)) __PYX_ERR(57, 1, __pyx_L1_error) | ^~~~~~~~~~~~~~~~~ | | | From the messages it looks like using pre-generated Cython files from upstream. They should be rebuilt, see https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_using_cython This bug appears to have been reported against 'rawhide' during the Fedora 36 development cycle. Changing version to 36. *** Bug 2098774 has been marked as a duplicate of this bug. *** FEDORA-2022-5f4f1e785b has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2022-5f4f1e785b FEDORA-2022-5f4f1e785b has been pushed to the Fedora 37 stable repository. If problem still persists, please make note of it in this bug report. |