Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 831984

Summary: media-libs/opencv-4.5.5 fails to compile opencv_java.cpp
Product: Gentoo Linux Reporter: 27 <happysmash27>
Component: Current packagesAssignee: Paul Zander <negril.nx+gentoo>
Status: UNCONFIRMED ---    
Severity: minor CC: proxy-maint
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: OpenCV build log without Java use flag disabled
Emerge --info and emerge -pqv

Description 27 2022-01-24 17:42:23 UTC
media-libs/opencv-4.5.5 fails to compile opencv_java.cpp. In addition, if the "java" use flag is disabled, it fails on stitching_detailed.cpp instead. 

Reproducible: Always

Steps to Reproduce:
1.emerge opencv (or do a world update, which is how I discovered this bug)
Actual Results:  
 * ERROR: media-libs/opencv-4.5.5::gentoo failed (compile phase)

Expected Results:  
OpenCV emerges successfully
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-01-24 17:44:29 UTC
Please include the full build.log and emerge --info.

Could you file a new separate bug for the failure with -java? Thanks.
Comment 2 27 2022-01-24 17:47:09 UTC
Created attachment 763510 [details]
OpenCV build log without Java use flag disabled
Comment 3 27 2022-01-24 17:49:07 UTC
Created attachment 763511 [details]
Emerge --info and emerge -pqv
Comment 4 27 2022-01-24 17:50:06 UTC
(In reply to Sam James from comment #1)
> Please include the full build.log and emerge --info.

Was still getting to that. Now they are uploaded as planned. 

> Could you file a new separate bug for the failure with -java? Thanks.

Yes, thank you.
Comment 5 27 2022-01-24 18:26:58 UTC
Upon searching the logs further up, it appears that the actual cause of this issue is: 

/var/tmp/portage/media-libs/opencv-4.5.5/work/opencv-4.5.5/samples/cpp/tutorial_code/gapi/doc_snippets/kernel_api_snippets.cpp:2:10: fatal err
or: opencv2/gapi.hpp: No such file or directory

And that when emerging without the Java use flag, my error is identical to that of this issue: https://bugs.gentoo.org/show_bug.cgi?id=831113

Therefore, I think that these issues may be related or have the same underlying cause.
Comment 6 27 2022-01-24 21:54:25 UTC
Although this ends with a different error message, the workaround of disabling the examples use flag from this issue: https://bugs.gentoo.org/830163. 

Is successful in allowing this package to be emerged. Therefore, I will edit the severity to minor.