Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1817715
Summary: | python-cocotb fails to build with Python 3.9: /usr/bin/ld: cannot find -lgpi | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Miro Hrončok <mhroncok> |
Component: | python-cocotb | Assignee: | Ben Rosser <rosser.bjr> |
Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | rawhide | CC: | cstratak, mhroncok, mplch, pviktori, rosser.bjr |
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-06-05 14:24:13 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: | 1803234, 1785415 |
Description
Miro Hrončok
2020-03-26 19:24:04 UTC
It looks like this is because PyEval_InitThreads() was deprecated in 3.9 and the C libraries are being compiled with -Werror=deprecated-declarations turned on. Since this function call no longer does anything in 3.9, according to the release notes, I think the thing to do is just remove it. I've pushed a commit to Rawhide doing just that, hopefully that will solve the problem! https://docs.python.org/3.9/whatsnew/3.9.html This comment is mass posted to all bugs blocking the Python 3.9 tracker, sorry if it is not 100 % relevant. When in doubt, please ask. The Python 3.9 rebuild is in progress in a Koji side tag. If you fix this bug, please don't rebuild the package in regular rawhide, but do it in the side tag with: $ fedpkg build --target=f33-python The rebuild is progressing slowly and it is possible this package won't have all the required build dependencies yet. If that's the case, please just leave the fix committed and pushed and we will eventually rebuild it for you. You are not asked to go and try rebuild all the missing dependencies yourself. If you know there is a bootstrap loop in the dependencies, let me know and we can untangle it together. If you want to test your fix or reproduce the failure, you can still use the Copr repo mentioned in the initial comment of this bug: https://copr.fedorainfracloud.org/coprs/g/python/python3.9/ There is one more failure, see: https://koji.fedoraproject.org/koji/buildinfo?buildID=1512314 ./bin/combine_results.py Traceback (most recent call last): File "/builddir/build/BUILD/cocotb-1.3.1/./bin/combine_results.py", line 11, in <module> from xml.etree import cElementTree as ET ImportError: cannot import name 'cElementTree' from 'xml.etree' (/usr/lib64/python3.9/xml/etree/__init__.py) cElementTree has been deprecated since 2012. From Python 3.9 release notes (https://docs.python.org/3.9/whatsnew/3.9.html#removed): > The xml.etree.cElementTree module has been removed, use the xml.etree.ElementTree module instead. Since Python 3.3 the xml.etree.cElementTree module has been deprecated, the xml.etree.ElementTree module uses a fast implementation whenever available. Python 3.9 update: The f33-python side tag is currently being merged. New builds in f33-python are no longer possible, but python3 is not yet updated to Python 3.9 in rawhide. You can check when Python is Python 3.9 with: $ koji wait-repo f33-build --build python3.9-3.9.0~b1-3.fc3 And build the packages normally after that. This should now be fixed; I've updated the import and the package seems to build on Rawhide again. https://koji.fedoraproject.org/koji/taskinfo?taskID=45454735 |