Public bug reported: Platform: Ubuntu 20.04 LTS x86_64 Swig version: 4.0.1-5build1 Python version 3.8 Compiler used: clang 9.0 or clang 10.0
Description: Our project does not build due to an issue in swig that was fixed after 4.0.1 release. Expected build behaviour: No warnings and errors Actual build behaviour: API issue due to making tp_print deprecated in python 3.8 after swig 4.0.1 release. This issue causes my project build to fail: In file included from /usr/include/python3.8/Python.h:85: In file included from /usr/include/python3.8/pytime.h:6: In file included from /usr/include/python3.8/object.h:746: /usr/include/python3.8/cpython/object.h:177:16: error: 'tp_print' is deprecated Recovery: Manually applying patch and creating my own swig package. Patch available from github: https://github.com/swig/swig/pull/1670 Extra Information: Please add this patch to allow swig python interfaces to be used with python 3.8. gcc seems to ignore this kind of error though it should not (but that is a different kind of issue). Related issue on our side: https://github.com/canorusmusic/canorus/issues/163 ** Affects: swig (Ubuntu) Importance: Undecided Status: New ** Tags: focal patch ** Tags added: focal patch ** Description changed: Platform: Ubuntu 20.04 LTS x86_64 Swig version: 4.0.1-5build1 Python version 3.8 Compiler used: clang 9.0 or clang 10.0 Description: - My project does not build due to an issue in swig that was fixed after 4.0.1 release. + Our project does not build due to an issue in swig that was fixed after 4.0.1 release. Expected build behaviour: No warnings and errors Actual build behaviour: API issue due to making tp_print deprecated in python 3.8 after swig 4.0.1 release. This issue causes my project build to fail: In file included from /usr/include/python3.8/Python.h:85: In file included from /usr/include/python3.8/pytime.h:6: In file included from /usr/include/python3.8/object.h:746: - /usr/include/python3.8/cpython/object.h:177:16: error: 'tp_print' is deprecated + /usr/include/python3.8/cpython/object.h:177:16: error: 'tp_print' is deprecated Recovery: Manually applying patch and creating my own swig package. Patch available from github: https://github.com/swig/swig/pull/1670 Extra Information: Please add this patch to allow swig python interfaces to be used with python 3.8. gcc seems to ignore this kind of error though it should not (but that is a different kind of issue). + Related issue on our side: + https://github.com/canorusmusic/canorus/issues/163 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1876764 Title: tp_print changes in python 3.8 prevent build To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/swig/+bug/1876764/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
