Bug 1898112

Summary: perl-Inline-Python fails to build with Python 3.10: tests fail
Product: [Fedora] Fedora Reporter: Miro Hrončok <mhroncok>
Component: perl-Inline-PythonAssignee: Mattias Ellert <mattias.ellert>
Status: CLOSED NEXTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 35CC: j.k.nilsen, mattias.ellert, mhroncok, perl-devel, thrnciar
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: perl-Inline-Python-0.56-19.fc35 perl-Inline-Python-0.56-19.fc36 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-08-19 07:52:48 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: 1890881    

Description Miro Hrončok 2020-11-16 12:28:42 UTC
perl-Inline-Python fails to build with Python 3.10.0a2.

+ make test
"/usr/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- Python.bs blib/arch/auto/Inline/Python/Python.bs 644
PERL_DL_NONLAZY=1 "/usr/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00init.t ................ ok
Failed to autogenerate /builddir/build/BUILD/Inline-Python-0.56/blib_test/config-x86_64-linux-thread-multi-5.032000.

 at t/01testpl.t line 6.
BEGIN failed--compilation aborted at t/01testpl.t line 6.
t/01testpl.t .............. 
Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 8/8 subtests 
t/02testpl.t .............. 
Failed 9/9 subtests 
t/03parse.t ............... 
No subtests run 
t/04func.t ................ 
Failed 3/3 subtests 
Failed to autogenerate /builddir/build/BUILD/Inline-Python-0.56/blib_test/config-x86_64-linux-thread-multi-5.032000.

 at t/05JAxH.t line 7.
BEGIN failed--compilation aborted at t/05JAxH.t line 7.
t/05JAxH.t ................ 
Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 1/1 subtests 
Failed to autogenerate /builddir/build/BUILD/Inline-Python-0.56/blib_test/config-x86_64-linux-thread-multi-5.032000.

 at t/06dict.t line 8.
BEGIN failed--compilation aborted at t/06dict.t line 8.
# Looks like your test exited with 2 before it could output anything.
t/06dict.t ................ 
Dubious, test returned 2 (wstat 512, 0x200)
Failed 6/6 subtests 
Failed to autogenerate /builddir/build/BUILD/Inline-Python-0.56/blib_test/config-x86_64-linux-thread-multi-5.032000.

 at t/07nherit.t line 4.
BEGIN failed--compilation aborted at t/07nherit.t line 4.
t/07nherit.t .............. 
Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 5/5 subtests 
t/08ipyobj.t .............. 
Failed 9/9 subtests 
t/09bind.t ................ 
Failed 6/6 subtests 
t/10pyeval.t .............. 
Failed 6/6 subtests 
Failed to autogenerate /builddir/build/BUILD/Inline-Python-0.56/blib_test/config-x86_64-linux-thread-multi-5.032000.

 at t/11factor.t line 0.
INIT failed--call queue aborted, <DATA> line 1.
t/11factor.t .............. 
Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 133/133 subtests 
Failed to autogenerate /builddir/build/BUILD/Inline-Python-0.56/blib_test/config-x86_64-linux-thread-multi-5.032000.

 at t/12evnodd.t line 0.
INIT failed--call queue aborted, <DATA> line 1.
t/12evnodd.t .............. 
Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 150/150 subtests 
t/13fibbon.t .............. 
Failed 277/277 subtests 
t/14study.t ............... 
Failed 14/14 subtests 
Failed to autogenerate /builddir/build/BUILD/Inline-Python-0.56/blib_test/config-x86_64-linux-thread-multi-5.032000.

 at t/15anon.t line 0.
INIT failed--call queue aborted, <DATA> line 1.
t/15anon.t ................ 
Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 2/2 subtests 
t/16evalpy.t .............. 
Failed 11/11 subtests 
Failed to autogenerate /builddir/build/BUILD/Inline-Python-0.56/blib_test/config-x86_64-linux-thread-multi-5.032000.

 at t/17once.t line 0.
INIT failed--call queue aborted, <DATA> line 1.
t/17once.t ................ 
Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 1/1 subtests 
Failed to autogenerate /builddir/build/BUILD/Inline-Python-0.56/blib_test/config-x86_64-linux-thread-multi-5.032000.

 at t/18newclass.t line 4.
