Re: Packages that failed to build with Python 3.11 (and what to do)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 21. 06. 22 12:51, Miro Hrončok wrote:
On 20. 06. 22 22:11, Mark E. Fuller wrote:
On 20/06/2022 14:45, Tomas Hrnciar wrote:
<snip>
 >
 > ## Where to get help
 >
 > Reply to this thread or find us (thrnciar, mhroncok) on #fedora-python IRC channel (libera.chat)or Matrix (#python:fedoraproject.org <http://fedoraproject.org>).
 >
 > ---
 >
 > Let us know if you have other questions.
 >
<snip>

Question: my error appears to be in a Python header.
Can someone take a look at this and giver me some quick feedback as to whether this is a problem for my package or a bug I should report?
It doesn't seem to fall into one of the neat categories described by Tomas

```
/usr/bin/python3 -c "import Cython.Build; Cython.Build.cythonize('build/python/cantera/_cantera.pyx')"
Compiling build/python/cantera/_cantera.pyx because it changed.
[1/1] Cythonizing build/python/cantera/_cantera.pyx
g++ -o build/temp-py/_cantera.os -c -std=c++11 -pthread -O3 -Wno-inline -g -fPIC -DNDEBUG -Iinclude -I/usr/include/python3.11 -I/usr/lib64/python3.11/site-packages/numpy/core/include -I/usr/include/eigen3 build/python/cantera/_cantera.cpp In file included from /usr/lib64/python3.11/site-packages/numpy/core/include/numpy/ndarraytypes.h:1960,                   from /usr/lib64/python3.11/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,                   from /usr/lib64/python3.11/site-packages/numpy/core/include/numpy/arrayobject.h:5,
                  from build/python/cantera/_cantera.cpp:749:
/usr/lib64/python3.11/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
    17 | #warning "Using deprecated NumPy API, disable it with " \
       |  ^~~~~~~
In file included from /usr/include/python3.11/Python.h:38,
                  from build/python/cantera/_cantera.cpp:20:
/usr/include/python3.11/pyport.h: In instantiation of 'type {anonymous}::_Py_CAST_impl(const expr_type&) [with type = _object*; expr_type = int]':
build/python/cantera/_cantera.cpp:193144:9:   required from here
/usr/include/python3.11/pyport.h:47:24: error: invalid 'static_cast' from type 'int' to type '_object*'     47 |                 return static_cast<type>(const_cast<expr_type &>(expr));
       | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
scons: *** [build/temp-py/_cantera.os] Error 1
scons: building terminated because of errors.
```

See: https://github.com/Cantera/cantera/issues/1325
Also: https://kojipkgs.fedoraproject.org/work/tasks/2453/88502453/build.log

I believe this shall fix it:

https://src.fedoraproject.org/rpms/python3.11/pull-request/56

This is now built and available in the buildroot.

--
Miro Hrončok
--
Phone: +420777974800
IRC: mhroncok
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux