Description of problem: ... test_ndarray_zero_strides (test.test_buffer.TestBufferProtocol) ... ok test_py_buffer_to_contiguous (test.test_buffer.TestBufferProtocol) ... test test_buffer failed ok ====================================================================== FAIL: test_memoryview_struct_module (test.test_buffer.TestBufferProtocol) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/Python-3.6.4/Lib/test/test_buffer.py", line 2540, in test_memoryview_struct_module self.assertEqual(m[1], nd[1]) AssertionError: -21.099998474121094 != -21.100000381469727 ---------------------------------------------------------------------- Ran 72 tests in 18.370s FAILED (failures=1) 1 test failed again: test_buffer Total duration: 20 min 28 sec Tests result: FAILURE Version-Release number of selected component (if applicable): python3-3.6.4-9.fc28 How reproducible: 100% Steps to Reproduce: 1. Build python3 with test_buffer enabled in rawhide Additional info: The test was disabled in 3.6.4-10 so that the F28 mass rebuild can take place, but should be reenabled afterwards.
Created attachment 1389498 [details] build log
This bug appears to have been reported against 'rawhide' during the Fedora 28 development cycle. Changing version to '28'.
The culprit might be in the gcc update. The test works with gcc-7.2.1-2.fc27.ppc64le, but if you update to gcc-8.0.1-0.14.fc28.ppc64le it starts to fail.
Setting this to low priority. It would be great if someone else would get to this earlier than we can. If that's your case, please assign the bug to yourself (and adjust priority accordingly).
I reported an upstream bug: https://bugs.python.org/issue35752
The bug has been fixed in master and 8.3 branches of GCC. I requested a backport to GCC 8.2 (in RHEL8): https://bugzilla.redhat.com/show_bug.cgi?id=1677652
It seems like Fedora Rawhide already got the ppc64le fix, so I wrote a change to reenable test_buffer on ppc64le: https://src.fedoraproject.org/rpms/python3/pull-request/92
I reeenable test_buffer on ppc64le: https://src.fedoraproject.org/rpms/python3/c/1e30f555cf0d557d820db94961e0cbe87119ca79?branch=master Since the change only impacts the build of the package, no new release of the package is needed. I close the issue.