BEGIN failed--compilation aborted at t/18newclass.t line 4.
t/18newclass.t ............ 
Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 5/5 subtests 
t/19testref.t ............. 
Failed 57/57 subtests 
Failed to autogenerate /builddir/build/BUILD/Inline-Python-0.56/blib_test/config-x86_64-linux-thread-multi-5.032000.

 at t/20unicode.t line 11.
BEGIN failed--compilation aborted at t/20unicode.t line 11.
t/20unicode.t ............. 
Dubious, test returned 2 (wstat 512, 0x200)
No subtests run 
t/21arrayref.t ............ 
Failed 19/19 subtests 
t/22int.t ................. 
Failed 4/4 subtests 
t/23getattr.t ............. 
Failed 6/6 subtests 
t/24getitem.t ............. 
Failed 4/4 subtests 
Failed to autogenerate /builddir/build/BUILD/Inline-Python-0.56/blib_test/config-x86_64-linux-thread-multi-5.032000.

 at t/25py_sub.t line 5.
BEGIN failed--compilation aborted at t/25py_sub.t line 5.
# Looks like your test exited with 2 before it could output anything.
t/25py_sub.t .............. 
Dubious, test returned 2 (wstat 512, 0x200)
Failed 17/17 subtests 
Failed to autogenerate /builddir/build/BUILD/Inline-Python-0.56/blib_test/config-x86_64-linux-thread-multi-5.032000.

 at t/26undef.t line 6.
BEGIN failed--compilation aborted at t/26undef.t line 6.
# Looks like your test exited with 2 before it could output anything.
t/26undef.t ............... 
Dubious, test returned 2 (wstat 512, 0x200)
Failed 2/2 subtests 
Failed to autogenerate /builddir/build/BUILD/Inline-Python-0.56/blib_test/config-x86_64-linux-thread-multi-5.032000.

 at t/27pyattrs.t line 5.
BEGIN failed--compilation aborted at t/27pyattrs.t line 5.
# Looks like your test exited with 2 before it could output anything.
t/27pyattrs.t ............. 
Dubious, test returned 2 (wstat 512, 0x200)
Failed 14/14 subtests 
Failed to autogenerate /builddir/build/BUILD/Inline-Python-0.56/blib_test/config-x86_64-linux-thread-multi-5.032000.

 at t/28exception.t line 7.
BEGIN failed--compilation aborted at t/28exception.t line 7.
# Looks like your test exited with 2 before it could output anything.
t/28exception.t ........... 
Dubious, test returned 2 (wstat 512, 0x200)
Failed 9/9 subtests 
Failed to autogenerate /builddir/build/BUILD/Inline-Python-0.56/blib_test/config-x86_64-linux-thread-multi-5.032000.

 at t/29named_params.t line 6.
BEGIN failed--compilation aborted at t/29named_params.t line 6.
# Looks like your test exited with 2 before it could output anything.
t/29named_params.t ........ 
Dubious, test returned 2 (wstat 512, 0x200)
Failed 5/5 subtests 
Failed to autogenerate /builddir/build/BUILD/Inline-Python-0.56/blib_test/config-x86_64-linux-thread-multi-5.032000.

 at t/30floats.t line 9.
BEGIN failed--compilation aborted at t/30floats.t line 9.
# Looks like your test exited with 2 before it could output anything.
t/30floats.t .............. 
Dubious, test returned 2 (wstat 512, 0x200)
Failed 7/7 subtests 
Failed to autogenerate /builddir/build/BUILD/Inline-Python-0.56/blib_test/config-x86_64-linux-thread-multi-5.032000.

 at t/31stringification.t line 7.
BEGIN failed--compilation aborted at t/31stringification.t line 7.
# Looks like your test exited with 2 before it could output anything.
t/31stringification.t ..... 
Dubious, test returned 2 (wstat 512, 0x200)
Failed 3/3 subtests 
Failed to autogenerate /builddir/build/BUILD/Inline-Python-0.56/blib_test/config-x86_64-linux-thread-multi-5.032000.

 at t/32boolean.t line 7.
