Bug 1220163

Summary: [SciPy, OpenBLAS] python-scipy no longer builds with OpenBLAS 0.3.26
Product: [openSUSE] openSUSE Tumbleweed Reporter: Egbert Eich <eich>
Component: PythonAssignee: Matej Cepl <mcepl>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: ana.guerrero, rguenther
Version: Current   
Target Milestone: ---   
Hardware: All   
OS: openSUSE Tumbleweed   
Whiteboard:
Found By: Development Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: Patch

Description Egbert Eich 2024-02-21 15:59:42 UTC
Created attachment 872907 [details]
Patch

SciPy tests fail with the latest version of OpenBLAS (0.3.26). This prevents us from updating OpenBLAS in Factory.
Background: 
A recent patch to Netlib's LAPACK has lessened restrictions on input variables to some LAPACK functions to handle some corner cases:
https://github.com/Reference-LAPACK/lapack/pull/942
This would change the API in a backward compatible way, except that Scipy creates 'signatures' of LaPACK functions to 'wrap' these in order to verify the input values before passing these on. Since the tested conditions no longer match the conditions of the underlying interface errors are produced even though the values are correct.
OpenBLAS has picked up these changes from LAPACK although LAPACK itself has not provided a release which include these changes.
This has led to failures in the SpiPy test suite which have also proliferated to 
python-networkx and python-scikit-learn:
https://build.opensuse.org/request/show/1140298

A patch is available by the SciPy project:
https://github.com/scipy/scipy/pull/19909/commits/8c96a1f742335bca283aae418763aaba62c03378
This patch has been merged but has not been released, yet.
The patch is backward compatible to older version of OpenBLAS in the sense that it will not trigger issues - this has been verified with version 0.3.25. 
It may flag some input variable as valid which may not be valid for that version.
Comment 1 Egbert Eich 2024-02-27 18:47:13 UTC
Submitted an update to python-scipy to devel:languages:python:numeric.
Comment 2 Egbert Eich 2024-02-28 18:08:24 UTC
Request: https://build.opensuse.org/request/show/1152470
Comment 3 OBSbugzilla Bot 2024-02-29 11:35:04 UTC
This is an autogenerated message for OBS integration:
This bug (1220163) was mentioned in
https://build.opensuse.org/request/show/1153127 Factory / python-scipy
Comment 4 Egbert Eich 2024-02-29 19:02:40 UTC
Fixed.