Bug 1831213
| Summary: | insight fails to build with Python 3.9: error: 'void PyEval_InitThreads()' is deprecated [-Werror=deprecated-declarations] | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Miro Hrončok <mhroncok> |
| Component: | insight | Assignee: | Patrick Monnerat <patrick> |
| Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | rawhide | CC: | cstratak, mhroncok, mplch, patrick |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2020-05-05 15:49:45 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: | 1785415 | ||
insight-10.0.50.20200110-4 should fix it. https://koji.fedoraproject.org/koji/taskinfo?taskID=44120778 Thanks. |
insight fails to build with Python 3.9.0a6. python/python.c: In function 'bool do_start_initialization()': python/python.c:1621:23: error: 'void PyEval_InitThreads()' is deprecated [-Werror=deprecated-declarations] 1621 | PyEval_InitThreads (); | ^ In file included from /usr/include/python3.9/Python.h:143, from python/python-internal.h:86, from python/python.c:92: /usr/include/python3.9/ceval.h:132:37: note: declared here 132 | Py_DEPRECATED(3.9) PyAPI_FUNC(void) PyEval_InitThreads(void); | ^~~~~~~~~~~~~~~~~~ CXX ravenscar-thread.o cc1plus: all warnings being treated as errors make[2]: *** [Makefile:1662: python/python.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: Leaving directory '/builddir/build/BUILD/insight-10.0.50.20200110/gdb' make[1]: *** [Makefile:8741: all-gdb] Error 2 make[1]: Leaving directory '/builddir/build/BUILD/insight-10.0.50.20200110' make: *** [Makefile:849: all] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.lJA8Cv (%build) As a temporary workaround, consider not building with -Werror=deprecated-declarations. For the build logs, see: https://copr-be.cloud.fedoraproject.org/results/@python/python3.9/fedora-rawhide-x86_64/01365366-insight/ For all our attempts to build insight with Python 3.9, see: https://copr.fedorainfracloud.org/coprs/g/python/python3.9/package/insight/ Testing and mass rebuild of packages is happening in copr. You can follow these instructions to test locally in mock if your package builds with Python 3.9: https://copr.fedorainfracloud.org/coprs/g/python/python3.9/ Let us know here if you have any questions. Python 3.9 will be included in Fedora 33. To make that update smoother, we're building Fedora packages with early pre-releases of Python 3.9. A build failure prevents us from testing all dependent packages (transitive [Build]Requires), so if this package is required a lot, it's important for us to get it fixed soon. We'd appreciate help from the people who know this package best, but if you don't want to work on this now, let us know so we can try to work around it on our side.