BEGIN failed--compilation aborted at t/32boolean.t line 7.
# Looks like your test exited with 2 before it could output anything.
t/32boolean.t ............. 
Dubious, test returned 2 (wstat 512, 0x200)
Failed 16/16 subtests 
t/33reinit.t .............. 
Failed 10/10 subtests 
Failed to autogenerate /builddir/build/BUILD/Inline-Python-0.56/_Inline/config-x86_64-linux-thread-multi-5.032000.

 at t/34env.t line 2.
BEGIN failed--compilation aborted at t/34env.t line 2.
t/34env.t ................. 
Dubious, test returned 2 (wstat 512, 0x200)
No subtests run 
Failed to autogenerate /builddir/build/BUILD/Inline-Python-0.56/blib_test/config-x86_64-linux-thread-multi-5.032000.

 at t/35dictunicodememleak.t line 15.
BEGIN failed--compilation aborted at t/35dictunicodememleak.t line 15.
t/35dictunicodememleak.t .. 
Dubious, test returned 2 (wstat 512, 0x200)
No subtests run 
t/cmp.t ................... 
Failed 7/7 subtests 

Test Summary Report
-------------------
t/01testpl.t            (Wstat: 65280 Tests: 0 Failed: 0)
  Non-zero exit status: 255
  Parse errors: Bad plan.  You planned 8 tests but ran 0.
t/02testpl.t            (Wstat: 139 Tests: 0 Failed: 0)
  Non-zero wait status: 139
  Parse errors: Bad plan.  You planned 9 tests but ran 0.
t/03parse.t             (Wstat: 139 Tests: 0 Failed: 0)
  Non-zero wait status: 139
  Parse errors: No plan found in TAP output
t/04func.t              (Wstat: 139 Tests: 0 Failed: 0)
  Non-zero wait status: 139
  Parse errors: Bad plan.  You planned 3 tests but ran 0.
t/05JAxH.t              (Wstat: 65280 Tests: 0 Failed: 0)
  Non-zero exit status: 255
  Parse errors: Bad plan.  You planned 1 tests but ran 0.
