Bug 2345306

Summary: OpenCV 4.11.0 is broken on s390x (big endian) - cv::imread returns empty matrix for valid file
Product: [Fedora] Fedora Reporter: Adam Williamson <awilliam>
Component: opencvAssignee: Nicolas Chauvet (kwizart) <kwizart>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: rawhideCC: hhorak, jkucera, jridky, karlthered, kwizart, sergio
Target Milestone: ---   
Target Release: ---   
Hardware: s390x   
OS: Linux   
Whiteboard:
Fixed In Version: opencv-4.11.0-2.fc43 opencv-4.11.0-2.fc42 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-02-19 18:26:45 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: 2343929, 2343942    

Description Adam Williamson 2025-02-12 17:49:51 UTC
This is a downstream report of https://github.com/opencv/opencv/issues/26913 , filed so I can have the os-autoinst FTBFS bugs refer to it. OpenCV 4.11.0 seems to be flat broken on s390x (probably all big-endian arches); reading valid images returns an empty matrix. This is why os-autoinst's tests fail. There are more details and a minimal reproducer in the upstream issue.

Comment 1 Sergio Basto 2025-02-12 17:54:56 UTC
 Detected processor: s390x
     -CMake Warning at cmake/OpenCVDetectCXXCompiler.cmake:114 (message):
     -  OpenCV: unrecognized target processor configuration

seems opencv doens't support/recognize s390x

Comment 2 Adam Williamson 2025-02-12 18:21:39 UTC
That was the same in the 4.10.0 build, so that's not the problem per se, I don't think.

Comment 3 Fedora Update System 2025-02-19 13:47:52 UTC
FEDORA-2025-3aded9af35 (opencv-4.11.0-2.fc43) has been submitted as an update to Fedora 43.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-3aded9af35

Comment 4 Fedora Update System 2025-02-19 16:05:29 UTC
FEDORA-2025-6882de3efb (opencv-4.11.0-2.fc42) has been submitted as an update to Fedora 42.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-6882de3efb

Comment 5 Fedora Update System 2025-02-19 18:26:45 UTC
FEDORA-2025-3aded9af35 (opencv-4.11.0-2.fc43) has been pushed to the Fedora 43 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 6 Fedora Update System 2025-02-20 00:46:35 UTC
FEDORA-2025-6882de3efb has been pushed to the Fedora 42 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-6882de3efb`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-6882de3efb

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 7 Fedora Update System 2025-03-15 00:26:31 UTC
FEDORA-2025-6882de3efb (opencv-4.11.0-2.fc42) has been pushed to the Fedora 42 stable repository.
If problem still persists, please make note of it in this bug report.