Bug 2041573

Summary: opencv: FTBFS in Fedora Rawhide on ppc64le
Product: [Fedora] Fedora Reporter: Ben Beasley <code>
Component: opencvAssignee: Sergio Basto <sergio>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: alekcejk, andrew, chip.kerchner, dan, hhorak, jkucera, jmlich83, jridky, jvanek, karlthered, kwizart, philip.wyett, rakesh.pandit, sergio, viktor.vix.jancik
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
URL: https://koschei.fedoraproject.org/package/opencv
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-01-28 02:00:39 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: 1071880, 2024265, 2041576, 2041577, 2042704    

Description Ben Beasley 2022-01-17 18:01:45 UTC
Description of problem:
Package opencv fails to build from source in Fedora Rawhide on ppc64le.

Version-Release number of selected component (if applicable):
4.5.5-1.fc36

Steps to Reproduce:
koji build --scratch f36 opencv-4.5.5-1.fc36.src.rpm

Additional info:
This package is tracked by Koschei. See:
https://koschei.fedoraproject.org/package/opencv

On ppc64le only:

> modules/core/include/opencv2/core/vsx_utils.hpp:466:22: error: invalid parameter combination for AltiVec intrinsic '__builtin_vec_sldw'

https://kojipkgs.fedoraproject.org/work/tasks/5024/81355024/build.log

This regression appeared with GCC 12. Unfortunately, it’s also causing dependent packages (e.g. fasttrack, highfive) to FTBFS.

It’s not immediately obvious whether the bug is in OpenCV or in GCC.

Comment 1 Ben Beasley 2022-01-17 18:18:13 UTC
Reported upstream: https://github.com/opencv/opencv/issues/21465

Comment 2 Chip Kerchner 2022-02-15 13:29:58 UTC
Please use this patch to resolve the issue

https://github.com/opencv/opencv/pull/21614

Comment 3 Sergio Basto 2022-02-15 14:37:44 UTC
I will apply it soon thank you

Comment 4 Sergio Basto 2022-02-15 16:48:04 UTC
*** Bug 2051193 has been marked as a duplicate of this bug. ***