t/06dict.t              (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: Bad plan.  You planned 6 tests but ran 0.
t/07nherit.t            (Wstat: 65280 Tests: 0 Failed: 0)
  Non-zero exit status: 255
  Parse errors: Bad plan.  You planned 5 tests but ran 0.
t/08ipyobj.t            (Wstat: 139 Tests: 0 Failed: 0)
  Non-zero wait status: 139
  Parse errors: Bad plan.  You planned 9 tests but ran 0.
t/09bind.t              (Wstat: 139 Tests: 0 Failed: 0)
  Non-zero wait status: 139
  Parse errors: Bad plan.  You planned 6 tests but ran 0.
t/10pyeval.t            (Wstat: 139 Tests: 0 Failed: 0)
  Non-zero wait status: 139
  Parse errors: Bad plan.  You planned 6 tests but ran 0.
t/11factor.t            (Wstat: 65280 Tests: 0 Failed: 0)
  Non-zero exit status: 255
  Parse errors: Bad plan.  You planned 133 tests but ran 0.
t/12evnodd.t            (Wstat: 65280 Tests: 0 Failed: 0)
  Non-zero exit status: 255
  Parse errors: Bad plan.  You planned 150 tests but ran 0.
t/13fibbon.t            (Wstat: 139 Tests: 0 Failed: 0)
  Non-zero wait status: 139
  Parse errors: Bad plan.  You planned 277 tests but ran 0.
t/14study.t             (Wstat: 139 Tests: 0 Failed: 0)
  Non-zero wait status: 139
  Parse errors: Bad plan.  You planned 14 tests but ran 0.
t/15anon.t              (Wstat: 65280 Tests: 0 Failed: 0)
  Non-zero exit status: 255
  Parse errors: Bad plan.  You planned 2 tests but ran 0.
t/16evalpy.t            (Wstat: 139 Tests: 0 Failed: 0)
  Non-zero wait status: 139
  Parse errors: Bad plan.  You planned 11 tests but ran 0.
t/17once.t              (Wstat: 65280 Tests: 0 Failed: 0)
  Non-zero exit status: 255
  Parse errors: Bad plan.  You planned 1 tests but ran 0.
t/18newclass.t          (Wstat: 65280 Tests: 0 Failed: 0)
  Non-zero exit status: 255
  Parse errors: Bad plan.  You planned 5 tests but ran 0.
t/19testref.t           (Wstat: 139 Tests: 0 Failed: 0)
  Non-zero wait status: 139
  Parse errors: Bad plan.  You planned 57 tests but ran 0.
t/20unicode.t           (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
t/21arrayref.t          (Wstat: 139 Tests: 0 Failed: 0)
  Non-zero wait status: 139
  Parse errors: Bad plan.  You planned 19 tests but ran 0.
t/22int.t               (Wstat: 139 Tests: 0 Failed: 0)
  Non-zero wait status: 139
  Parse errors: Bad plan.  You planned 4 tests but ran 0.
t/23getattr.t           (Wstat: 139 Tests: 0 Failed: 0)
  Non-zero wait status: 139
  Parse errors: Bad plan.  You planned 6 tests but ran 0.
t/24getitem.t           (Wstat: 139 Tests: 0 Failed: 0)
  Non-zero wait status: 139
  Parse errors: Bad plan.  You planned 4 tests but ran 0.
t/25py_sub.t            (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: Bad plan.  You planned 17 tests but ran 0.
t/26undef.t             (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: Bad plan.  You planned 2 tests but ran 0.
t/27pyattrs.t           (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: Bad plan.  You planned 14 tests but ran 0.
t/28exception.t         (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: Bad plan.  You planned 9 tests but ran 0.
t/29named_params.t      (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: Bad plan.  You planned 5 tests but ran 0.
t/30floats.t            (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: Bad plan.  You planned 7 tests but ran 0.
t/31stringification.t   (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: Bad plan.  You planned 3 tests but ran 0.
t/32boolean.t           (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: Bad plan.  You planned 16 tests but ran 0.
t/33reinit.t            (Wstat: 139 Tests: 0 Failed: 0)
  Non-zero wait status: 139
  Parse errors: Bad plan.  You planned 10 tests but ran 0.
t/34env.t               (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
t/35dictunicodememleak.t (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
t/cmp.t                 (Wstat: 139 Tests: 0 Failed: 0)
  Non-zero wait status: 139
  Parse errors: Bad plan.  You planned 7 tests but ran 0.
Files=37, Tests=1,  8 wallclock secs ( 0.10 usr  0.05 sys +  3.36 cusr  0.54 csys =  4.05 CPU)
Result: FAIL

Unfortunately, I have no idea what's actually wrong, sorry :(



For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.10/fedora-rawhide-x86_64/01757217-perl-Inline-Python/

For all our attempts to build perl-Inline-Python with Python 3.10, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.10/package/perl-Inline-Python/

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.10:
https://copr.fedorainfracloud.org/coprs/g/python/python3.10/

Let us know here if you have any questions.

Python 3.10 will be included in Fedora 35. To make that update smoother, we're building Fedora packages with early pre-releases of Python 3.10.
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.

Comment 1 Ben Cotton 2021-02-09 15:24:59 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 34 development cycle.
Changing version to 34.

Comment 2 Miro Hrončok 2021-06-04 20:15:06 UTC
This is a mass-posted update. Sorry if it is not 100% accurate to this bugzilla.


The Python 3.10 rebuild is in progress in a Koji side tag. If you manage to fix the problem, please commit the fix in the rawhide branch, but don't build the package in regular rawhide.

You can either build the package in the side tag, with:

    $ fedpkg build --target=f35-python

Or you can the build and we will eventually build it for you.

Note that the rebuild is still in progress, so not all (build) dependencies of this package might be available right away.

Thanks.

See also https://fedoraproject.org/wiki/Changes/Python3.10

If you have general questions about the rebuild, please use this mailing list thread: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/G47SGOYIQLRDTWGOSLSWERZSSHXDEDH5/

Comment 3 Miro Hrončok 2021-06-07 22:59:36 UTC
The f35-python side tag has been merged to Rawhide. From now on, build as you would normally build.

Comment 4 Ben Cotton 2021-08-10 12:49:01 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 35 development cycle.
Changing version to 35.

Comment 5 Mattias Ellert 2021-08-19 07:52:48 UTC
Segmentation fault with Python 3.10 due to calling PyBytes_FromString() before calling Py_Initialize().
Apparently was not a problem with earlier versions.