Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 831984 - media-libs/opencv-4.5.5 fails to compile opencv_java.cpp
Summary: media-libs/opencv-4.5.5 fails to compile opencv_java.cpp
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal minor
Assignee: Paul Zander
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-01-24 17:42 UTC by 27
Modified: 2023-11-17 10:32 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
OpenCV build log without Java use flag disabled (java_build.log.bz2,84.88 KB, application/x-bzip)
2022-01-24 17:47 UTC, 27
Details
Emerge --info and emerge -pqv (file_831984.txt,12.24 KB, text/plain)
2022-01-24 17:49 UTC, 27
Details

Note You need to log in before you can comment on or make changes to this bug.
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.